mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Convert doxygen to rst for GcodeReader, GcodeGzReader/Writer,
GCodeProfileReader
This commit is contained in:
parent
6ca9b4678e
commit
40327c4259
5 changed files with 98 additions and 64 deletions
|
@ -3,8 +3,10 @@
|
|||
|
||||
from . import FlavorParser
|
||||
|
||||
## This parser is intended to interpret the RepRap Firmware g-code flavor.
|
||||
|
||||
class RepRapFlavorParser(FlavorParser.FlavorParser):
|
||||
"""This parser is intended to interpret the RepRap Firmware g-code flavor."""
|
||||
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
|
@ -17,16 +19,20 @@ class RepRapFlavorParser(FlavorParser.FlavorParser):
|
|||
# Set relative extrusion mode
|
||||
self._is_absolute_extrusion = False
|
||||
|
||||
## Set the absolute positioning
|
||||
# RepRapFlavor code G90 sets position of X, Y, Z to absolute
|
||||
# For absolute E, M82 is used
|
||||
def _gCode90(self, position, params, path):
|
||||
"""Set the absolute positioning
|
||||
|
||||
RepRapFlavor code G90 sets position of X, Y, Z to absolute
|
||||
For absolute E, M82 is used
|
||||
"""
|
||||
self._is_absolute_positioning = True
|
||||
return position
|
||||
|
||||
## Set the relative positioning
|
||||
# RepRapFlavor code G91 sets position of X, Y, Z to relative
|
||||
# For relative E, M83 is used
|
||||
def _gCode91(self, position, params, path):
|
||||
"""Set the relative positioning
|
||||
|
||||
RepRapFlavor code G91 sets position of X, Y, Z to relative
|
||||
For relative E, M83 is used
|
||||
"""
|
||||
self._is_absolute_positioning = False
|
||||
return position
|
Loading…
Add table
Add a link
Reference in a new issue