View Single Post
  #3   Spotlight this post!  
Unread 13-02-2015, 16:35
BrighidKHeh's Avatar
BrighidKHeh BrighidKHeh is offline
Registered User
FRC #3871 (Trojan Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Worthington, MN
Posts: 37
BrighidKHeh is an unknown quantity at this point
Re: Trouble with Eclipse (Java)

public Joystick rightJoystick;
public JoystickButton NoodleOn;
public JoystickButton NoodleOff;
public Joystick ArmUpDown;
public Joystick leftJoystick;
}
public IO() {
rightJoystick = new Joystick(1);
leftJoystick = new Joystick(2);
NoodleOn = new JoystickButton(2, 3);
NoodleOn.whileHeld(new NoodleOn());
ArmUpDown = new Joystick(1);
____________________________________
The bolded joysticks all have the same error still. "Cannot instantiate the type joystick". Also, when I click on joystick.class under WPILib, I get a page that says "Source not found - The JAR file has no source attachment". I don't know if this makes a difference or not.

Last edited by BrighidKHeh : 13-02-2015 at 16:49.
Reply With Quote