Browse Source

AP_UAVCAN: add Flow message to the sniffer test

master
Siddharth Purohit 6 years ago committed by Andrew Tridgell
parent
commit
3e194903cc
  1. 4
      libraries/AP_UAVCAN/examples/UAVCAN_sniffer/UAVCAN_sniffer.cpp

4
libraries/AP_UAVCAN/examples/UAVCAN_sniffer/UAVCAN_sniffer.cpp

@ -35,6 +35,8 @@ @@ -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); @@ -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) @@ -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);
/*

Loading…
Cancel
Save