2012-09-03 05:14:54 -03:00
|
|
|
#
|
|
|
|
# Startup for X-quad on FMU1.5/1.6
|
|
|
|
#
|
|
|
|
|
|
|
|
echo "[init] uORB"
|
|
|
|
uorb start
|
|
|
|
|
|
|
|
echo "[init] eeprom"
|
|
|
|
eeprom start
|
2012-09-07 10:28:02 -03:00
|
|
|
if [ -f /eeprom/parameters ]
|
2012-09-03 06:45:09 -03:00
|
|
|
then
|
2012-10-10 02:45:36 -03:00
|
|
|
param load
|
2012-09-03 06:45:09 -03:00
|
|
|
fi
|
2012-09-03 05:14:54 -03:00
|
|
|
|
|
|
|
echo "[init] sensors"
|
|
|
|
#bma180 start
|
|
|
|
#l3gd20 start
|
|
|
|
mpu6000 start
|
|
|
|
hmc5883 start
|
|
|
|
ms5611 start
|
|
|
|
|
|
|
|
sensors start
|
|
|
|
|
|
|
|
echo "[init] mavlink"
|
|
|
|
mavlink start -d /dev/ttyS0 -b 57600
|
|
|
|
usleep 5000
|
|
|
|
|
|
|
|
echo "[init] commander"
|
|
|
|
commander start
|
|
|
|
|
|
|
|
echo "[init] attitude control"
|
2012-10-30 03:19:58 -03:00
|
|
|
attitude_estimator_ekf start
|
2012-09-03 05:14:54 -03:00
|
|
|
multirotor_att_control start
|
|
|
|
|
|
|
|
echo "[init] starting PWM output"
|
|
|
|
fmu mode_pwm
|
|
|
|
mixer load /dev/pwm_output /etc/mixers/FMU_quad_x.mix
|
|
|
|
|
|
|
|
echo "[init] startup done, exiting"
|
|
|
|
exit
|