Siphon Regulator
1.0
Nanosattelite attitude determination and control system.
Loading...
Searching...
No Matches
Siphon_regulator
Core
Inc
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 --------------------------------*/
32
extern
sensor_data_t
measured_data
;
33
extern
settings_t
set_data
;
34
35
/* Function prototypes ------------------------------------*/
46
void
sensor_init
(
float
* gyr_offset);
47
58
void
sensor_get_value
(
float
* gyr_offset);
59
69
void
sensor_deg_limit
(
float
* p_deg);
70
72
#endif
/* INC_SENSOR_FCN_H_ */
sensor_get_value
void sensor_get_value(float *gyr_offset)
It handles reading the value from the sensor.
Definition
sensor_fcn.c:49
sensor_init
void sensor_init(float *gyr_offset)
It initiates communication with the sensor.
Definition
sensor_fcn.c:24
set_data
settings_t set_data
Main system settings.
Definition
main.c:61
measured_data
sensor_data_t measured_data
Current sensor measured data.
Definition
main.c:60
sensor_deg_limit
void sensor_deg_limit(float *p_deg)
It normalizes the orientation value to the –180° to +180° range.
Definition
sensor_fcn.c:88
main.h
: Header for main.c file. This file contains the common defines of the application.
sensor_data_t
Definition
main.h:78
settings_t
Definition
main.h:86
Generated by
1.12.0