aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-01-08 12:07:45 -0500
committerKevin O'Connor <kevin@koconnor.net>2021-01-08 12:07:45 -0500
commitea85d419dea23cac464763c9b36e1b59c9074588 (patch)
tree5671dd7cf1a2c2ec2a05a87c1f5337e280100185 /klippy/extras
parentc8434ec54b0517503af4aeee9016783d508118b0 (diff)
downloadkutter-ea85d419dea23cac464763c9b36e1b59c9074588.tar.gz
kutter-ea85d419dea23cac464763c9b36e1b59c9074588.tar.xz
kutter-ea85d419dea23cac464763c9b36e1b59c9074588.zip
gcode: Move definition of CommandError and Coord from homing.py to gcode.py
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r--klippy/extras/gcode_move.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/klippy/extras/gcode_move.py b/klippy/extras/gcode_move.py
index 08c926e9..4bdfdf8b 100644
--- a/klippy/extras/gcode_move.py
+++ b/klippy/extras/gcode_move.py
@@ -1,6 +1,6 @@
# G-Code G1 movement commands (and associated coordinate manipulation)
#
-# Copyright (C) 2016-2020 Kevin O'Connor <kevin@koconnor.net>
+# Copyright (C) 2016-2021 Kevin O'Connor <kevin@koconnor.net>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
import logging
@@ -34,6 +34,7 @@ class GCodeMove:
gcode.register_command('G0', self.cmd_G1)
gcode.register_command('M114', self.cmd_M114, True)
gcode.register_command('GET_POSITION', self.cmd_GET_POSITION, True)
+ self.Coord = gcode.Coord
# G-Code coordinate manipulation
self.absolute_coord = self.absolute_extrude = True
self.base_position = [0.0, 0.0, 0.0, 0.0]
@@ -94,9 +95,9 @@ class GCodeMove:
'extrude_factor': self.extrude_factor,
'absolute_coordinates': self.absolute_coord,
'absolute_extrude': self.absolute_extrude,
- 'homing_origin': homing.Coord(*self.homing_position),
- 'position': homing.Coord(*self.last_position),
- 'gcode_position': homing.Coord(*move_position),
+ 'homing_origin': self.Coord(*self.homing_position),
+ 'position': self.Coord(*self.last_position),
+ 'gcode_position': self.Coord(*move_position),
}
def reset_last_position(self):
if self.is_printer_ready: