|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
25 #include "modules/muti/dcf/dcf.h"
32 #if PERIODIC_TELEMETRY
33 static void send_dcf(
struct transport_tx *trans,
struct link_device *
dev)
38 #endif // PERIODIC TELEMETRY
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;
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);
int16_t error_sigma[DCF_MAX_NEIGHBORS]
#define DCF_MAX_NEIGHBORS
struct dcf_con dcf_control
struct dcf_tab dcf_tables
static struct EnuCoor_f * stateGetPositionEnu_f(void)
Get position in local ENU coordinates (float).
struct point waypoints[NB_WAYPOINT]
size == nb_waypoint, waypoint 0 is a dummy waypoint
bool distributed_circular(uint8_t wp)
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)
uint32_t last_theta[DCF_MAX_NEIGHBORS]
static const struct usb_device_descriptor dev
uint32_t last_transmision
uint32_t get_sys_time_msec(void)
Get the time in milliseconds since startup.
void parseRegTable(uint8_t *buf)
int16_t tableNei[DCF_MAX_NEIGHBORS][4]
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
vector in East North Up coordinates Units: meters
void send_theta_to_nei(void)
uint8_t autopilot_get_mode(void)
get autopilot mode
void parseThetaTable(uint8_t *buf)
#define DefaultPeriodic
Set default periodic telemetry.
static void send_dcf(struct transport_tx *trans, struct link_device *dev)