mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 08:38:53 +08:00
[fix] autotune: fix indentation on _state_start_time in abort logic
This commit is contained in:
@@ -562,6 +562,8 @@ void FwAutotuneAttitudeControl::updateStateMachine(hrt_abstime now)
|
||||
mavlink_log_critical(&mavlink_log_pub, "Autotune aborted before finishing");
|
||||
_state = state::fail;
|
||||
|
||||
_state_start_time = now;
|
||||
|
||||
} else if (timeout) {
|
||||
// Skip to next axis
|
||||
mavlink_log_critical(&mavlink_log_pub, "Autotune axis timeout, skipping to next axis");
|
||||
@@ -586,9 +588,11 @@ void FwAutotuneAttitudeControl::updateStateMachine(hrt_abstime now)
|
||||
_state = state::fail; // safety fallback
|
||||
break;
|
||||
}
|
||||
|
||||
_state_start_time = now;
|
||||
}
|
||||
|
||||
_state_start_time = now;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user