View Single Post
  #1   Spotlight this post!  
Unread 26-12-2012, 12:32
Michael_Lee Michael_Lee is offline
Registered User
FRC #2976
 
Join Date: Jan 2012
Location: Issaquah, WA
Posts: 21
Michael_Lee is an unknown quantity at this point
Questions about Encoders and PIDControllers

I'm attempting to implement a PID loop using Encoders and Jaguars by using the PIDController class. We've set up the Encoders to report the rate when PIDGet(); is called. (We currently don't have CAN set up, so that's not an option).

What units should the reported rate be in? Should they be calibrated using 'SetDistancePerPulse()' so they return a range from -1.0 to 1.0 (the same range the Jaguars use)? Or should I not calibrate them at all and leave the encoders alone?

If I use 'SetSetpoint(1.0)', does that mean the PIDController class will try and output some number to the Jaguars so that the encoders eventually report '1.0'?
Reply With Quote