Class FrcDigitalRGB

java.lang.Object
trclib.archive.TrcRGBLight
frclib.archive.FrcDigitalRGB

public class FrcDigitalRGB extends TrcRGBLight
  • Constructor Details

    • FrcDigitalRGB

      public FrcDigitalRGB(String instanceName, int redChannel, int greenChannel, int blueChannel)
  • Method Details

    • getRed

      public boolean getRed()
      Description copied from class: TrcRGBLight
      This method returns the state of the RED light.
      Specified by:
      getRed in class TrcRGBLight
      Returns:
      true if the RED light is ON, false otherwise.
    • getGreen

      public boolean getGreen()
      Description copied from class: TrcRGBLight
      This method returns the state of the GREEN light.
      Specified by:
      getGreen in class TrcRGBLight
      Returns:
      true if the GREEN light is ON, false otherwise.
    • getBlue

      public boolean getBlue()
      Description copied from class: TrcRGBLight
      This method returns the state of the BLUE light.
      Specified by:
      getBlue in class TrcRGBLight
      Returns:
      true if the RED light is BLUE, false otherwise.
    • setRed

      public void setRed(boolean enabled)
      Description copied from class: TrcRGBLight
      This method sets the RED light ON or OFF.
      Specified by:
      setRed in class TrcRGBLight
      Parameters:
      enabled - specifies true to turn the RED light ON, false to turn it off.
    • setGreen

      public void setGreen(boolean enabled)
      Description copied from class: TrcRGBLight
      This method sets the GREEN light ON or OFF.
      Specified by:
      setGreen in class TrcRGBLight
      Parameters:
      enabled - specifies true to turn the GREEN light ON, false to turn it off.
    • setBlue

      public void setBlue(boolean enabled)
      Description copied from class: TrcRGBLight
      This method sets the BLUE light ON or OFF.
      Specified by:
      setBlue in class TrcRGBLight
      Parameters:
      enabled - specifies true to turn the BLUE light ON, false to turn it off.