From adb1e2b861a0da0b5384fa35fe2d3f9c5e812fc0 Mon Sep 17 00:00:00 2001 From: px4dev Date: Mon, 10 Sep 2012 02:26:14 -0700 Subject: Rename the example PX4FMU startup script to avoid what seems to be a filename length limit. --- ROMFS/scripts/rc.FMU_quad_x | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 ROMFS/scripts/rc.FMU_quad_x (limited to 'ROMFS/scripts/rc.FMU_quad_x') diff --git a/ROMFS/scripts/rc.FMU_quad_x b/ROMFS/scripts/rc.FMU_quad_x new file mode 100644 index 000000000..94ed2be18 --- /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 + eeprom load_param /eeprom/parameters +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_bm & +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 -- cgit v1.2.3