mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-11 00:11:36 +08:00
- new modules/simulation directory to collect all simulators and related modules - new Tools/simulation directory to collect and organize scattered simulation submodules, scripts, etc - simulation module renamed to simulator_mavlink - sih renamed to simulator_sih (not a great name, but I wanted to be clear it was a simulator) - ignition_simulator renamed to simulator_ignition_bridge - large sitl_target.cmake split by simulation option and in some cases pushed to appropriate modules - sitl targets broken down to what's actually available (eg jmavsim only has 1 model and 1 world) - new Gazebo consistently referred to as Ignition for now (probably the least confusing thing until we fully drop Gazebo classic support someday)
74 lines
1.3 KiB
Bash
74 lines
1.3 KiB
Bash
#!/bin/sh
|
|
# PX4 commands need the 'px4-' prefix in bash.
|
|
# (px4-alias.sh is expected to be in the PATH)
|
|
. px4-alias.sh
|
|
|
|
param select parameters.bson
|
|
param import
|
|
|
|
# system_power not implemented
|
|
param set CBRK_SUPPLY_CHK 894281
|
|
|
|
param set-default BAT1_V_DIV 5.7
|
|
|
|
# broadcast to LAN
|
|
# always keep current config
|
|
param set SYS_AUTOCONFIG 0
|
|
# useless but required for parameter completeness
|
|
param set MAV_TYPE 2
|
|
param set SYS_AUTOSTART 4001
|
|
|
|
dataman start
|
|
|
|
load_mon start
|
|
|
|
battery_status start
|
|
|
|
# internal IMU
|
|
if ! icm42688p start -q -s -R 4
|
|
then
|
|
# some boards has ICM42605 instead
|
|
icm42605 start -s -R 4
|
|
fi
|
|
if ! ist8310 start -q -I -a 15 -R 4
|
|
then
|
|
# some boards has QMC5883l instead
|
|
qmc5883l start -I -R 6
|
|
fi
|
|
ms5611 start -I
|
|
|
|
# ADC
|
|
ads1115 start -I
|
|
|
|
# PWM
|
|
pca9685_pwm_out start
|
|
mixer load /dev/pwm_output0 etc/mixers/quad_x.main.mix
|
|
|
|
# external GPS & compass
|
|
gps start -d /dev/ttySC0 -i uart -p ubx -s
|
|
#hmc5883 start -X
|
|
#ist8310 start -X
|
|
|
|
rc_input start -d /dev/ttyAMA0
|
|
|
|
rc_update start
|
|
sensors start
|
|
commander start
|
|
navigator start
|
|
ekf2 start
|
|
land_detector start multicopter
|
|
mc_hover_thrust_estimator start
|
|
flight_mode_manager start
|
|
mc_pos_control start
|
|
mc_att_control start
|
|
mc_rate_control start
|
|
|
|
mavlink start -x -u 14556 -r 1000000 -p
|
|
|
|
# Telem
|
|
mavlink start -x -Z -d /dev/ttySC1
|
|
|
|
logger start -t -b 200
|
|
|
|
mavlink boot_complete
|