Go to Post Mentors may not be the direct focus of FIRST, but they are just as involved as students are. They play a pivotal role in the success of FIRST and of the success of every team. - Dan Petrovic [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-01-2012, 12:14
hal00 hal00 is offline
Programming Mentor, Team 3018
AKA: Loren Halvorson
FRC #3018 (Nordic Storm)
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Minnesota
Posts: 3
hal00 is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 09-01-2012, 13:17
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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

Last edited by Joe Ross : 09-01-2012 at 13:26.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-01-2012, 13:46
Sunstroke Sunstroke is offline
Programmer
AKA: Joe Grinstead
FRC #3504 (Girls of Steel)
Team Role: Mentor
 
Join Date: Apr 2009
Rookie Year: 2009
Location: New England
Posts: 49
Sunstroke is an unknown quantity at this point
Re: GearsBot Sample Compile Error?

Quote:
Originally Posted by hal00 View Post
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 09-01-2012, 14:42
BradAMiller BradAMiller is online now
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: GearsBot Sample Compile Error?

Quote:
Originally Posted by hal00 View Post

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
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
Reply


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 22:21.

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