Class Pigeon2Wrapper

java.lang.Object
com.team2813.lib2813.vendor.ctre.imu.Pigeon2Wrapper

public class Pigeon2Wrapper extends Object
  • Constructor Details

    • Pigeon2Wrapper

      public Pigeon2Wrapper(int deviceId, CANBus canbus)
      Creates an instance for a Pigeon 2 IMU sensor on the specified CAN bus.
      Parameters:
      deviceId - [0,62]
      canbus - Name of the CANbus; can be a SocketCAN interface (on Linux), or a CANivore device name or serial number
    • Pigeon2Wrapper

      @Deprecated(forRemoval=true) public Pigeon2Wrapper(int deviceId, String canbusName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructing CancoderWrapper with a CAN bus string is deprecated for removal in the 2027 season. Construct instances using a CANBus instance instead.
      Constructor
      Parameters:
      deviceId - [0,62]
      canbusName - the name of the CAN bus the device is on; can be a SocketCAN interface (on Linux), or a CANivore device name or serial number
    • Pigeon2Wrapper

      public Pigeon2Wrapper(int deviceId)
      Constructor
      Parameters:
      deviceId - [0,62]
  • Method Details

    • getPigeon

      public Pigeon2 getPigeon()
    • getHeading

      public double getHeading()
    • setHeading

      public void setHeading(double angle)
    • periodicResetCheck

      public void periodicResetCheck()
      Checks if a reset has occurred and restores non-persistent settings if so. Implement periodically (e.g. in a subsystem's periodic() method)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object