2019-08-22 16:09:04 -03:00
|
|
|
#!/bin/sh
|
|
|
|
# PX4 commands need the 'px4-' prefix in bash.
|
|
|
|
# (px4-alias.sh is expected to be in the PATH)
|
|
|
|
. px4-alias.sh
|
|
|
|
|
2020-01-07 12:08:37 -04:00
|
|
|
# navio config for simple testing
|
|
|
|
|
2019-08-22 16:09:04 -03:00
|
|
|
uorb start
|
2020-01-07 12:08:37 -04:00
|
|
|
|
2019-08-22 16:09:04 -03:00
|
|
|
if [ -f eeprom/parameters ]
|
|
|
|
then
|
|
|
|
param load
|
|
|
|
fi
|
|
|
|
param set SYS_AUTOSTART 4001
|
|
|
|
param set MAV_BROADCAST 1
|
|
|
|
param set MAV_TYPE 2
|
2020-01-07 12:08:37 -04:00
|
|
|
|
2019-08-22 16:09:04 -03:00
|
|
|
dataman start
|
2020-01-07 12:08:37 -04:00
|
|
|
|
2020-03-13 11:02:39 -03:00
|
|
|
mpu9250 -s -R 8 start
|
2020-02-26 09:35:55 -04:00
|
|
|
lsm9ds1 -s -R 4 start
|
|
|
|
lsm9ds1_mag -s -R 4 start
|
2020-02-26 09:56:30 -04:00
|
|
|
ms5611 -X start
|
2020-01-09 12:00:40 -04:00
|
|
|
|
2019-08-22 16:09:04 -03:00
|
|
|
navio_rgbled start
|
2020-01-07 12:08:37 -04:00
|
|
|
|
|
|
|
adc start
|
|
|
|
battery_status start
|
|
|
|
|
2019-08-22 16:09:04 -03:00
|
|
|
gps start -d /dev/spidev0.0 -i spi -p ubx
|
2019-11-24 14:25:11 -04:00
|
|
|
rc_update start
|
2019-08-22 16:09:04 -03:00
|
|
|
sensors start
|
|
|
|
commander start
|
|
|
|
navigator start
|
|
|
|
ekf2 start
|
|
|
|
land_detector start multicopter
|
2020-03-11 22:20:54 -03:00
|
|
|
mc_hover_thrust_estimator start
|
2019-08-22 16:09:04 -03:00
|
|
|
mc_pos_control start
|
|
|
|
mc_att_control start
|
2020-01-07 12:08:37 -04:00
|
|
|
|
2019-08-22 16:09:04 -03:00
|
|
|
mavlink start -x -u 14556 -r 1000000
|
|
|
|
|
|
|
|
if [ -f /dev/ttyUSB0 ]
|
|
|
|
then
|
|
|
|
mavlink start -x -d /dev/ttyUSB0
|
|
|
|
fi
|
|
|
|
|
|
|
|
navio_sysfs_rc_in start
|
|
|
|
linux_pwm_out start
|
2020-01-07 12:08:37 -04:00
|
|
|
|
2019-08-22 16:09:04 -03:00
|
|
|
logger start -t -b 200
|
2020-01-07 12:08:37 -04:00
|
|
|
|
2019-08-22 16:09:04 -03:00
|
|
|
mavlink boot_complete
|
|
|
|
|
2019-08-22 16:46:39 -03:00
|
|
|
sleep 5
|
|
|
|
|
2019-08-22 17:20:39 -03:00
|
|
|
ver all
|
|
|
|
sleep 1
|
2019-08-22 16:09:04 -03:00
|
|
|
commander check
|
2019-08-22 17:20:39 -03:00
|
|
|
sleep 1
|
|
|
|
dataman status
|
|
|
|
sleep 1
|
2019-08-22 16:46:39 -03:00
|
|
|
ekf2 status
|
2019-08-22 17:20:39 -03:00
|
|
|
sleep 1
|
|
|
|
logger status
|
|
|
|
sleep 1
|
2019-08-22 16:46:39 -03:00
|
|
|
mavlink status
|
2019-08-22 17:20:39 -03:00
|
|
|
sleep 1
|
2019-08-22 16:46:39 -03:00
|
|
|
mavlink status streams
|
2019-08-22 17:20:39 -03:00
|
|
|
sleep 1
|
|
|
|
param show
|
|
|
|
sleep 1
|
|
|
|
param status
|
|
|
|
sleep 1
|
|
|
|
pwm info
|
|
|
|
sleep 1
|
2019-08-22 16:46:39 -03:00
|
|
|
sensors status
|
2019-08-22 17:20:39 -03:00
|
|
|
sleep 1
|
2019-08-22 16:09:04 -03:00
|
|
|
perf
|
2019-08-22 17:20:39 -03:00
|
|
|
sleep 1
|
2019-08-22 16:46:39 -03:00
|
|
|
perf latency
|
2019-08-22 17:20:39 -03:00
|
|
|
sleep 1
|
2019-10-02 13:23:17 -03:00
|
|
|
work_queue status
|
|
|
|
sleep 1
|
2019-08-22 16:46:39 -03:00
|
|
|
uorb top -1
|
2019-08-22 17:20:39 -03:00
|
|
|
sleep 1
|
2019-08-22 16:46:39 -03:00
|
|
|
|
2019-08-22 16:09:04 -03:00
|
|
|
shutdown
|