mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-05 01:20:34 +08:00
VTOL: align setting of _tecs_running_ts on all VTOL types
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -115,6 +115,7 @@ void Tailsitter::update_vtol_state()
|
||||
|
||||
if (isFrontTransitionCompleted()) {
|
||||
_vtol_mode = vtol_mode::FW_MODE;
|
||||
_trans_finished_ts = hrt_absolute_time();
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
@@ -134,6 +134,7 @@ void Tiltrotor::update_vtol_state()
|
||||
case vtol_mode::TRANSITION_FRONT_P1: {
|
||||
if (isFrontTransitionCompleted()) {
|
||||
_vtol_mode = vtol_mode::TRANSITION_FRONT_P2;
|
||||
_trans_finished_ts = hrt_absolute_time();
|
||||
resetTransitionStates();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user