We currently have an arm, powered by a motor (port 1). It is attached to a potentiometer, in slot in1.
I am trying to use this code:
Here is where the problem arises. Apparently the motor value needs to be a constant, and I have no idea how to even make that work.
Basically, what my code does is when the arm tries to reach target height 1000. Starting when it is 150 ticks close, it slows down until it has a force of 0 when it reaches the target position.
There are a few rubber bands pulling it up so we don't have to worry about the motors having 1 force and not being able to move the arm up, and we don't care (right now) if the arm goes over the height, but the main priority is just to figure out how to get this working.