mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Example startup script for FMU on a PWM-based X-mode quad
This commit is contained in:
parent
c62e78a060
commit
f53f63b06d
37
ROMFS/scripts/rc.PX4FMU_quad_x
Normal file
37
ROMFS/scripts/rc.PX4FMU_quad_x
Normal file
@ -0,0 +1,37 @@
|
||||
#
|
||||
# Startup for X-quad on FMU1.5/1.6
|
||||
#
|
||||
|
||||
echo "[init] uORB"
|
||||
uorb start
|
||||
|
||||
echo "[init] eeprom"
|
||||
eeprom start
|
||||
eeprom load_param /eeprom/parameters
|
||||
|
||||
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"
|
||||
attitude_estimator_bm &
|
||||
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
|
||||
Loading…
x
Reference in New Issue
Block a user