Skip to content

Commit

Permalink
AC_AutoTune_Heli: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bnsgeyer authored Dec 1, 2024
1 parent 97673b0 commit bc4ea6c
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 @@ -816,7 +816,7 @@ void AC_AutoTune_Heli::dwell_test_run(sweep_info &test_data)
float ang_limit_rate = radians(rate_max) / dwell_freq;
float ang_limit_accel = radians(accel_max) / sq(dwell_freq);
float tgt_att_temp = MIN(ang_limit_rate, tgt_attitude);
tgt_att_limited = MIN(ang_limit_rate, tgt_att_trmp);
tgt_att_limited = MIN(ang_limit_rate, tgt_att_temp);
}
target_angle_cd = -chirp_input.update((now - dwell_start_time_ms) * 0.001, degrees(tgt_att_limited) * 100.0f);
dwell_freq = chirp_input.get_frequency_rads();
Expand Down

0 comments on commit bc4ea6c

Please sign in to comment.