mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-18 04:08:04 -06:00
resonance_tester: Apply input shaper params on SHAPER_CALIBRATE
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
This commit is contained in:
parent
16c53992d6
commit
624d360a34
4 changed files with 23 additions and 1 deletions
|
@ -287,6 +287,8 @@ class ResonanceTester:
|
|||
if not self.is_valid_name_suffix(name_suffix):
|
||||
raise gcmd.error("Invalid NAME parameter")
|
||||
|
||||
input_shaper = self.printer.lookup_object('input_shaper', None)
|
||||
|
||||
# Setup shaper calibration
|
||||
helper = shaper_calibrate.ShaperCalibrate(self.printer)
|
||||
|
||||
|
@ -306,6 +308,9 @@ class ResonanceTester:
|
|||
"Recommended shaper_type_%s = %s, shaper_freq_%s = %.1f Hz"
|
||||
% (axis_name, best_shaper.name,
|
||||
axis_name, best_shaper.freq))
|
||||
if input_shaper is not None:
|
||||
helper.apply_params(input_shaper, axis_name,
|
||||
best_shaper.name, best_shaper.freq)
|
||||
helper.save_params(configfile, axis_name,
|
||||
best_shaper.name, best_shaper.freq)
|
||||
csv_name = self.save_calibration_data(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue