View Single Post
  #4   Spotlight this post!  
Unread 27-01-2015, 15:22
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Gyro class issue?

You need to set the sensitivity of the gyro using setSensitivity() so it knows how to convert from voltage to angle. This needs to be in volts/degree/second, this number can usually be found on the gyro's datasheet.

It is defaulting to 0, that is why you are getting a voltage but no angle.
Reply With Quote