|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Accelerometer Bias
I've made our own gyro/accelerometer code because I wanted to do some various things other than what Kevin Watson's code (which is excellently made) did. The gyro code works fine now, however because of the accelerometers' extreme sensitivity, I was wondering how you can make a code to remove the accelerometer bias. My code gets it between 511-512... but since it's an int it goes one way or the other... and by having it at 511... it is enough to quickly make the robot velocity appear as though it is getting negative.
Has anyone else made their own accelerometer code and found a way to fix this? Thanks! |
|
#2
|
||||
|
||||
|
Re: Accelerometer Bias
Quote:
-Kevin |
|
#3
|
|||||
|
|||||
|
Re: Accelerometer Bias
Quote:
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 ![]() |
|
#4
|
||||
|
||||
|
Re: Accelerometer Bias
Quote:
-Kevin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Accelerometer Timer Question | psquared | Programming | 3 | 12-02-2005 01:34 |
| URGENT! We need help with the accelerometer | lkdjm | Electrical | 5 | 11-02-2005 16:42 |
| Accelerometer Wiring/Input | DAN THE MAN | Control System | 1 | 06-02-2005 20:02 |
| Accelerometer vs Gear Tooth Sensors | zdeswarte | Electrical | 4 | 22-01-2005 15:35 |
| Example accelerometer code released. | Kevin Watson | Programming | 0 | 20-01-2005 03:45 |