|
Re: Accelerometer code?!
Kevin's code is pretty much the same as what you are doing if you set it to average only a couple samples. If you bump that number up to, say, 16, then you have a much improved acceleration/angular_velocity value.
There's also a very good bias detection algorithm (its simple too!).
__________________
Joel Johnson
Division By Zero ( 229) Alumni, 2003-2007
RAGE ( 173) Alumni, 1999-2003
Last edited by Joel J : 25-01-2006 at 00:56.
|