From c4360264cf5eb03af2c12e68d865e80dc624ff49 Mon Sep 17 00:00:00 2001 From: Siddharth Purohit Date: Fri, 5 Apr 2019 18:29:19 +0530 Subject: [PATCH] AP_UAVCAN: add support for hereflow and range sensor message over can --- libraries/AP_UAVCAN/AP_UAVCAN.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_UAVCAN/AP_UAVCAN.cpp b/libraries/AP_UAVCAN/AP_UAVCAN.cpp index ac28a16af9..481bc03687 100644 --- a/libraries/AP_UAVCAN/AP_UAVCAN.cpp +++ b/libraries/AP_UAVCAN/AP_UAVCAN.cpp @@ -37,11 +37,13 @@ #include #include +#include #include #include #include #include #include +#include #define LED_DELAY_US 50000 @@ -205,6 +207,8 @@ void AP_UAVCAN::init(uint8_t driver_index, bool enable_filters) AP_Baro_UAVCAN::subscribe_msgs(this); AP_BattMonitor_UAVCAN::subscribe_msgs(this); AP_Airspeed_UAVCAN::subscribe_msgs(this); + AP_OpticalFlow_UAVCAN::subscribe_msgs(this); + AP_RangeFinder_UAVCAN::subscribe_msgs(this); act_out_array[driver_index] = new uavcan::Publisher(*_node); act_out_array[driver_index]->setTxTimeout(uavcan::MonotonicDuration::fromMSec(2));