SendableBuilderImpl
- class wpilib.SendableBuilderImpl
Bases:
NTSendableBuilderImplementation detail for SendableBuilder.
- addBooleanArrayProperty(key: str, getter: collections.abc.Callable[[], list[int]], setter: collections.abc.Callable[[List[SupportsInt | SupportsIndex]], None]) None
- addBooleanProperty(key: str, getter: collections.abc.Callable[[], bool], setter: collections.abc.Callable[[bool], None]) None
- addDoubleArrayProperty(key: str, getter: collections.abc.Callable[[], list[float]], setter: collections.abc.Callable[[List[SupportsFloat | SupportsIndex]], None]) None
- addDoubleProperty(key: str, getter: collections.abc.Callable[[], float], setter: collections.abc.Callable[[SupportsFloat | SupportsIndex], None]) None
- addFloatArrayProperty(key: str, getter: collections.abc.Callable[[], list[float]], setter: collections.abc.Callable[[List[SupportsFloat | SupportsIndex]], None]) None
- addFloatProperty(key: str, getter: collections.abc.Callable[[], float], setter: collections.abc.Callable[[SupportsFloat | SupportsIndex], None]) None
- addIntegerArrayProperty(key: str, getter: collections.abc.Callable[[], list[int]], setter: collections.abc.Callable[[List[SupportsInt | SupportsIndex]], None]) None
- addIntegerProperty(key: str, getter: collections.abc.Callable[[], int], setter: collections.abc.Callable[[SupportsInt | SupportsIndex], None]) None
- addRawProperty(key: str, typeString: str, getter: collections.abc.Callable[[], list[int]], setter: collections.abc.Callable[[Buffer], None]) None
- addSmallBooleanArrayProperty(key: str, getter: collections.abc.Callable[[List[SupportsInt | SupportsIndex]], List[int]], setter: collections.abc.Callable[[List[SupportsInt | SupportsIndex]], None]) None
- addSmallDoubleArrayProperty(key: str, getter: collections.abc.Callable[[List[SupportsFloat | SupportsIndex]], List[float]], setter: collections.abc.Callable[[List[SupportsFloat | SupportsIndex]], None]) None
- addSmallFloatArrayProperty(key: str, getter: collections.abc.Callable[[List[SupportsFloat | SupportsIndex]], List[float]], setter: collections.abc.Callable[[List[SupportsFloat | SupportsIndex]], None]) None
- addSmallIntegerArrayProperty(key: str, getter: collections.abc.Callable[[List[SupportsInt | SupportsIndex]], List[int]], setter: collections.abc.Callable[[List[SupportsInt | SupportsIndex]], None]) None
- addSmallRawProperty(key: str, typeString: str, getter: collections.abc.Callable[[List[SupportsInt | SupportsIndex]], Buffer], setter: collections.abc.Callable[[Buffer], None]) None
- addSmallStringArrayProperty(key: str, getter: collections.abc.Callable[[List[str]], List[str]], setter: collections.abc.Callable[[List[str]], None]) None
- addSmallStringProperty(key: str, getter: collections.abc.Callable[[List[str]], str], setter: collections.abc.Callable[[str], None]) None
- addStringArrayProperty(key: str, getter: collections.abc.Callable[[], list[str]], setter: collections.abc.Callable[[List[str]], None]) None
- addStringProperty(key: str, getter: collections.abc.Callable[[], str], setter: collections.abc.Callable[[str], None]) None
- clearProperties() None
Clear properties.
- getTable() ntcore._ntcore.NetworkTable
Get the network table.
- Returns:
The network table
- getTopic(key: str) ntcore._ntcore.Topic
- 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.
- publishConstBoolean(key: str, value: bool) None
- publishConstBooleanArray(key: str, value: List[SupportsInt | SupportsIndex]) None
- publishConstDouble(key: str, value: SupportsFloat | SupportsIndex) None
- publishConstDoubleArray(key: str, value: List[SupportsFloat | SupportsIndex]) None
- publishConstFloat(key: str, value: SupportsFloat | SupportsIndex) None
- publishConstFloatArray(key: str, value: List[SupportsFloat | SupportsIndex]) None
- publishConstInteger(key: str, value: SupportsInt | SupportsIndex) None
- publishConstIntegerArray(key: str, value: List[SupportsInt | SupportsIndex]) None
- publishConstRaw(key: str, typeString: str, value: Buffer) None
- publishConstString(key: str, value: str) None
- publishConstStringArray(key: str, value: List[str]) None
- setActuator(value: bool) None
- setSmartDashboardType(type: str) None
- setTable(table: ntcore._ntcore.NetworkTable) None
Set the network table. Must be called prior to any Add* functions being called.
- Parameters:
table – Network table
- setUpdateTable(func: collections.abc.Callable[[], None]) None
- startListeners() None
Hook setters for all properties.
- stopListeners() None
Unhook setters for all properties.
- update() None
Synchronize with network table values by calling the getters for all properties and setters when the network table value has changed.