Like it says on the tin, the method right now looks like:
public final void disable() {
isEnabled = false;
motor.set(controlMode, 0);
}
While this would work for the other control types where 0 represents stop, it wont work for positional control, as position 0, does not mean stop, it is an actual position that the motor will likely attempt to move to.
This could lead to unexpected actions from the robot, like during auto, or testing. This bug has the potential to harm someone or break something on the robot.
Like it says on the tin, the method right now looks like:
While this would work for the other control types where 0 represents stop, it wont work for positional control, as position 0, does not mean stop, it is an actual position that the motor will likely attempt to move to.
This could lead to unexpected actions from the robot, like during auto, or testing. This bug has the potential to harm someone or break something on the robot.