ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
Loading...
Searching...
No Matches
control_hooks.h
Go to the documentation of this file.
1
14#ifndef CONTROL_HOOKS_H
15#define CONTROL_HOOKS_H
16
17#include <stdint.h>
18
19typedef struct {
20 float gyro[3];
21 float dt;
22 uint32_t step;
24
25typedef struct {
26 float q[4];
27 float dt;
28 uint32_t step;
30
31void ctrl_init(void);
32void ctrl_rate_step(const ctrl_rate_in_t *in);
33void ctrl_attitude_step(const ctrl_att_in_t *in);
35#endif /* CONTROL_HOOKS_H */
void ctrl_attitude_step(const ctrl_att_in_t *in)
240 Hz
void ctrl_rate_step(const ctrl_rate_in_t *in)
960 Hz
void ctrl_init(void)