|
RobotCore 1.0
WPILib port to raspberry Pi
|
Public Member Functions | |
| abstract void | set (float value) |
| abstract float | get () |
| float | getAsFloat () |
| void | accept (float value) |
| Public Member Functions inherited from org.wpilib.tunable.TunableBase | |
| boolean | isRobust () |
| String | getProperties () |
| TunableConfig | getConfig () |
| boolean | hasChanged () |
| boolean | supportsChangeNotification () |
| void | resetChanged () |
Static Public Member Functions | |
| static TunableFloat | create () |
| static TunableFloat | create (float initialValue) |
| static TunableFloat | create (FloatSupplier getter, FloatConsumer setter) |
| static TunableFloat | createConfig (TunableConfig config) |
| static TunableFloat | createConfig (float initialValue, TunableConfig config) |
| static TunableFloat | createConfig (FloatSupplier getter, FloatConsumer setter, TunableConfig config) |
Protected Member Functions | |
| TunableFloat (TunableConfig config) | |
| TunableFloat (TunableConfig config, boolean supportsChangeNotification) | |
| Protected Member Functions inherited from org.wpilib.tunable.TunableBase | |
| TunableBase (TunableConfig config) | |
| TunableBase (TunableConfig config, boolean supportsChangeNotification) | |
| void | markChanged () |
Additional Inherited Members | |
| Protected Attributes inherited from org.wpilib.tunable.TunableBase | |
| boolean | m_changed |
A tunable float.
Definition at line 11 of file TunableFloat.java.
|
protected |
Constructs a tunable float.
| config | tunable config |
Definition at line 122 of file TunableFloat.java.
|
protected |
Constructs a tunable float.
| config | tunable config |
| supportsChangeNotification | whether the tunable notifies backends when it changes |
Definition at line 132 of file TunableFloat.java.
| void org.wpilib.tunable.TunableFloat.accept | ( | float | value | ) |
Performs this operation on the given argument.
| value | the input argument |
Implements org.wpilib.util.function.FloatConsumer.
Definition at line 160 of file TunableFloat.java.
|
static |
Creates a tunable float with the initial value of 0.0.
Definition at line 17 of file TunableFloat.java.
|
static |
Creates a tunable float with the given initial value.
| initialValue | initial value |
Definition at line 27 of file TunableFloat.java.
|
static |
Creates a tunable float with the given getter and setter.
The getter and setter must not throw.
| getter | getter for the tunable value |
| setter | setter for the tunable value |
Definition at line 40 of file TunableFloat.java.
|
static |
Creates a tunable float with the given initial value and config.
| initialValue | initial value |
| config | tunable config |
Definition at line 61 of file TunableFloat.java.
|
static |
Creates a tunable float with the given getter, setter, and config.
The getter and setter must not throw.
| getter | getter for the tunable value |
| setter | setter for the tunable value |
| config | tunable config |
Definition at line 91 of file TunableFloat.java.
|
static |
Creates a tunable float with the given config and an initial value of 0.0.
| config | tunable config |
Definition at line 50 of file TunableFloat.java.
|
abstract |
Gets the value.
Implementations must not throw.
| float org.wpilib.tunable.TunableFloat.getAsFloat | ( | ) |
Gets a result.
Implements org.wpilib.util.function.FloatSupplier.
Definition at line 155 of file TunableFloat.java.
|
abstract |
Sets the value.
Implementations must not throw.
| value | value |