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

#include <app_task.h>

Data Fields

char hw_rev
 CAPS hwRev: 'N' Nucleo bench, 'A' ACwing FC rev A.
 
uint8_t n_motors
 
uint8_t motors_built
 
uint32_t uid [3]
 MCU unique id -> serial "ACW-xxxxxxxx"

 
size_t(* get_init )(uint8_t *dst, size_t cap)
 INIT frame of the estimator (copy; 0 if not ready yet)
 
uint8_t batt_monitor
 a BattTask runs: POWER, CHECKS item 1, BATTERY calibration
 
uint16_t board_sensors
 CAPS bits of the board itself (CURRENT, FLASH_LOG)

 
uint8_t(* log_pct )(void)
 flash log used %, 0xFF = no log; may be NULL
 

Detailed Description

Definition at line 28 of file app_task.h.

Field Documentation

◆ hw_rev

char app_task_cfg_t::hw_rev

CAPS hwRev: 'N' Nucleo bench, 'A' ACwing FC rev A.

Definition at line 29 of file app_task.h.

Referenced by app_start(), and send_caps().

◆ n_motors

uint8_t app_task_cfg_t::n_motors

Definition at line 30 of file app_task.h.

Referenced by app_init(), app_start(), send_caps(), and send_motors().

◆ motors_built

uint8_t app_task_cfg_t::motors_built

Definition at line 31 of file app_task.h.

Referenced by app_init(), and app_start().

◆ uid

uint32_t app_task_cfg_t::uid[3]

MCU unique id -> serial "ACW-xxxxxxxx"

Definition at line 32 of file app_task.h.

Referenced by app_start(), and send_caps().

◆ get_init

size_t(* app_task_cfg_t::get_init) (uint8_t *dst, size_t cap)

INIT frame of the estimator (copy; 0 if not ready yet)

Definition at line 34 of file app_task.h.

Referenced by app_start(), and send_init().

◆ batt_monitor

uint8_t app_task_cfg_t::batt_monitor

a BattTask runs: POWER, CHECKS item 1, BATTERY calibration

Definition at line 35 of file app_task.h.

Referenced by app_init(), app_start(), batt_now(), battery_flight(), build_checks(), local_cmd(), and streams().

◆ board_sensors

uint16_t app_task_cfg_t::board_sensors

CAPS bits of the board itself (CURRENT, FLASH_LOG)

Definition at line 36 of file app_task.h.

Referenced by app_start(), and sensors_now().

◆ log_pct

uint8_t(* app_task_cfg_t::log_pct) (void)

flash log used %, 0xFF = no log; may be NULL

Definition at line 38 of file app_task.h.

Referenced by app_start(), and send_system().


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