31 #if (defined DATALINK) || PERIODIC_TELEMETRY
35 #if PERIODIC_TELEMETRY
53 #if defined DATALINK || defined SITL
62 &up_rate, &
dev->nb_ovrn);
74 #
if PERIODIC_TELEMETRY
uint32_t get_sys_time_msec(void)
Get the time in milliseconds since startup.
uint16_t datalink_time
time in seconds since last datalink message was received
uint16_t datalink_nb_msgs
number of datalink/uplink messages received
Handling of messages coming from ground and other A/Cs.
static uint32_t last_down_nb_bytes
static void send_downlink(struct transport_tx *trans, struct link_device *dev)
static uint32_t last_up_nb_msgs
Common code for AP and FBW telemetry.
static const struct usb_device_descriptor dev
Architecture independent timing functions.
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.