View Single Post
  #15   Spotlight this post!  
Unread 06-01-2013, 17:36
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,062
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Questions about Encoders and PIDControllers

Quote:
Originally Posted by apples000 View Post
Does the Java implementation of PID multiply the whole loop output by Kp, or does it just multiply the first term?
I couldn't find a link to download the 2013 Java WPILib source, but here's the 2012 C++ WPILib:

m_result = m_P * m_error + m_I * m_totalError + m_D * (m_error - m_prevError);


Reply With Quote