Go to Post Really, there are very few things in life as beautiful as a person's face when they acquire knowledge. I never tire of it. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 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: 703
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
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
WPI camera code error Phoenix Spud C/C++ 3 15-01-2009 17:44
WPI Lib Source Code from subversion at WPI Sourceforge steinra Programming 6 02-12-2008 16:34
Gyro Code Problems railerobotics Programming 8 27-01-2006 10:45
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09
gyro code odin892 Programming 2 08-04-2003 14:50


All times are GMT -5. The time now is 13:17.

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