Class WPI_CANCoder

java.lang.Object
com.ctre.phoenix.sensors.CANCoder
com.ctre.phoenix.sensors.WPI_CANCoder
All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable, AutoCloseable

public class WPI_CANCoder extends CANCoder implements edu.wpi.first.util.sendable.Sendable, AutoCloseable
  • Constructor Details

    • WPI_CANCoder

      public WPI_CANCoder(int deviceNumber, String canbus)
      Constructor for CANCoder
      Parameters:
      deviceNumber - device ID of CANCoder
      canbus - Name of the CANbus; can be a CANivore device name or serial number. Pass in nothing or "rio" to use the roboRIO.
    • WPI_CANCoder

      public WPI_CANCoder(int deviceNumber)
      Constructor for CANCoder
      Parameters:
      deviceNumber - device ID of CANCoder
  • Method Details

    • close

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

      public void initSendable(edu.wpi.first.util.sendable.SendableBuilder builder)
      Description copied from interface: edu.wpi.first.util.sendable.Sendable
      Initializes this Sendable object.
      Specified by:
      initSendable in interface edu.wpi.first.util.sendable.Sendable
      Parameters:
      builder - sendable builder