toolhead: Report which axes are homed via get_status()

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-11-24 19:16:21 -05:00
parent 282af0220e
commit 3683273936
9 changed files with 28 additions and 24 deletions

View File

@@ -482,11 +482,13 @@ class ToolHead:
status = "Printing"
else:
status = "Ready"
return { 'status': status, 'print_time': print_time,
'estimated_print_time': estimated_print_time,
'extruder': self.extruder.get_name(),
'position': homing.Coord(*self.commanded_pos),
'printing_time': print_time - last_print_start_time }
res = dict(self.kin.get_status(eventtime))
res.update({ 'status': status, 'print_time': print_time,
'estimated_print_time': estimated_print_time,
'extruder': self.extruder.get_name(),
'position': homing.Coord(*self.commanded_pos),
'printing_time': print_time - last_print_start_time })
return res
def _handle_shutdown(self):
self.can_pause = False
self.move_queue.reset()