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)