AP_UAVCAN: add Flow message to the sniffer test

This commit is contained in:
Siddharth Purohit 2019-07-05 13:19:18 +08:00 committed by Andrew Tridgell
parent 67c925865c
commit 3e194903cc
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,8 @@
#include <uavcan/equipment/power/BatteryInfo.hpp>
#include <com/hex/equipment/flow/Measurement.hpp>
void setup();
void loop();
@ -149,6 +151,7 @@ MSG_CB(uavcan::equipment::power::BatteryInfo, BatteryInfo);
MSG_CB(uavcan::equipment::actuator::ArrayCommand, ArrayCommand)
MSG_CB(uavcan::equipment::esc::RawCommand, RawCommand)
MSG_CB(uavcan::equipment::indication::LightsCommand, LightsCommand);
MSG_CB(com::hex::equipment::flow::Measurement, Measurement);
void UAVCAN_sniffer::init(void)
{
@ -222,6 +225,7 @@ void UAVCAN_sniffer::init(void)
START_CB(uavcan::equipment::actuator::ArrayCommand, ArrayCommand);
START_CB(uavcan::equipment::esc::RawCommand, RawCommand);
START_CB(uavcan::equipment::indication::LightsCommand, LightsCommand);
START_CB(com::hex::equipment::flow::Measurement, Measurement);
/*