View Single Post
  #5   Spotlight this post!  
Unread 27-01-2008, 10:27
DarKCroNo's Avatar
DarKCroNo DarKCroNo is offline
Registered User
FRC #2670
 
Join Date: Dec 2007
Location: Toronto
Posts: 37
DarKCroNo is an unknown quantity at this point
Re: Motor control for steering

Quote:
Originally Posted by Don Rotolo View Post
So, let's say a left turn is a 184 reading on your potentiometer: Command the motor to spin in the correct direction until the pot reads 184. Or, take the steering input from a joystick (0 to 255), multiply by 4, and that't the Pot's target value.

It really requires PI or PID control, not hard to implement but really important.

Don
Okay I understand that part, but how do I implement PID onto easyC?, Sorry but it's our rookie year and I've been reading on PID control and all I've been getting are the theory but I don't understand how to code it with easyC