delta: Remove the unnecessary StepList constant
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
4e01ab4ef0
commit
77a2c95b5e
|
@ -6,8 +6,6 @@
|
||||||
import math, logging
|
import math, logging
|
||||||
import stepper, homing, chelper
|
import stepper, homing, chelper
|
||||||
|
|
||||||
StepList = (0, 1, 2)
|
|
||||||
|
|
||||||
# Slow moves once the ratio of tower to XY movement exceeds SLOW_RATIO
|
# Slow moves once the ratio of tower to XY movement exceeds SLOW_RATIO
|
||||||
SLOW_RATIO = 3.
|
SLOW_RATIO = 3.
|
||||||
|
|
||||||
|
@ -96,7 +94,7 @@ class DeltaKinematics:
|
||||||
for rail in self.rails:
|
for rail in self.rails:
|
||||||
rail.set_position(newpos)
|
rail.set_position(newpos)
|
||||||
self.limit_xy2 = -1.
|
self.limit_xy2 = -1.
|
||||||
if tuple(homing_axes) == StepList:
|
if tuple(homing_axes) == (0, 1, 2):
|
||||||
self.need_home = False
|
self.need_home = False
|
||||||
def home(self, homing_state):
|
def home(self, homing_state):
|
||||||
# All axes are homed simultaneously
|
# All axes are homed simultaneously
|
||||||
|
@ -126,8 +124,8 @@ class DeltaKinematics:
|
||||||
rail.motor_enable(print_time, 0)
|
rail.motor_enable(print_time, 0)
|
||||||
self.need_motor_enable = self.need_home = True
|
self.need_motor_enable = self.need_home = True
|
||||||
def _check_motor_enable(self, print_time):
|
def _check_motor_enable(self, print_time):
|
||||||
for i in StepList:
|
for rail in self.rails:
|
||||||
self.rails[i].motor_enable(print_time, 1)
|
rail.motor_enable(print_time, 1)
|
||||||
self.need_motor_enable = False
|
self.need_motor_enable = False
|
||||||
def check_move(self, move):
|
def check_move(self, move):
|
||||||
end_pos = move.end_pos
|
end_pos = move.end_pos
|
||||||
|
|
Loading…
Reference in New Issue