View Single Post
  #3   Spotlight this post!  
Unread 11-03-2007, 21:53
EricS-Team180's Avatar
EricS-Team180 EricS-Team180 is offline
SPAM, the lunchmeat of superheroes!
AKA: Eric Schreffler
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Stuart, Florida
Posts: 561
EricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond repute
Re: Need help with gyro turn

...hmmmm
Why don't you, first, try something a bit easier. Let your value of angle be the error term for your P controller. As long as your camera holds its tracking, you should see your robot turn to align to the camera and the value of angle will drive to 0. 0 error, 0 angle Then keep an eye on the value you are getting from your gyro calculations (I am assuming that by gyro, you mean yaw rate sensor, and you are integrating yaw rate to calculate an angle) There could be error creeping into your gyro calculations that is causing problems with your controller.
__________________

Don't PANIC!
S. P. A. M.