Added various bits, main reformatted. Added .get to class Servo to allow waiting for rotation before recording information.
Fork of Lab6_Basic by
Diff: main.cpp
- Revision:
- 7:10554a04a34f
- Parent:
- 6:a64d79286726
- Child:
- 9:4bd820ca8300
diff -r a64d79286726 -r 10554a04a34f main.cpp --- a/main.cpp Sat Nov 19 08:32:04 2016 +0000 +++ b/main.cpp Sat Nov 19 09:06:16 2016 +0000 @@ -30,7 +30,7 @@ for (i=0; i<size;i++) { - position_array[i] = i*180/size +20 ; + position_array[i] = i*120/size +20 ; }