@@ -60,9 +60,9 @@ param set-default MPC_TKO_SPEED 1.5
60
60
param set-default MPC_VEL_MANUAL 5
61
61
62
62
63
- # ####################################
63
+ # ##############################################
64
64
# EKF
65
- # ####################################
65
+ # ##############################################
66
66
# fusion: flow + vis pos + vis yaw
67
67
param set-default EKF2_AID_MASK 26
68
68
param set-default EKF2_OF_DELAY 0
@@ -100,12 +100,6 @@ param set-default SENS_FLOW_MAXR 10.0
100
100
# Minimum take off altitude
101
101
param set-default MIS_TAKEOFF_ALT 1
102
102
103
- # Time out of auto disarm
104
- param set-default COM_DISARM_LAND 1.0
105
-
106
- # enable offboard flights without rc
107
- param set-default COM_RCL_EXCEPT 4
108
-
109
103
# LPE: Flow-only mode
110
104
# param set-default LPE_FUSION 242
111
105
# param set-default LPE_FAKE_ORIGIN 1
@@ -129,6 +123,77 @@ param set-default RC_MAP_YAW 4
129
123
param set-default RC_MAP_FLTMODE 5
130
124
param set-default RC_CHAN_CNT 8
131
125
126
+ # ##############################################
127
+ # Failsafe
128
+ # ##############################################
129
+
130
+ # Low Battery Failsafe: return at critical and land at emergency
131
+ param set-default COM_LOW_BAT_ACT 3
132
+ param set-default BAT_LOW_THR 0.15
133
+ param set-default BAT_CRIT_THR 0.07
134
+ param set-default BAT_EMERGEN_THR 0.05
135
+
136
+ # RC Loss Failsafe: hold when RC loss, disable failsafe when offboard mode
137
+ param set-default COM_RC_LOSS_T 0.5
138
+ param set-default COM_FAIL_ACT_T 5.0
139
+ param set-default NAV_RCL_ACT 1
140
+ param set-default COM_RCL_EXCEPT 4
141
+
142
+ # Data Link Loss Failsafe: disabled
143
+ param set-default COM_DL_LOSS_T 0
144
+ param set-default NAV_DLL_ACT 10
145
+
146
+ # Geofence Failsafe: hold mode, GPS altitude calculated
147
+ param set-default GF_ACTION 2
148
+ param set-default GF_MAX_HOR_DIST 0
149
+ param set-default GF_MAX_VER_DIST 0
150
+ param set-default GF_ALTMODE 0
151
+ param set-default GF_COUNT -1
152
+ param set-default GF_PREDICT 0
153
+ param set-default GF_SOURCE 0
154
+ param set-default CBRK_FLIGHTTERM 121212
155
+
156
+ # Return Mode Settings: 2m return altitude
157
+ param set-default RTL_RETURN_ALT 45
158
+ param set-default RTL_DESCEND_ALT 2
159
+ param set-default RTL_LAND_DELAY 0.0
160
+
161
+ # Land Mode Settings
162
+ param set-default COM_DISARM_LAND 2.0
163
+ param set-default MPC_LAND_SPEED 0.7
164
+
165
+ # Position (GPS) Loss Failsafe: Altitude/Manual
166
+ param set-default COM_POS_FS_DELAY 1
167
+ param set-default COM_POSCTL_NAVL 0
168
+ param set-default FW_GPSF_LT 30
169
+ param set-default FW_GPSF_R 15
170
+
171
+ # Offboard Loss Failsafe: Position mode
172
+ param set-default COM_OF_LOSS_T 1.0
173
+ param set-default COM_OBL_RC_ACT 0
174
+
175
+ # Traffic Avoidance Failsafe: warn only
176
+ param set-default NAV_TRAFF_AVOID 1
177
+
178
+ # Quad-chute Failsafe: hold mode
179
+ param set-default COM_QC_ACT 2
180
+ param set-default VT_FW_QC_HMAX 0
181
+ param set-default VT_QC_ALT_LOSS 0
182
+ param set-default VT_QC_T_ALT_LOSS 20.0
183
+ param set-default VT_FW_MIN_ALT 0
184
+ param set-default VT_FW_QC_R 0
185
+ param set-default VT_FW_QC_P 0
186
+
187
+ # Failure Detector: disable
188
+ param set-default CBRK_FLIGHTTERM 121212
189
+
190
+ # Attitude Trigger: disable
191
+ param set-default CBRK_FLIGHTTERM 121212
192
+ param set-default FD_FAIL_P 60
193
+ param set-default FD_FAIL_R 60
194
+ param set-default FD_FAIL_P_TTRI 0.3
195
+ param set-default FD_FAIL_R_TTRI 0.3
196
+
132
197
# Set to Quadrotor
133
198
set MAV_TYPE 2
134
199
0 commit comments