Quote:
Originally Posted by Ivan913
But every time I try to test out a SimpleRobot template, I try to instantiate something simple like a gyro or accelerometer and it can't seem to find it. Im running windows 7. Under the FRC Configuration tab in the options menu its using the standard WPILibJ location. The file path is C:/Users/Ivan/sunspotfrcsdk/lib/WPILibJ. Any clue what I'm doing wrong here?
|
Are you importing the file? Assuming the SimpleRobot class itself doesn't cause you any problems (and from what you've said, that appears to be the case), I would say you just need to import the files. For example, to import a Gyro, you would put this code at the top of the file, under the package name:
Code:
import edu.wpi.first.wpilibj.Gyro;
This is the same as an include statement in C++. In Netbeans, you can also just press ctrl+i, and the editor will take care of the imports for you.