Class DeviceIdentifier

java.lang.Object
com.ctre.phoenix6.hardware.DeviceIdentifier

public final class DeviceIdentifier extends Object
The unique identifier for a device.
  • Constructor Details

    • DeviceIdentifier

      public DeviceIdentifier()
      Constructs an empty device identifier.
    • DeviceIdentifier

      public DeviceIdentifier(int deviceID, String model, CANBus canbus)
      Constructs a device identifier for the specified device.
      Parameters:
      deviceID - Device ID
      model - Device model string
      canbus - Device CAN bus
  • Method Details

    • getNetwork

      public CANBus getNetwork()
      Returns:
      Network of the device
    • getModel

      public String getModel()
      Returns:
      Device model
    • getDeviceID

      public int getDeviceID()
      Returns:
      Device ID
    • getDeviceHash

      public int getDeviceHash()
      Returns:
      Unique device hash
    • toString

      public String toString()
      Overrides:
      toString in class Object