Class TunableMeasure<M extends org.wpilib.units.Measure<U>, U extends org.wpilib.units.Unit>
java.lang.Object
org.wpilib.tunable.TunableBase
org.wpilib.tunable.Tunable<M>
xbot.common.properties.TunableMeasure<M,U>
- Type Parameters:
M- measure typeU- unit type
public final class TunableMeasure<M extends org.wpilib.units.Measure<U>, U extends org.wpilib.units.Unit>
extends org.wpilib.tunable.Tunable<M>
implements org.wpilib.tunable.Tunable.CustomTunable
A direct WPILib tunable that presents a unit-aware value while publishing its
magnitude in the unit named in its key.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.wpilib.tunable.Tunable
org.wpilib.tunable.Tunable.CustomTunable, org.wpilib.tunable.Tunable.TunableProtobuf<T>, org.wpilib.tunable.Tunable.TunableStruct<T>, org.wpilib.tunable.Tunable.TunableStructArray<T> -
Field Summary
Fields inherited from class org.wpilib.tunable.TunableBase
m_changed -
Method Summary
Modifier and TypeMethodDescriptionget()org.wpilib.tunable.TunableDoublebooleanvoidvoidbooleanMethods inherited from class org.wpilib.tunable.Tunable
accept, create, create, create, create, createConfig, createConfig, createConfig, createConfig, createNull, createNullConfig, mutateMethods inherited from class org.wpilib.tunable.TunableBase
getConfig, getProperties, isRobust, markChanged
-
Method Details
-
set
-
get
-
getTypeClass
-
getInnerTunable
public org.wpilib.tunable.TunableDouble getInnerTunable()- Specified by:
getInnerTunablein interfaceorg.wpilib.tunable.Tunable.CustomTunable
-
hasChanged
public boolean hasChanged()- Overrides:
hasChangedin classorg.wpilib.tunable.TunableBase
-
supportsChangeNotification
public boolean supportsChangeNotification()- Overrides:
supportsChangeNotificationin classorg.wpilib.tunable.TunableBase
-
resetChanged
public void resetChanged()- Overrides:
resetChangedin classorg.wpilib.tunable.TunableBase
-