|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Eclipse IMU Java Library Import
Our team have been looking to use the Nav6 IMU from Kauai Labs. For the past few weeks, we were able to download the nav6.jar file from this website:
https://code.google.com/p/nav6/ However, whenever we compile the project, an error stating that the package does not exist. e.g) error: package com.kauailabs.nav6.frc does not exist [javac] import com.kauailabs.nav6.frc.IMUAdvanced; We followed the steps provided here: https://code.google.com/p/nav6/wiki/Java Has anyone been able to successfully deploy the code in Java? Team 4911 Cyber Knights Software Team |
|
#2
|
||||||
|
||||||
|
Re: Eclipse IMU Java Library Import
It sounds like you are following the cRIO directions and code and not the roboRIO.
|
|
#3
|
||||
|
||||
|
Re: Eclipse IMU Java Library Import
Quote:
Quote:
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.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?) |
|
#4
|
||||
|
||||
|
Re: Eclipse IMU Java Library Import
I'm currently reprogramming our 2015 robot in Java as an offseason project. I too was struggling with getting Eclipse to compile the code after adding the paths for the navX. I believe that I've found the problem. In their online instructions for setting up the navX, in your projects build.properties folder they tell you to set the thirdparty_library to ${user.home}/navx-mxp/java/lib/navx_frc.jar. This isn't where my jar was installed; it was copied directly to my C drive. Changing ${user.home} to C: fixed my problem.
|
|
#5
|
|||
|
|||
|
Re: Eclipse IMU Java Library Import
Quote:
We're encouraging teams that can to use the navX-MXP, but understand if that's not realistic and will do our best to provide support for teams using the nav6 on the RoboRIO. Quote:
|
|
#6
|
|||
|
|||
|
Re: Eclipse IMU Java Library Import
Quote:
Haven't seen in our testing that the install for the navX-MXP puts the libraries in the root of the C: drive - but would like to figure out what's going on here. Can you please post which version of the navX-MXP software you are running? That information should be listed in the "add/remove programs list under navX-MXP.... |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|