View Full Version : Cannot use RobotDrive!
hornetshornets
27-01-2011, 20:57
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 -
Alexander Meyer
27-01-2011, 21:10
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:
import edu.wpi.first.wpilibj.*
Patrick Chiang
01-02-2011, 00:06
The Source > Fix Imports function in netbeans is cool. Just use it all the time when you see random yellow lightbulbs in your code.
Egg 3141592654
01-02-2011, 08:38
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.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.