View Single Post
  #2   Spotlight this post!  
Unread 05-02-2005, 01:02
probizzle's Avatar
probizzle probizzle is offline
Registered User
AKA: Prabhas Pokharel
#0639 (Code Red)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Ithaca
Posts: 78
probizzle will become famous soon enoughprobizzle will become famous soon enough
Send a message via AIM to probizzle
Re: Absolute Positioning System Help

I've worked with a similar positioning system.
I haven't worked in a situation where a robot arcs, but I have an idea about how you might approach the problem. If you think about it, in 26.2 ms, your robot won't really make that much of an arc. In that time frame, you can assume that your robot has moved in a straight path.

If you take the initial heading (angle) of your robot and the final heading of the robot (before/after 26.2 ms), and take an average, you should get the approximate heading of what the robot is traveling on. I'm not quite sure, but I have a suspicion that this will (along with all the other trig i'm sure you'll figure out) generate pretty accurate results about how much x and y distance you have covered.

And of course, there are better ways to "average" the heading of the robot, by sampling the gyro many times (interrupt) and taking a more significant average.
__________________
Code Red Team 639 Winners of the 2005 FingerLakes Regional with 191 and 494.
--
http://pset.deu83.com << my baby
http://www.setgame.com/set/ << it's mother