Go to Post I just like that PVC is the most basic need of humankind according to that diagram. Whatever would we do without it?! - Po-ser [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 16 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 09-01-2014, 17:34
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: 348
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
nav6 Open Source IMU designed for FIRST Robotics

The new nav6 Open Source Inertial Measurement Unit (IMU) designed for FIRST robotics is now available for sale at the Kauailabs store.

The nav6 IMU makes sophisticated inertial navigation capabilities easily available to student robotics teams, including the FIRST Robotics Challenge (FRC). The nav6 IMU rapidly calculates yaw, pitch, roll and compass heading, as well as linear acceleration; these capabilities enable robot features that include:

* "Field-oriented" drive mode
* Robot balancing
* Automatically rotating to an absolute or relative angle
* Motion / No-Motion Detection
* Bump Detection



== Key Features ==

* Yaw, Pitch and Roll Angles
* Tilt-compensated Compass Heading
* 100Hz Update Rate
* Automatic Accelerometer/Gyroscope Calibration
* Automatic Hard-Iron Magnetometer Calibration
* Completely Open Source: Source Code, Schematics/Bill of Materials and Enclosure Design files (for 3D printer) are available on-line at no cost
* Arduino-compatible - programmable with free Arduino IDE
* C++ and Java Classes for rapidly integrating the nav6 IMU into your robot control software
* Electrical design for easy integration into the FIRST FRC CRio-based Control System

For more details, please visit the nav6 Wiki - which includes full documentation on how to install and use the nav6 IMU, including application examples and much more.
  #2   Spotlight this post!  
Unread 13-01-2014, 13:12
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: nav6 Open Source IMU designed for FIRST Robotics

As a team who was considering purchasing one, how is the Java code meant to be imported into an existing project? It seems to cause an error with the Java versions as the default project seems to use Java 3 whereas @Override isn't available until Java 5.
  #3   Spotlight this post!  
Unread 14-01-2014, 00:51
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: 348
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: nav6 Open Source IMU designed for FIRST Robotics

Quote:
Originally Posted by eddie12390 View Post
As a team who was considering purchasing one, how is the Java code meant to be imported into an existing project? It seems to cause an error with the Java versions as the default project seems to use Java 3 whereas @Override isn't available until Java 5.
Hi Eddie,

Thanks for reporting the problem. We're still working out the kinks w/the Java and the LabView libraries to interface to the nav6.

At this point there are two known issues w/the Java code that's in the repository:

- The IMU and IMUAdvanced classes use @Override, which is not supported in J2ME / Java 1.3

- The IMUAdvanced class uses atan2() and atan(), which are not present in the math library in the J2ME.

We have a test app on the PC that we tested the java IMUProtocol class with, but that was with Java 1.7; the IMU and IMUAdvanced classes are ported from our original C++ code base, and haven't been fully tested on the robot yet.

For the first item, it's a simple task to comment out the override.

For the second item, a member of Team 11 is adding support for the inverse trig functions.

I'll post a note to this forum when we get the java classes fully tested and checked in, this should happen over the next few weeks.

Please let me know if you have any more questions.

- scott
  #4   Spotlight this post!  
Unread 14-01-2014, 01:12
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
nav6 Open Source IMU designed for FIRST Robotics

Quote:
Originally Posted by slibert View Post
- The IMUAdvanced class uses atan2() and atan(), which are not present in the math library in the J2ME.
Quote:
For the second item, a member of Team 11 is adding support for the inverse trig functions.

atan and atan2 are available in squawk in com.sun.squawk.util.MathUtils. No need to implement them.

Last edited by Joe Ross : 14-01-2014 at 01:24.
  #5   Spotlight this post!  
Unread 14-01-2014, 07:56
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: nav6 Open Source IMU designed for FIRST Robotics

Quote:
Originally Posted by slibert View Post
Hi Eddie,

Thanks for reporting the problem. We're still working out the kinks w/the Java and the LabView libraries to interface to the nav6.

At this point there are two known issues w/the Java code that's in the repository:

- The IMU and IMUAdvanced classes use @Override, which is not supported in J2ME / Java 1.3

- The IMUAdvanced class uses atan2() and atan(), which are not present in the math library in the J2ME.

We have a test app on the PC that we tested the java IMUProtocol class with, but that was with Java 1.7; the IMU and IMUAdvanced classes are ported from our original C++ code base, and haven't been fully tested on the robot yet.

For the first item, it's a simple task to comment out the override.

For the second item, a member of Team 11 is adding support for the inverse trig functions.

I'll post a note to this forum when we get the java classes fully tested and checked in, this should happen over the next few weeks.

Please let me know if you have any more questions.

- scott
I got them both working last night by removing the @Override line and switching from Math to MathUtils. We purchased a nav6 on Saturday and as soon as we get it I'll test everything as thoroughly as possible.
  #6   Spotlight this post!  
Unread 14-01-2014, 12:36
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: 348
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: nav6 Open Source IMU designed for FIRST Robotics

Quote:
Originally Posted by eddie12390 View Post
I got them both working last night by removing the @Override line and switching from Math to MathUtils. We purchased a nav6 on Saturday and as soon as we get it I'll test everything as thoroughly as possible.
That's great news, Eddie. I've also checked in similar changes to the java code, including updating the net beans project file to perform the J2ME/Jdk1.4 build (following the convention of the other projects created by the FRC Plugins).

One other small change was to rename a few of the functions in the IMUAdvanced class to start the first word w/a lower-case letter (e.g., isMoving()).

The plan once we finalize the testing of the java code is to create a "released" nav6.jar file, the idea being that teams would simply drop that in their sunspotfrsdk/lib directory to use it. I'll keep you posted on that.

If you have any more questions or issues, please let me know; you can contact me at scott@kauailabs.com
  #7   Spotlight this post!  
Unread 22-01-2014, 23:05
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: 348
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: nav6 Open Source IMU designed for FIRST Robotics

A nav6 LabView VI library is also available now, and an example LabView application that uses the library. Many thanks to our volunteer! Some documentation is currently being developed as well, and will be posted when it's ready. More details are on the nav6 wiki.
  #8   Spotlight this post!  
Unread 04-02-2014, 22:01
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 116
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
Re: nav6 Open Source IMU designed for FIRST Robotics

We're currently investigating an issue where if the nav6 is unpowered, our robot code slows down dramatically (cycle times of 30 msec becoming 5000 msec).

We're using the Java libraries, and the only thing we've done is instantiate the IMU and send data to the LiveWindow.

Seen anything like this before?
  #9   Spotlight this post!  
Unread 04-02-2014, 22:28
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: nav6 Open Source IMU designed for FIRST Robotics

Quote:
Originally Posted by JohnGilb View Post
We're currently investigating an issue where if the nav6 is unpowered, our robot code slows down dramatically (cycle times of 30 msec becoming 5000 msec).
Is this before or after r561?
  #10   Spotlight this post!  
Unread 04-02-2014, 22:48
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 116
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
Re: nav6 Open Source IMU designed for FIRST Robotics

Aha, before! We just integrated the code a few days ago, so we wouldn't have this update.

Just tested it now - looking good!
Closed Thread


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 17:17.

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