From 0a0987a6e0e6a0d61ac877cad16e5f55d893ebff Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Tue, 12 Apr 2022 11:39:40 -0400 Subject: [PATCH] ROMFS: move px4flow start to rc.sensors --- ROMFS/px4fmu_common/init.d/rc.sensors | 6 ++++++ ROMFS/px4fmu_common/init.d/rcS | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rc.sensors b/ROMFS/px4fmu_common/init.d/rc.sensors index 982deaf150..70006c9720 100644 --- a/ROMFS/px4fmu_common/init.d/rc.sensors +++ b/ROMFS/px4fmu_common/init.d/rc.sensors @@ -95,6 +95,12 @@ then paw3902 -S start fi +# Check for px4flow sensor +if param compare -s SENS_EN_PX4FLOW 1 +then + px4flow start -X +fi + # vl53l1x i2c distance sensor if param compare -s SENS_EN_VL53L1X 1 then diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 8fc5b5202c..940b690a5a 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -492,12 +492,6 @@ else gimbal start fi - # Check for flow sensor - if param compare -s SENS_EN_PX4FLOW 1 - then - px4flow start -X - fi - # Blacksheep telemetry if param compare -s TEL_BST_EN 1 then