mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
Startup scripts fixup, fixed unmatched dependencies
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!nsh
|
#!nsh
|
||||||
|
|
||||||
cho "[init] 30_io_camflyer: PX4FMU+PX4IO on Camflyer"
|
echo "[init] 30_io_camflyer: PX4FMU+PX4IO on Camflyer"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Load default params for this platform
|
# Load default params for this platform
|
||||||
@@ -50,6 +50,11 @@ px4io limit 100
|
|||||||
#
|
#
|
||||||
sh /etc/init.d/rc.sensors
|
sh /etc/init.d/rc.sensors
|
||||||
|
|
||||||
|
#
|
||||||
|
# Start logging (depends on sensors)
|
||||||
|
#
|
||||||
|
sh /etc/init.d/rc.logging
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start GPS interface (depends on orb)
|
# Start GPS interface (depends on orb)
|
||||||
#
|
#
|
||||||
@@ -64,4 +69,4 @@ kalman_demo start
|
|||||||
# Load mixer and start controllers (depends on px4io)
|
# Load mixer and start controllers (depends on px4io)
|
||||||
#
|
#
|
||||||
mixer load /dev/pwm_output /etc/mixers/FMU_Q.mix
|
mixer load /dev/pwm_output /etc/mixers/FMU_Q.mix
|
||||||
control_demo start
|
fw_att_control start
|
||||||
|
|||||||
@@ -45,6 +45,11 @@ commander start
|
|||||||
#
|
#
|
||||||
sh /etc/init.d/rc.sensors
|
sh /etc/init.d/rc.sensors
|
||||||
|
|
||||||
|
#
|
||||||
|
# Start logging (depends on sensors)
|
||||||
|
#
|
||||||
|
sh /etc/init.d/rc.logging
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start GPS interface
|
# Start GPS interface
|
||||||
#
|
#
|
||||||
@@ -59,4 +64,4 @@ kalman_demo start
|
|||||||
# Load mixer and start controllers (depends on px4io)
|
# Load mixer and start controllers (depends on px4io)
|
||||||
#
|
#
|
||||||
mixer load /dev/pwm_output /etc/mixers/FMU_Q.mix
|
mixer load /dev/pwm_output /etc/mixers/FMU_Q.mix
|
||||||
control_demo start
|
fw_att_control start
|
||||||
|
|||||||
@@ -8,6 +8,11 @@
|
|||||||
#
|
#
|
||||||
sh /etc/init.d/rc.sensors
|
sh /etc/init.d/rc.sensors
|
||||||
|
|
||||||
|
#
|
||||||
|
# Start logging (depends on sensors)
|
||||||
|
#
|
||||||
|
sh /etc/init.d/rc.logging
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start the commander.
|
# Start the commander.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -104,10 +104,8 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
# Try to get an USB console
|
||||||
# Start logging
|
nshterm /dev/ttyACM0 &
|
||||||
#
|
|
||||||
sh /etc/init.d/rc.logging
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Check if PX4IO Firmware should be upgraded (from Andrew Tridgell)
|
# Check if PX4IO Firmware should be upgraded (from Andrew Tridgell)
|
||||||
@@ -183,9 +181,6 @@ then
|
|||||||
set MODE custom
|
set MODE custom
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Try to get an USB console
|
|
||||||
nshterm /dev/ttyACM0 &
|
|
||||||
|
|
||||||
# Start any custom extensions that might be missing
|
# Start any custom extensions that might be missing
|
||||||
if [ -f /fs/microsd/etc/rc.local ]
|
if [ -f /fs/microsd/etc/rc.local ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user