aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/px4fmu_common/init.d/10_io_f330
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-08-22 09:25:13 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-08-22 09:25:13 +0200
commitcfa9054aa4e6accae1fefaad1a13316301ce56fc (patch)
treef5584368070b39950740166a44a97ec66f980ae6 /ROMFS/px4fmu_common/init.d/10_io_f330
parent3005c8aae0ed0c74d2d611712d9e7d659f4ed453 (diff)
downloadpx4-firmware-cfa9054aa4e6accae1fefaad1a13316301ce56fc.tar.gz
px4-firmware-cfa9054aa4e6accae1fefaad1a13316301ce56fc.tar.bz2
px4-firmware-cfa9054aa4e6accae1fefaad1a13316301ce56fc.zip
Moved to USART1 for the main console, starting a 2nd NSH instance on USB if needed, reworked start scripts to not fall over
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/10_io_f330')
-rw-r--r--ROMFS/px4fmu_common/init.d/10_io_f33051
1 files changed, 25 insertions, 26 deletions
diff --git a/ROMFS/px4fmu_common/init.d/10_io_f330 b/ROMFS/px4fmu_common/init.d/10_io_f330
index 0e6d3f5d5..b2fc0c96f 100644
--- a/ROMFS/px4fmu_common/init.d/10_io_f330
+++ b/ROMFS/px4fmu_common/init.d/10_io_f330
@@ -2,10 +2,6 @@
#
# Flight startup script for PX4FMU+PX4IO on an F330 quad.
#
-
-# disable USB and autostart
-set USB no
-set MODE custom
#
# Start the ORB (first app to start)
@@ -60,33 +56,36 @@ commander start
#
if px4io start
then
+ #
+ # This sets a PWM right after startup (regardless of safety button)
+ #
+ px4io idle 900 900 900 900
+
pwm -u 400 -m 0xff
-else
- # SOS
- tone_alarm 6
-fi
-
-#
-# Allow PX4IO to recover from midair restarts.
-# this is very unlikely, but quite safe and robust.
-px4io recovery
-#
-# This sets a PWM right after startup (regardless of safety button)
-#
-px4io idle 900 900 900 900
+ #
+ # Allow PX4IO to recover from midair restarts.
+ # this is very unlikely, but quite safe and robust.
+ px4io recovery
-#
-# The values are for spinning motors when armed using DJI ESCs
-#
-px4io min 1200 1200 1200 1200
-#
-# Upper limits could be higher, this is on the safe side
-#
-px4io max 1800 1800 1800 1800
-mixer load /dev/pwm_output /etc/mixers/FMU_quad_x.mix
+ #
+ # The values are for spinning motors when armed using DJI ESCs
+ #
+ px4io min 1200 1200 1200 1200
+
+ #
+ # Upper limits could be higher, this is on the safe side
+ #
+ px4io max 1800 1800 1800 1800
+
+ mixer load /dev/pwm_output /etc/mixers/FMU_quad_x.mix
+
+else
+ # SOS
+ tone_alarm 6
+fi
#
# Start the sensors (depends on orb, px4io)