Hi all Glad to be here!.
I am a thousand miles away from being a regular Arduino programmer, but this short and easy piece of code is taking my sleep away.
And if you don't mind, let's go straight to the point.
--- I use an Arduino UNO board on Windows7 with Arduino 1.6.10.
--- I want to make move a servo controlling its rotating speed but keeping its torque.
--- I have just found the VarSpeedServo librarie.
--- The VarSpeedServo librarie has been installed from the .zip file with Arduino 1.6.10 in C:/Users/My name/My Documents/Arduino/libraries. Skecthes are kept in C:/Users/My name/My Documents/Arduino/
--- VarSpeedServo.cpp file has been modified, changing 'Wprogram.h' for 'Arduino.h'.
--- I have read everything on VarSpeedServo librarie here and at Adafruit's.
--- I have found this piece of code ( Sample Code - one servo moving, wait for first movement to finish, then execute another movement ) here ( GitHub - netlabtoolkit/VarSpeedServo: Arduino library for servos that extends the standard servo.h library with the ability to set speed, and wait for position to complete ).
--- This piece of code is cited at some threads on this forum, but unfortunately can't find a solution yet.
--- On my side, in the functions myservo.write(), I have changed the hard coded values (0, 180, etc.) for 'int' variables like pos1, pos2, vel1 y vel2 as constants.
--- I have tried to compile it once and again to no avail. So, in my quest to find out what's going wrong, I am compiling it by parts.
--- And so far, I only get to compile correctly this code:
#include <VarSpeedServo.h>;
VarSpeedServo myservo;Â Â
const int servoPin = 9;
const int pos1 = 0;
const int pos2 = 180;
const int vel1 = 100;
const int vel2 = 30;
void setup() {
 myservo.attach(servoPin);Â
 //myservo.write(pos1,vel1,true);
}
void loop() {
 //myservo.write(pos2,vel1,true);
 //myservo.write(pos1,vel2,true);
delay(1000);
}
--- But as soon as I take away the bars // before the myservo.write() function at:
void setup():
myservo.write(pos1,vel1,true); and
void loop():
myservo.write(pos2,vel1,true);
myservo.write(pos1,vel2,true);
and try to compile, I get an error like the one in the attached file, ending with this:
...
exit status 1 no matching function for call to 'VarSpeedServo::write(const int&, const int&, bool)'
I will truly thank any help from you.
Engadin.