aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorDmitry Butyugin <dmbutyugin@google.com>2021-01-29 20:55:31 +0100
committerKevinOConnor <kevin@koconnor.net>2021-02-02 14:13:24 -0500
commitd136b1e41a1e2a5dc7b5c3e5c6a329424b3020aa (patch)
treecdc9988856a9c714e8f1c09109b0417bc38b6019 /klippy
parenta8b282d67a085714b3dab02fbc6afacd7351ae29 (diff)
downloadkutter-d136b1e41a1e2a5dc7b5c3e5c6a329424b3020aa.tar.gz
kutter-d136b1e41a1e2a5dc7b5c3e5c6a329424b3020aa.tar.xz
kutter-d136b1e41a1e2a5dc7b5c3e5c6a329424b3020aa.zip
resonance_tester: Increase test max_accel to 10K and max_freq to 133 Hz
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/resonance_tester.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/klippy/extras/resonance_tester.py b/klippy/extras/resonance_tester.py
index f4b0fa76..df557f93 100644
--- a/klippy/extras/resonance_tester.py
+++ b/klippy/extras/resonance_tester.py
@@ -20,9 +20,10 @@ class VibrationPulseTest:
printer = config.get_printer()
self.gcode = printer.lookup_object('gcode')
self.min_freq = config.getfloat('min_freq', 5., minval=1.)
- self.max_freq = config.getfloat('max_freq', 120.,
+ # Defaults are such that max_freq * accel_per_hz == 10000 (max_accel)
+ self.max_freq = config.getfloat('max_freq', 10000. / 75.,
minval=self.min_freq, maxval=200.)
- self.accel_per_hz = config.getfloat('accel_per_hz', 75.0, above=0.)
+ self.accel_per_hz = config.getfloat('accel_per_hz', 75., above=0.)
self.hz_per_sec = config.getfloat('hz_per_sec', 1.,
minval=0.1, maxval=2.)