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/LPfilter.h
- Revision:
- 7:d86c41443f6d
- Parent:
- 4:fab65ad01ab4
diff -r 033ad7377fee -r d86c41443f6d Filters/LPfilter.h --- a/Filters/LPfilter.h Sat Jul 14 10:30:20 2018 +0000 +++ b/Filters/LPfilter.h Tue Jul 17 14:56:05 2018 +0000 @@ -10,7 +10,7 @@ #define LP_E 2.0f #define LP_F 1.0f - +/* class LPfilter { private: float filterbuffer[3]; @@ -38,6 +38,18 @@ public: float run(float input); }; +*/ +class LPfilter8 { + private: + float filterbuffer1[3]; + float filterbuffer2[3]; + float filterbuffer3[3]; + float filterbuffer4[3]; + float out_temp1, out_temp2, out_temp3; + float out; + public: + float run(float input); +}; #endif