Go to Post The pen [may be] mightier than the sword, but the bandsaw can chop them both. - Marc P. [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 06-02-2008, 14:10
Spencer E.'s Avatar
Spencer E. Spencer E. is offline
Android junkie
FRC #1305 (NNSRI Ice3 (cubed))
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2004
Location: Ontario, Canada
Posts: 91
Spencer E. has a spectacular aura aboutSpencer E. has a spectacular aura about
Send a message via MSN to Spencer E.
Gyro speed and the code

I'm currently using Kevin Watson's gyro code and I've noticed when our robot turns a bit too quickly the gyro will fall behind leaving us with an incorrect angle. Now, I know this years gyro has a lot less resolution than the ones from last year but is there any way I could figure out a way for the gyro to keep up through code? I know it would be a bit complicated but I thought I'd ask before either ordering a brand new gyro or finding the gyro from last year. Any help would be appreciated, thanks.
__________________
  #2   Spotlight this post!  
Unread 06-02-2008, 14:19
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: Gyro speed and the code

The old gyro supports 80 degrees per second of rotation and the new one can handle 150 degrees of rotation. Do you know about how fast you are rotation?

Edit: Opps, other way around. I read to quickly and mixed them up.

Last edited by chris31 : 06-02-2008 at 19:40.
  #3   Spotlight this post!  
Unread 06-02-2008, 14:28
Spencer E.'s Avatar
Spencer E. Spencer E. is offline
Android junkie
FRC #1305 (NNSRI Ice3 (cubed))
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2004
Location: Ontario, Canada
Posts: 91
Spencer E. has a spectacular aura aboutSpencer E. has a spectacular aura about
Send a message via MSN to Spencer E.
Re: Gyro speed and the code

Quote:
Originally Posted by chris31 View Post
The old gyro supports 80 degrees per second of rotation and the new one can handle 150 degrees of rotation. Do you know about how fast you are rotation?
I had heard somewhere that the new one had a lower resolution, but anyways, so you're saying the new one has a resolution of 150 degrees/sec? If you are, we are definitely not going anywhere near that close, it could be the way that i have it mounted, but when I do a printf() of the rate I get between -39 and 39 when turning. I'll try mounting it at a different spot on the robot to test it out.
__________________
  #4   Spotlight this post!  
Unread 06-02-2008, 14:30
Nathans Nathans is offline
Registered User
AKA: Nathan
FRC #0004 (Element)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Los Angeles
Posts: 17
Nathans is an unknown quantity at this point
Send a message via AIM to Nathans
Re: Gyro speed and the code

The gyro saturation is 150 deg/s. If your robot turns faster than that, the gyro won't be able to keep up. There isn't really a way around this, other than buying a faster gyro. AD has a 300 deg/s model.
  #5   Spotlight this post!  
Unread 06-02-2008, 14:37
Spencer E.'s Avatar
Spencer E. Spencer E. is offline
Android junkie
FRC #1305 (NNSRI Ice3 (cubed))
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2004
Location: Ontario, Canada
Posts: 91
Spencer E. has a spectacular aura aboutSpencer E. has a spectacular aura about
Send a message via MSN to Spencer E.
Re: Gyro speed and the code

Alright, thanks everyone! I'll try mounting it in a different spot on the robot and see if we get different results.
__________________
  #6   Spotlight this post!  
Unread 06-02-2008, 14:37
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: Gyro speed and the code

I'm not sure what this talk about old gyro vs. new gyro is, but if you are using this year's kit gyro, then you are using a 80 deg/sec gyro.
  #7   Spotlight this post!  
Unread 06-02-2008, 14:45
Spencer E.'s Avatar
Spencer E. Spencer E. is offline
Android junkie
FRC #1305 (NNSRI Ice3 (cubed))
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2004
Location: Ontario, Canada
Posts: 91
Spencer E. has a spectacular aura aboutSpencer E. has a spectacular aura about
Send a message via MSN to Spencer E.
Re: Gyro speed and the code

Quote:
Originally Posted by TubaMorg View Post
I'm not sure what this talk about old gyro vs. new gyro is, but if you are using this year's kit gyro, then you are using a 80 deg/sec gyro.
Okay, that's what I though :S. I'm getting confused, so does anyone know the saturation of the new gyro's this year compared to the last years?

EDIT: Alright, I've read through the rules and this years gyro has a dynamic range of +/- 80 deg/sec whereas last years gyro had a dynamic range of +/- 150 deg/sec. Therefore, I think I'm going to find last year's gyro and hook that up
__________________

Last edited by Spencer E. : 06-02-2008 at 14:53. Reason: Found information
  #8   Spotlight this post!  
Unread 06-02-2008, 14:54
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,276
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Gyro speed and the code

Quote:
Originally Posted by 2008 Sensor Manual;
The actual Yaw Rate Gyro chip that was used in 2007 was the ADXRS150. The
AD22304 has a guaranteed dynamic range of +/- 80 degrees per second vs. the +/- 150
degrees per second for the ADXRS150. Most other specifications are identical.
This year the gyro is accurate at rates under 80 degrees per second.

Last years gyro was accurate at rates under 150 degrees per second.

Please read the documentation before answering questions.
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
  #9   Spotlight this post!  
Unread 06-02-2008, 16:32
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: Gyro speed and the code

Quote:
Originally Posted by Spencer E. View Post
...but is there any way I could figure out a way for the gyro to keep up through code?
While turning, you can monitor the *rate* output and make sure you don't go over 1396 milliradians per second (i.e., 80 degrees per second). You could even craft a software control loop that would ensure you didn't exceed that rate while turning.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #10   Spotlight this post!  
Unread 06-02-2008, 17:29
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: Gyro speed and the code

Quote:
Originally Posted by Spencer E. View Post
Alright, thanks everyone! I'll try mounting it in a different spot on the robot and see if we get different results.
If it's turn rate limited, it won't matter where on your bot you are mounting it.
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
CODE: Using the gyro in autonomous Kingofl337 Programming 1 20-01-2008 19:11
Code to have speed of motors dependent on how hard you push the joystick JoJo5 Programming 15 06-02-2007 12:35
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09
Team 469 and the Gyro archiver 2001 0 24-06-2002 02:57


All times are GMT -5. The time now is 22:27.

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