Lines 3 to 26 are comments and are simply notes that the programmer can use to let others know what each line or segment of code does.
We can then use these names in the program to tell ROBOTC which motor we want to control.ģ. The first two lines tell ROBOTC that there are motors plugged into motor ports 2 and 3 on the Cortex, and it gives the motor on port 2 the name of ‘rightMotor’, and the motor on port 3 the name of ‘leftMotor’. ROBOTC programs are read by the compiler from the top to the bottom, left to right (just like reading a book).Ģ.
YourAverageOrdinaryEverydayBoyScout wrote: " If only my snout were smaller so I could see where my tongue is.LegomyDoggo wrote: " And to think I never thought of switching off dog food! " posted to Write a Funny Caption For This Photo.blue angel wrote: " Why did mom put it so high? " posted to Write a Funny Caption For This Photo.