Commit f21472c7 authored by Guillaume Seguin's avatar Guillaume Seguin

Add helpers for abs_pos and current_pos in gcoder

parent 7568efe6
...@@ -169,6 +169,14 @@ class GCode(object): ...@@ -169,6 +169,14 @@ class GCode(object):
return self.current_e - self.offset_e return self.current_e - self.offset_e
abs_e = property(_get_abs_e) abs_e = property(_get_abs_e)
def _get_abs_pos(self):
return (self.abs_x, self.abs_y, self.abs_z)
abs_pos = property(_get_abs_pos)
def _get_current_pos(self):
return (self.current_x, self.current_y, self.current_z)
current_pos = property(_get_current_pos)
def _get_home_pos(self): def _get_home_pos(self):
return (self.home_x, self.home_y, self.home_z) return (self.home_x, self.home_y, self.home_z)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment