mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-02-08 01:01:06 -07:00
resonance_tester: Support testing resonances over Z axis
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
This commit is contained in:
parent
caf7accf2d
commit
ec82cee7fc
3 changed files with 117 additions and 36 deletions
|
|
@ -77,6 +77,9 @@ def calibrate_shaper(datas, csv_output, *, shapers, damping_ratio, scv,
|
|||
|
||||
def plot_freq_response(lognames, calibration_data, shapers,
|
||||
selected_shaper, max_freq):
|
||||
max_freq_bin = calibration_data.freq_bins.max()
|
||||
if max_freq > max_freq_bin:
|
||||
max_freq = max_freq_bin
|
||||
freqs = calibration_data.freq_bins
|
||||
psd = calibration_data.psd_sum[freqs <= max_freq]
|
||||
px = calibration_data.psd_x[freqs <= max_freq]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue