Go to Post Hmmm... I'm pretty sure that twig isn't legal, since the tree it came from started fabrication before kickoff.... - lukevanoort [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 12-12-2014, 10:50
Jaykus Jaykus is offline
Registered User
FRC #4145
 
Join Date: Dec 2014
Location: Worthington
Posts: 9
Jaykus is an unknown quantity at this point
(Java) Error calling subsystem method from command

I'm having trouble calling methods from subsystems on Netbeans. When I call DriveSystem, it shows up fine and the preset methods show up, but whenever I try to call a method that I created myself it gives me an error saying "cannot find symbol method doNothing()". I tried different subsystems and commands, and even tried renaming them, but nothing seems to work and I can't find anything that might cause an error.

Command Code:

public class DriveDoNothing extends CommandBase {

public DriveDoNothing() {
requires(DriveSystem);
}


protected void execute() {
DriveSystem.doNothing();

}
}

Subsystem Code:
public class DriveSystem extends Subsystem {

public void doNothing() {

leftMotor.set(0.0);

rightMotor.set(0.0);

}
}
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:47.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi