View Single Post
  #2   Spotlight this post!  
Unread 16-03-2013, 16:05
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Control Shooter RPM with a Counter

I'll take a shot on answering your question, but I have two of my own first.

I'm not sure why you using an inplace element structure, the yellow box. That is a very advanced structure and isn't really used very often. You are publishing the RPM as a single element array of numbers. I'm curious why you did these things?

To control the speed, I'd compare the sensor speed to the set point speed. If the measured speed is greater or equal to the set point, let the motor coast by selecting zero for the speed and ensure that the motor controller jumper is set to coast and not brake. If the measure speed is less than the set point, set it to a value that will accelerate the wheel -- such as 1.0 or -1.0. If you want to search and read for more, this is referred to as bang-bang control since the motor control is accomplished with just two value responses.

Greg McKaskle
Reply With Quote