-
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.
Update GZBridge to be able to use gazebo airspeed. Add quadtailsitter. (
#23455) * Update GZBridge to be able to use gazebo airspeed. Add gz quadtailsitter. * Fix formatting --------- Co-authored-by: jmackay2 <[email protected]>
- Loading branch information
Showing
7 changed files
with
103 additions
and
16 deletions.
There are no files selected for viewing
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
92 changes: 92 additions & 0 deletions
92
ROMFS/px4fmu_common/init.d-posix/airframes/4014_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,92 @@ | ||
#!/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 | ||
|
||
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_MIN1 10 | ||
param set-default SIM_GZ_EC_MAX1 1500 | ||
param set-default SIM_GZ_EC_FUNC2 102 | ||
param set-default SIM_GZ_EC_MIN2 10 | ||
param set-default SIM_GZ_EC_MAX2 1500 | ||
param set-default SIM_GZ_EC_FUNC3 103 | ||
param set-default SIM_GZ_EC_MIN3 10 | ||
param set-default SIM_GZ_EC_MAX3 1500 | ||
param set-default SIM_GZ_EC_FUNC4 104 | ||
param set-default SIM_GZ_EC_MIN4 10 | ||
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 |
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
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