2018-08-25 11:02:37 -04:00
|
|
|
#!/bin/sh
|
2018-08-04 17:26:05 +02:00
|
|
|
# PX4 commands need the 'px4-' prefix in bash.
|
|
|
|
|
# (px4-alias.sh is expected to be in the PATH)
|
2018-09-27 19:54:09 +02:00
|
|
|
. px4-alias.sh
|
2018-08-04 17:26:05 +02:00
|
|
|
|
2017-03-09 11:20:52 +01:00
|
|
|
# HITL configuration
|
|
|
|
|
# connect to it with jMAVSim:
|
|
|
|
|
# ./Tools/jmavsim_run.sh -q -i <IP> -p 14577 -r 250
|
|
|
|
|
|
|
|
|
|
uorb start
|
2020-01-07 11:08:37 -05:00
|
|
|
|
|
|
|
|
if [ -f eeprom/parameters ]
|
|
|
|
|
then
|
|
|
|
|
param load
|
|
|
|
|
fi
|
2017-03-09 11:20:52 +01:00
|
|
|
param set SYS_AUTOSTART 1001
|
|
|
|
|
param set MAV_BROADCAST 1
|
|
|
|
|
param set MAV_TYPE 2
|
2020-01-07 11:08:37 -05:00
|
|
|
|
2017-03-09 14:29:17 +01:00
|
|
|
dataman start
|
2020-01-07 11:08:37 -05:00
|
|
|
|
2019-11-24 13:25:11 -05:00
|
|
|
rc_update start
|
2017-03-09 11:20:52 +01:00
|
|
|
sensors start -hil
|
|
|
|
|
commander start -hil
|
|
|
|
|
navigator start
|
|
|
|
|
ekf2 start
|
|
|
|
|
land_detector start multicopter
|
|
|
|
|
mc_pos_control start
|
|
|
|
|
mc_att_control start
|
2019-11-19 17:03:11 -05:00
|
|
|
mc_rate_control start
|
2020-01-07 11:08:37 -05:00
|
|
|
|
2017-09-18 12:38:49 +02:00
|
|
|
mavlink start -x -u 14577 -r 1000000
|
2017-03-09 11:20:52 +01:00
|
|
|
navio_sysfs_rc_in start
|
2018-03-04 11:00:40 -05:00
|
|
|
pwm_out_sim start
|
2017-03-09 11:20:52 +01:00
|
|
|
mixer load /dev/pwm_output0 ROMFS/px4fmu_common/mixers/quad_x.main.mix
|
2020-01-07 11:08:37 -05:00
|
|
|
|
2017-04-24 09:12:10 +02:00
|
|
|
logger start -t -b 200
|
2020-01-07 11:08:37 -05:00
|
|
|
|
2017-03-09 11:20:52 +01:00
|
|
|
mavlink boot_complete
|
|
|
|
|
|