|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Trouble with Eclipse (Java)
public Joystick joystick1;
public JoystickButton NoodleOn; public JoystickButton NoodleOff; public Joystick LiftArm; public Joystick joystick2; } public IO() { rightJoystick = new Joystick(1); joystick2 = new Joystick(2); NoodleOn = new JoystickButton(joystick2, 3); NoodleOn.whileHeld(new NoodleOn()); ___________________________________________ The two bolded Joysticks (joystick(1) and joystick(2)) contain errors. The errors says "cannot instantiate the type joystick". The code shouldn't be producing errors, and joystick.class is under the WPILIB like it should be. Any solutions? __________________________ the image is under a word document |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|