Latest version of my quadcopter controller with an LPC1768 and MPU9250.
Currently running on a custom PCB with 30.5 x 30.5mm mounts. There are also 2 PC apps that go with the software; one to set up the PID controller and one to balance the motors and props. If anyone is interested, send me a message and I'll upload them.
Diff: Filters/MAfilter.h
- Revision:
- 0:0929d3d566cf
- Child:
- 4:fab65ad01ab4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Filters/MAfilter.h Mon Jul 09 16:31:40 2018 +0000 @@ -0,0 +1,26 @@ +#ifndef MAfilter_h +#define MAfilter_h + +//#include "mbed.h" +class MAfilter { + private: + float filterbuff[200]; + float out; + int i; + + public: + float run(float input); +}; + +class MAfilter10 { + private: + float filterbuff[10]; + float out; + int i; + + public: + float run(float input); +}; + +#endif +