![]() |
Gyro won't work right =?
We decided that we were going to program an alternate plan for our Autonomous code, so I wrote some code and wired it up today...but I got some strange numbers.
The number was just a really long decimal that slowly incremented or decremented. I'm thinking that the cable must just be soldered badly or something, but I ran out of time, and thought I should ask here so I don't waste too much time on Thursday. Here is the code (stripped down really far:) Code:
Gyro* gyro;//Declaration |
Re: Gyro won't work right =?
You have to set the sensitivity using Gyro::SetSensitivity() which you can find the sensitivity in the sensor manual on the us first site, (depending on the sensor you have)
|
Re: Gyro won't work right =?
Hmm, I thought it said that it was already set for the kit gyro, ah well. I will try that today! THanks!
~DtD |
Re: Gyro won't work right =?
Quote:
|
Re: Gyro won't work right =?
The sensitivity for the KOP gyro is 0.007. We had the same problem until we used this number. :rolleyes: Also you may want to use cout.
Hope this is helpful!! |
| All times are GMT -5. The time now is 02:35. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi