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
|
2020-05-04 13:33:31 -03:00
|
|
|
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
|
|
|
|
|
2020-06-24 11:39:21 -03:00
|
|
|
battery_simulator start
|
2022-08-22 12:00:03 -03:00
|
|
|
simulator_mavlink start
|
2018-11-16 13:13:57 -04:00
|
|
|
tone_alarm start
|
|
|
|
pwm_out_sim start
|
|
|
|
|
2019-11-24 14:25:11 -04:00
|
|
|
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
|
2020-03-11 22:20:54 -03:00
|
|
|
mc_hover_thrust_estimator start
|
2021-01-04 11:21:47 -04:00
|
|
|
flight_mode_manager start
|
2019-11-30 13:58:36 -04:00
|
|
|
mc_pos_control start vtol
|
|
|
|
mc_att_control start vtol
|
|
|
|
mc_rate_control start vtol
|
2023-04-13 12:00:04 -03:00
|
|
|
fw_pos_control start vtol
|
2019-11-30 13:58:36 -04:00
|
|
|
fw_att_control start vtol
|
2019-08-07 08:06:00 -03:00
|
|
|
airspeed_selector start
|
2018-11-16 13:13:57 -04:00
|
|
|
|
2022-08-24 15:44:17 -03:00
|
|
|
control_allocator start
|
2018-11-16 13:13:57 -04:00
|
|
|
|
|
|
|
ver all
|
|
|
|
|
|
|
|
logger start -e -t
|
|
|
|
|
|
|
|
mavlink boot_complete
|
|
|
|
|
2020-05-04 13:33:31 -03:00
|
|
|
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
|
2019-11-24 14:25:11 -04:00
|
|
|
rc_update stop
|
2018-11-16 13:13:57 -04:00
|
|
|
land_detector status
|
|
|
|
navigator status
|
|
|
|
ekf2 status
|
2020-10-24 12:09:25 -03:00
|
|
|
flight_mode_manager status
|
2018-11-16 13:13:57 -04:00
|
|
|
mc_pos_control status
|
|
|
|
mc_att_control status
|
2019-11-19 18:03:11 -04:00
|
|
|
mc_rate_control status
|
2023-04-13 12:00:04 -03:00
|
|
|
fw_pos_control status
|
2018-11-16 13:13:57 -04:00
|
|
|
fw_att_control status
|
2019-08-07 08:06:00 -03:00
|
|
|
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
|
2019-11-19 18:03:11 -04:00
|
|
|
mc_rate_control stop
|
2018-11-16 13:13:57 -04:00
|
|
|
mc_att_control stop
|
|
|
|
fw_att_control stop
|
2020-10-24 12:09:25 -03:00
|
|
|
flight_mode_manager stop
|
2018-11-16 13:13:57 -04:00
|
|
|
mc_pos_control stop
|
2023-04-13 12:00:04 -03:00
|
|
|
fw_pos_control stop
|
2018-11-16 13:13:57 -04:00
|
|
|
navigator stop
|
|
|
|
commander stop
|
|
|
|
land_detector stop
|
|
|
|
ekf2 stop
|
2019-08-07 08:06:00 -03:00
|
|
|
airspeed_selector stop
|
2018-11-16 13:13:57 -04:00
|
|
|
sensors stop
|
|
|
|
|
2022-08-22 12:00:03 -03:00
|
|
|
simulator_mavlink stop
|
2018-11-16 13:13:57 -04:00
|
|
|
tone_alarm stop
|
|
|
|
|
|
|
|
dataman stop
|
|
|
|
#uorb stop
|
|
|
|
|
|
|
|
shutdown
|