aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/delta.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/delta.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/delta.py')
-rw-r--r--klippy/delta.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/klippy/delta.py b/klippy/delta.py
index 0f8e48c9..009fb7b6 100644
--- a/klippy/delta.py
+++ b/klippy/delta.py
@@ -50,6 +50,7 @@ class DeltaKinematics:
"Delta max build radius %.2fmm (moves slowed past %.2fmm and %.2fmm)"
% (math.sqrt(self.max_xy2), math.sqrt(self.slow_xy2),
math.sqrt(self.very_slow_xy2)))
+ self.set_position([0., 0., 0.])
def set_max_jerk(self, max_xy_halt_velocity, max_velocity, max_accel):
self.max_velocity = max_velocity
max_z_velocity = self.config.getfloat('max_z_velocity', max_velocity)
@@ -57,10 +58,6 @@ class DeltaKinematics:
self.max_accel = max_accel
for stepper in self.steppers:
stepper.set_max_jerk(max_xy_halt_velocity, max_accel)
- def build_config(self):
- for stepper in self.steppers:
- stepper.build_config()
- self.set_position([0., 0., 0.])
def _cartesian_to_actuator(self, coord):
return [int((math.sqrt(self.arm_length2
- (self.towers[i][0] - coord[0])**2