mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
Merge pull request #115 from PX4/ardrone_startup_update
Updated PX4IOAR start script
This commit is contained in:
+19
-15
@@ -3,8 +3,12 @@
|
|||||||
# Flight startup script for PX4FMU on PX4IOAR carrier board.
|
# Flight startup script for PX4FMU on PX4IOAR carrier board.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Disable the USB interface
|
||||||
set USB no
|
set USB no
|
||||||
|
|
||||||
|
# Disable autostarting other apps
|
||||||
|
set MODE ardrone
|
||||||
|
|
||||||
echo "[init] doing PX4IOAR startup..."
|
echo "[init] doing PX4IOAR startup..."
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -13,26 +17,26 @@ echo "[init] doing PX4IOAR startup..."
|
|||||||
uorb start
|
uorb start
|
||||||
|
|
||||||
#
|
#
|
||||||
# Init the EEPROM
|
# Load microSD params
|
||||||
#
|
#
|
||||||
echo "[init] eeprom"
|
echo "[init] loading microSD params"
|
||||||
eeprom start
|
param select /fs/microsd/parameters
|
||||||
if [ -f /eeprom/parameters ]
|
if [ -f /fs/microsd/parameters ]
|
||||||
then
|
then
|
||||||
param load
|
param load /fs/microsd/parameters
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
|
||||||
# Start the sensors.
|
|
||||||
#
|
|
||||||
sh /etc/init.d/rc.sensors
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start MAVLink
|
# Start MAVLink
|
||||||
#
|
#
|
||||||
mavlink start -d /dev/ttyS0 -b 57600
|
mavlink start -d /dev/ttyS0 -b 57600
|
||||||
usleep 5000
|
usleep 5000
|
||||||
|
|
||||||
|
#
|
||||||
|
# Start the sensors and test them.
|
||||||
|
#
|
||||||
|
sh /etc/init.d/rc.sensors
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start the commander.
|
# Start the commander.
|
||||||
#
|
#
|
||||||
@@ -56,13 +60,13 @@ multirotor_att_control start
|
|||||||
#
|
#
|
||||||
# Fire up the AR.Drone interface.
|
# Fire up the AR.Drone interface.
|
||||||
#
|
#
|
||||||
ardrone_interface start
|
ardrone_interface start -d /dev/ttyS1
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start logging to microSD if we can
|
# Start logging
|
||||||
#
|
#
|
||||||
#sh /etc/init.d/rc.logging
|
#sdlog start
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start GPS capture
|
# Start GPS capture
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user