OCCRA
Go to Post Failure is in my eyes, the key to success. If you can deal with failure, look it in the eye, and conquer it, the hard stuff won't really intimidate you any more...and you can only get better. - Andy Grady [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 01-27-2011, 08:57 PM
hornetshornets's Avatar
hornetshornets hornetshornets is offline
Registered User
FRC #1816
 
Join Date: Nov 2010
Rookie Year: 2010
Location: USA
Posts: 8
hornetshornets is an unknown quantity at this point
Exclamation Cannot use RobotDrive!

We are programming with Java as an option this year, and whenever we call the RobotDrive class, we get an error stating:
"Cannot find symbol:
class RobotDrive"

What should we do?

All help is greatly appreciated!
- Team 1816 -
__________________
A man once turned his car into the shop with a complaint that read “Unfamiliar noise from engine.” The next day, the car was ready for him. The engineer’s logbook entry read “Ran engine continuously for four hours. Noise now familiar.”
Reply With Quote
  #2   Spotlight this post!  
Unread 01-27-2011, 09:10 PM
Alexander Meyer Alexander Meyer is offline
Registered User
FRC #2358 (Bearbotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Lake Zurich, Illinois
Posts: 36
Alexander Meyer is on a distinguished road
Re: Cannot use RobotDrive!

Have you imported the RobotDrive class? The default examples only import the IterativeRobot or SimpleRobot classes, nothing else. You could import all the WPILibJ classes in one fell swoop with this line:

Code:
import edu.wpi.first.wpilibj.*
Reply With Quote
  #3   Spotlight this post!  
Unread 02-01-2011, 12:06 AM
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
Re: Cannot use RobotDrive!

The Source > Fix Imports function in netbeans is cool. Just use it all the time when you see random yellow lightbulbs in your code.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-01-2011, 08:38 AM
Egg 3141592654's Avatar
Egg 3141592654 Egg 3141592654 is offline
Now a mentor, always a student
FRC #0810 (Mechanical Bulls)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Long Island
Posts: 53
Egg 3141592654 is on a distinguished road
Re: Cannot use RobotDrive!

If the asterisk at the end of your wpilib import call doesn't work, use the netbeans autofill feature to add RobotDrive class as its own import. Whenever I have import problems, I just add the individual class in my import field. Hope you don't have to do that though, it gets a bit tedious when your team uses a lot of components which require a lot of classes.
__________________
"The answers to the book of life are not found in the back." Charlie Brown

Software Mentor - Team Apex Robotics 5803

Lead Programmer - Team 810 Mechanical Bulls '09-'11
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 12:39 AM.

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