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
19
typedef
struct
{
20
float
gyro[3];
21
float
dt
;
22
uint32_t
step
;
23
}
ctrl_rate_in_t
;
24
25
typedef
struct
{
26
float
q[4];
27
float
dt
;
28
uint32_t
step
;
29
}
ctrl_att_in_t
;
30
31
void
ctrl_init
(
void
);
32
void
ctrl_rate_step
(
const
ctrl_rate_in_t
*in);
33
void
ctrl_attitude_step
(
const
ctrl_att_in_t
*in);
35
#endif
/* CONTROL_HOOKS_H */
ctrl_attitude_step
void ctrl_attitude_step(const ctrl_att_in_t *in)
240 Hz
Definition
control_hooks.c:9
ctrl_rate_step
void ctrl_rate_step(const ctrl_rate_in_t *in)
960 Hz
Definition
control_hooks.c:8
ctrl_init
void ctrl_init(void)
Definition
control_hooks.c:7
ctrl_att_in_t
Definition
control_hooks.h:25
ctrl_att_in_t::dt
float dt
Definition
control_hooks.h:27
ctrl_att_in_t::step
uint32_t step
Definition
control_hooks.h:28
ctrl_rate_in_t
Definition
control_hooks.h:19
ctrl_rate_in_t::dt
float dt
s
Definition
control_hooks.h:21
ctrl_rate_in_t::step
uint32_t step
Definition
control_hooks.h:22
control
control_hooks.h
Generated by
1.9.8