Package ftclib.driverio
Class FtcGobildaIndicatorLight
java.lang.Object
trclib.driverio.TrcPriorityIndicator<TrcGobildaIndicatorLight.Pattern>
trclib.driverio.TrcGobildaIndicatorLight
ftclib.driverio.FtcGobildaIndicatorLight
This class implements a platform dependent Gobilda Indicator Light device. It provides platform dependent methods
that gets/sets the color pattern from/to the device.
-
Nested Class Summary
Nested classes/interfaces inherited from class trclib.driverio.TrcGobildaIndicatorLight
TrcGobildaIndicatorLight.Color, TrcGobildaIndicatorLight.Pattern
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TrcGobildaIndicatorLight.Pattern
private final com.qualcomm.robotcore.hardware.Servo
private static final TrcGobildaIndicatorLight.Pattern
Fields inherited from class trclib.driverio.TrcPriorityIndicator
instanceName, tracer
-
Constructor Summary
ConstructorsConstructorDescriptionFtcGobildaIndicatorLight
(com.qualcomm.robotcore.hardware.HardwareMap hardwareMap, String instanceName) Constructor: Create an instance of the object.FtcGobildaIndicatorLight
(String instanceName) Constructor: Create an instance of the object. -
Method Summary
Modifier and TypeMethodDescriptionThis method gets the current set LED pattern.void
setColor
(double value) This method sets the LED to the specifies color value.void
This method sets the LED pattern to the physical Gobilda Light Indicator device.Methods inherited from class trclib.driverio.TrcPriorityIndicator
getPatternPriority, getPatternState, getPatternState, printPatternPriorityTable, reset, resetAllPatternStates, setPatternPriorities, setPatternState, setPatternState, setPatternState, setPatternState, setPatternState, setPatternState, toString
-
Field Details
-
offPattern
-
led
private final com.qualcomm.robotcore.hardware.Servo led -
currPattern
-
-
Constructor Details
-
FtcGobildaIndicatorLight
public FtcGobildaIndicatorLight(com.qualcomm.robotcore.hardware.HardwareMap hardwareMap, String instanceName) Constructor: Create an instance of the object.- Parameters:
hardwareMap
- specifies the global hardware map.instanceName
- specifies the instance name.
-
FtcGobildaIndicatorLight
Constructor: Create an instance of the object.- Parameters:
instanceName
- specifies the instance name.
-
-
Method Details
-
setColor
public void setColor(double value) This method sets the LED to the specifies color value.- Parameters:
value
- specifies the color value.
-
getPattern
This method gets the current set LED pattern.- Specified by:
getPattern
in classTrcPriorityIndicator<TrcGobildaIndicatorLight.Pattern>
- Returns:
- currently set LED pattern.
-
setPattern
This method sets the LED pattern to the physical Gobilda Light Indicator device.- Specified by:
setPattern
in classTrcPriorityIndicator<TrcGobildaIndicatorLight.Pattern>
- Parameters:
pattern
- specifies the color pattern.
-