Thread: PID setSetPoint
View Single Post
  #5   Spotlight this post!  
Unread 04-02-2016, 14:59
Sparx030 Sparx030 is offline
Registered User
FRC #1251
 
Join Date: Jan 2016
Location: Florida
Posts: 14
Sparx030 is an unknown quantity at this point
Re: PID setSetPoint

Quote:
Originally Posted by aeastet View Post
Your set point should be 1000 as long as the input to the PID is in RPM and the process values is in RPM. If the input to the system is pulses then you are going to read pulses on the process variable and change the motor output.

You have two options here:

One: figure out how many pules it takes to get to 1000RPM and have that be your input. I your case 120 (counts in one revolution) * 1000 RPM = 120,000 pluses. This way you could read pulses into your PID and it would adjust. In this case 120,000 would be your input to the setpoint.

Two: convert pulses to RPM and feed this into your PID loop. I this case you you have the set point of 1000 and you would read RPM.

Either way will work.
Thank you for the help, hopefully things will go well when I get a chance to test this.
Reply With Quote