toolhead: Store both the start and end position in the Move class

Store the start position (in addition to the existing end position) in
the Move class.  The start position can be useful to the kinematic
classes.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2016-10-25 19:11:05 -04:00
parent 306db9a851
commit 6a96e83ea9
3 changed files with 21 additions and 17 deletions

View file

@ -21,7 +21,7 @@ class PrinterExtruder:
self.stepper.motor_enable(move_time, 0)
def check_move(self, move):
if not self.heater.can_extrude:
raise homing.EndstopError(move.pos, "Extrude below minimum temp")
raise homing.EndstopError(move.end_pos, "Extrude below minimum temp")
if (not move.do_calc_junction
and not move.axes_d[0] and not move.axes_d[1]
and not move.axes_d[2]):