|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Problem with gyro...
I don't know what's happening to my gyro... i think it works by it's own will...
Sometimes it works, or sometimes it gives me values that are always growing If someone knows what's this, please tell me =D |
|
#2
|
|||||
|
|||||
|
Re: Problem with gyro...
Did you compute the bias?
|
|
#3
|
||||
|
||||
|
Re: Problem with gyro...
Quote:
[1] In competition, you turn on the bot and let it sit there for minutes motionless before they start autonomous, so the gyro will have plenty of time to calibrate. |
|
#4
|
||||
|
||||
|
Re: Problem with gyro...
this happened to someone else on the forum last week.
the wire colors called out on the gyro board are mislabeled. If you hooked up the cable to match the markings on the board it will do exactly what you are seeing. Check the gyro documentation for the correct pinout. |
|
#5
|
||||
|
||||
|
Re: Problem with gyro...
this is the exact reason we stopped using the qyro and started using geartooth. Think about it
|
|
#6
|
||||
|
||||
|
Re: Problem with gyro...
Quote:
![]() |
|
#7
|
||||
|
||||
|
Re: Problem with gyro...
Wheel slippage (unless you have wheels with no traction(which you shouldn't)) will not be a problem with a robot over 90 pounds, as long as you account for acceleration. Though this might sound iffy (or ifi
), the calculation is easier than writing code for the gyro.Last edited by xolnian : 15-02-2006 at 16:18. |
|
#8
|
||||
|
||||
|
Re: Problem with gyro...
Quote:
From an early version of my team's code, assuming you have Kevin's code in place already: Code:
error=phi-theta; // in milliradians
//Make sure you go the right way around the circle
if (error>3141L) {error-=6283;}
if (error<-3141L) {error+=6238;}
Kp=360;
omega=(long)Kp*(long)error/2000L;
// Set limit bands
if(omega>64){omega=64;}
if(omega<-64){omega=-64;}
left_pwm-=omega;
light_pwm-=omega;
|
|
#9
|
||||
|
||||
|
Re: Problem with gyro...
also, geartooth can tell distance, gyro can't. The geartooth can also tell you direction, think about it.
|
|
#10
|
|||
|
|||
|
Re: Problem with gyro...
Quote:
|
|
#11
|
|||
|
|||
|
Re: Problem with gyro...
Quote:
What's easier:
I guess it's up to you though... Think about it. ![]() |
|
#12
|
||||
|
||||
|
Re: Problem with gyro...
Quote:
|
|
#13
|
||||
|
||||
|
Re: Problem with gyro...
Quote:
and there is no way your robot will ever hit the wall or sides, and sit there spinning its wheels, thinking its still moving forwards? Experience is a cruel teacher. First you are tested, then you learn the lesson. |
|
#14
|
||||
|
||||
|
Re: Problem with gyro...
And your saying that you could recover during autonomous with your gyro? No, you couldn't. Also, if you are going for the side goals, and if you go for the nearest goal, then you'll get there before anyone could bump you (as long as your robot is decently fast.) If you get bumped while shooting, you shouldn't be worried about recovering with the gyro because you'll use the cam. And most likely you won't be using either gyro or gear tooth during non-autonomous mode.
|
|
#15
|
||||
|
||||
|
Re: Problem with gyro...
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gyroscope Code | Kevin Watson | Programming | 65 | 01-03-2008 23:46 |
| Gyro not accurate - Problem | naor52 | Programming | 15 | 27-01-2006 16:50 |
| Gyro code problem | AMIRAM | Programming | 10 | 23-01-2006 04:26 |
| Updated: Example Gyro Interface Code | Kevin Watson | Programming | 2 | 28-03-2005 04:36 |
| Example gyro code released. | Kevin Watson | Programming | 60 | 17-03-2005 18:32 |