Go to Post We've done that autonomous. After several years of refinement we decided to skip the information collection and just drive into the wall at the earliest opportunity. - Greg Young [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 13-01-2014, 19:58
ConnorGoldstick ConnorGoldstick is offline
Registered User
FRC #3070 (Team Pronto)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Shoreline
Posts: 2
ConnorGoldstick is an unknown quantity at this point
Gyro Issues

Our gyro isn't working. It is plugged into the Analog Channel and once we run the robot and try to get the gyro angle it starts at about 0.01 and constantly increases. Moving the robot doesn't change the rate at all.

If we try to get the voltage from the Analog Channel the Gyro returns 1.96-1.97 volts which doesn't change if we rotate the robot.

What can we do to fix this?
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2014, 20:12
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Gyro Issues

Make sure the gyro is plugged into either analog channel 1 or analog channel 2. Those are the only ones with the accumulators to convert the rate output to a heading.

If you just look at the analog channel output (not the gyro object angle) you should see the voltage centered near 2.5V. Quickly rotating the robot in one direction will make the voltage go down while it's rotating. Rotating in the other direction should make the voltage go up while it's moving.

When the robot isn't rotating the voltage will go back to 2.5V again since it is measuring rate of rotation.

Once that's working, creating a gyro object should show headings. Be sure that the gyro sensitivity parameter in the class matches the gyro sensitivity specification otherwise it will incorrectly calculate headings.

If you aren't seeing that, make sure that everything is wired correctly.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #3   Spotlight this post!  
Unread 16-01-2014, 00:09
sasha831 sasha831 is offline
Sasha
FRC #4529 (AI Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Australia
Posts: 35
sasha831 is an unknown quantity at this point
Unhappy Re: Gyro Issues

Hello,

Make sure that the Analog Board on the cRio is recieving power. Our's was plugged in backwards, which led to the exact same issue. You can tell that the wiring is correct if the light the analog breakout board is on

Sasha
__________________
Theory is when you know everything but nothing works. Practice is everything works but no one knows why. On our Team, theory and practice are combined: nothing works and no one knows why!

Last edited by sasha831 : 16-01-2014 at 00:22.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-01-2014, 17:31
ConnorGoldstick ConnorGoldstick is offline
Registered User
FRC #3070 (Team Pronto)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Shoreline
Posts: 2
ConnorGoldstick is an unknown quantity at this point
Re: Gyro Issues

Thanks, it turned that the issue was in the wiring. Two of our wires were uncovered and touching which completely messed up the voltage going to the Analog Channel.

Thanks for the help!
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 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