Motor is swapping directions without it actually being changed

For some reason the direction of my Intake motor is being switch without it being swapped physically nor programmatically

1 Like

Is the motor reversed in software? If so, it could be that the motor is temporarily losing connection, which resets the motor’s reversed state in vexos, which would cause it to spin the opposite direction that you intended.

2 Likes

This has happened several times I’ve had to switch the direction in code every single time

The motor values are hard coded so i dont see how they could swap
int intakePower = 127 * (controller.get_digital(controls::intakeOut) - controller.get_digital(controls::intakeIn));

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