
If a message or String variable exceeds 19 characters in length then a warning is displayed on compilation of the program- “String “…” exceeds 19 chars” and on running the program only the first 19 characters will be displayed. Note:- A message must be at most 19 characters long in ROBOTC.
HOW TO USE ROBOTC HOW TO
An example code showing how to write variables and messages to Debug Stream is shown here. The writeDebugStream function writes a string, passed as an argument to the function, to the debug stream while the writeDebugStreamLine function writes the string to the debug stream and then goes to a new line. Now use the predefined ROBOTC functions- writeDebugStream() and writeDebugStreamLine() in your program to print out a message or the current value of a variable, in the debug stream window. These functionalities will be grayed-out initially, and are available once you run a program. You will now be able to see the Debug Stream functionality under Debugger Windows.
HOW TO USE ROBOTC WINDOWS
You will now find that the number of options under the Robot menu and the functionalities available in Debugger Windows have increased. To change the Basic user level in your ROBOTC– Click on the Window menu and under the Menu Level option, select the Super User functionality. This page shows how to use the Debug Stream in ROBOTC. The Debug Stream is the most useful option out of the three and is not available to the Basic user, but is available to the Expert and Super users.

If no degree is specified, then motor will Optional Parameters such as degrees and power level. The "stop" or "until" functions to stop the robot.įunctions are used within a loop and are then followed by some other action.Ĭertain distance in inches has been travelledĪccessoryUp (20,55) accessoryDown (20,55) The level of power for the global variable called " powerLevel" The RobotC Functions for the Fall 2015 season For an explanation of common error messages, click here. If you end up with an error message when you press the F5 or F7 key, read the message to try to understand what it is telling you.
HOW TO USE ROBOTC DOWNLOAD
If you wish to download the Library2015.c file, right click on the following link and choose to save it to your computer: download here. If you are curious about what the Library2015.c "include" file looks like, click here.

This is why each of the examples at the bottom of this page include a reference to "#include Library2015.c". The Natural Language statements below are interpreted (compiled) by RobotC through the use of a library of functions stored in a single "include" file. For some statements, a parameter (such as distance, power level, degrees, or side) is required which gives further instructions to the robot.

All Natural Language statements below require a set of parentheses followed by a semi-colon. The Natural Language used here is an extension of the RobotC language. Our goal when developing pseudocode will be to identify and organize the simple behaviors a robot needs to complete its mission. It lets you address the important details of your program without having to worry about the less relevant parts getting in your way. Natural Language is a sort of halfway language between English and computer code. RobotC The Natural Language for the Fall 2015 season is as follows: A Non-Functioning EV3 (i.e., frozen or dead).
