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 new options on Phidget4AStepper #93

Closed PIERROOOTT closed 7 months ago

PIERROOOTT commented 7 months ago

Currently, limit switches are not implemented for the Phidget4AStepper. It is a problem because limit switches are an important safety feature on a tensile test machine. Also, the motor position is always driven and calculated from its current position. It can be problematic in some situations, and taking a fix absolute position as a reference might be needed.

In this PR, limit switches are implemented (228d347) and can now stop the motor when hit. An absolute mode is also added (3052e75) with the possibility to save the last position of the motor (e32147f) in order to, for example, use it later as a reference position.