View Single Post
  #11   Spotlight this post!  
Unread 13-11-2006, 18:53
Chief Samwize Chief Samwize is offline
Registered User
AKA: Sam
FRC #0051 (Wings of Fire)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Pontiac, MI
Posts: 171
Chief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud ofChief Samwize has much to be proud of
Re: [OCCRA]: Programming

Quote:
Originally Posted by Josh Murphy
Sam be a little bit more specific: It had a start and finish to the code right?
Well I was using EasyC which gives you the variable screen with a start and end block. The commands were on the side so you drag and drop then fill out the motor values and wait times. The code was very basic, I don't have the exact flowchart with me but I believe it was something like...

I/O
Variables
Start
-SetMotor (2, 0)
-SetMotor (3, 255)
-wait (4500)
-SetMotor (2, 0)
-SetMotor (3, 255)
-SetMotor (7, 255) // servo motor
-wait (1000)
-SetMotor (2, 0)
-SetMotor (3, 255)
-SetMotor (7, 255)
-SetMotor (8, 0)
-Wait (2500)
-SetMotor (2, 127)
-SetMotor (3, 127)
-SetMotor (7, 255)
-SetMotor (8, 127)
-wait (1000)
-SetMotor (7, 127)
End

I thought I had remember seeing something after the autonomous block for our FIRST robot but I think autonomous was in it's own block. Was I maybe supposed to create that block. OHHH I'm confused????
Reply With Quote