From 73a39370ad98dad866d80ee0e67808f4ca137875 Mon Sep 17 00:00:00 2001 From: Dmitry Butyugin Date: Fri, 29 Jan 2021 19:21:04 +0100 Subject: shaper_calibrate: Estimate max_accel to avoid excessive smoothing Signed-off-by: Dmitry Butyugin --- scripts/calibrate_shaper.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/calibrate_shaper.py') 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' -- cgit v1.2.3-70-g09d2