Go to Post When you come down to it, FIRST is about people inspiring other people; STEM and the robots are just the subject matter. - RyanCahoon [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 02-04-2016, 02:59 PM
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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:25 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi