View Single Post
  #12   Spotlight this post!  
Unread 27-02-2014, 14:52
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Issues with arm PID

Is sending 0.2 to the motor enough to raise it? Your Kp constant doesn't look nearly large enough to control an arm against gravity, and I don't see an I term to overcome the steady-state error you'll have.

Start by increasing Kp until it oscillates, then dial it back just enough to stop the oscillations. If that doesn't keep the arm where you want it to be, consider adding I to what's now just a P controller.