NOT FINISHED YET!!! My first try to get a self built fully working Quadrocopter based on an mbed, a self built frame and some other more or less cheap parts.
Diff: Servo/Servo.cpp
- Revision:
- 1:5a64632b1eb9
- Parent:
- 0:0c4fafa398b4
- Child:
- 7:9d4313510646
--- a/Servo/Servo.cpp Wed Sep 26 12:15:00 2012 +0000 +++ b/Servo/Servo.cpp Fri Sep 28 13:24:03 2012 +0000 @@ -2,9 +2,12 @@ #include "mbed.h" Servo::Servo(PinName Pin) : ServoPin(Pin) { +} + +void Servo::initialize() { // initialize ESC Enable(2000,20000); // full throttle - wait(2); // for 2 secs + wait(0.01); // for 2 secs SetPosition(1000); // low throttle }