aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/scripts/rc.FMU_quad_x
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-01-30 16:16:12 -0800
committerpx4dev <px4@purgatory.org>2013-02-23 22:00:59 -0800
commitc3ed120d01740c61a2cafc67e597389aa0c4b674 (patch)
treefcebfff867e089722fbb88200c9ceaf6b3df7909 /ROMFS/scripts/rc.FMU_quad_x
parenta7a1cc4625ea4097761a9aef88f9f0b4608944a4 (diff)
downloadpx4-firmware-c3ed120d01740c61a2cafc67e597389aa0c4b674.tar.gz
px4-firmware-c3ed120d01740c61a2cafc67e597389aa0c4b674.tar.bz2
px4-firmware-c3ed120d01740c61a2cafc67e597389aa0c4b674.zip
Back out deletion of the /etc/init.d scripts; we need these.
Diffstat (limited to 'ROMFS/scripts/rc.FMU_quad_x')
-rw-r--r--ROMFS/scripts/rc.FMU_quad_x40
1 files changed, 40 insertions, 0 deletions
diff --git a/ROMFS/scripts/rc.FMU_quad_x b/ROMFS/scripts/rc.FMU_quad_x
new file mode 100644
index 000000000..d9c9a8457
--- /dev/null
+++ b/ROMFS/scripts/rc.FMU_quad_x
@@ -0,0 +1,40 @@
+#
+# Startup for X-quad on FMU1.5/1.6
+#
+
+echo "[init] uORB"
+uorb start
+
+echo "[init] eeprom"
+eeprom start
+if [ -f /eeprom/parameters ]
+then
+ param load
+fi
+
+echo "[init] sensors"
+#bma180 start
+#l3gd20 start
+mpu6000 start
+hmc5883 start
+ms5611 start
+
+sensors start
+
+echo "[init] mavlink"
+mavlink start -d /dev/ttyS0 -b 57600
+usleep 5000
+
+echo "[init] commander"
+commander start
+
+echo "[init] attitude control"
+attitude_estimator_ekf start
+multirotor_att_control start
+
+echo "[init] starting PWM output"
+fmu mode_pwm
+mixer load /dev/pwm_output /etc/mixers/FMU_quad_x.mix
+
+echo "[init] startup done, exiting"
+exit