|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#31
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
-Kevin |
|
#32
|
|||
|
|||
|
Re: Example gyro code released.
Kevin
I am a member of team 335 and one of 2 programmers. I have only been programming for a year and hardly know C(only know what i have read in Books). I was wondering how to use the cmu camera and the gyro together for locating and directing a robot during the 15s. here is the desired algorithm field [1/2 field length][1/2 field width] Initilize camera Track_color(green) move_to_green() Map_position_to_array |
|
#33
|
|||||
|
|||||
|
Re: Example gyro code released.
I had a question similar to Tom's in that by using another gyro not to measure heading, but instead use it as tip sensor. Also I would like to use the accelerometer(instead of quadrature encoders) in autonomous mode which with the locking of the ADC I can't do that.
|
|
#34
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
Quote:
-Kevin |
|
#35
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
-Kevin |
|
#36
|
|||||
|
|||||
|
Re: Example gyro code released.
Wait.... You are going to make it so we can use that scripting stuff to control the robot with the camera? If so then that is absolutely the best news I have ever heard
. I wish the default camera code was designed more for autonomous operation, rather than with a joystick and such. It would have saved me a lot of trouble. |
|
#37
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
-Kevin |
|
#38
|
|||||
|
|||||
|
Re: Example gyro code released.
When I said using the accelerometer instead of quadrature encoders I meant to that it would be used along side the gear tooth sensors so that my team does not have to pay for the quadrature encoders they can use what is given in the kit. The accelerometer would only be used to integrate to velocity not position so that the teams could use only the sensors provided in the kit and have a little more knowledge of where there robot was going on the field.
|
|
#39
|
|||||
|
|||||
|
Re: Example gyro code released.
I am having a bit of a problem with the gyro code at least I think I am... just to test out the gyro (a BEI Gyrochip ARQS-00075) I plugged it in and downloaded the code (edit: the newest frc_gyro code), and in the Terminal window for the Gyro Angle's output the value just keeps increasing infinitely. When I unplug the gyro while this is running it starts to decrease infinitely. To make sure the gyro was working I just tried doing an output of the analog value and it seemed to be fine. Any ideas? (sorry I don't have more exact information, I don't have all the hardware at my house!)
|
|
#40
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
-Kevin |
|
#41
|
||||
|
||||
|
Re: Example gyro code released.
Is the BEI gyro really illegal to use? I am a rookie engineer this year and see that Kevin Watson has included configuration for it in his navigation code. Our team coach handed me the sensor, from last year's kit, and I have begun wiring it in. IF illegal, why? I saw that the BEI gyro can be purchased on the web. Wouldn't a team just
count it's price in the electronics price of it's parts or is there some rule about past electronics parts. It seems awfully silly to have to not be able to reuse last year's electronic parts. |
|
#42
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
-Kevin |
|
#43
|
||||||
|
||||||
|
Re: Example gyro code released.
Quote:
Quote:
|
|
#44
|
||||
|
||||
|
Re: Example gyro code released.
Quote:
-Kevin |
|
#45
|
|||||
|
|||||
|
Re: Example gyro code released.
Quote:
-dave |
![]() |
| 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 |