Servo/Linear Actuator Code troubleshooting

It looks like you didn't post all your code in post #2. I don't see the end of the loop function.