|
Robot Core Documentation
|
Classes | |
| enum | BackendKind |
Public Member Functions | |
| void | setSmartDashboardType (String type) |
| void | setActuator (boolean value) |
| void | setSafeState (Runnable func) |
| void | addBooleanProperty (String key, BooleanSupplier getter, BooleanConsumer setter) |
| void | publishConstBoolean (String key, boolean value) |
| void | addIntegerProperty (String key, LongSupplier getter, LongConsumer setter) |
| void | publishConstInteger (String key, long value) |
| void | addFloatProperty (String key, FloatSupplier getter, FloatConsumer setter) |
| void | publishConstFloat (String key, float value) |
| void | addDoubleProperty (String key, DoubleSupplier getter, DoubleConsumer setter) |
| void | publishConstDouble (String key, double value) |
| void | addStringProperty (String key, Supplier< String > getter, Consumer< String > setter) |
| void | publishConstString (String key, String value) |
| void | addBooleanArrayProperty (String key, Supplier< boolean[]> getter, Consumer< boolean[]> setter) |
| void | publishConstBooleanArray (String key, boolean[] value) |
| void | addIntegerArrayProperty (String key, Supplier< long[]> getter, Consumer< long[]> setter) |
| void | publishConstIntegerArray (String key, long[] value) |
| void | addFloatArrayProperty (String key, Supplier< float[]> getter, Consumer< float[]> setter) |
| void | publishConstFloatArray (String key, float[] value) |
| void | addDoubleArrayProperty (String key, Supplier< double[]> getter, Consumer< double[]> setter) |
| void | publishConstDoubleArray (String key, double[] value) |
| void | addStringArrayProperty (String key, Supplier< String[]> getter, Consumer< String[]> setter) |
| void | publishConstStringArray (String key, String[] value) |
| void | addRawProperty (String key, String typeString, Supplier< byte[]> getter, Consumer< byte[]> setter) |
| void | publishConstRaw (String key, String typeString, byte[] value) |
| BackendKind | getBackendKind () |
| boolean | isPublished () |
| void | update () |
| void | clearProperties () |
| void | addCloseable (AutoCloseable closeable) |
Helper class for building Sendable dashboard representations.
| void edu.wpi.first.util.sendable.SendableBuilder.addBooleanArrayProperty | ( | String | key, |
| Supplier< boolean[]> | getter, | ||
| Consumer< boolean[]> | setter ) |
Add a boolean array property.
| key | property name |
| getter | getter function (returns current value) |
| setter | setter function (sets new value) |
| void edu.wpi.first.util.sendable.SendableBuilder.addBooleanProperty | ( | String | key, |
| BooleanSupplier | getter, | ||
| BooleanConsumer | setter ) |
Add a boolean property.
| key | property name |
| getter | getter function (returns current value) |
| setter | setter function (sets new value) |
| void edu.wpi.first.util.sendable.SendableBuilder.addCloseable | ( | AutoCloseable | closeable | ) |
Adds a closeable. The closeable.close() will be called when close() is called.
| closeable | closeable object |
| void edu.wpi.first.util.sendable.SendableBuilder.addDoubleArrayProperty | ( | String | key, |
| Supplier< double[]> | getter, | ||
| Consumer< double[]> | setter ) |
Add a double array property.
| key | property name |
| getter | getter function (returns current value) |
| setter | setter function (sets new value) |
| void edu.wpi.first.util.sendable.SendableBuilder.addDoubleProperty | ( | String | key, |
| DoubleSupplier | getter, | ||
| DoubleConsumer | setter ) |
Add a double property.
| key | property name |
| getter | getter function (returns current value) |
| setter | setter function (sets new value) |
| void edu.wpi.first.util.sendable.SendableBuilder.addFloatArrayProperty | ( | String | key, |
| Supplier< float[]> | getter, | ||
| Consumer< float[]> | setter ) |
Add a float array property.
| key | property name |
| getter | getter function (returns current value) |
| setter | setter function (sets new value) |
| void edu.wpi.first.util.sendable.SendableBuilder.addFloatProperty | ( | String | key, |
| FloatSupplier | getter, | ||
| FloatConsumer | setter ) |
Add a float property.
| key | property name |
| getter | getter function (returns current value) |
| setter | setter function (sets new value) |
| void edu.wpi.first.util.sendable.SendableBuilder.addIntegerArrayProperty | ( | String | key, |
| Supplier< long[]> | getter, | ||
| Consumer< long[]> | setter ) |
Add an integer array property.
| key | property name |
| getter | getter function (returns current value) |
| setter | setter function (sets new value) |
| void edu.wpi.first.util.sendable.SendableBuilder.addIntegerProperty | ( | String | key, |
| LongSupplier | getter, | ||
| LongConsumer | setter ) |
Add an integer property.
| key | property name |
| getter | getter function (returns current value) |
| setter | setter function (sets new value) |
| void edu.wpi.first.util.sendable.SendableBuilder.addRawProperty | ( | String | key, |
| String | typeString, | ||
| Supplier< byte[]> | getter, | ||
| Consumer< byte[]> | setter ) |
Add a raw property.
| key | property name |
| typeString | type string |
| getter | getter function (returns current value) |
| setter | setter function (sets new value) |
| void edu.wpi.first.util.sendable.SendableBuilder.addStringArrayProperty | ( | String | key, |
| Supplier< String[]> | getter, | ||
| Consumer< String[]> | setter ) |
Add a string array property.
| key | property name |
| getter | getter function (returns current value) |
| setter | setter function (sets new value) |
| void edu.wpi.first.util.sendable.SendableBuilder.addStringProperty | ( | String | key, |
| Supplier< String > | getter, | ||
| Consumer< String > | setter ) |
Add a string property.
| key | property name |
| getter | getter function (returns current value) |
| setter | setter function (sets new value) |
| void edu.wpi.first.util.sendable.SendableBuilder.clearProperties | ( | ) |
Clear properties.
| BackendKind edu.wpi.first.util.sendable.SendableBuilder.getBackendKind | ( | ) |
Gets the kind of backend being used.
| boolean edu.wpi.first.util.sendable.SendableBuilder.isPublished | ( | ) |
Return whether this sendable has been published.
| void edu.wpi.first.util.sendable.SendableBuilder.publishConstBoolean | ( | String | key, |
| boolean | value ) |
Add a constant boolean property.
| key | property name |
| value | the value |
| void edu.wpi.first.util.sendable.SendableBuilder.publishConstBooleanArray | ( | String | key, |
| boolean[] | value ) |
Add a constant boolean array property.
| key | property name |
| value | the value |
| void edu.wpi.first.util.sendable.SendableBuilder.publishConstDouble | ( | String | key, |
| double | value ) |
Add a constant double property.
| key | property name |
| value | the value |
| void edu.wpi.first.util.sendable.SendableBuilder.publishConstDoubleArray | ( | String | key, |
| double[] | value ) |
Add a constant double array property.
| key | property name |
| value | the value |
| void edu.wpi.first.util.sendable.SendableBuilder.publishConstFloat | ( | String | key, |
| float | value ) |
Add a constant float property.
| key | property name |
| value | the value |
| void edu.wpi.first.util.sendable.SendableBuilder.publishConstFloatArray | ( | String | key, |
| float[] | value ) |
Add a constant float array property.
| key | property name |
| value | the value |
| void edu.wpi.first.util.sendable.SendableBuilder.publishConstInteger | ( | String | key, |
| long | value ) |
Add a constant integer property.
| key | property name |
| value | the value |
| void edu.wpi.first.util.sendable.SendableBuilder.publishConstIntegerArray | ( | String | key, |
| long[] | value ) |
Add a constant integer property.
| key | property name |
| value | the value |
| void edu.wpi.first.util.sendable.SendableBuilder.publishConstRaw | ( | String | key, |
| String | typeString, | ||
| byte[] | value ) |
Add a constant raw property.
| key | property name |
| typeString | type string |
| value | the value |
| void edu.wpi.first.util.sendable.SendableBuilder.publishConstString | ( | String | key, |
| String | value ) |
Add a constant string property.
| key | property name |
| value | the value |
| void edu.wpi.first.util.sendable.SendableBuilder.publishConstStringArray | ( | String | key, |
| String[] | value ) |
Add a constant string array property.
| key | property name |
| value | the value |
| void edu.wpi.first.util.sendable.SendableBuilder.setActuator | ( | boolean | value | ) |
Set a flag indicating if this Sendable should be treated as an actuator. By default, this flag is false.
| value | true if actuator, false if not |
| void edu.wpi.first.util.sendable.SendableBuilder.setSafeState | ( | Runnable | func | ) |
Set the function that should be called to set the Sendable into a safe state. This is called when entering and exiting Live Window mode.
| func | function |
| void edu.wpi.first.util.sendable.SendableBuilder.setSmartDashboardType | ( | String | type | ) |
Set the string representation of the named data type that will be used by the smart dashboard for this sendable.
| type | data type |
| void edu.wpi.first.util.sendable.SendableBuilder.update | ( | ) |
Update the published values by calling the getters for all properties.