Skip to content

Commit

Permalink
Copter: Autotune: Squash with small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lthall committed Feb 20, 2024
1 parent c9bbd67 commit 3442c77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AC_AutoTune/AC_AutoTune_Multi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ void AC_AutoTune_Multi::twitching_test_rate(float angle, float rate, float rate_
meas_angle_min = angle;
}

// calculate early stopping time based on the time it takes to get to 75%
// calculate early stopping time based on the time it takes to get to 63.21%
if (meas_rate_max < rate_target_max * 0.6321) {
// the measurement not reached the 63.21% threshold yet
step_time_limit_ms = (now - step_start_time_ms) * 3;
Expand Down Expand Up @@ -600,7 +600,7 @@ void AC_AutoTune_Multi::twitching_test_angle(float angle, float rate, float angl
meas_rate_min = rate;
}

// calculate early stopping time based on the time it takes to get to 75%
// calculate early stopping time based on the time it takes to get to 63.21%
if (meas_angle_max < angle_target_max * 0.6321) {
// the measurement not reached the 63.21% threshold yet
step_time_limit_ms = (now - step_start_time_ms) * 3;
Expand Down

0 comments on commit 3442c77

Please sign in to comment.