|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
Re: Gyro speed and the code
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
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
Re: Gyro speed and the code
Quote:
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
|
||||
|
||||
|
Re: Gyro speed and the code
Quote:
Last years gyro was accurate at rates under 150 degrees per second. Please read the documentation before answering questions. |
|
#9
|
||||
|
||||
|
Re: Gyro speed and the code
Quote:
-Kevin |
|
#10
|
||||
|
||||
|
Re: Gyro speed and the code
If it's turn rate limited, it won't matter where on your bot you are mounting it.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |