Thread: Master Code
View Single Post
  #5   Spotlight this post!  
Unread 05-02-2007, 11:39
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Master Code

Quote:
Originally Posted by Alan Anderson View Post
You're not exactly wrong, but it sounds like you haven't worked with the gyro. In order to get the best results from a gyro-based control routine, the analog value must be sampled with extremely regular timing. Kevin Watson provides a framework for using the gyro which does use interrupts to do the analog conversions in the background.
I have worked with the gyro, but I didn't use Kevin's base gyro code; I created my own. I am having accuracy issues, and it makes sense that it needs to be called very regularly. I'll read over Kevin's code and probably rewrite my gyro stuff today.

Now I know why you'd use interrupts with a gyro. You learn new stuff every day...

JBot
__________________
Aren't signatures a bit outdated?