|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Gyro angle will not work with robot code
Quote:
|
|
#2
|
||||
|
||||
|
Re: Gyro angle will not work with robot code
I can't take a picture of it until tonight. However, I know the wiring is correct because I loaded the sample code on the robot and it ran fine and gave me the angles I wanted.
|
|
#3
|
||||
|
||||
|
Re: Gyro angle will not work with robot code
Quote:
I just saw on another thread that you are intending to use the gyro for your shooter altitude angle. I think you want a potentiometer or encoder instead. |
|
#4
|
||||
|
||||
|
Re: Gyro angle will not work with robot code
I think an encoder would work best. I don't think a potentiometer came in the KOP. Do you have an idea of what would be best for a shooter that is going to only moving up and down in a range of 70 degrees?
|
|
#5
|
||||
|
||||
|
Re: Gyro angle will not work with robot code
Quote:
|
|
#6
|
||||
|
||||
|
Re: Gyro angle will not work with robot code
I don't think I have potentiometer but I can play with an encoder.
|
|
#7
|
|||||
|
|||||
|
Re: Gyro angle will not work with robot code
You must have a Radio Shack or Fry's somewhere near you. Get a 5K or 10K Linear Taper Potentiometer. They're cheap and easy to wire up and get working.
|
|
#8
|
|||
|
|||
|
Re: Gyro angle will not work with robot code
We have seen the constantly increasing gyro behavior which seems to be due to bad connections. Check that the connection to the analog board and the gyro itself are solid and don't have any wire "hairs" shorting. Also, as mentioned, check the datasheet for the gain. Our gyro (I think this year or last year KOP) has a gain of 0.007 instead of the 0.0125 of the examples.
|
|
#9
|
||||
|
||||
|
Re: Gyro angle will not work with robot code
http://www.chiefdelphi.com/forums/sh...42#post1239642
Please see this post, and see if this explains the issue. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|