Thread: IMU Help Please
View Single Post
  #1   Spotlight this post!  
Unread 08-02-2014, 13:39
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 343
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: IMU Help Please

Quote:
Originally Posted by 2472Programer View Post
Our Team recently purchased the nav6 IMU, and we now face the challenge of programming it. We found the sample code and the IMU class online, however we cannot figure out how to incorporate the IMU class into our code, anyone have any Ideas?
1) First, install the latest nav6.jar file:

https://nav6.googlecode.com/svn/trunk/nav6.zip

In this zip file, extract the nav6.jar file, which is in the zip at /crio/java/build/nav6.jar.

Place the nav6.jar file in your <user directory>/sunspotfrcsdk/lib directory (the same directory where the wpilibj.jar file is already present).

The sunspotfrcsdk/lib directory is typically at C:\Users\<YourName>\sunspotfrcsdk\lib

2) Add references to the nav6 java library classpath to your robot project.

From within Netbeans, select your project in the project tree, then:

Project -> Properties

Java Sources Classpath

Add JAR/Folder

<user dir>\sunspotfrcsdk\lib\nav6.jar

3) Initialize the nav6, and output information to the dashboard, as shown in the nav6SimpleRobotExample.

4) Finally, integrate the nav6 into your robot software by using the values from the nav6. There are some examples discussed in the nav6 wiki, in the "Application Examples" section.
Reply With Quote