I want to make something move with smooth motion. Think about an elevator, it doesn't go full speed and dead stop when it reaches the desired floor. It goes as fast as it can and incrementally slows down until it reaches the desired floor.
I need a loop that inputs...
int steps = 10;
int target = 100;
So the function will take ten steps to reach the target value of 100.
Ideally this function should act very much like a PID loop.
In essence I'm hoping there is an easier way to acomplish this than creating a PID loop.