aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-03-12 22:43:05 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-03-13 00:38:17 -0400
commitd21b9280f029f1c65d3dac9310eb00090dd8c531 (patch)
treecc3b34c2ecc0b277470dfe567a40b144cb7c3174 /klippy/toolhead.py
parent92649332ce1f4ad7445f5e97ee6d24c79eccece9 (diff)
downloadkutter-d21b9280f029f1c65d3dac9310eb00090dd8c531.tar.gz
kutter-d21b9280f029f1c65d3dac9310eb00090dd8c531.tar.xz
kutter-d21b9280f029f1c65d3dac9310eb00090dd8c531.zip
klippy: Eliminate high-level build_config phase
Now that the mcu objects can be created prior to connecting to the mcu, it is no longer necessary to separate the init and build_config phases in the high-level code. Move the mcu objection creation from the build_config phase to the init phase and eliminate the build_config phase. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r--klippy/toolhead.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index acc0658d..edd24bc3 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -210,13 +210,11 @@ class ToolHead:
self.motor_off_time = config.getfloat('motor_off_time', 60.000)
self.motor_off_timer = self.reactor.register_timer(
self._motor_off_handler)
- def build_config(self):
# Determine the maximum velocity a cartesian axis could have
# before cornering. The 8. was determined experimentally.
xy_halt = math.sqrt(8. * self.junction_deviation * self.max_accel)
self.kin.set_max_jerk(xy_halt, self.max_speed, self.max_accel)
self.extruder.set_max_jerk(xy_halt, self.max_speed, self.max_accel)
- self.kin.build_config()
# Print time tracking
def update_move_time(self, movetime):
self.print_time += movetime