Go to Post Where before there was boredom and lack of understanding, suddenly I saw why competitions would be fun. Not to sound corny or anything, but it brought a side out of me that I used to never show people in public. I danced, cheered, screamed, and had a blast. - DevilChild [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2008, 22:57
manderson5192 manderson5192 is offline
Registered User
AKA: Matt Anderson
FRC #0948 (Newport Robotics Group: NRG (pronounced eNeRGy))
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Bellevue, WA
Posts: 62
manderson5192 is on a distinguished road
What's Wrong with our Gyro???

Hey guys,

We have hooked up our gyro properly (found out about the weird naming convention for TW vs. RW the hard way) and have the gyro code working in what seems to be the right way. What we have seen is that the gyro will detect the angular velocity in one direction the proper way but spit out random numbers for the other direction. When we flip the gyro upside down the results are the same but, as expected, the working direction is the other one. My question is: how do we make the gyro give reliable results in both directions? We are using the 2008 KOP gyro.

Thanks,
Matt
  #2   Spotlight this post!  
Unread 08-02-2008, 00:31
TubaMorg TubaMorg is offline
Programmermechanicalelect ricalcoach
AKA: Dan
FRC #1480 (Robatos Locos)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Houston
Posts: 450
TubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond repute
Re: What's Wrong with our Gyro???

Could you post your gyro code? I'm guessing you are having a type over flow problem. For example you may be assigning a negative value to an unsigned int which will give you nutty output in that direction.
  #3   Spotlight this post!  
Unread 08-02-2008, 00:40
manderson5192 manderson5192 is offline
Registered User
AKA: Matt Anderson
FRC #0948 (Newport Robotics Group: NRG (pronounced eNeRGy))
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Bellevue, WA
Posts: 62
manderson5192 is on a distinguished road
Re: What's Wrong with our Gyro???

The code we are using is exactly what is in Kevin Watson's latest C18 3.0 code. The gyros are fully enabled and we are using his code for outputting the gyro_rate to the terminal window.
  #4   Spotlight this post!  
Unread 08-02-2008, 01:51
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: What's Wrong with our Gyro???

Quote:
Originally Posted by manderson5192 View Post
The code we are using is exactly what is in Kevin Watson's latest C18 3.0 code. The gyros are fully enabled and we are using his code for outputting the gyro_rate to the terminal window.
When you do a bias calibration, what value do you get?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #5   Spotlight this post!  
Unread 08-02-2008, 09:08
Bluefire66's Avatar
Bluefire66 Bluefire66 is offline
Registered User
AKA: Alex Girard
FRC #0843 (The Wildcats)
Team Role: Electrical
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Oakvile,Ontario,Canada
Posts: 7
Bluefire66 is an unknown quantity at this point
Re: What's Wrong with our Gyro???

i think my team is having the same problem with it spitting out randon numbers(im not the programing team) so ill ask them tomorrow
__________________
2007 VCU Regional CHAMPIONS
Closed Thread


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
pic: What's wrong here? Branden Ghena Extra Discussion 15 30-03-2007 11:20
Something Wrong with usfirst! Eric W. Jones General Forum 5 09-01-2007 02:01
You cant go wrong with charitys! A.Lathrop Fundraising 0 20-02-2006 19:16
pic: What's wrong with this picture - Why were we shut off? CD47-Bot Extra Discussion 12 04-10-2004 19:16
Whats wrong with this code? Morgoth Programming 4 19-01-2003 11:45


All times are GMT -5. The time now is 04:45.

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