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

Builds telemetry frames from the pipeline state. More...

#include <stddef.h>
#include <stdint.h>
#include "est_pipeline.h"
#include "telemetry.h"
Include dependency graph for tlm_build.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

size_t tlm_build_state (const est_t *e, uint8_t *frame, size_t cap)
 
size_t tlm_build_init (const est_t *e, float fs_state_hz, uint8_t *frame, size_t cap)
 
size_t tlm_build_replay (const est_t *e, uint8_t *frame, size_t cap)
 

Detailed Description

Builds telemetry frames from the pipeline state.

Portable (no HAL/RTOS): used by the firmware and by the PC test, which therefore produces capture files byte-identical to the board's.

Definition in file tlm_build.h.

Function Documentation

◆ tlm_build_state()

size_t tlm_build_state ( const est_t *  e,
uint8_t *  frame,
size_t  cap 
)

Definition at line 10 of file tlm_build.c.

References tlm_state_t::acc, tlm_state_t::bias, cap, tlm_state_t::flags, tlm_state_t::gyro, iekf_get_quat(), tlm_state_t::mag, tlm_state_t::q, tlm_state_t::seq, tlm_state_t::t_us, tlm_encode(), and TLM_TYPE_STATE.

Referenced by on_state().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tlm_build_init()

size_t tlm_build_init ( const est_t *  e,
float  fs_state_hz,
uint8_t *  frame,
size_t  cap 
)

◆ tlm_build_replay()

size_t tlm_build_replay ( const est_t *  e,
uint8_t *  frame,
size_t  cap 
)

Definition at line 63 of file tlm_build.c.

References cap, iekf_get_quat(), IEKF_NX, n, tlm_encode(), TLM_REPLAY_MAX, and TLM_TYPE_REPLAY.

Referenced by on_state().

Here is the call graph for this function:
Here is the caller graph for this function: