ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
Loading...
Searching...
No Matches
checks_in_t Struct Reference

#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)

 

Detailed Description

Definition at line 14 of file checks.h.

Field Documentation

◆ sensors

uint16_t checks_in_t::sensors

CAPS bits

Definition at line 15 of file checks.h.

Referenced by build_checks(), and checks_build().

◆ imu_ok

uint8_t checks_in_t::imu_ok

IMU initialised

Definition at line 16 of file checks.h.

Referenced by build_checks(), and checks_build().

◆ est_running

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().

◆ att_unc_deg

float checks_in_t::att_unc_deg

1 sigma

Definition at line 18 of file checks.h.

Referenced by build_checks(), and checks_build().

◆ mag_interf_pct

float checks_in_t::mag_interf_pct

Definition at line 19 of file checks.h.

Referenced by build_checks(), and checks_build().

◆ cal_done_mask

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().

◆ rc_fresh

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().

◆ rc_thr

int16_t checks_in_t::rc_thr

Definition at line 22 of file checks.h.

Referenced by build_checks(), and checks_build().

◆ hold_mode

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().

◆ gf_max_alt

float checks_in_t::gf_max_alt

param gfMaxAlt

Definition at line 24 of file checks.h.

Referenced by build_checks(), and checks_build().

◆ gf_max_dist

float checks_in_t::gf_max_dist

param gfMaxDist

Definition at line 25 of file checks.h.

Referenced by build_checks(), and checks_build().

◆ alt_valid

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().

◆ flow_q

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().

◆ flow_ok

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().

◆ in_air

uint8_t checks_in_t::in_air

Definition at line 29 of file checks.h.

Referenced by build_checks(), and checks_build().

◆ batt_monitor

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().

◆ batt_stale

uint8_t checks_in_t::batt_stale

BattTask silent

Definition at line 32 of file checks.h.

Referenced by build_checks(), and checks_build().

◆ batt_present

uint8_t checks_in_t::batt_present

Definition at line 33 of file checks.h.

Referenced by build_checks(), and checks_build().

◆ batt_level

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().

◆ batt_cell_v

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().

◆ batt_warn

float checks_in_t::batt_warn

Definition at line 36 of file checks.h.

Referenced by build_checks().

◆ batt_crit

float checks_in_t::batt_crit

params battWarn / battCrit

Definition at line 36 of file checks.h.

Referenced by build_checks().

◆ usb_host

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().


The documentation for this struct was generated from the following file: