SendableBuilderImpl

class wpilib.SendableBuilderImpl

Bases: _pyntcore._ntcore.NTSendableBuilder

addBooleanArrayProperty(key: str, getter: Callable[[], List[int]], setter: Callable[[List[int]], None]) None
addBooleanProperty(key: str, getter: Callable[[], bool], setter: Callable[[bool], None]) None
addDoubleArrayProperty(key: str, getter: Callable[[], List[float]], setter: Callable[[List[float]], None]) None
addDoubleProperty(key: str, getter: Callable[[], float], setter: Callable[[float], None]) None
addRawProperty(key: str, getter: Callable[[], str], setter: Callable[[str], None]) None
addSmallBooleanArrayProperty(key: str, getter: Callable[[List[int]], List[int]], setter: Callable[[List[int]], None]) None
addSmallDoubleArrayProperty(key: str, getter: Callable[[List[float]], List[float]], setter: Callable[[List[float]], None]) None
addSmallRawProperty(key: str, getter: Callable[[List[str]], str], setter: Callable[[str], None]) None
addSmallStringArrayProperty(key: str, getter: Callable[[List[str]], List[str]], setter: Callable[[List[str]], None]) None
addSmallStringProperty(key: str, getter: Callable[[List[str]], str], setter: Callable[[str], None]) None
addStringArrayProperty(key: str, getter: Callable[[], List[str]], setter: Callable[[List[str]], None]) None
addStringProperty(key: str, getter: Callable[[], str], setter: Callable[[str], None]) None
addValueProperty(key: str, getter: Callable[[], _pyntcore._ntcore.Value], setter: Callable[[_pyntcore._ntcore.Value], None]) None
clearProperties() None

Clear properties.

getEntry(key: str) _pyntcore._ntcore.NetworkTableEntry
getTable() _pyntcore._ntcore.NetworkTable

Get the network table.

Returns

The network table

isActuator() bool

Return whether this sendable should be treated as an actuator.

Returns

True if actuator, false if not.

isPublished() bool

Return whether this sendable has an associated table.

Returns

True if it has a table, false if not.

setActuator(value: bool) None
setSafeState(func: Callable[[], None]) None
setSmartDashboardType(type: str) None
setTable(table: _pyntcore._ntcore.NetworkTable) None

Set the network table. Must be called prior to any Add* functions being called.

Parameters

table – Network table

setUpdateTable(func: Callable[[], None]) None
startListeners() None

Hook setters for all properties.

startLiveWindowMode() None

Start LiveWindow mode by hooking the setters for all properties. Also calls the SafeState function if one was provided.

stopListeners() None

Unhook setters for all properties.

stopLiveWindowMode() None

Stop LiveWindow mode by unhooking the setters for all properties. Also calls the SafeState function if one was provided.

update() None

Update the network table values by calling the getters for all properties.