Servo Speed Control MegaADK SoftwareServo.h

Im trying to control up to 40 servos, independently, and using pressure sensitive inputs (PSI). That is the first step.

I am using a MegaADK, with flexiforce type sensors and some Hitec servos.

The servos should move in tic-toc fashion, say between 90 and 130 degrees for example. The PSI´s I would like to moderate how quickly the servos move to their new position. So the change in resistivity of the PSI should correspond to a change in velocity of the servo. If i push lightly, the servo moves more slowly. If i push hard, the servo moves more rapidly to its final destination.

The problem Im having is the speed regulation of servos.

I was able to find similar threads, but not yet resolved.

http://forum.arduino.cc/index.php?topic=117879.0

This program SoftwareServo.h apparently lets one modify the pulse packet sent to the Servo, to give speed regulation. However, I am using Arduino 1.0.5, and I cannot get the library to load via the #include command

I get this message, similar to the last post. However when I make the changes recommended in the post, I still cannot get the SoftwareServo to go. Also, Im not sure what an IDE is.

My goal is only to control servo speed moving in tic-toc fashion when some sensor is actuated. Either using SoftwareServo.h library or some other. Please, any recommendations would really help.

C:\Users\El Americano\Documents\Arduino\libraries\SoftwareServo\SoftwareServo.cpp: In member function 'uint8_t SoftwareServo::attach(int)':
C:\Users\El Americano\Documents\Arduino\libraries\SoftwareServo\SoftwareServo.cpp:27: error: 'digitalWrite' was not declared in this scope
C:\Users\El Americano\Documents\Arduino\libraries\SoftwareServo\SoftwareServo.cpp:28: error: 'OUTPUT' was not declared in this scope
C:\Users\El Americano\Documents\Arduino\libraries\SoftwareServo\SoftwareServo.cpp:28: error: 'pinMode' was not declared in this scope
C:\Users\El Americano\Documents\Arduino\libraries\SoftwareServo\SoftwareServo.cpp: In member function 'void SoftwareServo::write(int)':
C:\Users\El Americano\Documents\Arduino\libraries\SoftwareServo\SoftwareServo.cpp:51: error: 'clockCyclesPerMicrosecond' was not declared in this scope
C:\Users\El Americano\Documents\Arduino\libraries\SoftwareServo\SoftwareServo.cpp: In static member function 'static void SoftwareServo::refresh()':
C:\Users\El Americano\Documents\Arduino\libraries\SoftwareServo\SoftwareServo.cpp:73: error: 'millis' was not declared in this scope
C:\Users\El Americano\Documents\Arduino\libraries\SoftwareServo\SoftwareServo.cpp:106: error: 'digitalWrite' was not declared in this scope
C:\Users\El Americano\Documents\Arduino\libraries\SoftwareServo\SoftwareServo.cpp:108: error: 'TCNT0' was not declared in this scope
C:\Users\El Americano\Documents\Arduino\libraries\SoftwareServo\SoftwareServo.cpp:123: error: 'digitalWrite' was not declared in this scope

http://forum.arduino.cc/index.php?topic=117879.0

Servo speed control stuff. You might consider using servo controllers to simplify the programming.

http://forum.arduino.cc/index.php/topic,61586.30.html