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????
