aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r--klippy/toolhead.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index e1a79179..abb4eb5f 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -217,9 +217,6 @@ class ToolHead:
self.max_accel_to_decel = self.requested_accel_to_decel
self.square_corner_velocity = config.getfloat(
'square_corner_velocity', 5., minval=0.)
- self.config_max_velocity = self.max_velocity
- self.config_max_accel = self.max_accel
- self.config_square_corner_velocity = self.square_corner_velocity
self.junction_deviation = 0.
self._calc_junction_deviation()
# Print time tracking
@@ -560,10 +557,9 @@ class ToolHead:
'SQUARE_CORNER_VELOCITY', self.square_corner_velocity, minval=0.)
self.requested_accel_to_decel = gcmd.get_float(
'ACCEL_TO_DECEL', self.requested_accel_to_decel, above=0.)
- self.max_velocity = min(max_velocity, self.config_max_velocity)
- self.max_accel = min(max_accel, self.config_max_accel)
- self.square_corner_velocity = min(square_corner_velocity,
- self.config_square_corner_velocity)
+ self.max_velocity = max_velocity
+ self.max_accel = max_accel
+ self.square_corner_velocity = square_corner_velocity
self._calc_junction_deviation()
msg = ("max_velocity: %.6f\n"
"max_accel: %.6f\n"
@@ -586,7 +582,7 @@ class ToolHead:
% (gcmd.get_commandline(),))
return
accel = min(p, t)
- self.max_accel = min(accel, self.config_max_accel)
+ self.max_accel = accel
self._calc_junction_deviation()
def add_printer_objects(config):