From a8747a01fe3935b25e9f55e09e1b186b06e629d6 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 3 Dec 2016 22:49:11 -0500 Subject: [PATCH] pixhawk 2.1 add 2nd ms5611 --- ROMFS/px4fmu_common/init.d/rc.sensors | 4 ++++ src/modules/sensors/sensors.cpp | 1 + 2 files changed, 5 insertions(+) diff --git a/ROMFS/px4fmu_common/init.d/rc.sensors b/ROMFS/px4fmu_common/init.d/rc.sensors index d955fcd78f..5f2b306339 100644 --- a/ROMFS/px4fmu_common/init.d/rc.sensors +++ b/ROMFS/px4fmu_common/init.d/rc.sensors @@ -38,6 +38,10 @@ else fmu sensor_reset 50 fi + if ms5611 -S start + then + fi + if ms5611 -s start then fi diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp index b0f14684c1..551b616f89 100644 --- a/src/modules/sensors/sensors.cpp +++ b/src/modules/sensors/sensors.cpp @@ -619,6 +619,7 @@ Sensors::Sensors() : _vibration_warning_timestamp(0), _vibration_warning(false) { + _baro.voter.set_timeout(300000); _mag.voter.set_timeout(300000); memset(&_rc, 0, sizeof(_rc));