|
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
|