7 #include "pprzlink/messages.h"
40 DOWNLINK_SEND_TAKEOFF(&time_sec);
47 if (pprz_msg_received) {
49 pprz_msg_received =
false;
66 #include "generated/settings.h"
68 #define IdOfMsg(x) (x[1])
73 if (msg_id == DL_SETTING) {
77 DOWNLINK_SEND_DL_VALUE(&i, &var);
static void main_event_task(void)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void mcu_init(void)
Microcontroller peripherals initialization.
static void main_init(void)
static void main_dl_parse_msg(void)
Architecture independent timing functions.
Arch independent mcu ( Micro Controller Unit ) utilities.
static bool sys_time_check_and_ack_timer(tid_t id)
Check if timer has elapsed.
volatile uint32_t nb_sec
full seconds since startup
static void main_periodic_task(void)
Common code for AP and FBW telemetry.
uint8_t dl_buffer[MSG_SIZE]
arch independent LED (Light Emitting Diodes) API
tid_t sys_time_register_timer(float duration, sys_time_cb cb)
Register a new system timer.