![]() |
ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
|
published state (AppTask builds FLIGHT / MOTORS from it) More...
#include <fc_core.h>
Data Fields | |
| uint8_t | armed |
| uint8_t | mode |
| uint8_t | autom |
| uint8_t | failsafe |
| uint8_t | input |
| uint8_t | in_air |
| uint8_t | rc_stale |
| RC older than FC_RC_STALE_MS: neutral sticks in use. | |
| uint8_t | fs_long |
| the long app-link action fired | |
| uint16_t | flight_time_s |
| uint8_t | motor_out_pct [8] |
| uint8_t | test_motor |
| motor under test (1..n), 0 none | |
| uint8_t | landed |
| touched down after a flight (until disarm) | |
| uint8_t | geofence |
| a limit is active | |
| uint8_t | batt_level |
| last level signalled by the BattTask | |
| uint8_t | batt_stale |
| BattTask silent: battery state unknown | |
| int32_t | alt_rel_cm |
| above the take-off point | |
| int16_t | vz_cms |
| uint32_t | silence_ms |
| app link silence seen by the failsafe | |
| float | stick [4] |
| setpoint inputs -1..1: thr, yaw, pitch, roll | |
| uint8_t fc_state_t::armed |
Definition at line 86 of file fc_core.h.
Referenced by armed_now(), batt_task_step(), log_task_step(), publish(), and send_flight().
| uint8_t fc_state_t::mode |
Definition at line 86 of file fc_core.h.
Referenced by build_checks(), publish(), and send_flight().
| uint8_t fc_state_t::autom |
Definition at line 86 of file fc_core.h.
Referenced by publish(), and send_flight().
| uint8_t fc_state_t::failsafe |
Definition at line 86 of file fc_core.h.
Referenced by publish(), and send_flight().
| uint8_t fc_state_t::input |
Definition at line 86 of file fc_core.h.
Referenced by publish(), and send_flight().
| uint8_t fc_state_t::in_air |
Definition at line 86 of file fc_core.h.
Referenced by build_checks(), publish(), and send_flight().
| uint8_t fc_state_t::rc_stale |
RC older than FC_RC_STALE_MS: neutral sticks in use.
Definition at line 87 of file fc_core.h.
Referenced by build_checks(), and publish().
| uint8_t fc_state_t::fs_long |
| uint16_t fc_state_t::flight_time_s |
Definition at line 89 of file fc_core.h.
Referenced by publish(), and send_flight().
| uint8_t fc_state_t::motor_out_pct[8] |
Definition at line 90 of file fc_core.h.
Referenced by publish(), and send_motors().
| uint8_t fc_state_t::test_motor |
| uint8_t fc_state_t::landed |
touched down after a flight (until disarm)
Definition at line 92 of file fc_core.h.
Referenced by publish(), and send_flight().
| uint8_t fc_state_t::geofence |
| uint8_t fc_state_t::batt_level |
last level signalled by the BattTask
Definition at line 94 of file fc_core.h.
Referenced by build_checks(), and publish().
| uint8_t fc_state_t::batt_stale |
BattTask silent: battery state unknown
Definition at line 95 of file fc_core.h.
Referenced by build_checks(), and publish().
| int32_t fc_state_t::alt_rel_cm |
above the take-off point
Definition at line 96 of file fc_core.h.
Referenced by publish(), and send_flight().
| int16_t fc_state_t::vz_cms |
Definition at line 97 of file fc_core.h.
Referenced by publish(), and send_flight().
| uint32_t fc_state_t::silence_ms |
app link silence seen by the failsafe
Definition at line 98 of file fc_core.h.
Referenced by build_checks(), and publish().
| float fc_state_t::stick[4] |