View Single Post
  #12   Spotlight this post!  
Unread 12-02-2015, 17:51
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: "Host cannot connect to subnet"

Object Autonomous;
if (Autonomous != null) Autonomous.cancel();

^That's the line of code. It has an error on the word "cancel". There's another one farther up that has "start" at the end that is also an error. The error says "The method cancel() is undefined for the type object".

On some other lines of code:
public IO() {
joystick1 = new Joystick(1);
joystick2 = new Joystick(2);
NoodleOn = new JoystickButton(joystick2, 3);
NoodleOn.whileHeld(new NoodleOn());

NoodleOff = new JoystickButton(joystick2, 4);
NoodleOff.whileHeld(new NoodleOff());

joystick(1), joystick(2),JoystickButton, NoodleOn, and NoodleOff are errors. The error says "Cannot instantiate the type joystick"

Last edited by BrighidKHeh : 12-02-2015 at 17:58.
Reply With Quote