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 type
U - unit type
All Implemented Interfaces:
Consumer<M>, Supplier<M>, org.wpilib.tunable.Tunable.CustomTunable

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 Type
    Method
    Description
    get()
     
    org.wpilib.tunable.TunableDouble
     
     
    boolean
     
    void
     
    void
    set(M value)
     
    boolean
     

    Methods inherited from class org.wpilib.tunable.Tunable

    accept, create, create, create, create, createConfig, createConfig, createConfig, createConfig, createNull, createNullConfig, mutate

    Methods inherited from class org.wpilib.tunable.TunableBase

    getConfig, getProperties, isRobust, markChanged

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Consumer

    andThen
  • Method Details

    • set

      public void set(M value)
      Specified by:
      set in class org.wpilib.tunable.Tunable<M extends org.wpilib.units.Measure<U>>
    • get

      public M get()
      Specified by:
      get in interface Supplier<M extends org.wpilib.units.Measure<U>>
      Specified by:
      get in class org.wpilib.tunable.Tunable<M extends org.wpilib.units.Measure<U>>
    • getTypeClass

      public Class<M> getTypeClass()
      Specified by:
      getTypeClass in class org.wpilib.tunable.Tunable<M extends org.wpilib.units.Measure<U>>
    • getInnerTunable

      public org.wpilib.tunable.TunableDouble getInnerTunable()
      Specified by:
      getInnerTunable in interface org.wpilib.tunable.Tunable.CustomTunable
    • hasChanged

      public boolean hasChanged()
      Overrides:
      hasChanged in class org.wpilib.tunable.TunableBase
    • supportsChangeNotification

      public boolean supportsChangeNotification()
      Overrides:
      supportsChangeNotification in class org.wpilib.tunable.TunableBase
    • resetChanged

      public void resetChanged()
      Overrides:
      resetChanged in class org.wpilib.tunable.TunableBase