Siphon Regulator
1.0
Nanosattelite attitude determination and control system.
Loading...
Searching...
No Matches
Siphon_regulator
Core
Inc
loop_fcn.h
Go to the documentation of this file.
1
/*
2
* Loop functions 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_LOOP_FCN_H_
24
#define INC_LOOP_FCN_H_
25
26
/* Includes -----------------------------------------------*/
27
#include "
main.h
"
28
29
/* Extern global variables --------------------------------*/
30
extern
sensor_data_t
measured_data
;
31
extern
settings_t
set_data
;
32
33
/* Function prototypes ------------------------------------*/
50
void
autoread_fcn
(uint32_t reg);
51
110
void
valve_fcn
(uint32_t * p_reg,
float
* p_set_pos);
111
141
void
regul_fcn
(uint32_t * p_reg,
float
set_pos);
142
144
#endif
/* INC_LOOP_FCN_H_ */
valve_fcn
void valve_fcn(uint32_t *p_reg, float *p_set_pos)
It handles the execution of motion commands.
Definition
loop_fcn.c:69
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
autoread_fcn
void autoread_fcn(uint32_t reg)
It handles the periodic transmission of the sensor data message.
Definition
loop_fcn.c:27
regul_fcn
void regul_fcn(uint32_t *p_reg, float set_pos)
It handles the regulation of the orientation.
Definition
loop_fcn.c:183
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