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