View Single Post
  #1   Spotlight this post!  
Unread 15-01-2009, 20:19
Phoenix Spud's Avatar
Phoenix Spud Phoenix Spud is offline
Everyone. Everywhere.
FRC #3132 (Thunder Down Under)
Team Role: College Student
 
Join Date: Jan 2009
Rookie Year: 2004
Location: Sydney, Australia
Posts: 702
Phoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond reputePhoenix Spud has a reputation beyond repute
WPI gyro code question

We hooked up the gyro (yeah!!!) and used WPI's sample code. We found that thatthe gyro that came in the KOP does not work with WPI's library. It will give you half (apx.) of the correct value. We hooked up an old gyro and found that it actually worked. Next we doubled the value of SetSensitivity, we thought that this would fix the problem. What it actually did is halved the number we were getting. This made our reading 1/4 of what it actually should be. We looked at the library more and realized that the library was using the reciprocal of the number we were supplying to SetSensitivity. So we gave it half of the original number. Although this was closer to the actual reading, it still was not exact. Our best guess is that WPI made the gyro class with the old gyro, hence why our old gyro worked. Has anyone else found this problem, or the fix? Or do you know if WPI plans to put out a fix for this?
__________________
Sarah Heimlich
Outreach Mentor | Business Mentor
FIRST® TEAM 3132
Reply With Quote