forked from Archive/PX4-Autopilot
uavcannode: Fix dronecan baro units
This commit is contained in:
parent
b9475d6ebe
commit
60450e63c0
|
@ -74,7 +74,7 @@ public:
|
|||
|
||||
if (uORB::SubscriptionCallbackWorkItem::update(&baro)) {
|
||||
uavcan::equipment::air_data::StaticPressure static_pressure{};
|
||||
static_pressure.static_pressure = baro.pressure * 100; // millibar -> pascals
|
||||
static_pressure.static_pressure = baro.pressure;
|
||||
uavcan::Publisher<uavcan::equipment::air_data::StaticPressure>::broadcast(static_pressure);
|
||||
|
||||
// ensure callback is registered
|
||||
|
|
Loading…
Reference in New Issue