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.
Diff: Quadcopter.h
- Revision:
- 10:8147131fcebd
- Parent:
- 9:22c52af13ac2
diff -r 22c52af13ac2 -r 8147131fcebd Quadcopter.h --- a/Quadcopter.h Wed Feb 25 00:55:08 2015 +0000 +++ b/Quadcopter.h Wed Feb 25 10:42:36 2015 +0000 @@ -81,7 +81,14 @@ */ void stabilise (float* speed, float* actSpeed, float rollDiff, float pitchDiff); + /** + * Function used to get the lower calibration limit. + */ float getLowerLimit(); + + /** + * Function used to get the upper calibration limit. + */ float getUpperLimit(); private: