Added various bits, main reformatted. Added .get to class Servo to allow waiting for rotation before recording information.
Fork of Lab6_Basic by
Diff: Servo.cpp
- Revision:
- 6:a64d79286726
- Parent:
- 4:b3a93554fedf
- Child:
- 8:c2f0e524696b
--- a/Servo.cpp Fri Nov 18 03:59:01 2016 +0000 +++ b/Servo.cpp Sat Nov 19 08:32:04 2016 +0000 @@ -1,5 +1,6 @@ #include "mbed.h" #include "Servo.h" + //added .get() to approximate position // gloabl varevlbe used only inseide the class int value_current; int value_target;