Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   GearsBot Sample Compile Error? (http://www.chiefdelphi.com/forums/showthread.php?t=99602)

hal00 09-01-2012 12:14

GearsBot Sample Compile Error?
 
Anyone else getting a cannot find symbol error in CommandBase.java when trying to compile the GearsBot sample on the line with registerDefaultCommands ?

public static void init() {
oi = new OI();
Subsystem.registerDefaultCommands();

Just curious if I have something set up incorrectly.

Joe Ross 09-01-2012 13:17

Re: GearsBot Sample Compile Error?
 
I see the same thing. I reported this to the WPILib Java tracker here: http://firstforge.wpi.edu/sf/go/artf1430

Sunstroke 09-01-2012 13:46

Re: GearsBot Sample Compile Error?
 
Quote:

Originally Posted by hal00 (Post 1100584)
Anyone else getting a cannot find symbol error in CommandBase.java when trying to compile the GearsBot sample on the line with registerDefaultCommands ?

public static void init() {
oi = new OI();
Subsystem.registerDefaultCommands();

Just curious if I have something set up incorrectly.

Remove the Subsystem.registerDefaultCommands(); line and the thing should work.

BradAMiller 09-01-2012 14:42

Re: GearsBot Sample Compile Error?
 
Quote:

Originally Posted by hal00 (Post 1100584)

Just curious if I have something set up incorrectly.

You had it set up perfectly. We made some last minute changes in suggested methods of writing these programs and it didn't seem to all make it into the samples and docs. So, go ahead and remove that line - that function is done behind the scenes in the scheduler. We'll have it fixed in the next release as well as getting some of the Cookbook issues updated.

Brad


All times are GMT -5. The time now is 22:21.

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