public void setIndexMotor(int direction) { wheelDirection = direction; if (direction == 1) { indexMotor.set(1); } else if (direction == -1) { indexMotor.set(-1); } else { indexMotor.disable(); } }