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

Method gcode

lab/fullcontrol/multiaxis/gcode/XYZB/printer.py:21–30  ·  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

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

Callers

nothing calls this directly

Calls 1

update_fromMethod · 0.80

Tested by

no test coverage detected