|
RobotCore 1.0
WPILib port to raspberry Pi
|
Public Member Functions | |
| record | PublishedTunable (String path, TunableBase tunable, ComplexTunable complex) |
| boolean | publish (String path, TunableBase tunable) |
| boolean | publishComplex (String path, ComplexTunable tunable) |
| void | remove (String path) |
| List< PublishedTunable > | removePrefix (String prefix) |
| default void | markDirty (TunableBase tunable) |
| void | update () |
Backend interface for publishing and updating tunables.
Definition at line 10 of file TunableBackend.java.
| default void org.wpilib.tunable.TunableBackend.markDirty | ( | TunableBase | tunable | ) |
Notifies the backend that a tunable has local changes.
Backend implementations must not throw from this method.
| tunable | the changed tunable |
Definition at line 75 of file TunableBackend.java.
| boolean org.wpilib.tunable.TunableBackend.publish | ( | String | path, |
| TunableBase | tunable ) |
Publishes a tunable.
Backend implementations must not throw from this method. Recoverable publication failures should be reported through TunableRegistry#reportWarning(String) and skipped.
| path | normalized path |
| tunable | the tunable |
Implemented in org.wpilib.backend.NetworkTablesTunableBackend.
| boolean org.wpilib.tunable.TunableBackend.publishComplex | ( | String | path, |
| ComplexTunable | tunable ) |
Publishes a complex tunable.
Backend implementations must not throw from this method. Recoverable publication failures should be reported through TunableRegistry#reportWarning(String) and skipped.
| path | normalized path |
| tunable | the tunable |
Implemented in org.wpilib.backend.NetworkTablesTunableBackend.
| record org.wpilib.tunable.TunableBackend.PublishedTunable | ( | String | path, |
| TunableBase | tunable, | ||
| ComplexTunable | complex ) |
A tunable removed from a backend.
| path | normalized path |
| tunable | simple tunable; null for complex tunables |
| complex | complex tunable; null for simple tunables |
Definition at line 18 of file TunableBackend.java.
| void org.wpilib.tunable.TunableBackend.remove | ( | String | path | ) |
Removes a tunable.
Backend implementations must not throw from this method.
| path | normalized path |
Implemented in org.wpilib.backend.NetworkTablesTunableBackend.
| List< PublishedTunable > org.wpilib.tunable.TunableBackend.removePrefix | ( | String | prefix | ) |
Removes all tunables under a prefix.
Backend implementations must not throw from this method. The returned list must describe the tunables actually removed from the backend.
| prefix | normalized path prefix |
Implemented in org.wpilib.backend.NetworkTablesTunableBackend.
| void org.wpilib.tunable.TunableBackend.update | ( | ) |
Updates all tunable values and calls callbacks where appropriate.
Backend implementations must not throw from this method. Recoverable update failures should be reported through TunableRegistry#reportWarning(String) and skipped so the robot loop and registry state can continue updating.
Implemented in org.wpilib.backend.NetworkTablesTunableBackend.