px4-firmware/posix-configs/SITL/init/test/test_shutdown

92 lines
1.5 KiB
Plaintext
Raw Normal View History

2018-11-16 13:13:57 -04:00
#!/bin/sh
# PX4 commands need the 'px4-' prefix in bash.
# (px4-alias.sh is expected to be in the PATH)
. px4-alias.sh
param load
2020-12-11 22:33:39 -04:00
param set BAT1_N_CELLS 3
param set CBRK_SUPPLY_CHK 894281
2018-11-16 13:13:57 -04:00
param set MAV_TYPE 22
param set VT_TYPE 2
dataman start
battery_simulator start
simulator_mavlink start
2018-11-16 13:13:57 -04:00
tone_alarm start
pwm_out_sim start
rc_update start
2018-11-16 13:13:57 -04:00
sensors start
commander start
land_detector start vtol
navigator start
ekf2 start
vtol_att_control start
mc_hover_thrust_estimator start
flight_mode_manager start
mc_pos_control start vtol
mc_att_control start vtol
mc_rate_control start vtol
fw_pos_control start vtol
fw_att_control start vtol
airspeed_selector start
2018-11-16 13:13:57 -04:00
control_allocator start
2018-11-16 13:13:57 -04:00
ver all
logger start -e -t
mavlink boot_complete
sleep 1
2018-11-16 13:13:57 -04:00
echo "Boot complete"
# status of all running modules
echo "Checking status of all modules"
logger status
pwm_out_sim status
sensors status
commander status
rc_update stop
2018-11-16 13:13:57 -04:00
land_detector status
navigator status
ekf2 status
flight_mode_manager status
2018-11-16 13:13:57 -04:00
mc_pos_control status
mc_att_control status
mc_rate_control status
fw_pos_control status
2018-11-16 13:13:57 -04:00
fw_att_control status
airspeed_selector status
2018-11-16 13:13:57 -04:00
dataman status
uorb status
# stop all
echo "Stopping all modules"
logger stop
pwm_out_sim stop
mc_rate_control stop
2018-11-16 13:13:57 -04:00
mc_att_control stop
fw_att_control stop
flight_mode_manager stop
2018-11-16 13:13:57 -04:00
mc_pos_control stop
fw_pos_control stop
2018-11-16 13:13:57 -04:00
navigator stop
commander stop
land_detector stop
ekf2 stop
airspeed_selector stop
2018-11-16 13:13:57 -04:00
sensors stop
simulator_mavlink stop
2018-11-16 13:13:57 -04:00
tone_alarm stop
dataman stop
#uorb stop
shutdown