11 #include "generated/airframe.h"
14 #define FORM_MODE_GLOBAL 0
15 #define FORM_MODE_COURSE 1
35 extern int add_slot(
uint8_t _id,
float slot_e,
float slot_n,
float slot_a);
49 uint8_t leader = DL_FORMATION_STATUS_leader_id(buf);
51 if (ac_id == AC_ID) {
leader_id = leader; }
60 float slot_east = DL_FORMATION_SLOT_slot_east(buf);
61 float slot_north = DL_FORMATION_SLOT_slot_north(buf);
62 float slot_alt = DL_FORMATION_SLOT_slot_alt(buf);
63 updateSlot(ac_id, slot_east, slot_north, slot_alt);
static uint8_t mode
mode holds the current sonar mode mode = 0 used at high altitude, uses 16 wave patterns mode = 1 used...
uint8_t buff[25]
Buffer used for general comunication over SPI (in buffer)
uint8_t ti_acs_id[NB_ACS_ID]