Browse Source

AP_UAVCAN:add hex flow sensor message

master
Siddharth Purohit 6 years ago committed by Randy Mackay
parent
commit
e866a574dd
  1. 4
      libraries/AP_UAVCAN/AP_UAVCAN.cpp
  2. 4
      libraries/AP_UAVCAN/dsdl/com/hex/equipment/flow/20200.Measurement.uavcan

4
libraries/AP_UAVCAN/AP_UAVCAN.cpp

@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
#include <AP_Compass/AP_Compass_UAVCAN.h>
#include <AP_Airspeed/AP_Airspeed_UAVCAN.h>
#include <SRV_Channel/SRV_Channel.h>
#include <AP_OpticalFlow/AP_OpticalFlow_UAVCAN.h>
#include <AP_OpticalFlow/AP_OpticalFlow_HereFlow.h>
#define LED_DELAY_US 50000
@ -207,7 +207,7 @@ void AP_UAVCAN::init(uint8_t driver_index, bool enable_filters) @@ -207,7 +207,7 @@ 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_OpticalFlow_HereFlow::subscribe_msgs(this);
AP_RangeFinder_UAVCAN::subscribe_msgs(this);
act_out_array[driver_index] = new uavcan::Publisher<uavcan::equipment::actuator::ArrayCommand>(*_node);

4
libraries/AP_UAVCAN/dsdl/com/hex/equipment/flow/20200.Measurement.uavcan

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
float32 integration_interval # Integration Interval in seconds
float32[2] rate_gyro_integral # Integrated Gyro Data in radians
float32[2] flow_integral # Integrated LOS Data in radians
uint8 quality # Flow Data Quality Lowest(0)-Highest(255) Unitless
Loading…
Cancel
Save