Inertial measurement unit orientation filter example.

Dependencies:   mbed IMUfilter

Files at this revision

API Documentation at this revision

Comitter:
aberk
Date:
Sat Nov 27 12:03:06 2010 +0000
Parent:
0:56aa1ac6b59d
Commit message:
Changed constructor arguments to reflect changes in library API.

Changed in this revision

IMUfilter.lib Show annotated file Show diff for this revision Revisions of this file
IMUfilter_lib.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 56aa1ac6b59d -r 9133b457bb41 IMUfilter.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/IMUfilter.lib	Sat Nov 27 12:03:06 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/aberk/code/IMUfilter/#8a920397b510
diff -r 56aa1ac6b59d -r 9133b457bb41 IMUfilter_lib.lib
--- a/IMUfilter_lib.lib	Tue Aug 03 15:09:45 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/aberk/programs/IMUfilter_lib/latest
\ No newline at end of file
diff -r 56aa1ac6b59d -r 9133b457bb41 main.cpp
--- a/main.cpp	Tue Aug 03 15:09:45 2010 +0000
+++ b/main.cpp	Sat Nov 27 12:03:06 2010 +0000
@@ -2,7 +2,9 @@
 
 Serial pc(USBTX, USBRX);
 
-IMUfilter imuFilter(0.1);
+//Change the second parameter (which is a tuning parameter)
+//to try and get optimal results. 
+IMUfilter imuFilter(0.1, 10);
 
 AnalogIn accelerometerX(p15);
 AnalogIn accelerometerY(p16);