31 #if PERIODIC_TELEMETRY
36 static uint32_t last_down_nb_bytes = 0;
45 if (now_ts > last_ts) {
50 #if defined DATALINK || defined SITL
54 last_down_nb_bytes = 0;
84 #if DATALINK == BLUEGIGA
98 #if PERIODIC_TELEMETRY
static uint32_t get_sys_time_msec(void)
Get the time in milliseconds since startup.
uint32_t nb_bytes
The number of bytes send.
struct link_device device
Generic device interface.
Generic transmission transport header.
Periodic telemetry system header (includes downlink utility and generated code).
Handling of messages coming from ground and other A/Cs.
struct bluegiga_periph bluegiga_p
void ivy_transport_init(void)
void bluegiga_init(struct bluegiga_periph *p)
uint16_t datalink_nb_msgs
uint16_t nb_msgs
The number of messages send.
void pprz_transport_init(struct pprz_transport *t)
Architecture independent timing functions.
void pprzlog_transport_init(void)
#define DefaultPeriodic
Set default periodic telemetry.
static const struct usb_device_descriptor dev
uint8_t nb_ovrn
The number of overruns.
#define PPRZ
Datalink kinds.
Common code for AP and FBW telemetry.
struct pprz_transport pprz_tp
void xbee_init(void)
Initialisation in API mode and setting of the local address FIXME: busy wait.
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.