forked from Archive/PX4-Autopilot
VTOL: align setting of _tecs_running_ts on all VTOL types
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
parent
be03b7f098
commit
233d901934
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue