delta: Don't peak into PrinterRail class from get_calibrate_params()

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-06-22 15:42:20 -04:00
parent d9a32f75fa
commit 74de181e59
1 changed files with 3 additions and 3 deletions

View File

@ -176,9 +176,9 @@ class DeltaKinematics:
for ep, s in zip(self.endstops, steppers)] for ep, s in zip(self.endstops, steppers)]
def get_calibrate_params(self): def get_calibrate_params(self):
return { return {
'endstop_a': self.rails[0].position_endstop, 'endstop_a': self.rails[0].get_homing_info().position_endstop,
'endstop_b': self.rails[1].position_endstop, 'endstop_b': self.rails[1].get_homing_info().position_endstop,
'endstop_c': self.rails[2].position_endstop, 'endstop_c': self.rails[2].get_homing_info().position_endstop,
'angle_a': self.angles[0], 'angle_b': self.angles[1], 'angle_a': self.angles[0], 'angle_b': self.angles[1],
'angle_c': self.angles[2], 'radius': self.radius, 'angle_c': self.angles[2], 'radius': self.radius,
'arm_a': self.arm_lengths[0], 'arm_b': self.arm_lengths[1], 'arm_a': self.arm_lengths[0], 'arm_b': self.arm_lengths[1],