Skip to content

Improve move cancellation #1

@rwb27

Description

@rwb27

Currently, moves >5000 steps are done non-blocking. This is slightly inelegant, because it involves quite a few queries:

  • Disable blocking moves
  • Start the move
  • LOOP
    • Query if we're moving
    • Wait
  • Re-enable blocking moves

There's also jitter that will come from the Python code waiting in between polls.

A much more elegant way would be to add a timeout to wait_until_stopped (would require firmware update) so that we can long-poll it. I'd be pretty confident that this wouldn't affect the timings noticeably, so we could then make moves non-blocking by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions