We were having the same exact issue, which I think stems from an unfamiliarity with Eclipse (which we are using at FIRST’s urging this year), and unfamiliarity with the nav6.
Certainly, we are a little underwhelmed with the navX documentation for anything 2015 (RoboRio, navX MXP, etc.)
There are no directions for RoboRio (only cRio), and even the “Readme.txt” file inside the zipped nav6 folder does not talk about the 2015 system. Hopefully these can be updated?
First Attempt:
We tried to get the nav6 library to show up in our project under “Referenced Libraries” alongside “wpilib” and “networktables”. The nav6.jar file showed up and the IDE even seemed to be happy when we typed in classes from the nav6 library. However, the classes “did not exist” when we tried to build.
**Second Attempt:
**If you open up the sample project in Eclipse, you’ll notice that the nav6 library does not show up in “Referenced Libraries”, but shows 2 extra “packages” (the orange coordinate picture) alongside the main project in the “src” folder.
You can copy those 2 packages from the nav6SimpleRobotExample and place them in your team’s project’s src folder as well:
OPTION 1: In Eclipse, if you have the sample code project open, you can right-click copy each and paste them in the src folder for your team’s project.
OPTION 2: In a Windows explorer, you can copy the “com” folder that you got from the downloaded folder (nav6\roborio\java
av6SimpleRobotExample\src) and paste this folder inside your team’s project workspace “src” folder. In Eclipse, click “File” –> “Refresh” in order to see the packages show up in your project.
Note: We haven’t been able to fully test this solution yet, but hopefully we’ll be able to see some beautiful gyro values tomorrow!:rolleyes:
This setup doesn’t seem to be the most intuitive to me, but I’d love to know if anyone with more programming experience knows why this would make a difference? (Is it simply easier to keep the libraries with the project if you are using a repository like github?)