px4-firmware/ROMFS/scripts/rc.PX4IO

63 lines
774 B
Plaintext
Raw Normal View History

#!nsh
set USB no
#
# Start the object request broker
#
uorb start
2012-10-30 03:19:58 -03:00
#
# Init the EEPROM
#
echo "[init] eeprom"
eeprom start
if [ -f /eeprom/parameters ]
then
param load
fi
#
# Enable / connect to PX4IO
#
px4io start
#
# Start the sensors.
#
sh /etc/init.d/rc.sensors
#
# Start MAVLink on UART1 (dev/ttyS0) at 57600 baud (CLI is now unusable)
#
mavlink start -d /dev/ttyS0 -b 57600
usleep 5000
#
# Start the commander.
#
2012-10-30 03:19:58 -03:00
commander start
#
# Start the attitude estimator
#
2012-10-30 03:19:58 -03:00
attitude_estimator_ekf start
#
# Start the attitude and position controller
#
fixedwing_att_control start
fixedwing_pos_control start
#
# Start GPS capture
#
#gps start
#
# startup is done; we don't want the shell because we
# use the same UART for telemetry
#
echo "[init] startup done"
exit