aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/px4fmu_common/init.d/10_io_f330
diff options
context:
space:
mode:
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/10_io_f330')
-rw-r--r--ROMFS/px4fmu_common/init.d/10_io_f33038
1 files changed, 19 insertions, 19 deletions
diff --git a/ROMFS/px4fmu_common/init.d/10_io_f330 b/ROMFS/px4fmu_common/init.d/10_io_f330
index 4450eb50d..b3fb02757 100644
--- a/ROMFS/px4fmu_common/init.d/10_io_f330
+++ b/ROMFS/px4fmu_common/init.d/10_io_f330
@@ -57,11 +57,6 @@ pwm -u 400 -m 0xff
px4io recovery
#
-# Disable px4io topic limiting
-#
-px4io limit 200
-
-#
# This sets a PWM right after startup (regardless of safety button)
#
px4io idle 900 900 900 900
@@ -75,6 +70,8 @@ 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
#
# Start the sensors (depends on orb, px4io)
@@ -95,22 +92,25 @@ gps start
# Start the attitude estimator (depends on orb)
#
attitude_estimator_ekf start
-
-#
-# Load mixer and start controllers (depends on px4io)
-#
-mixer load /dev/pwm_output /etc/mixers/FMU_quad_x.mix
+
multirotor_att_control start
-
-#
-# Start logging
-#
-sdlog2 start -r 20 -a -b 16
-
+
#
-# Start system state
+# Disable px4io topic limiting and start logging
#
-if blinkm start
+if [ $BOARD == fmuv1 ]
then
- blinkm systemstate
+ px4io limit 200
+ sdlog2 start -r 50 -a -b 16
+ if blinkm start
+ then
+ blinkm systemstate
+ fi
+else
+ px4io limit 400
+ sdlog2 start -r 200 -a -b 16
+ if rgbled start
+ then
+ #rgbled systemstate
+ fi
fi