Set a new interpolated value for the speed.
speed
void setSpeed(double newSpeed) => speed = newSpeed;