LaboratoireMecaniqueLille / crappy

Command and Real-time Acquisition Parallelized in Python
https://crappy.readthedocs.io/en/stable/
GNU General Public License v2.0
78 stars 16 forks source link

Add a class attribute to check switches state in the open method #94

Closed PIERROOOTT closed 7 months ago

PIERROOOTT commented 7 months ago

Currently, the state of the switches are always checked in the open method of the Phidget4AStepper to keep the motor to move if a switch has been disconnected or hit. Nevertheless, it could be useful to pass this check if you know already know the a switch has been hit and you want to drive the motor away from the switch.

That's why in this PR, a class attribute has been implemented (6beedcc) in order to choose if you want to perform this check or not.