|
RobotCore 1.0
WPILib port to raspberry Pi
|
Public Member Functions | |
| record | Robust (boolean value) implements TunableOption |
| record | Property (String key, String value) implements TunableOption |
| record | TypeString (String typeString) implements TunableOption |
| record | Mutable (boolean isMutable) implements TunableOption |
| record | OnTune (Runnable callback) implements TunableOption |
| record | Polling (TunableConfig.Polling polling) implements TunableOption |
Static Public Member Functions | |
| static TunableOption | property (String key, String value) |
| static TunableOption | typeString (String typeString) |
| static TunableOption | onTune (Runnable callback) |
| static TunableOption | polling (TunableConfig.Polling polling) |
Public Attributes | |
| TunableOption | ROBUST = new Robust(true) |
| TunableOption | NOT_ROBUST = new Robust(false) |
| TunableOption | MUTABLE = new Mutable(true) |
| TunableOption | IMMUTABLE = new Mutable(false) |
| TunableOption | GET_ON_CHANGE = new Polling(TunableConfig.Polling.GET_ON_CHANGE) |
| TunableOption | ALWAYS_GET = new Polling(TunableConfig.Polling.ALWAYS_GET) |
Tunable option.
Definition at line 10 of file TunableOption.java.
| record org.wpilib.tunable.TunableOption.Mutable | ( | boolean | isMutable | ) |
By default, Tunables may be set by a remote source (e.g. a dashboard). Setting mutability to false makes the tunable immutable, meaning that the Tunable's set() function will not be called. This is useful for tunables that should only be changed locally, such as ones that represent a constant or a tunable that is only meant to be changed programmatically.
| isMutable | whether the tunable is mutable |
Definition at line 42 of file TunableOption.java.
| record org.wpilib.tunable.TunableOption.OnTune | ( | Runnable | callback | ) |
Callback to call when the tunable is modified via tune(). This is called immediately after the tunable's tune() function is called. The callback will be called by TunableRegistry#update() and must not throw.
| callback | the callback to call when the tunable is modified |
Definition at line 51 of file TunableOption.java.
|
static |
Callback to call when the tunable is modified via tune(). This is called immediately after the tunable's tune() function is called. The callback will be called by TunableRegistry.update() and must not throw.
| callback | the callback to call when the tunable is modified via tune() |
Definition at line 121 of file TunableOption.java.
| record org.wpilib.tunable.TunableOption.Polling | ( | TunableConfig.Polling | polling | ) |
Defines when the backend should poll the tunable's local value.
| polling | polling behavior |
Creates a polling option.
| polling | polling behavior |
Definition at line 58 of file TunableOption.java.
|
static |
Defines when the backend should poll the tunable's local value.
| polling | polling behavior |
Definition at line 131 of file TunableOption.java.
| record org.wpilib.tunable.TunableOption.Property | ( | String | key, |
| String | value ) |
Property for tunable.
| key | property key |
| value | property value; must be a valid JSON value string (e.g. quoted string, number, true, false, null, object, or array) |
Definition at line 25 of file TunableOption.java.
|
static |
Property for tunable.
| key | property key |
| value | property value; must be a valid JSON value string (e.g. quoted string, number, true, false, null, object, or array) |
Definition at line 99 of file TunableOption.java.
| record org.wpilib.tunable.TunableOption.Robust | ( | boolean | value | ) |
Indicates whether the tunable should separately echo back its value after setting.
| value | whether the tunable should echo back its value |
Definition at line 16 of file TunableOption.java.
| record org.wpilib.tunable.TunableOption.TypeString | ( | String | typeString | ) |
Type string for tunable.
| typeString | the type string |
Definition at line 32 of file TunableOption.java.
|
static |
Type string for tunable.
| typeString | the type string to use for the tunable |
Definition at line 109 of file TunableOption.java.
| TunableOption org.wpilib.tunable.TunableOption.ALWAYS_GET = new Polling(TunableConfig.Polling.ALWAYS_GET) |
Indicates the tunable should get its value on every loop.
Definition at line 89 of file TunableOption.java.
| TunableOption org.wpilib.tunable.TunableOption.GET_ON_CHANGE = new Polling(TunableConfig.Polling.GET_ON_CHANGE) |
Indicates the tunable should get its value only when it is changed.
Definition at line 86 of file TunableOption.java.
| TunableOption org.wpilib.tunable.TunableOption.IMMUTABLE = new Mutable(false) |
Indicates the tunable is immutable. Immutable tunables never call the Tunable's set() function.
Definition at line 83 of file TunableOption.java.
| TunableOption org.wpilib.tunable.TunableOption.MUTABLE = new Mutable(true) |
Indicates the tunable is mutable (default). Mutable tunables call the Tunable's set() function.
Definition at line 78 of file TunableOption.java.
| TunableOption org.wpilib.tunable.TunableOption.NOT_ROBUST = new Robust(false) |
Indicates the tunable should not separately echo back its value after setting (default).
Definition at line 73 of file TunableOption.java.
| TunableOption org.wpilib.tunable.TunableOption.ROBUST = new Robust(true) |
Indicates the tunable should separately echo back its value after setting.
Definition at line 70 of file TunableOption.java.