mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 16:13:33 +08:00
Bottle drop: added custom HIL startup script
This commit is contained in:
@@ -55,17 +55,6 @@ hil mode_pwm
|
|||||||
#
|
#
|
||||||
param set MAV_TYPE 1
|
param set MAV_TYPE 1
|
||||||
|
|
||||||
#
|
|
||||||
# Check if we got an IO
|
|
||||||
#
|
|
||||||
if px4io start
|
|
||||||
then
|
|
||||||
echo "IO started"
|
|
||||||
else
|
|
||||||
fmu mode_serial
|
|
||||||
echo "FMU started"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start the sensors (depends on orb, px4io)
|
# Start the sensors (depends on orb, px4io)
|
||||||
#
|
#
|
||||||
@@ -83,7 +72,11 @@ mixer load /dev/pwm_output /etc/mixers/FMU_AET.mix
|
|||||||
fw_pos_control_l1 start
|
fw_pos_control_l1 start
|
||||||
fw_att_control start
|
fw_att_control start
|
||||||
|
|
||||||
#fmu mode_pwm
|
#
|
||||||
|
# Start IO
|
||||||
|
#
|
||||||
|
px4io start
|
||||||
|
|
||||||
|
|
||||||
mixer load /dev/px4io /etc/mixers/FMU_pass.mix
|
mixer load /dev/px4io /etc/mixers/FMU_pass.mix
|
||||||
|
|
||||||
|
|||||||
@@ -145,6 +145,12 @@ then
|
|||||||
sh /etc/init.d/1004_rc_fw_Rascal110.hil
|
sh /etc/init.d/1004_rc_fw_Rascal110.hil
|
||||||
set MODE custom
|
set MODE custom
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if param compare SYS_AUTOSTART 901
|
||||||
|
then
|
||||||
|
sh /etc/init.d/901_bottle_drop_test.hil
|
||||||
|
set MODE custom
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $MODE != custom ]
|
if [ $MODE != custom ]
|
||||||
then
|
then
|
||||||
@@ -324,12 +330,6 @@ then
|
|||||||
sh /etc/init.d/900_bottle_drop_test
|
sh /etc/init.d/900_bottle_drop_test
|
||||||
set MODE custom
|
set MODE custom
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if param compare SYS_AUTOSTART 901
|
|
||||||
then
|
|
||||||
sh /etc/init.d/901_bottle_drop_test.hil
|
|
||||||
set MODE custom
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Start any custom extensions that might be missing
|
# Start any custom extensions that might be missing
|
||||||
if [ -f /fs/microsd/etc/rc.local ]
|
if [ -f /fs/microsd/etc/rc.local ]
|
||||||
|
|||||||
Reference in New Issue
Block a user