fw-autotune: increase abort timeout to 30 seconds

Avoids abort on heavily undertuned systems during amplitude detection state
This commit is contained in:
mahima-yoga
2025-10-24 17:38:54 +02:00
committed by Mahima Yoga
parent fe35f1a34b
commit 97c16352a5
@@ -550,7 +550,7 @@ void FwAutotuneAttitudeControl::updateStateMachine(hrt_abstime now)
// In case of convergence timeout
// the identification sequence is aborted immediately
if (_state != state::wait_for_disarm && _state != state::idle && _state != state::fail && _state != state::complete) {
if (now - _state_start_time > 20_s
if (now - _state_start_time > 30_s
|| (_param_fw_at_man_aux.get() && !_aux_switch_en)
|| _start_flight_mode != _nav_state) {
orb_advert_t mavlink_log_pub = nullptr;