Made changes to individually control servo speeds

Dependents:   VariableSpeedServo

Fork of Servo by Jasper Denkers

Revision:
4:8bdb46e629b9
Parent:
3:774dd54867f2
--- a/Servo.cpp	Mon Oct 12 14:56:58 2015 +0000
+++ b/Servo.cpp	Wed Oct 14 02:10:23 2015 +0000
@@ -54,6 +54,7 @@
     SpeedConvert(_speed);
     Period = (1000000/RefreshRate);                            //converts from HZ to period in  us
     Position = StartPos;
+    NewPosition = StartPos;
     CurrentPosition = StartPos;                              //sets CurrentPosition to  StartPos value
     Pulse.attach_us(this, &Servo::StartPulse, Period);       //starts servo period Ticker r
     Speed.attach_us(this, &Servo::Update, speed);            //starts servo Speed Ticker  speed of servo update pulse width steps in  us,    slow =100000 100ms per step