Tutorials/Getting Started
(→Activate by Web) |
|||
| Line 176: | Line 176: | ||
Open the "Robot" menu in ROBOTC and hover your cursor over the "Platform Type" menu option. This will open up the platform select menu. Select the platform you wish you use with ROBOTC. You can change the platform type at any time.<br /> | Open the "Robot" menu in ROBOTC and hover your cursor over the "Platform Type" menu option. This will open up the platform select menu. Select the platform you wish you use with ROBOTC. You can change the platform type at any time.<br /> | ||
[[File:selectplatform.jpg]] | [[File:selectplatform.jpg]] | ||
| + | |} | ||
| + | <br /> | ||
| + | |||
| + | == Getting Started with NXT and TETRIX == | ||
| + | === Download Firmware === | ||
| + | {|width="740px" | ||
| + | |- | ||
| + | |ROBOTC requires a different firmware from the other programming languages available for the NXT. This firmware is what unlocks most of the advanced functionality found in ROBOTC. | ||
| + | |||
| + | You can update the firmware on the NXT directly from the ROBOTC application. To update the firmware, follow these instructions: | ||
| + | |||
| + | '''Prerequisite: Make sure that your NXT is connected to your computer via USB and is powered on with a fully charged battery.''' | ||
| + | |||
| + | 1. Open the "Robot" menu and select "Download Firmware."<br /> | ||
| + | [[File:download_firmware_menu_option.jpg]] | ||
| + | |||
| + | 2. Since NXT is set as the Platform Type, the "NXT Brick Download" screen will appear. From this screen you can rename your NXT and update the firmware. Make sure that your NXT appears under the "NXT Bricks Currently Connected via USB" list before proceeding. If the NXT does not appear, make sure it is connected via USB, powered on, and that the NXT USB driver is installed. Then click the "Refresh Lists" button to see if your brick can be found. | ||
| + | |||
| + | 3. To start downloading firmware, click the "F/W Download Button."<br /> | ||
| + | [[File:nxt_select_brick.jpg]] | ||
| + | |||
| + | |||
| + | 4. After clicking the "F/W Download" button, you will see the "Select NXT firmware file" file selection screen. ROBOTC will automatically open to the Firmware folder and show you all of the available firmwares available for the NXT. NXT firmware files have the extension ".rfw". Select the highest numbered firmware file that follows the "NXTXXXX.rfw" format. Once that firmware file is selected, click the "Open" button to start downloading the firmware to the NXT. | ||
| + | |||
| + | Note: Always select the highest version number available with the "NXT" prefix.<br /> | ||
| + | [[File:nxt_select_firmware.jpg]] | ||
| + | |||
| + | |||
| + | 5. As the firmware is downloading, your NXT will shut itself off and turn itself back on. Once the firmware has been successfully downloaded, you should see "Firmware download completed" on the "NXT Brick Download" screen, under the "Message Log". Your NXT is now ready to be used with ROBOTC.<br /> | ||
| + | [[File:nxt_firmware_complete.jpg]] | ||
| + | |} | ||
| + | <br /> | ||
| + | |||
| + | === Sample Programs === | ||
| + | {|width="740px" | ||
| + | |- | ||
| + | |OOne of the best ways to start working with ROBOTC is to look at already developed programs. ROBOTC for Mindstorms comes with over 150 sample programs to help new programmers learn how to program their robots. | ||
| + | |||
| + | To access the sample programs, go to the "File" menu and select "Open Sample Program".<br /> | ||
| + | [[File:opensample.jpg]] | ||
| + | |||
| + | |||
| + | The sample programs folder is organized by topic. ROBOTC will automatically open the sample programs folder for the robot platform you have selected.<br /> | ||
| + | [[File:openmenu.jpg]] | ||
| + | |||
| + | |||
| + | Just double click on one of the sample programs to open it up and learn more about ROBOTC programming.<br /> | ||
| + | |} | ||
| + | <br /> | ||
| + | |||
| + | === Compiling and Downloading === | ||
| + | {|width="740px" | ||
| + | |- | ||
| + | |ROBOTC is an "Integrated Development Environment." ROBOTC has a custom text editor to assist the programmer by color coding different potions of code to differentiate between integers, reserved words, functions and parameters.<br /> | ||
| + | [[File:ROBOTC_IDE.png]] | ||
| + | |||
| + | |||
| + | ROBOTC also contains a compiler for turning user generated code into a byte-code language that the different robot platforms can understand. To run the compiler, go to the "Robot" menu and select "Recompile Program" or hit F7 on your keyboard.<br /> | ||
| + | [[File:recompile.png]] | ||
| + | |||
| + | |||
| + | When the compiler runs, ROBOTC will check your program for errors and warnings that would cause it to run improperly on the robot. Rather than send broken code to your robot, ROBOTC informs you of these errors. | ||
| + | |||
| + | In the example below: | ||
| + | *The reserved word 'motor' was incorrectly typed as 'Motor', generating a warning. A warning tells the user that they've created an error, but ROBOTC is able to correct it when the program is sent to the robot. A program with warnings will compile successfully, but users should use good programming practice to avoid warnings. Warnings are denoted by a yellow "X". | ||
| + | *The code on line 5 is missing a semicolon, which is generating an error. An error will prevent the program from being sent to the controller. In this example, ROBOTC is informing the user they left a semicolon out of their program which is preventing the program from being compiled. Errors are denoted by a red "X".<br /> | ||
| + | [[Image:errors.png]] | ||
| + | |||
| + | |||
| + | Once your program has successfully compiled, you can send the program to the controller by selecting the "Compile and Download Program" option under the "Robot" menu or hitting F5 on your keyboard.<br /> | ||
| + | [[Image:compile_download.png]] | ||
| + | |||
| + | |||
| + | Once the download starts, a "Download Progress" window will appear. This window shows the transfer status of the compiled byte-code to the robot. | ||
| + | |||
| + | Once the download finishes, the built-in debugger launch. Some windows will launch, such as the "NXT Device Control Display" and the "Program Debug" window. Others may launch docked into the interface, such as the "Global Variables" screen. You can start your programs execution by clicking the "Start" button on the "Program Debug" window. Learn more about these windows in the 'Debugger' section of the help file.<br /> | ||
| + | [[Image:debugger.png]] | ||
|} | |} | ||
<br /> | <br /> | ||
Revision as of 10:43, 8 May 2012
Contents |
System Requirements
| ROBOTC requires basic system specifications to run properly. The development environment is not processor intensive, but the interactive debugger may slow down computer performance on older machines.
|
Uninstalling and Installing ROBOTC
Uninstalling
Installing
Activate Online
Activate by Web
| Follow these steps to activate on a computer without internet access:
Note: You will need to use a separate computer with Internet access in step 4 at this activation process. You must repeat this process on each computer without internet access. 1. Open ROBOTC and select "Activate ROBOTC" from the menu.
|
Select Platform Type
Getting Started with NXT and TETRIX
Download Firmware
Sample Programs
Compiling and Downloading
Getting Started with the VEX PIC
Configuring Serial Port
Download Master Firmware
Download ROBOTC Firmware
Sample Programs
Compiling and Downloading
Getting Started with the VEX CORTEX
Download Master Firmware
Download ROBOTC Firmware
Download VEXnet Joystick Firmware
Setting up VEXnet Communication
VEXnet Remote Control Calibration
Sample Programs
Compiling and Downloading
























































































