diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2013-08-25 19:27:11 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2013-08-25 19:27:11 +0200 |
commit | 557d3f22de25a392995f2803363f32fdbc6ce843 (patch) | |
tree | b7e2e353e46b69280cd2b23e4cd284fc31d9f411 /ROMFS/px4fmu_common/init.d/rc.io | |
parent | 41dfdfb1a4b974b5d32788852768513d0dac7a67 (diff) | |
download | px4-firmware-557d3f22de25a392995f2803363f32fdbc6ce843.tar.gz px4-firmware-557d3f22de25a392995f2803363f32fdbc6ce843.tar.bz2 px4-firmware-557d3f22de25a392995f2803363f32fdbc6ce843.zip |
Startup scripts major cleanup
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/rc.io')
-rw-r--r-- | ROMFS/px4fmu_common/init.d/rc.io | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rc.io b/ROMFS/px4fmu_common/init.d/rc.io new file mode 100644 index 000000000..85f00e582 --- /dev/null +++ b/ROMFS/px4fmu_common/init.d/rc.io @@ -0,0 +1,23 @@ +# +# Start PX4IO interface (depends on orb, commander) +# +if px4io start +then + # + # Allow PX4IO to recover from midair restarts. + # this is very unlikely, but quite safe and robust. + px4io recovery + + # + # Disable px4io topic limiting + # + if [ $BOARD == fmuv1 ] + then + px4io limit 200 + else + px4io limit 400 + fi +else + # SOS + tone_alarm 6 +fi |