View Single Post
  #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.