mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
posix shell: lots of cleanup and fixes
- move posix-configs/SITL/init/{rcS,10016_iris,6011_typhoon_h480} to ROMFS/px4fmu_common/init.d-posix
allows for easier unification, only one symlink is required.
- rcS: add AUTOCNF support. Update scripts to match with behavior of PX4
master (parameter values, some sitl driver got removed)
- add alias to allow 'set variable value' syntax in scripts to px4-alias.sh
- use px4_getopt
- use separate argument for the test_data directory
- append PATH from within the px4 binary: this simplifies the usage
w/o the sitl_run.sh script.
- add 'source px4-alias.sh' to all existing sitl startup scripts
- move sitl mixers to ROMFS/px4fmu_common/mixers-sitl
makes it easier to use existing mixers and sitl-specific ones.
- remove unused rcS_gazebo_delta_wing
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
#!/usr/bin/bash
|
||||
# PX4 commands need the 'px4-' prefix in bash.
|
||||
# (px4-alias.sh is expected to be in the PATH)
|
||||
source px4-alias.sh
|
||||
|
||||
uorb start
|
||||
param load
|
||||
dataman start
|
||||
@@ -63,7 +68,7 @@ mc_att_control start
|
||||
fw_pos_control_l1 start
|
||||
fw_att_control start
|
||||
wind_estimator start
|
||||
mixer load /dev/pwm_output0 ROMFS/sitl/mixers/quad_x_vtol.main.mix
|
||||
mixer load /dev/pwm_output0 etc/mixers-sitl/quad_x_vtol.main.mix
|
||||
mavlink start -x -u 14556 -r 2000000
|
||||
mavlink start -x -u 14557 -r 2000000 -m onboard -o 14540
|
||||
mavlink stream -r 80 -s POSITION_TARGET_LOCAL_NED -u 14556
|
||||
|
||||
Reference in New Issue
Block a user