Go to Post Just goes to show that you don't need to be like everyone else to make it to Einstein. - O'Sancheski [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-01-2016, 17:21
Snapperbot Snapperbot is offline
Registered User
FRC #4501 (Humans)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2012
Location: Santa Monica
Posts: 6
Snapperbot is an unknown quantity at this point
Question Compatibility with the Analog Devices Gyros

So the ADXL362/ADXRS450 and the ADIS16448 gyros came today from FIRST Choice. I was really exited until I saw that the website only talks about LabVIEW code. Can a team that uses another programming language like Java still get some kind of use out of the gyro or is it as useful as a brick(to teams that don't use LabVIEW)?
  #2   Spotlight this post!  
Unread 25-01-2016, 17:28
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,103
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Compatibility with the Analog Devices Gyros

There is an ADXRS450 class in Java and C++ that will work out of the box with the ADXRS gyro. I do not know for the ADIS16448 gyro however.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
  #3   Spotlight this post!  
Unread 25-01-2016, 18:10
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 256
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: Compatibility with the Analog Devices Gyros

Quote:
Originally Posted by Snapperbot View Post
So the ADXL362/ADXRS450 and the ADIS16448 gyros came today from FIRST Choice. I was really exited until I saw that the website only talks about LabVIEW code. Can a team that uses another programming language like Java still get some kind of use out of the gyro or is it as useful as a brick(to teams that don't use LabVIEW)?
As Thad stated, ADXL362/ADXRS450 support is included in both C++ and Java WPILib. C++ and Java code for the ADIS16448 is available at the same location as the LabView code: https://github.com/juchong/ADIS16448-RoboRIO-Driver . The ADIS16448 driver has a Kalman filter implementation but it does not currently do magnetic disturbance rejection (patches to fix this would be welcome).
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)
  #4   Spotlight this post!  
Unread 28-01-2016, 18:33
Snapperbot Snapperbot is offline
Registered User
FRC #4501 (Humans)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2012
Location: Santa Monica
Posts: 6
Snapperbot is an unknown quantity at this point
Smile Re: Compatibility with the Analog Devices Gyros

Yea the ADXRS450 worked fine after updating the plugins, I'm having trouble figuring out where to put the java code for the ADIS16448 so I'll just stick to the ADXRS450 for now. Thanks for your help
  #5   Spotlight this post!  
Unread 30-01-2016, 23:37
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 98
duane is an unknown quantity at this point
Send a message via AIM to duane
Re: Compatibility with the Analog Devices Gyros

> it does not currently do magnetic disturbance rejection

Can you elaborate on the ramifications of not doing "magnetic disturbance rejection"?

Thanks,
...Duane
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
  #6   Spotlight this post!  
Unread 31-01-2016, 00:31
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 256
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: Compatibility with the Analog Devices Gyros

Quote:
Originally Posted by duane View Post
Can you elaborate on the ramifications of not doing "magnetic disturbance rejection"?
The magnetometers in the device sense magnetic fields and are used in the Kalman filter to stabilize the gyro and derive a magnetic heading. Not doing disturbance rejection means that strong magnetic fields (such as those caused by motors) will result in incorrect heading readings.
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)
  #7   Spotlight this post!  
Unread 31-01-2016, 01:10
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,362
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Compatibility with the Analog Devices Gyros

Quote:
Originally Posted by Peter Johnson View Post
The magnetometers in the device sense magnetic fields and are used in the Kalman filter to stabilize the gyro and derive a magnetic heading. Not doing disturbance rejection means that strong magnetic fields (such as those caused by motors) will result in incorrect heading readings.....

..... The ADIS16448 driver has a Kalman filter implementation but it does not currently do magnetic disturbance rejection (patches to fix this would be welcome).
Do you know if these patches are currently under development? It would certainly be nice to have them.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #8   Spotlight this post!  
Unread 31-01-2016, 15:55
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 98
duane is an unknown quantity at this point
Send a message via AIM to duane
Re: Compatibility with the Analog Devices Gyros

So, what does that mean for us using these devices with C++? Can you elaborate on what interfaces will be useful and which will not? Or is using this device in C++ just not going to be useful?

In short, should we bother using the ADIS16448 IMU with C++? If so what can we use reliably?

I'm certainly not qualified to add the compensation needed for these devices.

Thanks
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
  #9   Spotlight this post!  
Unread 31-01-2016, 16:06
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Compatibility with the Analog Devices Gyros

Quote:
Originally Posted by duane View Post
In short, should we bother using the ADIS16448 IMU with C++? If so what can we use reliably?
Using the gyro readings alone should be fine. If you want to try using the Kalman derived heading, you should mount the device as far away from motors and moving steel as possible then test heavily to see how it performs, especially driving around steel like most of the field this year.
  #10   Spotlight this post!  
Unread 31-01-2016, 16:17
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 98
duane is an unknown quantity at this point
Send a message via AIM to duane
Re: Compatibility with the Analog Devices Gyros

Thank you!
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
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 02:14.

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