diff options
author | Dmitry Butyugin <dmbutyugin@google.com> | 2021-01-29 19:21:04 +0100 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2021-03-20 13:24:43 -0400 |
commit | 73a39370ad98dad866d80ee0e67808f4ca137875 (patch) | |
tree | aaf3784683a2441fc29cd64badec754cfbafd107 /scripts/calibrate_shaper.py | |
parent | 8c369b54aba2bf064dbe6fa67860fecf1415be43 (diff) | |
download | kutter-73a39370ad98dad866d80ee0e67808f4ca137875.tar.gz kutter-73a39370ad98dad866d80ee0e67808f4ca137875.tar.xz kutter-73a39370ad98dad866d80ee0e67808f4ca137875.zip |
shaper_calibrate: Estimate max_accel to avoid excessive smoothing
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
Diffstat (limited to 'scripts/calibrate_shaper.py')
-rwxr-xr-x | scripts/calibrate_shaper.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/calibrate_shaper.py b/scripts/calibrate_shaper.py index ad5c1dfd..74e34c94 100755 --- a/scripts/calibrate_shaper.py +++ b/scripts/calibrate_shaper.py @@ -100,9 +100,10 @@ def plot_freq_response(lognames, calibration_data, shapers, ax2.set_ylabel('Shaper vibration reduction (ratio)') best_shaper_vals = None for shaper in shapers: - label = "%s (%.1f Hz, vibr=%.1f%%, sm~=%.2f)" % ( + label = "%s (%.1f Hz, vibr=%.1f%%, sm~=%.2f, accel<=%.f)" % ( shaper.name.upper(), shaper.freq, - shaper.vibrs * 100., shaper.smoothing) + shaper.vibrs * 100., shaper.smoothing, + round(shaper.max_accel / 100.) * 100.) linestyle = 'dotted' if shaper.name == selected_shaper: linestyle = 'dashdot' |