View Single Post
  #2   Spotlight this post!  
Unread 21-01-2008, 08:46
Los Frijoles's Avatar
Los Frijoles Los Frijoles is offline
Stormin' Mormon
AKA: Kevin Cuzner
FRC #2062 (C.O.R.E.)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Waukesha, WI
Posts: 27
Los Frijoles has a spectacular aura aboutLos Frijoles has a spectacular aura about
Send a message via AIM to Los Frijoles
Re: Tracking x y coordinates using GTS

This thread has some gear tooth sensor code posted by one of the mentors of my team.

Using a switch of some sort to set the initial position of the robot, it would be possible to use the sensors to determine the x y position of the robot. There may be some trig involved, but I mostly see a need for extreme usage of the pythagorean theorum. Please remember that the sqaure root function takes a long time to execute on the PIC processor, so use it sparingly.
__________________
Community Of Robotic Engineers 2062





Blender totally pwns 3DS Max...

My life is here and here.

Cuznersoft Hardware and Software Development