mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
Updated script to current syntax
This commit is contained in:
@@ -29,7 +29,7 @@ echo "[init] commander"
|
|||||||
commander start
|
commander start
|
||||||
|
|
||||||
echo "[init] attitude control"
|
echo "[init] attitude control"
|
||||||
attitude_estimator_bm &
|
attitude_estimator_ekf start
|
||||||
multirotor_att_control start
|
multirotor_att_control start
|
||||||
|
|
||||||
echo "[init] starting PWM output"
|
echo "[init] starting PWM output"
|
||||||
|
|||||||
+14
-13
@@ -10,6 +10,16 @@ echo "[init] doing PX4IO startup..."
|
|||||||
#
|
#
|
||||||
uorb start
|
uorb start
|
||||||
|
|
||||||
|
#
|
||||||
|
# Init the EEPROM
|
||||||
|
#
|
||||||
|
echo "[init] eeprom"
|
||||||
|
eeprom start
|
||||||
|
if [ -f /eeprom/parameters ]
|
||||||
|
then
|
||||||
|
param load
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start the sensors.
|
# Start the sensors.
|
||||||
#
|
#
|
||||||
@@ -23,17 +33,12 @@ mavlink start -d /dev/ttyS0 -b 57600
|
|||||||
#
|
#
|
||||||
# Start the commander.
|
# Start the commander.
|
||||||
#
|
#
|
||||||
# XXX this should be '<command> start'.
|
commander start
|
||||||
#
|
|
||||||
commander &
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start the attitude estimator
|
# Start the attitude estimator
|
||||||
#
|
#
|
||||||
# XXX this should be '<command> start'.
|
attitude_estimator_ekf start
|
||||||
#
|
|
||||||
attitude_estimator_bm &
|
|
||||||
#position_estimator &
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Configure PX4FMU for operation with PX4IO
|
# Configure PX4FMU for operation with PX4IO
|
||||||
@@ -45,9 +50,7 @@ px4fmu start
|
|||||||
#
|
#
|
||||||
# Start the fixed-wing controller
|
# Start the fixed-wing controller
|
||||||
#
|
#
|
||||||
# XXX this should be '<command> start'.
|
fixedwing_control start
|
||||||
#
|
|
||||||
fixedwing_control &
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Fire up the PX4IO interface.
|
# Fire up the PX4IO interface.
|
||||||
@@ -57,9 +60,7 @@ px4io start
|
|||||||
#
|
#
|
||||||
# Start looking for a GPS.
|
# Start looking for a GPS.
|
||||||
#
|
#
|
||||||
# XXX this should not need to be backgrounded
|
gps start
|
||||||
#
|
|
||||||
gps -d /dev/ttyS3 -m all &
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start logging to microSD if we can
|
# Start logging to microSD if we can
|
||||||
|
|||||||
@@ -59,9 +59,9 @@ multirotor_att_control start
|
|||||||
ardrone_interface start
|
ardrone_interface start
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start logging
|
# Start logging to microSD if we can
|
||||||
#
|
#
|
||||||
#sdlog start
|
#sh /etc/init.d/rc.logging
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start GPS capture
|
# Start GPS capture
|
||||||
|
|||||||
@@ -5,6 +5,5 @@
|
|||||||
|
|
||||||
if [ -d /fs/microsd ]
|
if [ -d /fs/microsd ]
|
||||||
then
|
then
|
||||||
# XXX this should be '<command> start'.
|
sdlog start
|
||||||
# sdlog &
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user