View Single Post
  #2   Spotlight this post!  
Unread 04-02-2015, 23:59
mmaunu's Avatar
mmaunu mmaunu is offline
Registered User
FRC #2485 (W.A.R. Lords)
Team Role: Mentor
 
Join Date: Mar 2013
Rookie Year: 2010
Location: San Diego, CA
Posts: 87
mmaunu is a jewel in the roughmmaunu is a jewel in the roughmmaunu is a jewel in the roughmmaunu is a jewel in the rough
Re: PID Controller class not calculating output value

Hello!

Without looking at the actual code, I am going to make a guess...but could you post the code in question? I am assuming that you are using a PIDController object.

Did you enable the PIDController object? The API has an enable method and a disable method so that you can turn the controller on and off. It is not enabled by default. When the operator lets go of the button, enable the controller; disable it when the button gets pressed so that the lift can move to a new position. Or, alternatively, you can have another button that sets a predetermined setpoint so that this new button starts automatically taking the lift to a new position.
__________________
2014 Las Vegas (Winners with 987, 2478; Excellence in Engineering)
2014 San Diego (Finalists with 987, 3250; Quality Award)
2013 Inland Empire (Winners with 1538, 968; Excellence in Engineering Award)
2013 San Diego (Finalists with 2984, 4322; Creativity Award)
2012 Las Vegas (Finalists with 2034, 3187; Quality Award)
Reply With Quote