1 #ifndef EKF_AW_WRAPPER_H
2 #define EKF_AW_WRAPPER_H
24 #define EKF_AW_RPM_HOVER_NUM 4
82 #define ekf_aw_wrapper_reset(_v) { \
83 ekf_aw.reset = false; \
85 ekf_aw_reset_health(); \
88 #define ekf_aw_wrapper_set_wind_N(_v) { \
89 ekf_aw.wind_guess.x = _v; \
90 ekf_aw_set_wind(&ekf_aw.wind_guess); \
93 #define ekf_aw_wrapper_set_wind_E(_v) { \
94 ekf_aw.wind_guess.y = _v; \
95 ekf_aw_set_wind(&ekf_aw.wind_guess); \
98 #define ekf_aw_wrapper_set_wind_D(_v) { \
99 ekf_aw.wind_guess.z = _v; \
100 ekf_aw_set_wind(&ekf_aw.wind_guess); \
103 #define ekf_aw_wrapper_set_offset_x(_v) { \
104 ekf_aw.offset_guess.x = _v; \
105 ekf_aw_set_offset(&ekf_aw.offset_guess); \
108 #define ekf_aw_wrapper_set_offset_y(_v) { \
109 ekf_aw.offset_guess.y = _v; \
110 ekf_aw_set_offset(&ekf_aw.offset_guess); \
113 #define ekf_aw_wrapper_set_offset_z(_v) { \
114 ekf_aw.offset_guess.z = _v; \
115 ekf_aw_set_offset(&ekf_aw.offset_guess); \
bool override_quick_convergence
struct FloatVect3 innov_V_gnd
Pitot tube airspeed.
uint64_t time_last_on_gnd
struct FloatVect3 acc_filt
Ground Speed.
struct FloatVect3 acc
Last accelerometer measurements.
int32_t last_RPM_hover[EKF_AW_RPM_HOVER_NUM]
#define EKF_AW_RPM_HOVER_NUM
Euler angles.
void ekf_aw_wrapper_fetch(void)
float elevator_angle
Skew.
void set_in_air_status(bool)
struct FloatRates gyro
Last gyroscope measurements.
float skew
Pusher motor RPM.
float RPM_hover[EKF_AW_RPM_HOVER_NUM]
uint64_t time_last_in_air
float RPM_pusher
Hover motor RPM.
void ekf_aw_wrapper_periodic(void)
struct FloatVect3 innov_acc_filt
struct NedCoor_f wind_guess
struct NedCoor_f offset_guess
void ekf_aw_wrapper_init(void)
Paparazzi floating point algebra.
Paparazzi fixed point algebra.
Paparazzi floating point math for geodetic calculations.
vector in North East Down coordinates Units: meters
int int32_t
Typedef defining 32 bit int type.
unsigned long long uint64_t