Class CANdi

All Implemented Interfaces:
PhoenixAlertable, CommonDevice, AutoCloseable

public class CANdi extends CoreCANdi implements AutoCloseable
WPILib-integrated version of CoreCANdi.
  • Constructor Details

    • CANdi

      public CANdi(int deviceId, CANBus canbus)
      Constructs a new CANdi object.
      Parameters:
      deviceId - ID of the device, as configured in Phoenix Tuner
      canbus - The CAN bus this device is on
  • Method Details

    • none

      public static CANdi none()
      Constructs a stubbed-out CANdi, where all status signals, controls, configs, etc. perform no action and immediately return OK. This can be used to silence error messages for devices that have been completely removed from the robot.
      Returns:
      Stubbed-out CANdi
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable