|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Example gyro code released.
Quote:
:-) Gary |
|
#2
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
-Kevin |
|
#3
|
|||
|
|||
|
Re: Example gyro code released.
Kevin, the gyro code has worked fine for us. We are able to track heading, and stick to a heading. We arent using the scripting, for lack of need.
As soon as we get our encoders in, I will post how the PID works out. |
|
#4
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
-Kevin |
|
#5
|
|||
|
|||
|
Re: Example gyro code released.
For now, we are using the BEI gyrochip provided in the 2003 kit. This is for testing purposes, seeing as they are illegal for robot use. We are getting gyro bias at startup, with the Calc_Gyro_Bias() function (we plan to poll it more, but we have only done basic tests, seeing how we are learning this as we go). Our gyro use code hasnt really been developed, since we are waiting for our encoder delivery, and we are planning to tackle the PID system all at once. But in our initial tests, we were seeing a bit of drift; The heading would waver about +- 17 milliradians every 8 seconds. (I dont believe we had the scale factor set the right way, seeing as one rotation was giving us a heading of about 10000 mRads.)
In order to keep costs down, I was hoping to use the provided accelerometer in place of a yaw gyro for the bot. Im guesing this would work with the gyro driver you wrote, but is there anything I need to change? (yanno.. something that I would probably never be able to figure out on my own.) As for the drift, we have explored 2 options. One was to mount the gyro to a piece of foam tape or rubber, hoping it would cut out motor/compressor vibrations. I think the gyro bias is being set incorrectly due to the vibrations, and since for now we are only polling for bias once, it may have ill effect on our code. Any tips? Thanks. |
|
#6
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
Quote:
Quote:
-Kevin |
|
#7
|
|||||
|
|||||
|
Re: Example gyro code released.
Quote:
Quote:
Last edited by neilsonster : 22-01-2005 at 12:19. |
|
#8
|
|||
|
|||
|
Re: Example gyro code released.
Quote:
|
|
#9
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
-Kevin |
|
#10
|
|||||
|
|||||
|
Re: Example gyro code released.
I don't believe that the BEI gyro's are legal because the lowest price I have been able to find them for is approximately $350 which over the $200 price limit for additional electronics. If anyone has seen a gyro for sale cheaper then that, that would follow the vendor requirements that FIRST has laid out please post a link because I have 3 of them sitting in the shop that I would love to use on this years robot.
|
|
#11
|
|||||
|
|||||
|
Re: Example gyro code released.
Quote:
Edit: Actually, on second thought, does anyone know for sure if the fact that FIRST gave it to us in previous years makes a difference? Last edited by neilsonster : 22-01-2005 at 12:23. |
|
#12
|
|||
|
|||
|
Re: Example gyro code released.
Quote:
Thanks |
|
#13
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
-Kevin |
|
#14
|
|||
|
|||
|
Re: Example gyro code released.
Quote:
|
|
#15
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
-Kevin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sourceforge for Code Repository and other stuff | SilverStar | Programming | 9 | 15-01-2005 21:16 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |
| Wierd gyro code problems...pls help | Salik Syed | Programming | 4 | 14-03-2004 01:29 |
| Infrared Beacon and Sensor Diagnostics Code Released | Kevin Watson | Programming | 3 | 25-02-2004 17:50 |
| gyro code | odin892 | Programming | 2 | 08-04-2003 14:50 |