Error with PID

While using PID on our robot, the robot always returns to the 0 position no matter what. If we move the joystick full throttle, the robot barely moves then returns to its starting position.

Is there any way to fix this?

Thank you in advance.

It sounds like you are running a position based PID so the robot is moving based on the encoders position rather than velocity.

Sample code would be helpful for us to help you troubleshoot your problem.

1 Like