mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 18:53:33 +08:00
Replace the existing check for the availability of a takeoff mission item with a combined check for takeoff and landing item (or landing pattern). New param MIS_TKO_LAND_REQ can be set to require only a takeoff, only a landing, both takeoff and landing, and both or none. The latter is meant to be set if is e.g. deemed unsafe to start a flight through a Takeoff WP without though defining a Landing - as then in case of a RTL the vehicle doesn't follow a pre-defined path but instead only can do default RTL that especially for FW and VTOL isn't always safe. Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
54 lines
1.4 KiB
Bash
54 lines
1.4 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Fixed wing default parameters
|
|
#
|
|
# NOTE: Script variables are declared/initialized/unset in the rcS script.
|
|
#
|
|
|
|
set VEHICLE_TYPE fw
|
|
|
|
# MAV_TYPE_FIXED_WING 1
|
|
param set-default MAV_TYPE 1
|
|
|
|
#
|
|
# Default parameters for fixed wing UAVs.
|
|
#
|
|
param set-default COM_POS_FS_DELAY 5
|
|
param set-default COM_POS_FS_EPH 15
|
|
param set-default COM_POS_FS_EPV 30
|
|
param set-default COM_VEL_FS_EVH 5
|
|
# Disable preflight disarm to not interfere with external launching
|
|
param set-default COM_DISARM_PRFLT -1
|
|
|
|
param set-default EKF2_ARSP_THR 8
|
|
param set-default EKF2_FUSE_BETA 1
|
|
param set-default EKF2_GPS_CHECK 21
|
|
param set-default EKF2_MAG_ACCLIM 0
|
|
param set-default EKF2_MAG_YAWLIM 0
|
|
param set-default EKF2_REQ_EPH 10
|
|
param set-default EKF2_REQ_EPV 10
|
|
param set-default EKF2_REQ_HDRIFT 0.5
|
|
param set-default EKF2_REQ_SACC 1
|
|
param set-default EKF2_REQ_VDRIFT 1.0
|
|
|
|
param set-default RTL_TYPE 1
|
|
param set-default RTL_RETURN_ALT 100
|
|
param set-default RTL_DESCEND_ALT 100
|
|
param set-default RTL_LAND_DELAY -1
|
|
|
|
#
|
|
# FW uses L1 distance for acceptance radius.
|
|
# Set a smaller NAV_ACC_RAD for vertical acceptance distance.
|
|
#
|
|
param set-default NAV_ACC_RAD 10
|
|
|
|
param set-default MIS_DIST_WPS 5000
|
|
param set-default MIS_LTRMIN_ALT 25
|
|
param set-default MIS_TAKEOFF_ALT 25
|
|
param set-default MIS_TKO_LAND_REQ 2
|
|
|
|
#
|
|
# FW takeoff acceleration can easily exceed ublox GPS 2G default.
|
|
#
|
|
param set-default GPS_UBX_DYNMODEL 8
|