![]() |
ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
|
#include <checks.h>
Data Fields | |
| uint16_t | sensors |
| CAPS bits | |
| uint8_t | imu_ok |
| IMU initialised | |
| uint8_t | est_running |
| attitude estimate converged and running | |
| float | att_unc_deg |
| 1 sigma | |
| float | mag_interf_pct |
| uint32_t | cal_done_mask |
| bit (type-1): calibration done and saved | |
| uint8_t | rc_fresh |
| RC from the app in the last 0.5 s | |
| int16_t | rc_thr |
| uint8_t | hold_mode |
| ALT_HOLD / POS_HOLD: centre stick = hold | |
| float | gf_max_alt |
| param gfMaxAlt | |
| float | gf_max_dist |
| param gfMaxDist | |
| uint8_t | alt_valid |
| vertical estimate running (baro / ToF) | |
| uint8_t | flow_q |
| 0..100, 0xFF n/a | |
| uint8_t | flow_ok |
| bridge alive, PMW3901 OK | |
| uint8_t | in_air |
| uint8_t | batt_monitor |
| battery measured (BattTask runs) | |
| uint8_t | batt_stale |
| BattTask silent | |
| uint8_t | batt_present |
| uint8_t | batt_level |
| latched level from the flight core | |
| float | batt_cell_v |
| average cell, sagged and filtered | |
| float | batt_warn |
| float | batt_crit |
| params battWarn / battCrit | |
| uint8_t | usb_host |
| a USB host is connected (item 12, FAIL) | |
| uint16_t checks_in_t::sensors |
| uint8_t checks_in_t::imu_ok |
IMU initialised
Definition at line 16 of file checks.h.
Referenced by build_checks(), and checks_build().
| uint8_t checks_in_t::est_running |
attitude estimate converged and running
Definition at line 17 of file checks.h.
Referenced by build_checks(), and checks_build().
| float checks_in_t::att_unc_deg |
| float checks_in_t::mag_interf_pct |
Definition at line 19 of file checks.h.
Referenced by build_checks(), and checks_build().
| uint32_t checks_in_t::cal_done_mask |
bit (type-1): calibration done and saved
Definition at line 20 of file checks.h.
Referenced by build_checks(), and checks_build().
| uint8_t checks_in_t::rc_fresh |
RC from the app in the last 0.5 s
Definition at line 21 of file checks.h.
Referenced by build_checks(), and checks_build().
| int16_t checks_in_t::rc_thr |
Definition at line 22 of file checks.h.
Referenced by build_checks(), and checks_build().
| uint8_t checks_in_t::hold_mode |
ALT_HOLD / POS_HOLD: centre stick = hold
Definition at line 23 of file checks.h.
Referenced by build_checks(), and checks_build().
| float checks_in_t::gf_max_alt |
param gfMaxAlt
Definition at line 24 of file checks.h.
Referenced by build_checks(), and checks_build().
| float checks_in_t::gf_max_dist |
param gfMaxDist
Definition at line 25 of file checks.h.
Referenced by build_checks(), and checks_build().
| uint8_t checks_in_t::alt_valid |
vertical estimate running (baro / ToF)
Definition at line 26 of file checks.h.
Referenced by build_checks(), and checks_build().
| uint8_t checks_in_t::flow_q |
0..100, 0xFF n/a
Definition at line 27 of file checks.h.
Referenced by build_checks(), and checks_build().
| uint8_t checks_in_t::flow_ok |
bridge alive, PMW3901 OK
Definition at line 28 of file checks.h.
Referenced by build_checks(), and checks_build().
| uint8_t checks_in_t::in_air |
Definition at line 29 of file checks.h.
Referenced by build_checks(), and checks_build().
| uint8_t checks_in_t::batt_monitor |
battery measured (BattTask runs)
Definition at line 31 of file checks.h.
Referenced by build_checks(), and checks_build().
| uint8_t checks_in_t::batt_stale |
BattTask silent
Definition at line 32 of file checks.h.
Referenced by build_checks(), and checks_build().
| uint8_t checks_in_t::batt_present |
Definition at line 33 of file checks.h.
Referenced by build_checks(), and checks_build().
| uint8_t checks_in_t::batt_level |
latched level from the flight core
Definition at line 34 of file checks.h.
Referenced by build_checks(), and checks_build().
| float checks_in_t::batt_cell_v |
average cell, sagged and filtered
Definition at line 35 of file checks.h.
Referenced by build_checks(), and checks_build().
| float checks_in_t::batt_warn |
Definition at line 36 of file checks.h.
Referenced by build_checks().
| float checks_in_t::batt_crit |
| uint8_t checks_in_t::usb_host |
a USB host is connected (item 12, FAIL)
Definition at line 37 of file checks.h.
Referenced by build_checks(), and checks_build().