Beispiel #1
0
 /**
  * Turns on specified light on OI.
  *
  * @param lightNum
  */
 public void setLight(int lightNum) {
   turnOffLights();
   try {
     enhancedIO.setDigitalOutput(lightNum, true);
   } catch (EnhancedIOException e) {
   }
 }
Beispiel #2
0
 /** Turns all lights on. */
 public void turnOnLights() {
   try {
     enhancedIO.setDigitalOutput(DISTANCE_BUTTON_KEY_LIGHT_CHANNEL, true);
     enhancedIO.setDigitalOutput(DISTANCE_BUTTON_FAR_LIGHT_CHANNEL, true);
     enhancedIO.setDigitalOutput(DISTANCE_BUTTON_FENDER_2PT_LIGHT_CHANNEL, true);
     enhancedIO.setDigitalOutput(DISTANCE_BUTTON_FENDER_NARROW_LIGHT_CHANNEL, true);
     enhancedIO.setDigitalOutput(DISTANCE_BUTTON_REVERSE_LIGHT_CHANNEL, true);
     enhancedIO.setDigitalOutput(DISTANCE_BUTTON_FENDER_LIGHT_CHANNEL, true);
     enhancedIO.setDigitalOutput(DISTANCE_BUTTON_STOP_LIGHT_CHANNEL, true);
   } catch (EnhancedIOException e) {
   }
 }