mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Add support for malolo flying wing in JSBSim SITL
This commit adds SITL target for malolo flying wing and updates the jsbsim_bridge submodule to include the necessary changes.
This commit is contained in:
56
ROMFS/px4fmu_common/init.d-posix/airframes/1036_malolo
Normal file
56
ROMFS/px4fmu_common/init.d-posix/airframes/1036_malolo
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# @name Plane SITL
|
||||||
|
#
|
||||||
|
|
||||||
|
. ${R}etc/init.d/rc.fw_defaults
|
||||||
|
|
||||||
|
if [ $AUTOCNF = yes ]
|
||||||
|
then
|
||||||
|
param set EKF2_ARSP_THR 8
|
||||||
|
param set EKF2_FUSE_BETA 1
|
||||||
|
#param set EKF2_MAG_ACCLIM 0
|
||||||
|
#param set EKF2_MAG_YAWLIM 0
|
||||||
|
|
||||||
|
param set FW_LND_AIRSPD_SC 1.1
|
||||||
|
param set FW_LND_ANG 5
|
||||||
|
param set FW_THR_LND_MAX 0
|
||||||
|
param set FW_LND_HHDIST 30
|
||||||
|
param set FW_LND_FL_PMIN 9.5
|
||||||
|
param set FW_LND_FL_PMAX 20
|
||||||
|
param set FW_LND_FLALT 5
|
||||||
|
param set FW_LND_TLALT 15
|
||||||
|
|
||||||
|
param set FW_L1_PERIOD 25
|
||||||
|
|
||||||
|
param set FW_P_TC 0.4
|
||||||
|
param set FW_PR_FF 0.40
|
||||||
|
param set FW_PR_I 0.05
|
||||||
|
param set FW_PR_P 0.05
|
||||||
|
|
||||||
|
param set FW_R_TC 0.45
|
||||||
|
param set FW_RR_FF 0.40
|
||||||
|
param set FW_RR_I 0.132
|
||||||
|
param set FW_RR_P 0.085
|
||||||
|
|
||||||
|
param set FW_W_EN 1
|
||||||
|
|
||||||
|
param set MIS_LTRMIN_ALT 30
|
||||||
|
param set MIS_TAKEOFF_ALT 20
|
||||||
|
param set MIS_DIST_1WP 2500
|
||||||
|
param set MIS_DIST_WPS 10000
|
||||||
|
|
||||||
|
param set NAV_ACC_RAD 15
|
||||||
|
param set NAV_DLL_ACT 2
|
||||||
|
param set NAV_LOITER_RAD 50
|
||||||
|
|
||||||
|
param set RWTO_TKOFF 1
|
||||||
|
param set RWTO_MAX_PITCH 20
|
||||||
|
param set RWTO_MAX_ROLL 10
|
||||||
|
param set RWTO_PSP 8
|
||||||
|
param set RWTO_AIRSPD_SCL 1.8
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
set MIXER_FILE etc/mixers-sitl/plane_sitl.main.mix
|
||||||
|
set MIXER custom
|
||||||
@@ -58,6 +58,7 @@ px4_add_romfs_files(
|
|||||||
1033_rascal
|
1033_rascal
|
||||||
1034_rascal-electric
|
1034_rascal-electric
|
||||||
1035_techpod
|
1035_techpod
|
||||||
|
1036_malolo
|
||||||
1040_standard_vtol
|
1040_standard_vtol
|
||||||
1041_tailsitter
|
1041_tailsitter
|
||||||
1042_tiltrotor
|
1042_tiltrotor
|
||||||
|
|||||||
Submodule Tools/jsbsim_bridge updated: 7df4fd965e...9f46d55291
@@ -21,6 +21,9 @@ case "$MODEL" in
|
|||||||
rascal)
|
rascal)
|
||||||
MODEL_NAME="Rascal110-JSBSim"
|
MODEL_NAME="Rascal110-JSBSim"
|
||||||
;;
|
;;
|
||||||
|
malolo)
|
||||||
|
MODEL_NAME="Malolo1"
|
||||||
|
;;
|
||||||
quadrotor_x)
|
quadrotor_x)
|
||||||
MODEL_NAME="quadrotor_x"
|
MODEL_NAME="quadrotor_x"
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ foreach(viewer ${viewers})
|
|||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
# create targets for jsbsim
|
# create targets for jsbsim
|
||||||
set(models_jsbsim none rascal quadrotor_x hexarotor_x)
|
set(models_jsbsim none rascal quadrotor_x hexarotor_x malolo)
|
||||||
set(worlds_jsbsim none LSZH)
|
set(worlds_jsbsim none LSZH)
|
||||||
foreach(debugger ${debuggers})
|
foreach(debugger ${debuggers})
|
||||||
foreach(model ${models_jsbsim})
|
foreach(model ${models_jsbsim})
|
||||||
|
|||||||
Reference in New Issue
Block a user