From 166c1fd530207a6066817416fbece32339928b87 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 26 Jun 2014 14:05:15 +1000 Subject: [PATCH] PX4: startup FMUv3 sensors if available --- mk/PX4/ROMFS/init.d/rc.APM | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/mk/PX4/ROMFS/init.d/rc.APM b/mk/PX4/ROMFS/init.d/rc.APM index 7e29e66b4c..b5fff95f79 100644 --- a/mk/PX4/ROMFS/init.d/rc.APM +++ b/mk/PX4/ROMFS/init.d/rc.APM @@ -259,13 +259,29 @@ else then echo "l3gd20 started OK" else - sh /etc/init.d/rc.error + if l3gd20 -X start + then + echo "l3gd20 external started OK" + else + sh /etc/init.d/rc.error + fi fi if lsm303d start then echo "lsm303d started OK" else - sh /etc/init.d/rc.error + if lsm303d -X start + then + echo "lsm303d external started OK" + else + sh /etc/init.d/rc.error + fi + fi + if mpu6000 -X start + then + echo "Found MPU6000 external" + else + echo "No MPU6000 external" fi fi