SendableBuilderImpl

class wpilib.SendableBuilderImpl(self: wpilib.SendableBuilderImpl) → None

Bases: wpilib.SendableBuilder

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

Clear properties.

getEntry(self: wpilib.SendableBuilderImpl, key: str) → _pyntcore._ntcore.NetworkTableEntry
getTable(self: wpilib.SendableBuilderImpl) → _pyntcore._ntcore.NetworkTable

Get the network table.

Returns

The network table

hasTable(self: wpilib.SendableBuilderImpl) → bool

Return whether this sendable has an associated table.

Returns

True if it has a table, false if not.

isActuator(self: wpilib.SendableBuilderImpl) → bool

Return whether this sendable should be treated as an actuator.

Returns

True if actuator, false if not.

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

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

Parameters

table – Network table

setUpdateTable(self: wpilib.SendableBuilderImpl, func: Callable[], None]) → None
startListeners(self: wpilib.SendableBuilderImpl) → None

Hook setters for all properties.

startLiveWindowMode(self: wpilib.SendableBuilderImpl) → None

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

stopListeners(self: wpilib.SendableBuilderImpl) → None

Unhook setters for all properties.

stopLiveWindowMode(self: wpilib.SendableBuilderImpl) → None

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

updateTable(self: wpilib.SendableBuilderImpl) → None

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