|
RobotCore 1.0
WPILib port to raspberry Pi
|
Public Member Functions | |
| abstract void | set (double value) |
| abstract double | get () |
| double | getAsDouble () |
| void | accept (double 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 TunableDouble | create () |
| static TunableDouble | create (double initialValue) |
| static TunableDouble | create (DoubleSupplier getter, DoubleConsumer setter) |
| static TunableDouble | createConfig (TunableConfig config) |
| static TunableDouble | createConfig (double initialValue, TunableConfig config) |
| static TunableDouble | createConfig (DoubleSupplier getter, DoubleConsumer setter, TunableConfig config) |
Protected Member Functions | |
| TunableDouble (TunableConfig config) | |
| TunableDouble (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 double.
Definition at line 11 of file TunableDouble.java.
|
protected |
Constructs a tunable double.
| config | tunable config |
Definition at line 122 of file TunableDouble.java.
|
protected |
Constructs a tunable double.
| config | tunable config |
| supportsChangeNotification | whether the tunable notifies backends when it changes |
Definition at line 132 of file TunableDouble.java.
| void org.wpilib.tunable.TunableDouble.accept | ( | double | value | ) |
Definition at line 160 of file TunableDouble.java.
|
static |
Creates a tunable double with the initial value of 0.0.
Definition at line 17 of file TunableDouble.java.
|
static |
Creates a tunable double with the given initial value.
| initialValue | initial value |
Definition at line 27 of file TunableDouble.java.
|
static |
Creates a tunable double 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 TunableDouble.java.
|
static |
Creates a tunable double with the given initial value and config.
| initialValue | initial value |
| config | tunable config |
Definition at line 61 of file TunableDouble.java.
|
static |
Creates a tunable double 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 TunableDouble.java.
|
static |
Creates a tunable double with the given config and an initial value of 0.0.
| config | tunable config |
Definition at line 50 of file TunableDouble.java.
|
abstract |
Gets the value.
Implementations must not throw.
| double org.wpilib.tunable.TunableDouble.getAsDouble | ( | ) |
Definition at line 155 of file TunableDouble.java.
|
abstract |
Sets the value.
Implementations must not throw.
| value | value |