View Single Post
  #1   Spotlight this post!  
Unread 18-01-2008, 22:13
Spartan151's Avatar
Spartan151 Spartan151 is offline
TCU Bound (Class of 2013)
AKA: Sean
FRC #2920
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Holly Springs, MS
Posts: 86
Spartan151 will become famous soon enough
A New Programmer

Hi. I'm Sean, current leader of team 2065. We have no real programming abilities as of yet. However, after printing off a guide I found here, I have a somewhat decent understanding of how to write it....I think.
I wrote a test code based off of what was on the 12-page manual, and I would like someone who has some programming experience to take a look at it and comment on it. I need to know what I'm doing right and wrong.
The program I have written is a code for autonomous mode. The actions encompass the following:

drive forward for 3 seconds
turn left for half a second
drive foward for one and a half seconds
turn left again for half a second
drive forward for three seconds
turn left for half a second
drive forward for one second
stop until the remaining time is up.

Please, comments are greatly appreciated.

Note: I deliberately left it as a .txt file for easy access.
Attached Files
File Type: txt autonomous loop code first version.txt (1,005 Bytes, 248 views)