aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-05-28 17:40:19 -0400
committerKevinOConnor <kevin@koconnor.net>2019-06-04 09:50:30 -0400
commit6e88320d625ae80e4b4b87c75ba5540b9f4da146 (patch)
treefce73b92bdc90b1eb55c0da3f21a72ee7f1d0ba9 /klippy/toolhead.py
parent4ccc218b065897ab4d0e5eebe6a5a92e1a3af28d (diff)
downloadkutter-6e88320d625ae80e4b4b87c75ba5540b9f4da146.tar.gz
kutter-6e88320d625ae80e4b4b87c75ba5540b9f4da146.tar.xz
kutter-6e88320d625ae80e4b4b87c75ba5540b9f4da146.zip
gcode: "gcode_position" and toolhead "position" as get_status() named tuple
Add "gcode_position" named tuple to gcode.get_status(). Add a "position" named tuple to toolhead.get_status(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r--klippy/toolhead.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index b7413fb1..713b0009 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -417,6 +417,7 @@ class ToolHead:
status = "Ready"
return { 'status': status, 'print_time': print_time,
'estimated_print_time': estimated_print_time,
+ 'position': homing.Coord(*self.commanded_pos),
'printing_time': print_time - last_print_start_time }
def _handle_request_restart(self, print_time):
self.motor_off()