|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: BEI Gyrochip AQRS - just counting up?
Thats one thing my kitchen shop needs is an oscilloscope - but until then that test might have to wait. the robot is still as it boots up. Maybe what I need to do is reset/realign the gyro after initial initialization?
|
|
#2
|
|||||
|
|||||
|
Re: BEI Gyrochip AQRS - just counting up?
Do you have a voltmeter? That should at least let you see that the output is relatively stable when the gyro is not being rotated, and that it increases or decreases when it is.
|
|
#3
|
|||||
|
|||||
|
Re: BEI Gyrochip AQRS - just counting up?
I'd try defining/reading it as a straight raw analog input through the cRIO to begin with, just to see the raw data it's sending without the gyro software massaging.
See if it returns close to 2.5v while at rest. It's probably the 75 degress per second model, so it'll be good on the straight and narrow, but not so good on turns. P.S. What gain did you use when you defined it as a gyro, e.g., .03 volts/degree/sec? How did you wire the three pins, since the order might not be what you expected (pin A= +5v, pin B=ground, pin C= analog signal (.25 to 4.75v))? These can be damaged by drops or other sudden shocks. Last edited by Mark McLeod : 16-04-2012 at 14:19. |
|
#4
|
||||
|
||||
|
Re: BEI Gyrochip AQRS - just counting up?
Self imposed issue - I had two documents one with an A,B,C pin out, and one with 1,2,3 pin out - I used the wrong one - explains the issue. Corrected the wiring snafu and all systems are go. It's looking very stable out of the box without any filtering (which I plan on experimenting with). Seems like a nice one axis gyro to me!
|
|
#5
|
||||
|
||||
|
Re: BEI Gyrochip AQRS - just counting up?
As far as setting things like gain during initialization....I'm not - should I be?
|
|
#6
|
|||||
|
|||||
|
Re: BEI Gyrochip AQRS - just counting up?
Quote:
You can use the SetSensitivity method to make sure it matches the gyro you are currently using. With an incorrect gain, the GetAngle value will also be incorrect. How much of a problem that is depends on how and for what purpose you plan to use the gyro. If you're just using it to drive straight, then your correction coefficent can overcome the incorrect angle reading-you're looking for a zero angle all the time. You just won't be able to swap gyros without recalculating/experimenting with a new coefficent. If you're using the gyro to turn to a specific angle, then it won't work at all. Well, it will turn to an angle, but 90 degrees will read as something else, e.g., ~21 degrees. Last edited by Mark McLeod : 17-04-2012 at 15:11. |
|
#7
|
|||
|
|||
|
Re: BEI Gyrochip AQRS - just counting up?
If you have a cRIO, you have an oscilloscope. In LV you can just drop a graph indicator on an analog read. The default FRC setup isn't really intended for this, so you won't get as many samples per second as the hardware is capable of (500kS/s on a single channel), but it should be more than sufficient for these purposes.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|