diff options
author | px4dev <px4@purgatory.org> | 2012-09-10 02:26:14 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-09-10 02:26:14 -0700 |
commit | adb1e2b861a0da0b5384fa35fe2d3f9c5e812fc0 (patch) | |
tree | 5958dfe7133e9abd1b578725300891fd65c1bd9e /ROMFS/scripts/rc.FMU_quad_x | |
parent | b1767480d2a0930c60ca59b1b047a9018663556b (diff) | |
download | px4-firmware-adb1e2b861a0da0b5384fa35fe2d3f9c5e812fc0.tar.gz px4-firmware-adb1e2b861a0da0b5384fa35fe2d3f9c5e812fc0.tar.bz2 px4-firmware-adb1e2b861a0da0b5384fa35fe2d3f9c5e812fc0.zip |
Rename the example PX4FMU startup script to avoid what seems to be a filename length limit.
Diffstat (limited to 'ROMFS/scripts/rc.FMU_quad_x')
-rw-r--r-- | ROMFS/scripts/rc.FMU_quad_x | 40 |
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..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 |