neurogears / vestibular-vr

Closed-loop VR setup for Rancz Lab
2 stars 0 forks source link

Add platform homing functionality #52

Closed RoboDoig closed 2 months ago

RoboDoig commented 2 months ago

This PR addresses #47 and implements a homing procedure using the hall effect sensor.

Homing can be done manually prior to the start of the block logic with a key trigger. Also added are keys for stepping the motor clockwise and counter-clockwise.

Also set the homing procedure to run at the start of each block. At the start of each block, any closed-loop feedback is disabled and the platform is rotated until it reaches the home position. Then closed-loop feedback is re initiated.