Go to Post It would be a (relatively) level* playing field *...though it seems like the actual field will be anything but level. - Jacob Bendicksen [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 25-02-2015, 15:36
Mike Bortfeldt Mike Bortfeldt is offline
Registered User
FRC #1126 (& 1511)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Rochester, NY
Posts: 119
Mike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud of
Re: Gyro's angle value going up

Quote:
Originally Posted by GeeTwo View Post
We could not find a "drop-in" replacement online, so instead we've ordered some 3-axis I2C gyroscopes from Pololu. It's on a closeout discount, but being replaced with a compatible upgrade. They had 189 until we ordered 20. We'll figure out how to use them on our practice 'bot next week.
Gus,

I've used similar gyros in the past and was not happy with their performance. In my experience, the Analog Devices gyros seem to give much better results. It's certainly possible that the newer models from Pololu have improved, and I would be interested hearing your opinion of them.

Mike
Reply With Quote
  #2   Spotlight this post!  
Unread 25-02-2015, 19:52
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,539
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Gyro's angle value going up

Quote:
Originally Posted by Mike Bortfeldt View Post
I've used similar gyros in the past and was not happy with their performance. In my experience, the Analog Devices gyros seem to give much better results. It's certainly possible that the newer models from Pololu have improved, and I would be interested hearing your opinion of them.
Having learned what I have in the past few days (see this thread on usfirst), I'm not surprised; the gyro class uses hardware acceleration unavailable to an I2C gyroscope. While we will look at the suggestions there, there's the possibility of using an arduino to turn the I2C gyro into a rotation encoder, or just buying an integrated solution. The NavX would also be under consideration if it were actually available.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #3   Spotlight this post!  
Unread 26-02-2015, 08:56
FlyOldPlanes FlyOldPlanes is offline
Registered User
FRC #1592
 
Join Date: Feb 2015
Location: Titusville, FL
Posts: 6
FlyOldPlanes is an unknown quantity at this point
Re: Gyro's angle value going up

If you want to null out a small rate like that, you can use the setDeadband method in the Gyro class. we were a little confused since it shows up in the c++ version of the code, but not the java version. Look at the gyro.java code posted here:

https://usfirst.collab.net/gerrit/gitweb?p=allwpilib.git;a=blob;f=wpilibj/wpilibJavaDevices/src/main/java/edu/wpi/first/wpilibj/Gyro.java;h=ea1e1cc301c71243e091206312fa281fb2f5e5 87;hb=HEAD

The setDeadband is not made public, I don't know why. we just copied the code as a newGyro.java class in our project and made it public. It seems to work fine so far. You will lose a little accuracy with a larger deadband, but if it is small, it most likely won't be a problem.

Hope this helps,

Lennie
Reply With Quote
  #4   Spotlight this post!  
Unread 26-02-2015, 10:17
Mike Bortfeldt Mike Bortfeldt is offline
Registered User
FRC #1126 (& 1511)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Rochester, NY
Posts: 119
Mike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud of
Re: Gyro's angle value going up

Quote:
Originally Posted by GeeTwo View Post
... While we will look at the suggestions there, there's the possibility of using an arduino to turn the I2C gyro into a rotation encoder, or just buying an integrated solution. The NavX would also be under consideration if it were actually available.
Gus,

If you are looking for a replacement for the old KOP gyro, either the EVAL-ADXRS642Z or the EVAL-ADXRS652Z should work. Both are 0-5v analog gyros and should be a fairly easy replacement for what you are used to. In the past, I've also used an Arduino to do the integration of the gyro rate signal for both analog and SPI gyros - so that is a valid option as well.

Mike
Reply With Quote
  #5   Spotlight this post!  
Unread 26-02-2015, 10:37
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,539
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Gyro's angle value going up

Quote:
Originally Posted by Mike Bortfeldt View Post
Gus,

If you are looking for a replacement for the old KOP gyro, either the EVAL-ADXRS642Z or the EVAL-ADXRS652Z should work. Both are 0-5v analog gyros and should be a fairly easy replacement for what you are used to. In the past, I've also used an Arduino to do the integration of the gyro rate signal for both analog and SPI gyros - so that is a valid option as well.

Mike
Five thousand dollars for a minimum order of 100? Or is there someone who has them for retail? Actually, even if there is, I'd rather go with the integrated all-axes solution with built-in integration and Kalman filtering at $130 than a single axis analog gyro at $50.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #6   Spotlight this post!  
Unread 26-02-2015, 10:42
Mike Bortfeldt Mike Bortfeldt is offline
Registered User
FRC #1126 (& 1511)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Rochester, NY
Posts: 119
Mike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud of
Re: Gyro's angle value going up

Gus,

The EVAL parts can be ordered singularly at $50 or $70 depending on the model. Look near the bottom of the web page.

Mike
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 22:16.

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