Go to Post Don't put sprockets in an empty pizza box and then throw it into the garbage. Something we learned from experience. - Herodotus [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 02-19-2013, 02:08 PM
Negative 9 Negative 9 is offline
Registered User
FRC #0611
 
Join Date: Dec 2012
Location: Mclean, VA
Posts: 46
Negative 9 is an unknown quantity at this point
Gyroscope troubles

We are trying to use the AM Dual Gyro/Accelerometer to detect the angle of our shooter. We have it mounted perpendicular to our shooter so that it detects the axis of rotation of the shooter rather than the robots. We also only have the rate part of the gyro wired up to the analog breakout(which we recently found out needs to be separately powered).

Initialization (plugged in to the slot labeled 1 on the analog breakout)
Code:
Gyro gyro = new Gyro(1);
The problem is is that when we print out the angle of the gyroscope using:
Code:
gyro.getAngle();
All we see is that very slowly decreases no matter what. It doesn't respond to any movement and probably more alarmingly does not change its behavior when it isn't plugged in.

Any ideas?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-19-2013, 02:26 PM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,997
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Gyroscope troubles

Quote:
Originally Posted by Negative 9 View Post
We are trying to use the AM Dual Gyro/Accelerometer to detect the angle of our shooter...Any ideas?
Your post is a bit ambiguous, but if you mean the altitude angle of the shooter, a potentiometer is a better choice for this.


Reply With Quote
  #3   Spotlight this post!  
Unread 02-19-2013, 04:55 PM
Negative 9 Negative 9 is offline
Registered User
FRC #0611
 
Join Date: Dec 2012
Location: Mclean, VA
Posts: 46
Negative 9 is an unknown quantity at this point
Re: Gyroscope troubles

Quote:
Originally Posted by Ether View Post
Your post is a bit ambiguous, but if you mean the altitude angle of the shooter, a potentiometer is a better choice for this.


You're right, but we can't really get our hands on one of those in the next few hours.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-19-2013, 04:56 PM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,997
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Gyroscope troubles

Quote:
Originally Posted by Negative 9 View Post
You're right, but we can't really get our hands on one of those in the next few hours.
How about an encoder?

Post photos of how you have the gyro wired up: one photo for each end of the cable. Please use the macro setting on your camera for close-ups.


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:48 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