Reverting Spark Max Motor Controller

Hi, I want to invert a spark max motor controller.

motor.setInverted(true);

Please refer to the documentation initially for code-based questions.

yes the problem is that we are using the pid and we are using this motor as a follower of another one. We inverted it at it stayed the same. With the pid we need to have one in one direction and the other in reverse. Also we ant to use the same loop.

The Follow() command includes an invert property which is meant to tell the follower device to invert its output compared to the leader device.

See the java doc here

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.