|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Accelerometer code?!
HI Kevin
I would like to know, what are the advantages of using the full-length accelarometer code found in your website? I was able to get the accelarometer working and printing values by simply doing x=Get_Analog_Value(rc_ana_in01); printf("%d\n",(int)x); and then got to an equasion and finished up the story. |
|
#2
|
||||
|
||||
|
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!). Last edited by Joel J : 25-01-2006 at 00:56. |
|
#3
|
||||
|
||||
|
Re: Accelerometer code?!
Quote:
-Kevin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Out of the Box Camera Code | russell | Programming | 9 | 21-10-2009 05:28 |
| Some things i'm trying to understand on Kevin's Accelerometer Code | Squall | Programming | 2 | 03-02-2005 12:01 |
| Team THRUST - Kevin's Code and Camera Code Combine | Chris_Elston | Programming | 3 | 31-01-2005 22:28 |
| Example accelerometer code released. | Kevin Watson | Programming | 0 | 20-01-2005 03:45 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |