SendableBuilderImpl

class wpilib.SendableBuilderImpl

Bases: NTSendableBuilder

Implementation detail for SendableBuilder.

add_boolean_array_property(key: str, getter: collections.abc.Callable[[], list[int]], setter: collections.abc.Callable[[List[SupportsInt | SupportsIndex]], None]) None
add_boolean_property(key: str, getter: collections.abc.Callable[[], bool], setter: collections.abc.Callable[[bool], None]) None
add_double_array_property(key: str, getter: collections.abc.Callable[[], list[float]], setter: collections.abc.Callable[[List[SupportsFloat | SupportsIndex]], None]) None
add_double_property(key: str, getter: collections.abc.Callable[[], float], setter: collections.abc.Callable[[SupportsFloat | SupportsIndex], None]) None
add_float_array_property(key: str, getter: collections.abc.Callable[[], list[float]], setter: collections.abc.Callable[[List[SupportsFloat | SupportsIndex]], None]) None
add_float_property(key: str, getter: collections.abc.Callable[[], float], setter: collections.abc.Callable[[SupportsFloat | SupportsIndex], None]) None
add_integer_array_property(key: str, getter: collections.abc.Callable[[], list[int]], setter: collections.abc.Callable[[List[SupportsInt | SupportsIndex]], None]) None
add_integer_property(key: str, getter: collections.abc.Callable[[], int], setter: collections.abc.Callable[[SupportsInt | SupportsIndex], None]) None
add_raw_property(key: str, type_string: str, getter: collections.abc.Callable[[], list[int]], setter: collections.abc.Callable[[Buffer], None]) None
add_small_boolean_array_property(key: str, getter: collections.abc.Callable[[List[SupportsInt | SupportsIndex]], List[int]], setter: collections.abc.Callable[[List[SupportsInt | SupportsIndex]], None]) None
add_small_double_array_property(key: str, getter: collections.abc.Callable[[List[SupportsFloat | SupportsIndex]], List[float]], setter: collections.abc.Callable[[List[SupportsFloat | SupportsIndex]], None]) None
add_small_float_array_property(key: str, getter: collections.abc.Callable[[List[SupportsFloat | SupportsIndex]], List[float]], setter: collections.abc.Callable[[List[SupportsFloat | SupportsIndex]], None]) None
add_small_integer_array_property(key: str, getter: collections.abc.Callable[[List[SupportsInt | SupportsIndex]], List[int]], setter: collections.abc.Callable[[List[SupportsInt | SupportsIndex]], None]) None
add_small_raw_property(key: str, type_string: str, getter: collections.abc.Callable[[List[SupportsInt | SupportsIndex]], Buffer], setter: collections.abc.Callable[[Buffer], None]) None
add_small_string_array_property(key: str, getter: collections.abc.Callable[[List[str]], List[str]], setter: collections.abc.Callable[[List[str]], None]) None
add_small_string_property(key: str, getter: collections.abc.Callable[[List[str]], str], setter: collections.abc.Callable[[str], None]) None
add_string_array_property(key: str, getter: collections.abc.Callable[[], list[str]], setter: collections.abc.Callable[[List[str]], None]) None
add_string_property(key: str, getter: collections.abc.Callable[[], str], setter: collections.abc.Callable[[str], None]) None
clear_properties() None

Clear properties.

get_table() ntcore._ntcore.NetworkTable

Get the network table.

Returns:

The network table

get_topic(key: str) ntcore._ntcore.Topic
is_actuator() bool

Return whether this sendable should be treated as an actuator.

Returns:

True if actuator, false if not.

is_published() bool

Return whether this sendable has an associated table.

Returns:

True if it has a table, false if not.

publish_const_boolean(key: str, value: bool) None
publish_const_boolean_array(key: str, value: List[SupportsInt | SupportsIndex]) None
publish_const_double(key: str, value: SupportsFloat | SupportsIndex) None
publish_const_double_array(key: str, value: List[SupportsFloat | SupportsIndex]) None
publish_const_float(key: str, value: SupportsFloat | SupportsIndex) None
publish_const_float_array(key: str, value: List[SupportsFloat | SupportsIndex]) None
publish_const_integer(key: str, value: SupportsInt | SupportsIndex) None
publish_const_integer_array(key: str, value: List[SupportsInt | SupportsIndex]) None
publish_const_raw(key: str, type_string: str, value: Buffer) None
publish_const_string(key: str, value: str) None
publish_const_string_array(key: str, value: List[str]) None
set_actuator(value: bool) None
set_smart_dashboard_type(type: str) None
set_table(table: ntcore._ntcore.NetworkTable) None

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

Parameters:

table – Network table

set_update_table(func: collections.abc.Callable[[], None]) None
start_listeners() None

Hook setters for all properties.

stop_listeners() 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.