View Full Version : 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
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
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
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
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.