View Single Post
  #2   Spotlight this post!  
Unread 05-07-2016, 12:57
ThaddeusMaximus's Avatar
ThaddeusMaximus ThaddeusMaximus is offline
Thaddeus Hughes
FRC #4213 (MetalCow Robotics)
Team Role: College Student
 
Join Date: Jan 2016
Rookie Year: 2012
Location: Shirley, IL
Posts: 72
ThaddeusMaximus is a jewel in the roughThaddeusMaximus is a jewel in the roughThaddeusMaximus is a jewel in the rough
Re: Good way to bring shooter to exact speed?

Quote:
Originally Posted by team-4480 View Post
Hi,

We recently decided to put an encoder on our shooter so that we can stop setting the shooter to a percentage of the battery power to an actual rpm. The problem we have now is how do we exactly program it to go to a certain rpm?

My best guess would be to use a PID loop and then limit the output to not include negative numbers so that the shooter doesn't suddenly change directions. We have tried just writing a linear equation like speed = distanceFromRPM * .01 +.4 but that usually didn't work well and the time it took to reach the desired RPM had a huge variation.

We just want a method that takes very little time to get up to the RPM and is consistent. Any ideas are appreciated and welcomed!
Take-Back-Half (TBH) control.
Reply With Quote