MCPcopy Create free account
hub / github.com/FullControlXYZ/fullcontrol / gcode

Method gcode

lab/fullcontrol/multiaxis/gcode/XYZBC/printer.py:19–27  ·  view source on GitHub ↗

process this instance in a list of steps supplied by the designer to generate and return a line of gcode

(self, state)

Source from the content-addressed store, hash-verified

17 return ''
18
19 def gcode(self, state):
20 'process this instance in a list of steps supplied by the designer to generate and return a line of gcode'
21 # update all attributes of the tracking instance with the new instance (self)
22 state.printer.update_from(self)
23 if self.print_speed != None \
24 or self.travel_speed != None:
25 state.printer.speed_changed = True
26 if self.new_command != None:
27 state.printer.command_list = {**state.printer.command_list, **self.new_command}

Callers

nothing calls this directly

Calls 1

update_fromMethod · 0.80

Tested by

no test coverage detected