ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
Loading...
Searching...
No Matches
log_queue.h
Go to the documentation of this file.
1
13#ifndef LOG_QUEUE_H
14#define LOG_QUEUE_H
15
16#include <stdint.h>
17
19
20#define LOG_Q_IMU_SIZE 4096u
21#define LOG_Q_BATT_SIZE 512u
22
23/* ---- producers ---- */
24uint8_t log_q_active(void);
25int log_q_put(uint8_t src, uint8_t type, const void *payload, uint8_t len);
27/* ---- LogTask ---- */
28void log_q_reset(void);
29void log_q_set_active(uint8_t on);
31uint32_t log_q_get(uint8_t src, uint8_t *type, void *payload, uint8_t cap);
32uint16_t log_q_take_drops(uint8_t src);
33
34#endif /* LOG_QUEUE_H */
float cap[6][3]
Definition calib_mgr.c:36
@ LOG_SRC_BATT
Definition log_queue.h:18
@ LOG_SRC_IMU
Definition log_queue.h:18
@ LOG_SRC_COUNT
Definition log_queue.h:18
uint32_t log_q_get(uint8_t src, uint8_t *type, void *payload, uint8_t cap)
next record of 'src': returns payload length + 1, 0 if empty
Definition log_queue.c:52
void log_q_reset(void)
Definition log_queue.c:27
int log_q_put(uint8_t src, uint8_t type, const void *payload, uint8_t len)
0 = queued
Definition log_queue.c:33
uint8_t log_q_active(void)
Definition log_queue.c:24
void log_q_set_active(uint8_t on)
Definition log_queue.c:25
uint16_t log_q_take_drops(uint8_t src)
Definition log_queue.c:73
uint8_t on
Definition log_task.c:48