View Single Post
  #9   Spotlight this post!  
Unread 15-01-2015, 20:24
timytamy's Avatar
timytamy timytamy is offline
Registered User
AKA: Tim
FRC #3132 (The Thunder Down Under)
Team Role: Electrical
 
Join Date: Nov 2009
Rookie Year: 2010
Location: Australia
Posts: 293
timytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant future
Re: How do deploy code with Eclipse?

Quote:
Originally Posted by Mr.Roboto3335 View Post
Are you saying I should put controller = new Joystick(2); ?
What he's saying is that the roboRIO uses something called 0-indexed IO This means that the joystick (and all other IO identifiers) numbers go 0, 1, 2, 3. For the first, second, third and fourth ports respecivly

Your code:
Code:
controller = new Joystick(1);
sets up joystick in port 1, which is actually the SECOND port.

To solve this you can either
a) change the code to
Code:
controller = new Joystick(0);
b) change the driverstation so that the joystick goes into the SECOND port.

I recomend the first.

Onto your main problem.

When connected via ethernet, could you post the output of "ipconfig"
Are you getting No Robot Code, Comunications, or is it just not doing anything when you enable?
__________________
Tim W
FIRST® Team 3132 - The Thunder Down Under
Sydney, Australia
Website | Facebook | Youtube
Reply With Quote