1234567891011121314151617181920212223242526272829303132 |
- from . import FlavorParser
- class RepRapFlavorParser(FlavorParser.FlavorParser):
- def __init__(self):
- super().__init__()
- def processMCode(self, M, line, position, path):
- if M == 82:
-
- self._is_absolute_extrusion = True
- elif M == 83:
-
- self._is_absolute_extrusion = False
-
-
-
- def _gCode90(self, position, params, path):
- self._is_absolute_positioning = True
- return position
-
-
-
- def _gCode91(self, position, params, path):
- self._is_absolute_positioning = False
- return position
|