View Single Post
  #2   Spotlight this post!  
Unread 01-03-2004, 23:21
Anthony Kesich's Avatar
Anthony Kesich Anthony Kesich is offline
Programmer Turned Engineer
AKA: SonKenshin
#1097 (Site 3 Engineernig)
Team Role: Leadership
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Sacramento, CA
Posts: 186
Anthony Kesich has a spectacular aura aboutAnthony Kesich has a spectacular aura about
Send a message via AIM to Anthony Kesich
Re: IR Navigate in Autonomous Mode

Quote:
Originally Posted by bhawkins
Also could someone explain how the included current sensors work and what equation is needed to come up with the number in the program.
Ok, i won't write your autonomous for you, but I will tell you this. The current sensors are used to tell if the bot got stuck up against a wall or not. basically, for that bot, printf statements were used for the current sensors to see where they were when running normally, and what they drew ehen hitting the wall (lets say 550 normal and 750 when up againt a wall because they're stalling out). The cpu then checks to see if the sensors are above 700 and if they are, the cpu then averages out the last ten values to make sure it is consistant and not just a spike. (These sensors will not give a stable reading, believe you me.) So for your bot, just use a print f statement to see the value when the bot drives normally and when you're stalling out the motors. Subtract something like 50 from the stall value and set that as your new current max.

Quote:
Originally Posted by bhawkins
if I upload the tracker file modified to work with our bot the servos follow the beacon but I tried to merge everything into the default code the trackers don't move and the tracks don't move.
what i did was i took kevin's code for ir tracking, made a second copy of all of it and put it in a different folder. I then just cahnged the user_routines.c and such to use our inputs and outputs. It is much easier than trying to take the default code and incorporate all of the interupts and the like. That should work for you.

I hope I've been of some help.

-Kesich
__________________
C is screwing up my English--I'm ending all my sentences in semi-colons;

Horray for most things! -George Carlin

"Sure, I'll play rugby. Besides, I have a lot of experience running from really big guys who want to cream me." -Me, Freshman year