phoenix6.hardware.canrange
¶
Module Contents¶
- class phoenix6.hardware.canrange.CANrange(device_id: int, canbus: str | phoenix6.canbus.CANBus = '')¶
Bases:
phoenix6.hardware.core.core_canrange.CoreCANrange
,wpiutil.Sendable
Constructs a new CANrange object.
- Parameters:
device_id (int) – ID of the device, as configured in Phoenix Tuner.
canbus (str | CANBus, optional) –
Name of the CAN bus this device is on. Possible CAN bus strings are:
”rio” for the native roboRIO CAN bus
CANivore name or serial number
SocketCAN interface (non-FRC Linux only)
”*” for any CANivore seen by the program
empty string (default) to select the default for the system:
”rio” on roboRIO
”can0” on Linux
”*” on Windows
- close()¶
- initSendable(builder: wpiutil.SendableBuilder)¶
Initializes this Sendable object.
- Parameters:
builder – sendable builder