Package com.ctre.phoenixpro.hardware
Class Pigeon2
java.lang.Object
com.ctre.phoenix6.jni.CtreJniWrapper
com.ctre.phoenixpro.hardware.ParentDevice
com.ctre.phoenixpro.hardware.core.CorePigeon2
com.ctre.phoenixpro.hardware.Pigeon2
- All Implemented Interfaces:
Sendable
,Gyro
,AutoCloseable
@Deprecated(forRemoval=true) public class Pigeon2 extends CorePigeon2 implements Sendable, Gyro
Deprecated, for removal: This API element is subject to removal in a future version.
Classes in the phoenixpro package will be removed in 2024.
Users should instead use classes from the phoenix6 package.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ctre.phoenixpro.hardware.ParentDevice
ParentDevice.MapGenerator<T>
-
Field Summary
Fields inherited from class com.ctre.phoenixpro.hardware.ParentDevice
deviceIdentifier, kDefaultControlRatePeriodsSec
-
Constructor Summary
Constructors Constructor Description Pigeon2(int deviceId)
Deprecated, for removal: This API element is subject to removal in a future version.Classes in the phoenixpro package will be removed in 2024.Pigeon2(int deviceId, String canbus)
Deprecated, for removal: This API element is subject to removal in a future version.Classes in the phoenixpro package will be removed in 2024. -
Method Summary
Modifier and Type Method Description void
calibrate()
Deprecated, for removal: This API element is subject to removal in a future version.This function does nothing; it exists to satisfy the WPILib Gyro interface.void
close()
Deprecated, for removal: This API element is subject to removal in a future version.double
getAngle()
Deprecated, for removal: This API element is subject to removal in a future version.double
getRate()
Deprecated, for removal: This API element is subject to removal in a future version.Rotation2d
getRotation2d()
Deprecated, for removal: This API element is subject to removal in a future version.void
initSendable(SendableBuilder builder)
Deprecated, for removal: This API element is subject to removal in a future version.void
reset()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class com.ctre.phoenixpro.hardware.core.CorePigeon2
clearStickyFaults, clearStickyFaults, getAccelerationX, getAccelerationY, getAccelerationZ, getAccumGyroX, getAccumGyroY, getAccumGyroZ, getAngularVelocityX, getAngularVelocityY, getAngularVelocityZ, getConfigurator, getFault_BootDuringEnable, getFault_BootIntoMotion, getFault_BootupAccelerometer, getFault_BootupGyroscope, getFault_BootupMagnetometer, getFault_DataAcquiredLate, getFault_Hardware, getFault_LoopTimeSlow, getFault_SaturatedAccelometer, getFault_SaturatedGyrosscope, getFault_SaturatedMagneter, getFault_Undervoltage, getFault_UnlicensedFeatureInUse, getFaultField, getGravityVectorX, getGravityVectorY, getGravityVectorZ, getMagneticFieldX, getMagneticFieldY, getMagneticFieldZ, getNoMotionCount, getNoMotionEnabled, getPitch, getQuatW, getQuatX, getQuatY, getQuatZ, getRawMagneticFieldX, getRawMagneticFieldY, getRawMagneticFieldZ, getRoll, getSimState, getStickyFault_BootDuringEnable, getStickyFault_BootIntoMotion, getStickyFault_BootupAccelerometer, getStickyFault_BootupGyroscope, getStickyFault_BootupMagnetometer, getStickyFault_DataAcquiredLate, getStickyFault_Hardware, getStickyFault_LoopTimeSlow, getStickyFault_SaturatedAccelometer, getStickyFault_SaturatedGyrosscope, getStickyFault_SaturatedMagneter, getStickyFault_Undervoltage, getStickyFault_UnlicensedFeatureInUse, getStickyFaultField, getSupplyVoltage, getTemperature, getTemperatureCompensationDisabled, getUpTime, getVersion, getVersionBugfix, getVersionBuild, getVersionMajor, getVersionMinor, getYaw, hasResetOccurred, reportIfTooOld, setControl, setYaw, setYaw
Methods inherited from class com.ctre.phoenixpro.hardware.ParentDevice
getAppliedControl, getCANBus, getDeviceID, lookupStatusSignalValue, lookupStatusSignalValue, setControlPrivate
-
Constructor Details
-
Pigeon2
Deprecated, for removal: This API element is subject to removal in a future version.Classes in the phoenixpro package will be removed in 2024. Users should instead use classes from the phoenix6 package.Constructs a new Pigeon 2 sensor object.Constructs the device using the default CAN bus for the system:
- "rio" on roboRIO
- "can0" on Linux
- "*" on Windows
- Parameters:
deviceId
- ID of the device, as configured in Phoenix Tuner.
-
Pigeon2
Deprecated, for removal: This API element is subject to removal in a future version.Classes in the phoenixpro package will be removed in 2024. Users should instead use classes from the phoenix6 package.Constructs a new Pigeon 2 sensor object.- Parameters:
deviceId
- ID of the device, as configured in Phoenix Tuner.canbus
- Name of the CAN bus this device is on. Possible CAN bus strings are:- "rio" for the native roboRIO CAN bus
- CANivore name or serial number
- SocketCAN interface (non-FRC Linux only)
- "*" for any CANivore seen by the program
- empty string (default) to select the default for the
system:
- "rio" on roboRIO
- "can0" on Linux
- "*" on Windows
-
-
Method Details
-
close
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
close
in interfaceAutoCloseable
-
calibrate
Deprecated, for removal: This API element is subject to removal in a future version.This function does nothing; it exists to satisfy the WPILib Gyro interface.Pigeon 2 does not require manual calibration.
-
reset
Deprecated, for removal: This API element is subject to removal in a future version. -
getAngle
Deprecated, for removal: This API element is subject to removal in a future version. -
getRate
Deprecated, for removal: This API element is subject to removal in a future version. -
getRotation2d
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getRotation2d
in interfaceGyro
-
initSendable
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
initSendable
in interfaceSendable
-