Go to Post Something has gone awry this year in FIRST. I think more teams are concerned with winning and their robot that they don't even stop to think about the kids on their team, or the learning experiences of others. - Amanda Morrison [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 03-03-2016, 17:12
Maxwell777's Avatar
Maxwell777 Maxwell777 is offline
Is allowed to touch stuff now
AKA: Jackson Gray
FRC #0842 (Falcon Robotics)
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2014
Location: Phoenix, AZ
Posts: 72
Maxwell777 has a spectacular aura aboutMaxwell777 has a spectacular aura aboutMaxwell777 has a spectacular aura about
Re: Analog Gyro .getAngle() function occasionally giving massive random values

Quote:
Originally Posted by RyanN View Post
Look at your electrical connections. Analog Gyros will give some crazy numbers if they don't have a good connection.

I might be wrong here, but when you have no radial acceleration, the analog gyro should output 2.5V, then increase or decrease depending on which way it's rotated.

If the connection isn't good, the controller won't see 2.5V and will give you widely varying numbers like what you're seeing.
I've replaced the gyro, and it's still acting the same. Overall, the gyro acts normal, has a bit of drift and measures rotation fairly accurately, but every so often it'll spike, but still return to where it should be. I suspect it's software because (iirc) the gyro feeds us rate, and if we were to get a voltage spike, I doubt we'd read the same value as before the spike.
__________________
But why?
 


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 12:42.

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