View Single Post
  #5   Spotlight this post!  
Unread 16-03-2005, 13:51
Meandmyself's Avatar
Meandmyself Meandmyself is offline
Registered Magic Programming User
AKA: Gordon
#1123 (AIM robotics Crimson Lightning)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: springfield, VA
Posts: 26
Meandmyself will become famous soon enough
Re: Ask about intergration

Quote:
Originally Posted by Biff
As I understand what's going on in Keven's code it's like this. The process takes over the A/D, and at regular (that's the key) intervals reads the gyro chip and adds or subtracts from an accumulator. From there you can get heading. This may be a large over simplification and is a I understand the process, Kevin really has the skinny on how it works. I suggest you read his read me, notes on the process.
it's not really an oversimplification, it's actually one of the best approximations you can get. He does a midpoint approximation of the actual integral by averaging the current and last values, then multiplying by the change in time and adding it to the accumulator. You learn to do this in any basic calculus class.
__________________
They call me the Idea man.
Not because my ideas work,
But because I have ideas...


I'm not a programmer. I'm an electrical guy who can program. If only I understood C!

www.aim-robotics.org //team website
www.tjhsst.edu/~gburgett //cool stuff for school