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);
48 uint8_t ac_id = DL_FORMATION_STATUS_ac_id(buf);
49 uint8_t leader = DL_FORMATION_STATUS_leader_id(buf);
51 if (ac_id == AC_ID) {
leader_id = leader; }
58 uint8_t ac_id = DL_FORMATION_SLOT_ac_id(buf);
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);
Handling of messages coming from ground and other A/Cs.
uint8_t ti_acs_id[NB_ACS_ID]
static uint8_t mode
mode holds the current sonar mode mode = 0 used at high altitude, uses 16 wave patterns mode = 1 used...
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.