![]() |
ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
|
Version 2. More...
#include <cfg_store.h>
Data Fields | |
| uint32_t | magic |
| uint16_t | version |
| uint16_t | size |
| uint32_t | seq |
| cfg_param_t | params [CFG_PARAM_SLOTS] |
| char | name [16] |
| cal_set_t | cal |
| saved calibrations | |
| cal_set_t | bak |
| previous set, per type (CAL_RESTORE) | |
| uint32_t | bak_mask |
| bit (type-1): bak holds a set for it | |
| float | batt_used_mah |
| charge used in the last flight | |
| float | batt_used_scale_i |
| current scale it was counted with | |
| uint8_t | reserved [56] |
| zero; for later fields | |
| uint32_t | crc |
| CRC-32 of everything above | |
Version 2.
Version 1 (positional parameters, no battery) is migrated by cfg_load(); the next save writes version 2.
Definition at line 34 of file cfg_store.h.
| uint32_t cfg_image_t::magic |
Definition at line 35 of file cfg_store.h.
Referenced by cfg_load(), cfg_save(), and valid_version().
| uint16_t cfg_image_t::version |
Definition at line 36 of file cfg_store.h.
Referenced by cfg_load(), cfg_save(), and valid_version().
| uint16_t cfg_image_t::size |
Definition at line 37 of file cfg_store.h.
Referenced by cfg_load(), cfg_save(), and valid_version().
| uint32_t cfg_image_t::seq |
Definition at line 38 of file cfg_store.h.
Referenced by cfg_load(), cfg_save(), and latest_page().
| cfg_param_t cfg_image_t::params[CFG_PARAM_SLOTS] |
Definition at line 39 of file cfg_store.h.
Referenced by cfg_params_get(), and cfg_params_put().
| char cfg_image_t::name[16] |
Definition at line 40 of file cfg_store.h.
Referenced by app_task_boot(), cfg_load(), local_cmd(), and send_caps().
| cal_set_t cfg_image_t::cal |
saved calibrations
Definition at line 41 of file cfg_store.h.
Referenced by app_task_boot(), build_checks(), cfg_load(), and local_cmd().
| cal_set_t cfg_image_t::bak |
previous set, per type (CAL_RESTORE)
Definition at line 42 of file cfg_store.h.
Referenced by app_task_boot(), cfg_load(), and local_cmd().
| uint32_t cfg_image_t::bak_mask |
bit (type-1): bak holds a set for it
Definition at line 43 of file cfg_store.h.
Referenced by cfg_load(), and local_cmd().
| float cfg_image_t::batt_used_mah |
charge used in the last flight
Definition at line 44 of file cfg_store.h.
Referenced by battery_flight(), and cal_batt().
| float cfg_image_t::batt_used_scale_i |
current scale it was counted with
Definition at line 45 of file cfg_store.h.
Referenced by app_task_boot(), battery_flight(), cal_batt(), and cfg_load().
| uint8_t cfg_image_t::reserved[56] |
zero; for later fields
Definition at line 46 of file cfg_store.h.
| uint32_t cfg_image_t::crc |
CRC-32 of everything above
Definition at line 47 of file cfg_store.h.
Referenced by cfg_save(), and valid_version().