diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-04-25 14:49:50 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-04-25 14:49:50 -0400 |
commit | ced389f4f635ed362eccbddba19e4e54dd96e7d6 (patch) | |
tree | 95d62162ce680b311001eabf17fc99f7c36295e0 | |
parent | 17123889f698e2339049bd18e7ece01b9c53e892 (diff) | |
download | kutter-ced389f4f635ed362eccbddba19e4e54dd96e7d6.tar.gz kutter-ced389f4f635ed362eccbddba19e4e54dd96e7d6.tar.xz kutter-ced389f4f635ed362eccbddba19e4e54dd96e7d6.zip |
pid_calibrate: Fix module import
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/extras/pid_calibrate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/pid_calibrate.py b/klippy/extras/pid_calibrate.py index b5dbc773..c7a73195 100644 --- a/klippy/extras/pid_calibrate.py +++ b/klippy/extras/pid_calibrate.py @@ -4,7 +4,7 @@ # # This file may be distributed under the terms of the GNU GPLv3 license. import math, logging -import heater +import heaters class PIDCalibrate: def __init__(self, config): @@ -120,7 +120,7 @@ class ControlAutoTune: # Use Ziegler-Nichols method to generate PID parameters Ti = 0.5 * Tu Td = 0.125 * Tu - Kp = 0.6 * Ku * heater.PID_PARAM_BASE + Kp = 0.6 * Ku * heaters.PID_PARAM_BASE Ki = Kp / Ti Kd = Kp * Td logging.info("Autotune: raw=%f/%f Ku=%f Tu=%f Kp=%f Ki=%f Kd=%f", |