MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / load_position

Method load_position

src/ext/makerbot_driver/Gcode/Parser.py:386–395  ·  view source on GitHub ↗

Loads the home positions for the XYZ axes from the eeprom

(self, codes, flags, comment)

Source from the content-addressed store, hash-verified

384 self.s3g.set_platform_temperature(self.state.values['last_platform_index'], codes['S'])
385
386 def load_position(self, codes, flags, comment):
387 """Loads the home positions for the XYZ axes from the eeprom
388 """
389 axes = makerbot_driver.Gcode.parse_out_axes(flags)
390 try:
391 self.s3g.recall_home_positions(axes)
392 except Exception:
393 raise
394 else:
395 self.state.lose_position(axes)
396
397 def change_tool(self, codes, flags, comments):
398 """Sends a chagne tool command to the machine.

Callers

nothing calls this directly

Calls 2

recall_home_positionsMethod · 0.80
lose_positionMethod · 0.45

Tested by

no test coverage detected