Beispiel #1
0
 public double getRightY() {
   // set threshold value to 0.09
   if (Math.abs(rightJoy.getY()) <= 0.09) {
     return 0;
   }
   SmartDashboard.putNumber("SPEED RIGHT TRAIN", (-1) * rightJoy.getY());
   return (-1) * rightJoy.getY();
 }
Beispiel #2
0
 public double getLeftY() {
   // set threshold value to 0.09
   if (Math.abs(leftJoy.getY()) <= 0.09) {
     return 0;
   } else {
     SmartDashboard.putNumber("SPEED LEFT TRAIN", (-1) * leftJoy.getY());
     return (-1) * leftJoy.getY();
   }
 }