Package ftclib.driverio
Class FtcRevBlinkin
java.lang.Object
trclib.driverio.TrcPriorityIndicator<TrcRevBlinkin.Pattern>
trclib.driverio.TrcRevBlinkin
ftclib.driverio.FtcRevBlinkin
This class implements a platform dependent REV Blinkin 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.TrcRevBlinkin
TrcRevBlinkin.Pattern, TrcRevBlinkin.RevLedPattern
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.qualcomm.hardware.rev.RevBlinkinLedDriver
private TrcRevBlinkin.Pattern
private static final TrcRevBlinkin.Pattern
private static final TrcHashMap<TrcRevBlinkin.RevLedPattern,
com.qualcomm.hardware.rev.RevBlinkinLedDriver.BlinkinPattern> Fields inherited from class trclib.driverio.TrcPriorityIndicator
instanceName, tracer
-
Constructor Summary
ConstructorsConstructorDescriptionFtcRevBlinkin
(com.qualcomm.robotcore.hardware.HardwareMap hardwareMap, String instanceName) Constructor: Create an instance of the object.FtcRevBlinkin
(String instanceName) Constructor: Create an instance of the object. -
Method Summary
Modifier and TypeMethodDescriptionThis method gets the current set LED pattern.void
setPattern
(TrcRevBlinkin.Pattern pattern) This method sets the LED pattern to the physical REV Blinkin device.Methods inherited from class trclib.driverio.TrcPriorityIndicator
getPatternPriority, getPatternState, getPatternState, printPatternPriorityTable, reset, resetAllPatternStates, setPatternPriorities, setPatternState, setPatternState, setPatternState, setPatternState, setPatternState, setPatternState, toString
-
Field Details
-
patternMap
private static final TrcHashMap<TrcRevBlinkin.RevLedPattern,com.qualcomm.hardware.rev.RevBlinkinLedDriver.BlinkinPattern> patternMap -
offPattern
-
blinkinLedDriver
private final com.qualcomm.hardware.rev.RevBlinkinLedDriver blinkinLedDriver -
currPattern
-
-
Constructor Details
-
FtcRevBlinkin
Constructor: Create an instance of the object.- Parameters:
hardwareMap
- specifies the global hardware map.instanceName
- specifies the instance name.
-
FtcRevBlinkin
Constructor: Create an instance of the object.- Parameters:
instanceName
- specifies the instance name.
-
-
Method Details
-
getPattern
This method gets the current set LED pattern.- Specified by:
getPattern
in classTrcPriorityIndicator<TrcRevBlinkin.Pattern>
- Returns:
- currently set LED pattern.
-
setPattern
This method sets the LED pattern to the physical REV Blinkin device.- Specified by:
setPattern
in classTrcPriorityIndicator<TrcRevBlinkin.Pattern>
- Parameters:
pattern
- specifies the color pattern.
-