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.

Committer:
Anaesthetix
Date:
Tue Jul 31 20:36:57 2018 +0000
Revision:
8:981f7e2365b6
Parent:
0:0929d3d566cf
Switched from Madgwick to Mahony as I'm having trouble with slow oscillations caused by the madgwick filter. Fixed an error on the PID algorithm also.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Anaesthetix 0:0929d3d566cf 1 /* mbed PowerControl Library
Anaesthetix 0:0929d3d566cf 2 * Copyright (c) 2010 Michael Wei
Anaesthetix 0:0929d3d566cf 3 */
Anaesthetix 0:0929d3d566cf 4
Anaesthetix 0:0929d3d566cf 5 //shouldn't have to include, but fixes weird problems with defines
Anaesthetix 0:0929d3d566cf 6 #include "LPC17xx.h"
Anaesthetix 0:0929d3d566cf 7
Anaesthetix 0:0929d3d566cf 8 #ifndef MBED_CLOCKCONTROL_H
Anaesthetix 0:0929d3d566cf 9 #define MBED_CLOCKCONTROL_H
Anaesthetix 0:0929d3d566cf 10
Anaesthetix 0:0929d3d566cf 11 unsigned int setSystemFrequency(unsigned char clkDivider, unsigned char clkSrc, unsigned short M, unsigned char N);
Anaesthetix 0:0929d3d566cf 12 void setPLL0Frequency(unsigned char clkSrc, unsigned short M, unsigned char N);
Anaesthetix 0:0929d3d566cf 13 void setPLL1Frequency(unsigned char clkSrc, unsigned short M, unsigned char N);
Anaesthetix 0:0929d3d566cf 14 #endif
Anaesthetix 0:0929d3d566cf 15