Class Pigeon2Wrapper
java.lang.Object
com.team2813.lib2813.vendor.ctre.imu.Pigeon2Wrapper
-
Constructor Summary
ConstructorsConstructorDescriptionPigeon2Wrapper(int deviceId) ConstructorPigeon2Wrapper(int deviceId, CANBus canbus) Creates an instance for a Pigeon 2 IMU sensor on the specified CAN bus.Pigeon2Wrapper(int deviceId, String canbusName) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleandoubleinthashCode()voidChecks if a reset has occurred and restores non-persistent settings if so.voidsetHeading(double angle)
-
Constructor Details
-
Pigeon2Wrapper
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, for removal: This API element is subject to removal in a future version.ConstructingCancoderWrapperwith a CAN bus string is deprecated for removal in the 2027 season. Construct instances using aCANBusinstance 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
-
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() -
equals
-
CancoderWrapperwith a CAN bus string is deprecated for removal in the 2027 season.