Take interleaved accelerometer and gyro readings, and integrate them into

a single attitude estimation.

A bunch of debug stuff, too.
This commit is contained in:
2011-11-04 12:47:16 +00:00
parent 62732758a8
commit 2890007195
7 changed files with 223 additions and 11 deletions

4
main.c
View File

@@ -277,7 +277,9 @@ void menu_handler(void)
break;
case 'P':
putstr("Initialising timer... ");
timer_set_period(10*TIMER_MS);
/* We want a 100Hz loop but two samples per iteration.
* So, we go for 200Hz. */
timer_set_period(5*TIMER_MS);
reply("done");
wmp_start_zero();
break;