View Single Post
  #5   Spotlight this post!  
Unread 22-05-2007, 15:49
tseres's Avatar
tseres tseres is offline
obsessed with FIRST...
FRC #1565 (Think Tank Tech)
Team Role: Leadership
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Cambridge, ON
Posts: 305
tseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of light
Re: Has anyone posted their autonomous code from 2007?

this year we didnt have auto mode, but next year i hope to. so far, unless the competition has absolutely no point in using omni wheel, we want to use them. over the long weekend i was bored and wrote some dead-reckoning omni wheel autonomous code. some of the functions are not included. honestly, i dont even know if this code works.lol

anyways, the not included functions:

blend - inputs 2 numbers, subtracts 127, adds them together, spits out the value

speed - subtracts 127 from the values so 0 becomes neutral instead of 127.

*EDIT*
the robot also uses a gyroscope, and when doing a straight line, should correct itself.

also, the turnLeft and turnRight functions just turn the robot on a pivot point, like tank drive.
Attached Files
File Type: txt autonomous omni functions.txt (2.4 KB, 45 views)
__________________