29 #include "uavcan/uavcan.h"
33 #define UAVCAN_EQUIPMENT_FUELCELL_STATUS_MAX_SIZE 11
34 #define UAVCAN_EQUIPMENT_FUELCELL_STATUS_SIGNATURE (0x475459FF3AA36FE5ULL)
35 #define UAVCAN_EQUIPMENT_FUELCELL_STATUS_ID 1141
66 canardDecodeScalar(
transfer, bit_ofs, 8,
false, &temp);
70 canardDecodeScalar(
transfer, bit_ofs, 10,
false, &temp);
74 canardDecodeScalar(
transfer, bit_ofs, 14,
false, &temp);
78 canardDecodeScalar(
transfer, bit_ofs, 13,
false, &temp);
82 canardDecodeScalar(
transfer, bit_ofs, 16,
true, &temp2);
111 #if PERIODIC_TELEMETRY
138 #if PERIODIC_TELEMETRY
void can_fuelcell_periodic(void)
void can_fuelcell_init(void)
#define UAVCAN_EQUIPMENT_FUELCELL_STATUS_ID
static uavcan_event fuelcell_uavcan_ev
static struct uavcan_equipment_fuelcell can_fuelcell_data
static void can_fuelcell_send_telemetry(struct transport_tx *trans, struct link_device *dev)
static void fuelcell_uavcan_cb(struct uavcan_iface_t *iface, CanardRxTransfer *transfer)
#define UAVCAN_EQUIPMENT_FUELCELL_STATUS_SIGNATURE
Main uavcan event structure for registering/calling callbacks.
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.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
int transfer(const Mat *from, const image_t *to)