Siphon Regulator 1.0
Nanosattelite attitude determination and control system.
Loading...
Searching...
No Matches
sensor_fcn.h
Go to the documentation of this file.
1/*
2 * Command processing library
3 * (c) Antonin_Putala 2026
4 *
5 * Developed using STM32CubeIDE
6 * Tested on BluePill board and STM32F103C8T6, 32 MHz.
7 */
8
23#ifndef INC_SENSOR_FCN_H_
24#define INC_SENSOR_FCN_H_
25
26/* Includes -----------------------------------------------*/
27#include "main.h"
28
29/* Defines ------------------------------------------------*/
30
31/* Extern global variables --------------------------------*/
33extern settings_t set_data;
34
35/* Function prototypes ------------------------------------*/
46void sensor_init(float * gyr_offset);
47
58void sensor_get_value(float * gyr_offset);
59
69void sensor_deg_limit(float * p_deg);
70
72#endif /* INC_SENSOR_FCN_H_ */
void sensor_get_value(float *gyr_offset)
It handles reading the value from the sensor.
Definition sensor_fcn.c:49
void sensor_init(float *gyr_offset)
It initiates communication with the sensor.
Definition sensor_fcn.c:24
settings_t set_data
Main system settings.
Definition main.c:61
sensor_data_t measured_data
Current sensor measured data.
Definition main.c:60
void sensor_deg_limit(float *p_deg)
It normalizes the orientation value to the –180° to +180° range.
Definition sensor_fcn.c:88
: Header for main.c file. This file contains the common defines of the application.