View Single Post
  #14   Spotlight this post!  
Unread 24-02-2003, 21:27
Duke 13370's Avatar
Duke 13370 Duke 13370 is offline
C is for cookie...
#0862 (Team Lightning)
Team Role: Webmaster
 
Join Date: Jan 2003
Location: Plymouth, MI
Posts: 215
Duke 13370 will become famous soon enough
Send a message via AIM to Duke 13370
Quote:
Dead reckoning is where the program tells the bot to go forward for X number of program cycles, then turn, then go forward again, then turn, then accelerate up the ramp and into the boxes
I don't know what you're talking about, but that would be a useless deadreckoning mode. the robot can travel in a curve much easier than in a rectangle. set one POT before the match and have it relate that number to a constant on one of the wheels. the code may look something like: (this is psuedo-code)

if (POT > 127)
right motor = POT + 127
left motor = 127
else
left motor = 393 - POT
right motor = 127
end if

or something like that. Just throw in the gyro, and test if it's going up and step on it.
__________________
---Lightning Robotics!---

Last edited by Duke 13370 : 24-02-2003 at 23:59.