Quote:
|
Originally Posted by Kevin Watson
This is one of the reasons I oversample the gyro and accelerometer outputs. If you look at my gyro code you'll notice that I sum GYRO_SAMPLES_PER_UPDATE samples and treat that value as though it was a single sample. It's a simple way to get a little more accuracy in your calculations.
-Kevin
|
Hey Kevin,
I havn't looked at your code, but wouldn't you need to divide SUM_OF_SAMPLES by NUMBER_OF_UPDATES, so you would get an avereage value?
I know theres nothing wrong with it, i mean.... hundreds of teams use it, just wondering what exactly you ment...
Thanks,
-Leav
