Go to Post Let me live in my delusional world where minibots never happened and the Tetrix kit doesn't exist. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2014, 18:58
2472Programer 2472Programer is offline
Programming Captain
AKA: Dane Jensen
FRC #2472 (The Centurions)
Team Role: Programmer
 
Join Date: May 2012
Rookie Year: 2006
Location: Circle Pines, MN
Posts: 13
2472Programer is an unknown quantity at this point
IMU Help Please

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?
Reply With Quote
  #2   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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi