Go to Post The game ends after two minutes and fifteen seconds. The build season ends after six weeks. Using the experience to help improve yourself and the rest of the world will take the rest of your life. - dlavery [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 09-27-2015, 01:04 PM
ScottRandallWay ScottRandallWay is offline
Registered User
FRC #2543
 
Join Date: Sep 2015
Location: San Diego
Posts: 9
ScottRandallWay is an unknown quantity at this point
Bad Gyro?

We were playing with the gyro for the first time on the robot yesterday. We took the getAngle call and put the value on the SmartDashboard. With the robot not moving at all the getAngle value was spinning like crazy. I assume this is a sign of a bad Gyro. Any thoughts?

Scott
Reply With Quote
  #2   Spotlight this post!  
Unread 09-27-2015, 02:56 PM
GeeTwo's Avatar
GeeTwo GeeTwo is online now
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,536
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: Bad Gyro?

We lost a bunch of gyros in short order near the end of the 2014 build. IIRC, the gyroscope output should be about 2.5V if it is not moving. (This is dependent on having 5V on the power input and a good 0V ground, of course.) Ours was way off of this value, very near one of the end points, which would be interpreted as spinning very fast by the libraries. If you're just off a little bit, your problem can likely be solved by providing calibration offsets.

Here's a document covering the gyroscope. In the third paragraph on the last page, it gives the nominal 2.5V value for non-rotating.
__________________

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 10-02-2015, 10:19 AM
ScottRandallWay ScottRandallWay is offline
Registered User
FRC #2543
 
Join Date: Sep 2015
Location: San Diego
Posts: 9
ScottRandallWay is an unknown quantity at this point
Re: Bad Gyro?

Thanks!
Reply With Quote
  #4   Spotlight this post!  
Unread 10-03-2015, 09:34 PM
Richard100 Richard100 is offline
Registered User
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Southern Maryland
Posts: 79
Richard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to behold
Re: Bad Gyro?

Ensure the robot is completely still while it is booting up. Calibration occurs during the initialization of your program, which assumes the sensor is still to establish the zero for gyro rate.
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 07:59 AM.

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