31 #if (defined DATALINK) || PERIODIC_TELEMETRY
35 #if PERIODIC_TELEMETRY
53 #if defined DATALINK || defined SITL
62 &up_rate, &dev->nb_ovrn);
78 #
if PERIODIC_TELEMETRY
Periodic telemetry system header (includes downlink utility and generated code).
uint32_t get_sys_time_msec(void)
Get the time in milliseconds since startup.
static uint32_t last_up_nb_msgs
Handling of messages coming from ground and other A/Cs.
uint16_t datalink_nb_msgs
static uint32_t last_down_nb_bytes
Architecture independent timing functions.
#define DefaultPeriodic
Set default periodic telemetry.
static const struct usb_device_descriptor dev
static void send_downlink(struct transport_tx *trans, struct link_device *dev)
Common code for AP and FBW telemetry.
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.