Skip to content

Motor.run_to_position(blocking=False) does not check that no other calls are currently in progress #175

@Zaspire

Description

@Zaspire

Motor.run_to_position(blocking=False) starts new thread for each call.
Multiple calls with with in short time interval will result in multiple simultaneous calls to Device.get(), which blocks on Device._instance.portcond[self.port].wait()
BuildHAT.loop will wake threads in random order.

It will be better, if each new call cancels all outstanding requests

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions