Log in

View Full Version : Team Number for code


Skyehawk
24-11-2012, 14:46
This will sound like a stupid question but...
Our team has been using labview for a few years, sadly the lead programmer failed to pass on his knowledge and knowbody else knows anything.
This job fell onto me. Labview's "order of operations" is a bit weird for me and I prefer a texed based language, such as Java. Here lies my problem. In Labview, as most of us know, when you create a projeve you are prompted to give your team number (you can of course change it). Without it it will not run on the cRIO properly. In java (IterativeRobot) you are not prompted to enter a team number. I have had to fall back on te default team number of "0000". This will soon be a huge problem with kickoff fast approching.
In short I need to know how to assign a team number to my Java code.

Thank You,
Skyehawk

RyanCahoon
24-11-2012, 21:40
I'd suggest you read through the Getting Started with Java for FRC (http://first.wpi.edu/Images/CMS/First/GettingStartedWithJava.pdf) manual. (Hint: the answer to your question is on page 6)

F22Rapture
24-11-2012, 22:47
I'd suggest you read through the Getting Started with Java for FRC (http://first.wpi.edu/Images/CMS/First/GettingStartedWithJava.pdf) manual. (Hint: the answer to your question is on page 6)

Since that's an old revision of the document, here's the current one:

http://firstforge.wpi.edu/sf/docman/do/downloadDocument/projects.wpilib/docman.root.c_and_java_documentation/doc1199

Skyehawk
24-11-2012, 23:14
Thank You. I was using a difrent version of the starting guide... Guess I missed this step in the setup process. :D