mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 13:04:05 -06:00
resonance_tester: Fixed multi-point resonance testing
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
This commit is contained in:
parent
bf01d6d1f8
commit
165d2fc228
4 changed files with 10 additions and 7 deletions
|
@ -178,7 +178,10 @@ class ResonanceTester:
|
|||
"%s-axis accelerometer measured no data" % (
|
||||
chip_axis,))
|
||||
new_data = helper.process_accelerometer_data(chip_values)
|
||||
data = data.join(new_data) if data else new_data
|
||||
if data is None:
|
||||
data = new_data
|
||||
else:
|
||||
data.add_data(new_data)
|
||||
if csv_output:
|
||||
csv_name = self.save_calibration_data('resonances', name_suffix,
|
||||
helper, axis, data)
|
||||
|
@ -251,7 +254,7 @@ class ResonanceTester:
|
|||
if calibration_data[axis] is None:
|
||||
calibration_data[axis] = new_data
|
||||
else:
|
||||
calibration_data[axis].join(new_data)
|
||||
calibration_data[axis].add_data(new_data)
|
||||
|
||||
configfile = self.printer.lookup_object('configfile')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue