Quote:
|
Originally Posted by CharlieWilken
Question 1
Assuming I want to use the 3 digital inputs on joystick port 4 to get change my angle of shooting to the integers 0, 300 and 400. How would I program this in such a way that it ramps down a little bit when it gets close to its destination so it doesn't overshoot the number due to momentum. I am using a motor and lead screw to change my positions.
|
Search here on ChiefDelphi for "PID Controllers" for discussion and sample code on how to implement an appropriate feedback loop.