mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 23:53:34 +08:00
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:
@@ -83,7 +83,7 @@ void Tiltrotor::update_vtol_state()
|
||||
break;
|
||||
|
||||
case vtol_mode::FW_MODE:
|
||||
resetTransitionTimer();
|
||||
resetTransitionStates();
|
||||
_vtol_mode = vtol_mode::TRANSITION_BACK;
|
||||
break;
|
||||
|
||||
@@ -126,7 +126,7 @@ void Tiltrotor::update_vtol_state()
|
||||
switch (_vtol_mode) {
|
||||
case vtol_mode::MC_MODE:
|
||||
// initialise a front transition
|
||||
resetTransitionTimer();
|
||||
resetTransitionStates();
|
||||
_vtol_mode = vtol_mode::TRANSITION_FRONT_P1;
|
||||
break;
|
||||
|
||||
@@ -154,7 +154,7 @@ void Tiltrotor::update_vtol_state()
|
||||
|
||||
if (transition_to_p2) {
|
||||
_vtol_mode = vtol_mode::TRANSITION_FRONT_P2;
|
||||
resetTransitionTimer();
|
||||
resetTransitionStates();
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user