aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/px4fmu_common/init.d/rc.usb
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-08-02 13:51:46 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-08-02 13:51:46 +0200
commit5d356ec3d841602cbe7668028d01e670c3411d4e (patch)
treee51b6ebd6dd9124a3d29c13b085994c4b6ef969b /ROMFS/px4fmu_common/init.d/rc.usb
parentd14891554e269714834360eb52242f8d66e1e6f9 (diff)
downloadpx4-firmware-5d356ec3d841602cbe7668028d01e670c3411d4e.tar.gz
px4-firmware-5d356ec3d841602cbe7668028d01e670c3411d4e.tar.bz2
px4-firmware-5d356ec3d841602cbe7668028d01e670c3411d4e.zip
Fixed USB startup
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/rc.usb')
-rw-r--r--ROMFS/px4fmu_common/init.d/rc.usb40
1 files changed, 20 insertions, 20 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rc.usb b/ROMFS/px4fmu_common/init.d/rc.usb
index c89932bb5..7e28f3d81 100644
--- a/ROMFS/px4fmu_common/init.d/rc.usb
+++ b/ROMFS/px4fmu_common/init.d/rc.usb
@@ -13,35 +13,35 @@ if mavlink stop
then
echo "stopped other MAVLink instance"
fi
+sleep 2
mavlink start -b 230400 -d /dev/ttyACM0
-if [ $MODE == autostart ]
+# Start the commander
+if commander start
then
+ echo "Commander started"
+fi
- # Start the commander
- commander start
-
- # Start sensors
- sh /etc/init.d/rc.sensors
+# Start sensors
+sh /etc/init.d/rc.sensors
- # Start one of the estimators
- if attitude_estimator_ekf status
+# Start one of the estimators
+if attitude_estimator_ekf status
+then
+ echo "multicopter att filter running"
+else
+ if att_pos_estimator_ekf status
then
- echo "multicopter att filter running"
+ echo "fixedwing att filter running"
else
- if att_pos_estimator_ekf status
- then
- echo "fixedwing att filter running"
- else
- attitude_estimator_ekf start
- fi
+ attitude_estimator_ekf start
fi
+fi
- # Start GPS
- if gps start
- then
- echo "GPS started"
- fi
+# Start GPS
+if gps start
+then
+ echo "GPS started"
fi
echo "MAVLink started, exiting shell.."