View Single Post
  #2   Spotlight this post!  
Unread 27-02-2014, 14:48
bartv bartv is offline
Registered User
FRC #4946
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Toronto
Posts: 4
bartv is an unknown quantity at this point
Re: Issues with arm PID

Hi,

You have a very small kP value, likely just enough to move the arm when gravity helps (hence the observed motion on the way down). You also don't have an integral. The integral term is used to increase the effort the longer a position error exists.

I.e., lets say you start with the poteniometer at 0v -> an error of 3v. The controller will apply 3*.07 = .21% - > 2.1v at the talon. What would move the arm? If 2.1v is not enough, it will never move. If you had an integral, it would start adding more power the longer the error existed. The kD term is only useful for sudden changes (derivate) in position, which you are not getting at the moment (plus you zeroed it).

Try increasing the kP variable, and adding an integral. Have you looked at the PID class provided?

Cheers,
Bart

Last edited by bartv : 27-02-2014 at 14:55.