Centering turning

Hello. I was wondering if it was possible to make it so that when you let go of the joystick, the motor returns to a pre-set position. Any help?

Joystick: Get axis then if whatever axis=0 set motor to your speed. If you can’t get it from that I could make an example.

EDIT: I don’t have a robot or a cRIO in front of me so this would be pretty vauge but this is the idea:

untitled.JPG


untitled.JPG

That’s too large a topic to answer quickly in a forum like this. Do a web search (or even just a Chief Delphi search) for “position PID”. You’ll need an absolute position sensor on whatever your motor is controlling; quadrature encoders alone won’t be enough.

We use potentiometers attached to the steering axis to give us feedback on the current steering angle. From this we can actuate the motors to steer to a specific angle.