View Single Post
  #9   Spotlight this post!  
Unread 30-01-2006, 09:53
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: gyro and shooting angle

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.