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

Method queue_extended_point_new

src/ext/makerbot_driver/s3g.py:460–482  ·  view source on GitHub ↗

Queue a position with the new style! Moves to a certain position over a given duration with either relative or absolute positioning. Relative vs. Absolute positioning is done on an axis to axis basis. @param list position: A 5 dimentional position in steps specify

(self, position, duration, relative_axes)

Source from the content-addressed store, hash-verified

458 self.writer.send_action_payload(payload)
459
460 def queue_extended_point_new(self, position, duration, relative_axes):
461 """
462 Queue a position with the new style! Moves to a certain position over a given duration
463 with either relative or absolute positioning. Relative vs. Absolute positioning
464 is done on an axis to axis basis.
465
466 @param list position: A 5 dimentional position in steps specifying where each axis should move to
467 @param int duration: The total duration of the move in miliseconds
468 @param list relative_axes: Array of axes whose coordinates should be considered relative
469 """
470 if len(position) != s3g.EXTENDED_POINT_LENGTH:
471 raise makerbot_driver.PointLengthError(len(position))
472
473 payload = struct.pack(
474 '<BiiiiiIB',
475 makerbot_driver.host_action_command_dict[
476 'QUEUE_EXTENDED_POINT_NEW'],
477 position[0], position[1], position[2], position[3], position[4],
478 duration,
479 makerbot_driver.Encoder.encode_axes(relative_axes)
480 )
481
482 self.writer.send_action_payload(payload)
483
484 def store_home_positions(self, axes):
485 """

Callers

nothing calls this directly

Calls 1

send_action_payloadMethod · 0.45

Tested by

no test coverage detected