Skip to content

Commit

Permalink
AC_AutoTune_Heli: fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
bnsgeyer authored Dec 1, 2024
1 parent b264606 commit 1d93fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AC_AutoTune/AC_AutoTune_Heli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ void AC_AutoTune_Heli::dwell_test_run(sweep_info &test_data)

if (settle_time == 0) {
float tgt_att_limited = tgt_attitude;
if (is_positive(dwell_freq) {
if (is_positive(dwell_freq)) {
float ang_limit_rate = radians(rate_max) / dwell_freq;
float ang_limit_accel = radians(accel_max) / sq(dwell_freq);
tgt_att_limited = min(tgt_attitude, ang_limit_rate, ang_limit_accel);
Expand Down

0 comments on commit 1d93fc1

Please sign in to comment.