25 #include "modules/muti/dcf/dcf.h"
32 #if PERIODIC_TELEMETRY
33 static void send_dcf(
struct transport_tx *trans,
struct link_device *
dev)
51 #define DCF_TIMEOUT 1500
55 #define DCF_BROADTIME 200
70 #if PERIODIC_TELEMETRY
127 struct pprzlink_msg
msg;
133 msg.sender_id = AC_ID;
135 msg.component_id = 0;
142 uint8_t ac_id = DL_DCF_REG_TABLE_ac_id(buf);
143 if (ac_id == AC_ID) {
144 uint8_t nei_id = DL_DCF_REG_TABLE_nei_id(buf);
145 int16_t desired_sigma = DL_DCF_REG_TABLE_desired_sigma(buf);
uint8_t autopilot_get_mode(void)
get autopilot mode
Core autopilot interface common to all firmwares.
uint32_t get_sys_time_msec(void)
Get the time in milliseconds since startup.
struct point waypoints[NB_WAYPOINT]
size == nb_waypoint, waypoint 0 is a dummy waypoint
void send_theta_to_nei(void)
uint32_t last_transmision
static void send_dcf(struct transport_tx *trans, struct link_device *dev)
void parseThetaTable(uint8_t *buf)
struct dcf_tab dcf_tables
void parseRegTable(uint8_t *buf)
struct dcf_con dcf_control
bool distributed_circular(uint8_t wp)
uint32_t last_theta[DCF_MAX_NEIGHBORS]
int16_t error_sigma[DCF_MAX_NEIGHBORS]
#define DCF_MAX_NEIGHBORS
int16_t tableNei[DCF_MAX_NEIGHBORS][4]
static struct EnuCoor_f * stateGetPositionEnu_f(void)
Get position in local ENU coordinates (float).
bool gvf_ellipse_XY(float x, float y, float a, float b, float alpha)
uint8_t msg[10]
Buffer used for general comunication over SPI (out buffer)
vector in East North Up coordinates Units: meters
static const struct usb_device_descriptor dev
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
Periodic telemetry system header (includes downlink utility and generated code).
#define DefaultPeriodic
Set default periodic telemetry.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.