Go to Post Mountain Dew and Taco Bell. Nom Nom Nom. - R.C. [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 19-02-2013, 14:08
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
 


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 10:07.

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