[fix] autotune: fix indentation on _state_start_time in abort logic

This commit is contained in:
mahima-yoga
2025-11-28 09:31:37 +01:00
committed by Mahima Yoga
parent 0618b0b529
commit 0985c22701
@@ -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;
}
}