Log in

View Full Version : Centering turning


hullingerbr
13-02-2009, 17:56
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
13-02-2009, 18:37
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
14-02-2009, 08:53
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
14-02-2009, 09:45
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.