A library used for controlling a quadcopter. It provides an easy to use interface, which allows to mount, calibrate and run motors. It is also able to calibrate the actual speed according to calculated PID roll & pitch difference. I used the original Servo library as ESC modules use the same PWM signal as Servo motors.

Dependents:   QuadcopterProgram

Revision:
6:a6b8e508643d
Parent:
5:2aa78a442132
Child:
7:5ab77c583ae3
diff -r 2aa78a442132 -r a6b8e508643d Quadcopter.h
--- a/Quadcopter.h	Fri Feb 20 00:28:52 2015 +0000
+++ b/Quadcopter.h	Fri Feb 20 00:48:15 2015 +0000
@@ -5,6 +5,30 @@
 #include "Servo.h"
  
 //class used for creating a user friendly interface for controlling quadcopter motors
+/**
+* 
+* 
+* Example:
+* @code
+* #include "mbed.h"
+*
+* Quadcopter quad (p21, p22, p23, p24);   //intance of the Quadcopter class
+*
+* int main(){
+*  
+*   float speed[4];
+*   for (int i = 0; i < 4; i++){    //initialise speed to be 0.2
+*       speed[i] = 0.2;
+*   }
+* 
+*   while(1){
+*       quad.run(speed);    //run
+*   }
+* }
+* @endcode
+*
+*/
+ 
  
 class Quadcopter {
 public: