Latest version of my quadcopter controller with an LPC1768 and MPU9250.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MAfilter.h Source File

MAfilter.h

00001 // Coded by Erik van de Coevering 
00002 
00003 #ifndef MAfilter_h
00004 #define MAfilter_h
00005 
00006 //#include "mbed.h"
00007 class MAfilter {
00008     private:
00009         float filterbuff[200];
00010         float out;
00011         int i;
00012     
00013     public: 
00014         float run(float input);
00015 };
00016 
00017 class MAfilter10 {
00018     private:
00019         float filterbuff[10];
00020         float out;
00021         int i;
00022     
00023     public: 
00024         float run(float input);
00025 };
00026 
00027 #endif
00028