Skip to content

Commit

Permalink
AC_AutoTune_Heli: fix sweep logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bnsgeyer authored Apr 20, 2024
1 parent 2ab14f0 commit 017e316
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/AC_AutoTune/AC_AutoTune_Heli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ void AC_AutoTune_Heli::dwell_test_init(float start_frq, float stop_frq, float fi

cycle_complete_tgt = false;
cycle_complete_mtr = false;

sweep_complete = false;

}

Expand Down Expand Up @@ -959,6 +959,7 @@ void AC_AutoTune_Heli::dwell_test_run(sweep_info &test_data)

if (now - step_start_time_ms >= sweep_time_ms + 200) {
// we have passed the maximum stop time
sweep_complete = true;
step = UPDATE_GAINS;
}
} else {
Expand Down

0 comments on commit 017e316

Please sign in to comment.