7 #include "pprzlink/messages.h"
39 DOWNLINK_SEND_TAKEOFF(&time_sec);
46 if (pprz_msg_received) {
48 pprz_msg_received =
false;
65 #include "generated/settings.h"
67 #define IdOfMsg(x) (x[1])
72 if (msg_id == DL_SETTING) {
76 DOWNLINK_SEND_DL_VALUE(&i, &var);
Common code for AP and FBW telemetry.
void mcu_init(void)
Microcontroller peripherals initialization.
arch independent LED (Light Emitting Diodes) API
static void main_event_task(void)
static void main_dl_parse_msg(void)
uint8_t dl_buffer[MSG_SIZE]
bool dl_msg_available
Flag provided to control calls to dl_parse_msg.
static void main_periodic_task(void)
static void main_init(void)
Arch independent mcu ( Micro Controller Unit ) utilities.
tid_t sys_time_register_timer(float duration, sys_time_cb cb)
Register a new system timer.
Architecture independent timing functions.
volatile uint32_t nb_sec
full seconds since startup
static bool sys_time_check_and_ack_timer(tid_t id)
Check if timer has elapsed.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.