|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
29 #ifndef TELEMETRY_COMMON_H
30 #define TELEMETRY_COMMON_H
38 #include "pprzlink/pprzlink_device.h"
39 #include "pprzlink/pprzlink_transport.h"
40 #include "pprzlink/messages.h"
44 typedef void (*
telemetry_cb)(
struct transport_tx *trans,
struct link_device *
dev);
51 #define TELEMETRY_NB_CBS 4
74 #if PERIODIC_TELEMETRY
78 uint8_t _id __attribute__((unused)),
telemetry_cb _cb __attribute__((unused))) {
return -1; }
81 #if USE_PERIODIC_TELEMETRY_REPORT
const typedef char telemetry_msg[64]
periodic telemetry msg name definition
void(* telemetry_cb)(struct transport_tx *trans, struct link_device *dev)
Telemetry callback definition.
struct telemetry_cb_slots * cbs
array of callbacks defined through TELEMETRY_MSG
uint8_t id
id of telemetry message
static const struct usb_device_descriptor dev
void periodic_telemetry_err_report(uint8_t _process, uint8_t _mode, uint8_t _id)
Send an error report when trying to send message that as not been register.
#define TELEMETRY_NB_CBS
number of callbacks that can be registered per msg
Periodic telemetry structure.
uint8_t nb
number of messages
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
telemetry_cb slots[TELEMETRY_NB_CBS]