Lines 28 and 35 are curly braces, which tells ROBOTC where the code starts (line 28, with the ’, which tells ROBOTC to turn off the motors and stop the program. A line of code including all the appropriate words. Line 27 contains the ‘task main()’ declaration that is needed in every ROBOTC program this tells ROBOTC where to start ‘reading’ code.ĥ. Which one of these representations of Task Main will work in ROBOTC. Add tones and sounds to your program code, and from the sound determine. Note that the // can be used to comment a single line of text, allowing comments to be placed right next to other lines of code.Ĥ. Using RobotC Debug Stream to debug programming for the LEGO MINDSTORMS NXT. This helps readability and allows others to understand the code, even if they were not the original authors of the program. 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).Ģ. TheBakedPotato wrote: " If the frogs can do it why can’t I " posted to Write a Funny Caption For This Photo.ġ.Just a little bit closer " posted to Write a Funny Caption For This Photo.
sopid dog food wrote: " ha i got hooman food!! " posted to Write a Funny Caption For This Photo.ye wrote: " yummy rolled up pancake gobble " posted to Write a Funny Caption For This Photo." posted to Write a Funny Caption For This Photo. Corgi-must-find-something-to-get-pancake. Whammy_The_Minecrafter wrote: " Must-have-pancake.funny momes wrote: " I NEED PANCAKES " posted to Write a Funny Caption For This Photo.h wrote: " Closer.Closer " posted to Write a Funny Caption For This Photo.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.