VTOL: align setting of _tecs_running_ts on all VTOL types

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer 2023-04-11 15:19:18 +02:00
parent be03b7f098
commit 233d901934
2 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,7 @@ void Tailsitter::update_vtol_state()
if (isFrontTransitionCompleted()) {
_vtol_mode = vtol_mode::FW_MODE;
_trans_finished_ts = hrt_absolute_time();
}
break;

View File

@ -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();
}