27 #include "uavcan/uavcan.h"
32 #define UAVCAN_EQUIPMENT_RANGE_SENSOR_MEASUREMENT_ID 1050
33 #define UAVCAN_EQUIPMENT_RANGE_SENSOR_MEASUREMENT_SIGNATURE (0x68FFFE70FC771952ULL)
34 #define UAVCAN_EQUIPMENT_RANGE_SENSOR_MEASUREMENT_MAX_SIZE ((120 + 7)/8)
46 #if PERIODIC_TELEMETRY
52 pprz_msg_send_LIDAR(trans,
dev, AC_ID,
89 #if PERIODIC_TELEMETRY
Main include for ABI (AirBorneInterface).
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
Main uavcan event structure for registering/calling callbacks.
static struct range_sensor_uavcan_t range_sensor_uavcan
static void range_sensor_uavcan_cb(struct uavcan_iface_t *iface, CanardRxTransfer *transfer)
void range_sensor_uavcan_init(void)
#define UAVCAN_EQUIPMENT_RANGE_SENSOR_MEASUREMENT_ID
static uavcan_event range_sensor_uavcan_ev
#define UAVCAN_EQUIPMENT_RANGE_SENSOR_MEASUREMENT_SIGNATURE
static void range_sensor_uavcan_send_lidar(struct transport_tx *trans, struct link_device *dev)
Range sensor sensor on the uavcan bus.
uavcan interface structure
static const struct usb_device_descriptor dev
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.
void uavcan_bind(uint16_t data_type_id, uint64_t data_type_signature, uavcan_event *ev, uavcan_callback cb)
Bind to a receiving message from uavcan.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
int transfer(const Mat *from, const image_t *to)