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

Dependencies:   mbed

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.

Filters/MAfilter.h

Committer:
Anaesthetix
Date:
2018-07-31
Revision:
8:981f7e2365b6
Parent:
4:fab65ad01ab4

File content as of revision 8:981f7e2365b6:

// Coded by Erik van de Coevering 

#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