Go to Post If it weren't for him, I wouldn't be asking why and how, I'd be playing LoL. Now, I do both XD - faust1706 [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 27-01-2015, 15:07
acastagna acastagna is offline
Registered User
FRC #1493
 
Join Date: Jan 2012
Location: Albany High School
Posts: 35
acastagna is an unknown quantity at this point
Gyro class issue?

I'm using an Analog Devices ADW22307 gyro and haven't been able to get a reading out of it using the gyro class.

We are programming in Java and the code is:

Gyro gyro = new Gryro(1);
...
gyro1.reset();
angle1 = gyro.getAngle()


When we try to print the value to the SmartDash we get nothing. We tried several other gyros with no luck. We tried defining an analog input channel to directly get the voltage output from the gyro, and that works. The voltage is 2.45V when the gyro is stationary as expected, and then we see it increase or decrease if rotated the gyro, so it seems the gyro itself is working.

Has anyone else run into this problem?
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 22:25.

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