2018-08-25 12:02:37 -03:00
|
|
|
#!/bin/sh
|
2018-08-04 12:26:05 -03:00
|
|
|
# PX4 commands need the 'px4-' prefix in bash.
|
|
|
|
# (px4-alias.sh is expected to be in the PATH)
|
2018-09-27 14:54:09 -03:00
|
|
|
. px4-alias.sh
|
2018-08-04 12:26:05 -03:00
|
|
|
|
2017-05-08 06:47:22 -03:00
|
|
|
# navio config for a quad
|
2020-01-07 12:08:37 -04:00
|
|
|
|
2022-08-22 12:00:03 -03:00
|
|
|
param select parameters.bson
|
2021-12-23 13:29:35 -04:00
|
|
|
param import
|
|
|
|
|
2022-01-08 16:10:52 -04:00
|
|
|
param set BAT1_V_DIV 10.177939394
|
|
|
|
param set BAT1_A_PER_V 15.391030303
|
2020-05-04 14:07:58 -03:00
|
|
|
param set CBRK_SUPPLY_CHK 894281
|
2016-07-18 12:01:39 -03:00
|
|
|
param set SYS_AUTOSTART 4001
|
|
|
|
param set MAV_TYPE 2
|
2020-01-07 12:08:37 -04:00
|
|
|
|
2021-01-07 11:12:20 -04:00
|
|
|
# Multi-EKF
|
|
|
|
param set EKF2_MULTI_IMU 2
|
|
|
|
param set SENS_IMU_MODE 0
|
|
|
|
|
2017-03-09 09:29:17 -04:00
|
|
|
dataman start
|
2020-01-07 12:08:37 -04:00
|
|
|
|
2020-08-11 19:33:44 -03:00
|
|
|
load_mon start
|
|
|
|
|
2020-03-25 02:07:33 -03:00
|
|
|
mpu9250 -s -R 2 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
|
|
|
|
2017-02-24 05:24:40 -04:00
|
|
|
navio_rgbled start
|
2020-01-07 12:08:37 -04:00
|
|
|
|
2020-09-08 00:09:20 -03:00
|
|
|
board_adc start
|
2020-01-07 12:08:37 -04:00
|
|
|
battery_status start
|
|
|
|
|
2016-09-06 17:43:28 -03:00
|
|
|
gps start -d /dev/spidev0.0 -i spi -p ubx
|
2019-11-24 14:25:11 -04:00
|
|
|
rc_update start
|
2016-07-18 12:01:39 -03:00
|
|
|
sensors start
|
|
|
|
commander start
|
2016-12-22 09:26:50 -04:00
|
|
|
navigator start
|
2017-03-09 06:13:33 -04:00
|
|
|
ekf2 start
|
2016-07-18 12:01:39 -03:00
|
|
|
land_detector start multicopter
|
2020-03-11 22:20:54 -03:00
|
|
|
mc_hover_thrust_estimator start
|
2020-10-24 12:09:25 -03:00
|
|
|
flight_mode_manager start
|
2016-07-18 12:01:39 -03:00
|
|
|
mc_pos_control start
|
|
|
|
mc_att_control start
|
2019-11-19 18:03:11 -04:00
|
|
|
mc_rate_control start
|
2020-01-07 12:08:37 -04:00
|
|
|
|
2021-01-31 09:36:27 -04:00
|
|
|
mavlink start -x -u 14556 -r 1000000 -p
|
2018-08-04 12:26:05 -03:00
|
|
|
|
2020-10-03 11:51:27 -03:00
|
|
|
if [ -c /dev/ttyUSB0 ]
|
2018-08-04 12:26:05 -03:00
|
|
|
then
|
|
|
|
mavlink start -x -d /dev/ttyUSB0
|
2020-10-03 11:51:27 -03:00
|
|
|
elif [ -c /dev/ttyAMA0 ]
|
|
|
|
then
|
|
|
|
mavlink start -x -d /dev/ttyAMA0
|
2018-08-04 12:26:05 -03:00
|
|
|
fi
|
|
|
|
|
2016-07-18 12:01:39 -03:00
|
|
|
navio_sysfs_rc_in start
|
2017-06-06 10:40:24 -03:00
|
|
|
linux_pwm_out start
|
2022-08-24 15:44:17 -03:00
|
|
|
control_allocator start
|
2020-01-07 12:08:37 -04:00
|
|
|
|
2017-04-24 04:12:10 -03:00
|
|
|
logger start -t -b 200
|
2020-01-07 12:08:37 -04:00
|
|
|
|
2016-09-03 00:05:57 -03:00
|
|
|
mavlink boot_complete
|