VTOL: introduce new quad-chute check for altitude loss during front transition

By default the threshold is set to 10m.

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2023-01-19 09:36:09 +01:00
parent 98705ced2f
commit 36dc75bedf
7 changed files with 56 additions and 30 deletions
+2 -2
View File
@@ -89,7 +89,7 @@ void Standard::update_vtol_state()
} else if (_vtol_mode == vtol_mode::FW_MODE) {
// Regular backtransition
resetTransitionTimer();
resetTransitionStates();
_vtol_mode = vtol_mode::TRANSITION_TO_MC;
_reverse_output = _param_vt_b_rev_out.get();
@@ -126,7 +126,7 @@ void Standard::update_vtol_state()
// start transition to fw mode
/* NOTE: The failsafe transition to fixed-wing was removed because it can result in an
* unsafe flying state. */
resetTransitionTimer();
resetTransitionStates();
_vtol_mode = vtol_mode::TRANSITION_TO_FW;
} else if (_vtol_mode == vtol_mode::FW_MODE) {