-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gz model for quadtailsitter (#23943)
* Add gazebo airspeed plugin and add a tailsitter model --------- Co-authored-by: Claudio Chies <[email protected]>
- Loading branch information
1 parent
1a165a4
commit 4696338
Showing
5 changed files
with
108 additions
and
12 deletions.
There are no files selected for viewing
97 changes: 97 additions & 0 deletions
97
ROMFS/px4fmu_common/init.d-posix/airframes/4018_gz_quadtailsitter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
#!/bin/sh | ||
# | ||
# @name Quadrotor + Tailsitter | ||
# | ||
# @type VTOL Quad Tailsitter | ||
# | ||
|
||
. ${R}etc/init.d/rc.vtol_defaults | ||
|
||
PX4_SIMULATOR=${PX4_SIMULATOR:=gz} | ||
PX4_GZ_WORLD=${PX4_GZ_WORLD:=default} | ||
PX4_SIM_MODEL=${PX4_SIM_MODEL:=quadtailsitter} | ||
|
||
param set-default SIM_GZ_EN 1 # Gazebo bridge | ||
|
||
param set-default SENS_EN_GPSSIM 1 | ||
param set-default SENS_EN_BAROSIM 0 | ||
param set-default SENS_EN_MAGSIM 1 | ||
param set-default SENS_EN_ARSPDSIM 0 | ||
|
||
|
||
param set-default MAV_TYPE 20 | ||
|
||
param set-default CA_AIRFRAME 4 | ||
|
||
param set-default CA_ROTOR_COUNT 4 | ||
param set-default CA_ROTOR0_PX 0.15 | ||
param set-default CA_ROTOR0_PY 0.23 | ||
param set-default CA_ROTOR0_KM 0.05 | ||
param set-default CA_ROTOR1_PX -0.15 | ||
param set-default CA_ROTOR1_PY -0.23 | ||
param set-default CA_ROTOR1_KM 0.05 | ||
param set-default CA_ROTOR2_PX 0.15 | ||
param set-default CA_ROTOR2_PY -0.23 | ||
param set-default CA_ROTOR2_KM -0.05 | ||
param set-default CA_ROTOR3_PX -0.15 | ||
param set-default CA_ROTOR3_PY 0.23 | ||
param set-default CA_ROTOR3_KM -0.05 | ||
|
||
param set-default CA_SV_CS_COUNT 0 | ||
|
||
param set-default SIM_GZ_EC_FUNC1 101 | ||
param set-default SIM_GZ_EC_FUNC2 102 | ||
param set-default SIM_GZ_EC_FUNC3 103 | ||
param set-default SIM_GZ_EC_FUNC4 104 | ||
|
||
param set-default SIM_GZ_EC_MIN1 10 | ||
param set-default SIM_GZ_EC_MIN2 10 | ||
param set-default SIM_GZ_EC_MIN3 10 | ||
param set-default SIM_GZ_EC_MIN4 10 | ||
|
||
param set-default SIM_GZ_EC_MAX1 1500 | ||
param set-default SIM_GZ_EC_MAX2 1500 | ||
param set-default SIM_GZ_EC_MAX3 1500 | ||
param set-default SIM_GZ_EC_MAX4 1500 | ||
|
||
param set-default FD_FAIL_R 70 | ||
|
||
param set-default FW_P_TC 0.6 | ||
|
||
param set-default FW_PR_I 0.3 | ||
param set-default FW_PR_P 0.5 | ||
param set-default FW_PSP_OFF 2 | ||
param set-default FW_RR_FF 0.1 | ||
param set-default FW_RR_I 0.1 | ||
param set-default FW_RR_P 0.2 | ||
param set-default FW_YR_FF 0 # make yaw rate controller very weak, only keep default P | ||
param set-default FW_YR_I 0 | ||
param set-default FW_THR_TRIM 0.35 | ||
param set-default FW_THR_MAX 0.8 | ||
param set-default FW_THR_MIN 0.05 | ||
param set-default FW_T_CLMB_MAX 6 | ||
param set-default FW_T_HRATE_FF 0.5 | ||
param set-default FW_T_SINK_MAX 3 | ||
param set-default FW_T_SINK_MIN 1.6 | ||
param set-default FW_AIRSPD_STALL 10 | ||
param set-default FW_AIRSPD_MIN 14 | ||
param set-default FW_AIRSPD_TRIM 18 | ||
param set-default FW_AIRSPD_MAX 22 | ||
|
||
param set-default MC_AIRMODE 2 | ||
param set-default MAN_ARM_GESTURE 0 # required for yaw airmode | ||
param set-default MC_ROLL_P 3 | ||
param set-default MC_PITCH_P 3 | ||
param set-default MC_ROLLRATE_P 0.3 | ||
param set-default MC_PITCHRATE_P 0.3 | ||
|
||
param set-default VT_ARSP_TRANS 15 | ||
param set-default VT_B_TRANS_DUR 5 | ||
param set-default VT_FW_DIFTHR_EN 7 | ||
param set-default VT_FW_DIFTHR_S_Y 1 | ||
param set-default VT_F_TRANS_DUR 1.5 | ||
param set-default VT_TYPE 0 | ||
|
||
param set-default WV_EN 0 | ||
|
||
param set-default EKF2_FUSE_BETA 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule gz
updated
8 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters