Package com.stuypulse.robot.util
Enum Class LoggedSignals.SignalLocation
- All Implemented Interfaces:
Serializable,Comparable<LoggedSignals.SignalLocation>,Constable
- Enclosing class:
- LoggedSignals
The CAN bus network that a group of signals is from
Each location maintains its own set of signals and a cached List used for
BaseStatusSignal.refreshAll(List) calls
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidderegister(Set<com.ctre.phoenix6.BaseStatusSignal> signals) Removes signals from this locationSet<com.ctre.phoenix6.BaseStatusSignal>Gets the set of signals registered to this locationList<com.ctre.phoenix6.BaseStatusSignal>Gets the cached list of signals used for refreshAll callsvoidAdds signals to this locationstatic LoggedSignals.SignalLocationReturns the enum constant of this class with the specified name.static LoggedSignals.SignalLocation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RIO
-
CANIVORE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getSignals
Gets the set of signals registered to this location
- Returns:
- the set of registered
BaseStatusSignals
-
getSignalsList
Gets the cached list of signals used for refreshAll calls
Exists because
BaseStatusSignal.refreshAll(com.ctre.phoenix6.BaseStatusSignal...)doesn't accept sets- Returns:
- an immutable cache of the registered signals
-
register
Adds signals to this location
- Parameters:
signals- signals to register
-
deregister
Removes signals from this location
- Parameters:
signals- signals to deregister
-