Skip to content

Thormotion v0.4.2

Latest

Choose a tag to compare

@MillieFD MillieFD released this 05 Nov 17:41
· 6 commits to main since this release
e803149

New functions

New implementation of the APT protocol MOT_GET_STATUSBITS command open the pathway to status-based logic:

  • get_status_bits
  • in_motion_cw (clockwise / forwards)
  • in_motion_ccw (counter-clockwise / backwards)
  • in_motion (any direction)
  • is_homed

The new relative movement functions allow users to increment position with higher precision compared to jog.

  • move_relative
  • move_relative_from_params

Backend Improvements

  • Introduced the thormacros dependency to ensure base functions are synchronous by default, with asynchronous functions named using the _async suffix. Guaranteed synchronous and asynchronous options for every function.
  • Implemented Rust logging for improved debugging. Easy-to-use Python log_to_stout and log_to_file functions planned for future release.

Other Changes

  • get_channel_enable_state (old name) renamed to is_channel_enabled (new name) and returns a simple boolean value.
  • set_channel_enable_state (old name) renamed to set_channel_enabled (new name)