Browse Source

AP_UAVCAN: subscribe airspeed message

master
liang.tang 7 years ago committed by Andrew Tridgell
parent
commit
bcaa4901ed
  1. 2
      libraries/AP_UAVCAN/AP_UAVCAN.cpp

2
libraries/AP_UAVCAN/AP_UAVCAN.cpp

@ -41,6 +41,7 @@ @@ -41,6 +41,7 @@
#include <AP_GPS/AP_GPS_UAVCAN.h>
#include <AP_BattMonitor/AP_BattMonitor_UAVCAN.h>
#include <AP_Compass/AP_Compass_UAVCAN.h>
#include <AP_Airspeed/AP_Airspeed_UAVCAN.h>
#define LED_DELAY_US 50000
@ -195,6 +196,7 @@ void AP_UAVCAN::init(uint8_t driver_index) @@ -195,6 +196,7 @@ void AP_UAVCAN::init(uint8_t driver_index)
AP_Compass_UAVCAN::subscribe_msgs(this);
AP_Baro_UAVCAN::subscribe_msgs(this);
AP_BattMonitor_UAVCAN::subscribe_msgs(this);
AP_Airspeed_UAVCAN::subscribe_msgs(this);
act_out_array[driver_index] = new uavcan::Publisher<uavcan::equipment::actuator::ArrayCommand>(*_node);
act_out_array[driver_index]->setTxTimeout(uavcan::MonotonicDuration::fromMSec(2));

Loading…
Cancel
Save