PDA

View Full Version : Centering turning


hullingerbr
02-13-2009, 05:56 PM
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?

Brandon_L
02-13-2009, 06:37 PM
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:

Alan Anderson
02-14-2009, 08:53 AM
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?

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.

airnate
02-14-2009, 09:45 AM
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.