Go to Post A FRC team without engaged and motivated students is like a car without wheels... it isn’t going to go very far. - E. Wood [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
  #4   Spotlight this post!  
Unread 01-02-2014, 09:25
owltheory owltheory is offline
Registered User
FRC #2172
 
Join Date: Jan 2014
Location: Ohio
Posts: 6
owltheory is an unknown quantity at this point
Re: gyro.getAngle() only outputs 0.0

Quote:
Originally Posted by tStano View Post
I believe you need to call the method gyro.setSensitivity(double voltsPerDegreePerSecond) in order to make things work.
Thanks for the tip, we'll give that a shot. I think we tried it with a bogus value just to see what would happen, but we'll try to find the actual value and give it a shot.

Quote:
Originally Posted by mschwab013
The problem could be due to GetAngle() not being capitalized. I hope you figure it out soon. Good luck!
Thanks for the suggestion, we'll give that shot too, but I didn't see anything in the javadoc about that method being static. Have you capitalized the method in the past?

I also looked over the example that I originally posted an realized that it stores the value in variable before printing it. I wouldn't think that this would make a difference either, but we're running out of options.

Thanks for the help, I'll keep you updated.
 


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:02.

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