View Single Post
  #1   Spotlight this post!  
Unread 13-11-2005, 14:52
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Kit item request for 2006

Quote:
Originally Posted by Bill_Hancoc
We thought of doing that and had plans to utilize one and were testing different mice until I realized, if you move the mouse forward it reads a forward movement; if you move the mouse backward it reads a backward movement; unless you have an omni bot which contiunssly has the same NSEW orientation to the field it wont work. ie If you go forward then turn the mouse 90 deg right adn then go forward again the mouse will still register forward movement. It doesnt reconize rotation.
Easy Fix:

Every program loop, use a gyro to measure your angle of rotation relative to the last loop. Take the distance measured by the mouse, and use trig to keep a running total of total distance traveled in each direction. (X, Y)