Getting Started
The folowing set of instructions is to help one get ready to download code to a cRio robot controller.
Installing the required software
- Download:
a.) Netbeans (Get the JavaSE version)
b.) FRC Java Plugins for Netbeans
c.) Utilities Update
d.) Driver Station Update - Now that you have those items downloaded, install items a, c and d
- Earlier you downloaded a zip archive (2012JavaUpdate3077.zip), locate it and extract its content somewhere you can remember.
- Open Netbeans, once its installed (It may take a while depending on your computer.)
- go to: Tools > Plugins > Downloaded (tab)> Add Plugins (button)
- Locate the plugins you extracted in step 3. add them all to the install list.
- Press the Install button
- You may get a message or messages saying that the plugins aren't signed, just next through those and agree to the licence terms.
Now you are ready to create your first FRC Java project.
Setting your team number
(on pc) Tools > options > Miscellaneous(tab) > FRC Configuration(tab) > Enter your team Number
Creating your first FRC Java Project
- Open Netbeans
- File > New Project
- FRC Java (If Missing makes sure you followed the Installing the Required software section above.)
- Choose SimpleRobotTemplateProject
- All the fields are fairly straightforward, with a few exceptions:
a. You should change the name of the project.
b. I would recommend also changing the project package to: edu.teamxxyy (xxyy is your team number)
c. Robot Class: MyRobot (You can use a different name.)
NOTE: if you are importing someone else's code, you will need to change the Robot Class field to whatever they called it, you can find it in the code as the part of the opening statment, something like "public class LunacyBot". In that case, Robot Class would be LunacyBot. - Click the Finish button. Netbeans will now create your robot project.
- On the left side of your screen you should see the project you just created with two things under it. src and build.xml
- Click the small plus next to src
- Then the plus next to edu.team2648
- Now you should see MyRobot.java : Double click it (Open for editing)
- You should now see the default code that is provided for you as a basis for simple robot projects.
- Now you can begin developing your code.
Feeling overwhelmed? check out easyj
Downloading code
So you are ready to download your code to your cRio and test it out!
- Right click on the project you wish to download to your robot
- Choose Set as Main Project
- Make sure your Robot is turned on and connected to your computer with an Ethernet cable.
- Your computer will need to have an IP address on the same subnet as your robot. (ie. 10.26.48.5) Directions
- If there were no problems with the download you should see an output window that says Build Successfull
Troubleshooting
As with any complex task there are many hundreds of thousands of things that could go wrong. Below I have listed a few common ones Symptoms and Cause. If your problem isn't listed here the next step in your trobuleshooting adventure is to ask the intelegent people on Chief Delphi or on the FiIRST Forums.
Symptom
Build Failed Message in the Output window
More to come... | CauseMost commonly you have some code that is incorrect, missing a semicolon or is trying to used a port already used.
|
Hey! While you are here why not check out easyj