Class CorePigeon2
- Direct Known Subclasses:
Pigeon2
@Deprecated(forRemoval=true) public class CorePigeon2 extends ParentDevice
-
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 CorePigeon2(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.CorePigeon2(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 StatusCode
clearStickyFaults()
Deprecated, for removal: This API element is subject to removal in a future version.Clear the sticky faults in the device.StatusCode
clearStickyFaults(double timeoutSeconds)
Deprecated, for removal: This API element is subject to removal in a future version.Clear the sticky faults in the device.StatusSignalValue<Double>
getAccelerationX()
Deprecated, for removal: This API element is subject to removal in a future version.The acceleration measured by Pigeon2 in the X direction.StatusSignalValue<Double>
getAccelerationY()
Deprecated, for removal: This API element is subject to removal in a future version.The acceleration measured by Pigeon2 in the Y direction.StatusSignalValue<Double>
getAccelerationZ()
Deprecated, for removal: This API element is subject to removal in a future version.The acceleration measured by Pigeon2 in the Z direction.StatusSignalValue<Double>
getAccumGyroX()
Deprecated, for removal: This API element is subject to removal in a future version.The accumulated gyro about the X axis without any sensor fusing.StatusSignalValue<Double>
getAccumGyroY()
Deprecated, for removal: This API element is subject to removal in a future version.The accumulated gyro about the Y axis without any sensor fusing.StatusSignalValue<Double>
getAccumGyroZ()
Deprecated, for removal: This API element is subject to removal in a future version.The accumulated gyro about the Z axis without any sensor fusing.StatusSignalValue<Double>
getAngularVelocityX()
Deprecated, for removal: This API element is subject to removal in a future version.The angular velocity (ω) of the Pigeon 2 about the X axis.StatusSignalValue<Double>
getAngularVelocityY()
Deprecated, for removal: This API element is subject to removal in a future version.The angular velocity (ω) of the Pigeon 2 about the Y axis.StatusSignalValue<Double>
getAngularVelocityZ()
Deprecated, for removal: This API element is subject to removal in a future version.The angular velocity (ω) of the Pigeon 2 about the Z axis.Pigeon2Configurator
getConfigurator()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the configurator to use with this device's configsStatusSignalValue<Boolean>
getFault_BootDuringEnable()
Deprecated, for removal: This API element is subject to removal in a future version.Device boot while detecting the enable signal Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getFault_BootIntoMotion()
Deprecated, for removal: This API element is subject to removal in a future version.Motion Detected during bootup.StatusSignalValue<Boolean>
getFault_BootupAccelerometer()
Deprecated, for removal: This API element is subject to removal in a future version.Bootup checks failed: Accelerometer Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getFault_BootupGyroscope()
Deprecated, for removal: This API element is subject to removal in a future version.Bootup checks failed: Gyroscope Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getFault_BootupMagnetometer()
Deprecated, for removal: This API element is subject to removal in a future version.Bootup checks failed: Magnetometer Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getFault_DataAcquiredLate()
Deprecated, for removal: This API element is subject to removal in a future version.Motion stack data acquisition was slower than expected Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getFault_Hardware()
Deprecated, for removal: This API element is subject to removal in a future version.Hardware fault occurred Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getFault_LoopTimeSlow()
Deprecated, for removal: This API element is subject to removal in a future version.Motion stack loop time was slower than expected.StatusSignalValue<Boolean>
getFault_SaturatedAccelometer()
Deprecated, for removal: This API element is subject to removal in a future version.Accelerometer values are saturated Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getFault_SaturatedGyrosscope()
Deprecated, for removal: This API element is subject to removal in a future version.Gyroscope values are saturated Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getFault_SaturatedMagneter()
Deprecated, for removal: This API element is subject to removal in a future version.Magnetometer values are saturated Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getFault_Undervoltage()
Deprecated, for removal: This API element is subject to removal in a future version.Device supply voltage dropped to near brownout levels Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getFault_UnlicensedFeatureInUse()
Deprecated, for removal: This API element is subject to removal in a future version.An unlicensed feature is in use, device may not behave as expected.StatusSignalValue<Integer>
getFaultField()
Deprecated, for removal: This API element is subject to removal in a future version.Integer representing all faultsStatusSignalValue<Double>
getGravityVectorX()
Deprecated, for removal: This API element is subject to removal in a future version.The X component of the gravity vector.StatusSignalValue<Double>
getGravityVectorY()
Deprecated, for removal: This API element is subject to removal in a future version.The Y component of the gravity vector.StatusSignalValue<Double>
getGravityVectorZ()
Deprecated, for removal: This API element is subject to removal in a future version.The Z component of the gravity vector.StatusSignalValue<Double>
getMagneticFieldX()
Deprecated, for removal: This API element is subject to removal in a future version.The biased magnitude of the magnetic field measured by the Pigeon 2 in the X direction.StatusSignalValue<Double>
getMagneticFieldY()
Deprecated, for removal: This API element is subject to removal in a future version.The biased magnitude of the magnetic field measured by the Pigeon 2 in the Y direction.StatusSignalValue<Double>
getMagneticFieldZ()
Deprecated, for removal: This API element is subject to removal in a future version.The biased magnitude of the magnetic field measured by the Pigeon 2 in the Z direction.StatusSignalValue<Double>
getNoMotionCount()
Deprecated, for removal: This API element is subject to removal in a future version.The number of times a no-motion event occurred, wraps at 15.StatusSignalValue<Boolean>
getNoMotionEnabled()
Deprecated, for removal: This API element is subject to removal in a future version.Whether the no-motion calibration feature is enabled.StatusSignalValue<Double>
getPitch()
Deprecated, for removal: This API element is subject to removal in a future version.Current reported pitch of the Pigeon2.StatusSignalValue<Double>
getQuatW()
Deprecated, for removal: This API element is subject to removal in a future version.The W component of the reported Quaternion.StatusSignalValue<Double>
getQuatX()
Deprecated, for removal: This API element is subject to removal in a future version.The X component of the reported Quaternion.StatusSignalValue<Double>
getQuatY()
Deprecated, for removal: This API element is subject to removal in a future version.The Y component of the reported Quaternion.StatusSignalValue<Double>
getQuatZ()
Deprecated, for removal: This API element is subject to removal in a future version.The Z component of the reported Quaternion.StatusSignalValue<Double>
getRawMagneticFieldX()
Deprecated, for removal: This API element is subject to removal in a future version.The raw magnitude of the magnetic field measured by the Pigeon 2 in the X direction.StatusSignalValue<Double>
getRawMagneticFieldY()
Deprecated, for removal: This API element is subject to removal in a future version.The raw magnitude of the magnetic field measured by the Pigeon 2 in the Y direction.StatusSignalValue<Double>
getRawMagneticFieldZ()
Deprecated, for removal: This API element is subject to removal in a future version.The raw magnitude of the magnetic field measured by the Pigeon 2 in the Z direction.StatusSignalValue<Double>
getRoll()
Deprecated, for removal: This API element is subject to removal in a future version.Current reported roll of the Pigeon2.Pigeon2SimState
getSimState()
Deprecated, for removal: This API element is subject to removal in a future version.Get the simulation state for this device.StatusSignalValue<Boolean>
getStickyFault_BootDuringEnable()
Deprecated, for removal: This API element is subject to removal in a future version.Device boot while detecting the enable signal Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getStickyFault_BootIntoMotion()
Deprecated, for removal: This API element is subject to removal in a future version.Motion Detected during bootup.StatusSignalValue<Boolean>
getStickyFault_BootupAccelerometer()
Deprecated, for removal: This API element is subject to removal in a future version.Bootup checks failed: Accelerometer Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getStickyFault_BootupGyroscope()
Deprecated, for removal: This API element is subject to removal in a future version.Bootup checks failed: Gyroscope Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getStickyFault_BootupMagnetometer()
Deprecated, for removal: This API element is subject to removal in a future version.Bootup checks failed: Magnetometer Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getStickyFault_DataAcquiredLate()
Deprecated, for removal: This API element is subject to removal in a future version.Motion stack data acquisition was slower than expected Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getStickyFault_Hardware()
Deprecated, for removal: This API element is subject to removal in a future version.Hardware fault occurred Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getStickyFault_LoopTimeSlow()
Deprecated, for removal: This API element is subject to removal in a future version.Motion stack loop time was slower than expected.StatusSignalValue<Boolean>
getStickyFault_SaturatedAccelometer()
Deprecated, for removal: This API element is subject to removal in a future version.Accelerometer values are saturated Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getStickyFault_SaturatedGyrosscope()
Deprecated, for removal: This API element is subject to removal in a future version.Gyroscope values are saturated Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getStickyFault_SaturatedMagneter()
Deprecated, for removal: This API element is subject to removal in a future version.Magnetometer values are saturated Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getStickyFault_Undervoltage()
Deprecated, for removal: This API element is subject to removal in a future version.Device supply voltage dropped to near brownout levels Default Value: False Default Rates: CAN: 4.0 HzStatusSignalValue<Boolean>
getStickyFault_UnlicensedFeatureInUse()
Deprecated, for removal: This API element is subject to removal in a future version.An unlicensed feature is in use, device may not behave as expected.StatusSignalValue<Integer>
getStickyFaultField()
Deprecated, for removal: This API element is subject to removal in a future version.Integer representing all sticky faultsStatusSignalValue<Double>
getSupplyVoltage()
Deprecated, for removal: This API element is subject to removal in a future version.Measured supply voltage to the Pigeon2.StatusSignalValue<Double>
getTemperature()
Deprecated, for removal: This API element is subject to removal in a future version.Temperature of the Pigeon 2.StatusSignalValue<Boolean>
getTemperatureCompensationDisabled()
Deprecated, for removal: This API element is subject to removal in a future version.Whether the temperature-compensation feature is disabled.StatusSignalValue<Double>
getUpTime()
Deprecated, for removal: This API element is subject to removal in a future version.How long the Pigeon 2's been up in seconds, caps at 255 seconds.StatusSignalValue<Integer>
getVersion()
Deprecated, for removal: This API element is subject to removal in a future version.Full Version.StatusSignalValue<Integer>
getVersionBugfix()
Deprecated, for removal: This API element is subject to removal in a future version.App Bugfix Version number.StatusSignalValue<Integer>
getVersionBuild()
Deprecated, for removal: This API element is subject to removal in a future version.App Build Version number.StatusSignalValue<Integer>
getVersionMajor()
Deprecated, for removal: This API element is subject to removal in a future version.App Major Version number.StatusSignalValue<Integer>
getVersionMinor()
Deprecated, for removal: This API element is subject to removal in a future version.App Minor Version number.StatusSignalValue<Double>
getYaw()
Deprecated, for removal: This API element is subject to removal in a future version.Current reported yaw of the Pigeon2.boolean
hasResetOccurred()
Deprecated, for removal: This API element is subject to removal in a future version.protected void
reportIfTooOld()
Deprecated, for removal: This API element is subject to removal in a future version.StatusCode
setControl(ControlRequest request)
Deprecated, for removal: This API element is subject to removal in a future version.Control motor with generic control request object.StatusCode
setYaw(double newValue)
Deprecated, for removal: This API element is subject to removal in a future version.The yaw to set the Pigeon2 to right now.StatusCode
setYaw(double newValue, double timeoutSeconds)
Deprecated, for removal: This API element is subject to removal in a future version.The yaw to set the Pigeon2 to right now.Methods inherited from class com.ctre.phoenixpro.hardware.ParentDevice
getAppliedControl, getCANBus, getDeviceID, lookupStatusSignalValue, lookupStatusSignalValue, setControlPrivate
-
Constructor Details
-
CorePigeon2
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.
-
CorePigeon2
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
-
reportIfTooOld
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
reportIfTooOld
in classParentDevice
-
hasResetOccurred
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- true if device has reset since the previous call of this routine.
-
getConfigurator
Deprecated, for removal: This API element is subject to removal in a future version.Gets the configurator to use with this device's configs- Returns:
- Configurator for this object
-
getSimState
Deprecated, for removal: This API element is subject to removal in a future version.Get the simulation state for this device.This function reuses an allocated simulation state object, so it is safe to call this function multiple times in a robot loop.
- Returns:
- Simulation state
-
getVersionMajor
Deprecated, for removal: This API element is subject to removal in a future version.App Major Version number.- Minimum Value: 0
- Maximum Value: 255
- Default Value: 0
- Units:
- CAN: 4.0 Hz
- Returns:
- VersionMajor Status Signal Value object
-
getVersionMinor
Deprecated, for removal: This API element is subject to removal in a future version.App Minor Version number.- Minimum Value: 0
- Maximum Value: 255
- Default Value: 0
- Units:
- CAN: 4.0 Hz
- Returns:
- VersionMinor Status Signal Value object
-
getVersionBugfix
Deprecated, for removal: This API element is subject to removal in a future version.App Bugfix Version number.- Minimum Value: 0
- Maximum Value: 255
- Default Value: 0
- Units:
- CAN: 4.0 Hz
- Returns:
- VersionBugfix Status Signal Value object
-
getVersionBuild
Deprecated, for removal: This API element is subject to removal in a future version.App Build Version number.- Minimum Value: 0
- Maximum Value: 255
- Default Value: 0
- Units:
- CAN: 4.0 Hz
- Returns:
- VersionBuild Status Signal Value object
-
getVersion
Deprecated, for removal: This API element is subject to removal in a future version.Full Version. The format is a four byte value.Full Version of firmware in device. The format is a four byte value.
- Minimum Value: 0
- Maximum Value: 4294967295
- Default Value: 0
- Units:
- CAN: 4.0 Hz
- Returns:
- Version Status Signal Value object
-
getFaultField
Deprecated, for removal: This API element is subject to removal in a future version.Integer representing all faultsThis returns the fault flags reported by the device. These are device specific and are not used directly in typical applications. Use the signal specific GetFault_*() methods instead.
- Minimum Value: 0
- Maximum Value: 1048575
- Default Value: 0
- Units:
- CAN: 4.0 Hz
- Returns:
- FaultField Status Signal Value object
-
getStickyFaultField
Deprecated, for removal: This API element is subject to removal in a future version.Integer representing all sticky faultsThis returns the persistent "sticky" fault flags reported by the device. These are device specific and are not used directly in typical applications. Use the signal specific GetStickyFault_*() methods instead.
- Minimum Value: 0
- Maximum Value: 1048575
- Default Value: 0
- Units:
- CAN: 4.0 Hz
- Returns:
- StickyFaultField Status Signal Value object
-
getYaw
Deprecated, for removal: This API element is subject to removal in a future version.Current reported yaw of the Pigeon2.- Minimum Value: -368640.0
- Maximum Value: 368639.99725341797
- Default Value: 0
- Units: deg
- CAN: 100.0 Hz
- Returns:
- Yaw Status Signal Value object
-
getPitch
Deprecated, for removal: This API element is subject to removal in a future version.Current reported pitch of the Pigeon2.- Minimum Value: -90.0
- Maximum Value: 89.9560546875
- Default Value: 0
- Units: deg
- CAN: 100.0 Hz
- Returns:
- Pitch Status Signal Value object
-
getRoll
Deprecated, for removal: This API element is subject to removal in a future version.Current reported roll of the Pigeon2.- Minimum Value: -180.0
- Maximum Value: 179.9560546875
- Default Value: 0
- Units: deg
- CAN: 100.0 Hz
- Returns:
- Roll Status Signal Value object
-
getQuatW
Deprecated, for removal: This API element is subject to removal in a future version.The W component of the reported Quaternion.- Minimum Value: -1.0001220852154804
- Maximum Value: 1.0
- Default Value: 0
- Units:
- CAN 2.0: 50.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- QuatW Status Signal Value object
-
getQuatX
Deprecated, for removal: This API element is subject to removal in a future version.The X component of the reported Quaternion.- Minimum Value: -1.0001220852154804
- Maximum Value: 1.0
- Default Value: 0
- Units:
- CAN 2.0: 50.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- QuatX Status Signal Value object
-
getQuatY
Deprecated, for removal: This API element is subject to removal in a future version.The Y component of the reported Quaternion.- Minimum Value: -1.0001220852154804
- Maximum Value: 1.0
- Default Value: 0
- Units:
- CAN 2.0: 50.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- QuatY Status Signal Value object
-
getQuatZ
Deprecated, for removal: This API element is subject to removal in a future version.The Z component of the reported Quaternion.- Minimum Value: -1.0001220852154804
- Maximum Value: 1.0
- Default Value: 0
- Units:
- CAN 2.0: 50.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- QuatZ Status Signal Value object
-
getGravityVectorX
Deprecated, for removal: This API element is subject to removal in a future version.The X component of the gravity vector.This is the X component of the reported gravity-vector. The gravity vector is not the acceleration experienced by the Pigeon2, rather it is where the Pigeon2 believes "Down" is. This can be used for mechanisms that are linearly related to gravity, such as an arm pivoting about a point, as the contribution of gravity to the arm is directly proportional to the contribution of gravity about one of these primary axis.
- Minimum Value: -1.000030518509476
- Maximum Value: 1.0
- Default Value: 0
- Units:
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- GravityVectorX Status Signal Value object
-
getGravityVectorY
Deprecated, for removal: This API element is subject to removal in a future version.The Y component of the gravity vector.This is the X component of the reported gravity-vector. The gravity vector is not the acceleration experienced by the Pigeon2, rather it is where the Pigeon2 believes "Down" is. This can be used for mechanisms that are linearly related to gravity, such as an arm pivoting about a point, as the contribution of gravity to the arm is directly proportional to the contribution of gravity about one of these primary axis.
- Minimum Value: -1.000030518509476
- Maximum Value: 1.0
- Default Value: 0
- Units:
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- GravityVectorY Status Signal Value object
-
getGravityVectorZ
Deprecated, for removal: This API element is subject to removal in a future version.The Z component of the gravity vector.This is the Z component of the reported gravity-vector. The gravity vector is not the acceleration experienced by the Pigeon2, rather it is where the Pigeon2 believes "Down" is. This can be used for mechanisms that are linearly related to gravity, such as an arm pivoting about a point, as the contribution of gravity to the arm is directly proportional to the contribution of gravity about one of these primary axis.
- Minimum Value: -1.000030518509476
- Maximum Value: 1.0
- Default Value: 0
- Units:
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- GravityVectorZ Status Signal Value object
-
getTemperature
Deprecated, for removal: This API element is subject to removal in a future version.Temperature of the Pigeon 2.- Minimum Value: -128.0
- Maximum Value: 127.99609375
- Default Value: 0
- Units: ℃
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- Temperature Status Signal Value object
-
getNoMotionEnabled
Deprecated, for removal: This API element is subject to removal in a future version.Whether the no-motion calibration feature is enabled.- Default Value: 0
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- NoMotionEnabled Status Signal Value object
-
getNoMotionCount
Deprecated, for removal: This API element is subject to removal in a future version.The number of times a no-motion event occurred, wraps at 15.- Minimum Value: 0
- Maximum Value: 15
- Default Value: 0
- Units:
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- NoMotionCount Status Signal Value object
-
getTemperatureCompensationDisabled
Deprecated, for removal: This API element is subject to removal in a future version.Whether the temperature-compensation feature is disabled.- Default Value: 0
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- TemperatureCompensationDisabled Status Signal Value object
-
getUpTime
Deprecated, for removal: This API element is subject to removal in a future version.How long the Pigeon 2's been up in seconds, caps at 255 seconds.- Minimum Value: 0
- Maximum Value: 255
- Default Value: 0
- Units: s
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- UpTime Status Signal Value object
-
getAccumGyroX
Deprecated, for removal: This API element is subject to removal in a future version.The accumulated gyro about the X axis without any sensor fusing.- Minimum Value: -23040.0
- Maximum Value: 23039.9560546875
- Default Value: 0
- Units: deg
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- AccumGyroX Status Signal Value object
-
getAccumGyroY
Deprecated, for removal: This API element is subject to removal in a future version.The accumulated gyro about the Y axis without any sensor fusing.- Minimum Value: -23040.0
- Maximum Value: 23039.9560546875
- Default Value: 0
- Units: deg
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- AccumGyroY Status Signal Value object
-
getAccumGyroZ
Deprecated, for removal: This API element is subject to removal in a future version.The accumulated gyro about the Z axis without any sensor fusing.- Minimum Value: -23040.0
- Maximum Value: 23039.9560546875
- Default Value: 0
- Units: deg
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- AccumGyroZ Status Signal Value object
-
getAngularVelocityX
Deprecated, for removal: This API element is subject to removal in a future version.The angular velocity (ω) of the Pigeon 2 about the X axis.- Minimum Value: -1998.048780487805
- Maximum Value: 1997.987804878049
- Default Value: 0
- Units: dps
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- AngularVelocityX Status Signal Value object
-
getAngularVelocityY
Deprecated, for removal: This API element is subject to removal in a future version.The angular velocity (ω) of the Pigeon 2 about the Y axis.- Minimum Value: -1998.048780487805
- Maximum Value: 1997.987804878049
- Default Value: 0
- Units: dps
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- AngularVelocityY Status Signal Value object
-
getAngularVelocityZ
Deprecated, for removal: This API element is subject to removal in a future version.The angular velocity (ω) of the Pigeon 2 about the Z axis.- Minimum Value: -1998.048780487805
- Maximum Value: 1997.987804878049
- Default Value: 0
- Units: dps
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- AngularVelocityZ Status Signal Value object
-
getAccelerationX
Deprecated, for removal: This API element is subject to removal in a future version.The acceleration measured by Pigeon2 in the X direction.This value includes the acceleration due to gravity. If this is undesirable, get the gravity vector and subtract out the contribution in this direction.
- Minimum Value: -2.0
- Maximum Value: 1.99993896484375
- Default Value: 0
- Units: g
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- AccelerationX Status Signal Value object
-
getAccelerationY
Deprecated, for removal: This API element is subject to removal in a future version.The acceleration measured by Pigeon2 in the Y direction.This value includes the acceleration due to gravity. If this is undesirable, get the gravity vector and subtract out the contribution in this direction.
- Minimum Value: -2.0
- Maximum Value: 1.99993896484375
- Default Value: 0
- Units: g
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- AccelerationY Status Signal Value object
-
getAccelerationZ
Deprecated, for removal: This API element is subject to removal in a future version.The acceleration measured by Pigeon2 in the Z direction.This value includes the acceleration due to gravity. If this is undesirable, get the gravity vector and subtract out the contribution in this direction.
- Minimum Value: -2.0
- Maximum Value: 1.99993896484375
- Default Value: 0
- Units: g
- CAN 2.0: 10.0 Hz
- CAN FD: 100.0 Hz
- Returns:
- AccelerationZ Status Signal Value object
-
getSupplyVoltage
Deprecated, for removal: This API element is subject to removal in a future version.Measured supply voltage to the Pigeon2.- Minimum Value: 0.0
- Maximum Value: 31.99951171875
- Default Value: 0
- Units: V
- CAN: 10.0 Hz
- Returns:
- SupplyVoltage Status Signal Value object
-
getMagneticFieldX
Deprecated, for removal: This API element is subject to removal in a future version.The biased magnitude of the magnetic field measured by the Pigeon 2 in the X direction. This is only valid after performing a magnetometer calibration.- Minimum Value: -19660.8
- Maximum Value: 19660.2
- Default Value: 0
- Units: uT
- CAN: 5.0 Hz
- Returns:
- MagneticFieldX Status Signal Value object
-
getMagneticFieldY
Deprecated, for removal: This API element is subject to removal in a future version.The biased magnitude of the magnetic field measured by the Pigeon 2 in the Y direction. This is only valid after performing a magnetometer calibration.- Minimum Value: -19660.8
- Maximum Value: 19660.2
- Default Value: 0
- Units: uT
- CAN: 5.0 Hz
- Returns:
- MagneticFieldY Status Signal Value object
-
getMagneticFieldZ
Deprecated, for removal: This API element is subject to removal in a future version.The biased magnitude of the magnetic field measured by the Pigeon 2 in the Z direction. This is only valid after performing a magnetometer calibration.- Minimum Value: -19660.8
- Maximum Value: 19660.2
- Default Value: 0
- Units: uT
- CAN: 5.0 Hz
- Returns:
- MagneticFieldZ Status Signal Value object
-
getRawMagneticFieldX
Deprecated, for removal: This API element is subject to removal in a future version.The raw magnitude of the magnetic field measured by the Pigeon 2 in the X direction. This is only valid after performing a magnetometer calibration.- Minimum Value: -19660.8
- Maximum Value: 19660.2
- Default Value: 0
- Units: uT
- CAN: 5.0 Hz
- Returns:
- RawMagneticFieldX Status Signal Value object
-
getRawMagneticFieldY
Deprecated, for removal: This API element is subject to removal in a future version.The raw magnitude of the magnetic field measured by the Pigeon 2 in the Y direction. This is only valid after performing a magnetometer calibration.- Minimum Value: -19660.8
- Maximum Value: 19660.2
- Default Value: 0
- Units: uT
- CAN: 5.0 Hz
- Returns:
- RawMagneticFieldY Status Signal Value object
-
getRawMagneticFieldZ
Deprecated, for removal: This API element is subject to removal in a future version.The raw magnitude of the magnetic field measured by the Pigeon 2 in the Z direction. This is only valid after performing a magnetometer calibration.- Minimum Value: -19660.8
- Maximum Value: 19660.2
- Default Value: 0
- Units: uT
- CAN: 5.0 Hz
- Returns:
- RawMagneticFieldZ Status Signal Value object
-
getFault_Hardware
Deprecated, for removal: This API element is subject to removal in a future version.Hardware fault occurred- Default Value: False
- CAN: 4.0 Hz
- Returns:
- Fault_Hardware Status Signal Value object
-
getStickyFault_Hardware
Deprecated, for removal: This API element is subject to removal in a future version.Hardware fault occurred- Default Value: False
- CAN: 4.0 Hz
- Returns:
- StickyFault_Hardware Status Signal Value object
-
getFault_Undervoltage
Deprecated, for removal: This API element is subject to removal in a future version.Device supply voltage dropped to near brownout levels- Default Value: False
- CAN: 4.0 Hz
- Returns:
- Fault_Undervoltage Status Signal Value object
-
getStickyFault_Undervoltage
Deprecated, for removal: This API element is subject to removal in a future version.Device supply voltage dropped to near brownout levels- Default Value: False
- CAN: 4.0 Hz
- Returns:
- StickyFault_Undervoltage Status Signal Value object
-
getFault_BootDuringEnable
Deprecated, for removal: This API element is subject to removal in a future version.Device boot while detecting the enable signal- Default Value: False
- CAN: 4.0 Hz
- Returns:
- Fault_BootDuringEnable Status Signal Value object
-
getStickyFault_BootDuringEnable
Deprecated, for removal: This API element is subject to removal in a future version.Device boot while detecting the enable signal- Default Value: False
- CAN: 4.0 Hz
- Returns:
- StickyFault_BootDuringEnable Status Signal Value object
-
getFault_UnlicensedFeatureInUse
Deprecated, for removal: This API element is subject to removal in a future version.An unlicensed feature is in use, device may not behave as expected.- Default Value: False
- CAN: 4.0 Hz
- Returns:
- Fault_UnlicensedFeatureInUse Status Signal Value object
-
getStickyFault_UnlicensedFeatureInUse
Deprecated, for removal: This API element is subject to removal in a future version.An unlicensed feature is in use, device may not behave as expected.- Default Value: False
- CAN: 4.0 Hz
- Returns:
- StickyFault_UnlicensedFeatureInUse Status Signal Value object
-
getFault_BootupAccelerometer
Deprecated, for removal: This API element is subject to removal in a future version.Bootup checks failed: Accelerometer- Default Value: False
- CAN: 4.0 Hz
- Returns:
- Fault_BootupAccelerometer Status Signal Value object
-
getStickyFault_BootupAccelerometer
Deprecated, for removal: This API element is subject to removal in a future version.Bootup checks failed: Accelerometer- Default Value: False
- CAN: 4.0 Hz
- Returns:
- StickyFault_BootupAccelerometer Status Signal Value object
-
getFault_BootupGyroscope
Deprecated, for removal: This API element is subject to removal in a future version.Bootup checks failed: Gyroscope- Default Value: False
- CAN: 4.0 Hz
- Returns:
- Fault_BootupGyroscope Status Signal Value object
-
getStickyFault_BootupGyroscope
Deprecated, for removal: This API element is subject to removal in a future version.Bootup checks failed: Gyroscope- Default Value: False
- CAN: 4.0 Hz
- Returns:
- StickyFault_BootupGyroscope Status Signal Value object
-
getFault_BootupMagnetometer
Deprecated, for removal: This API element is subject to removal in a future version.Bootup checks failed: Magnetometer- Default Value: False
- CAN: 4.0 Hz
- Returns:
- Fault_BootupMagnetometer Status Signal Value object
-
getStickyFault_BootupMagnetometer
Deprecated, for removal: This API element is subject to removal in a future version.Bootup checks failed: Magnetometer- Default Value: False
- CAN: 4.0 Hz
- Returns:
- StickyFault_BootupMagnetometer Status Signal Value object
-
getFault_BootIntoMotion
Deprecated, for removal: This API element is subject to removal in a future version.Motion Detected during bootup.- Default Value: False
- CAN: 4.0 Hz
- Returns:
- Fault_BootIntoMotion Status Signal Value object
-
getStickyFault_BootIntoMotion
Deprecated, for removal: This API element is subject to removal in a future version.Motion Detected during bootup.- Default Value: False
- CAN: 4.0 Hz
- Returns:
- StickyFault_BootIntoMotion Status Signal Value object
-
getFault_DataAcquiredLate
Deprecated, for removal: This API element is subject to removal in a future version.Motion stack data acquisition was slower than expected- Default Value: False
- CAN: 4.0 Hz
- Returns:
- Fault_DataAcquiredLate Status Signal Value object
-
getStickyFault_DataAcquiredLate
Deprecated, for removal: This API element is subject to removal in a future version.Motion stack data acquisition was slower than expected- Default Value: False
- CAN: 4.0 Hz
- Returns:
- StickyFault_DataAcquiredLate Status Signal Value object
-
getFault_LoopTimeSlow
Deprecated, for removal: This API element is subject to removal in a future version.Motion stack loop time was slower than expected.- Default Value: False
- CAN: 4.0 Hz
- Returns:
- Fault_LoopTimeSlow Status Signal Value object
-
getStickyFault_LoopTimeSlow
Deprecated, for removal: This API element is subject to removal in a future version.Motion stack loop time was slower than expected.- Default Value: False
- CAN: 4.0 Hz
- Returns:
- StickyFault_LoopTimeSlow Status Signal Value object
-
getFault_SaturatedMagneter
Deprecated, for removal: This API element is subject to removal in a future version.Magnetometer values are saturated- Default Value: False
- CAN: 4.0 Hz
- Returns:
- Fault_SaturatedMagneter Status Signal Value object
-
getStickyFault_SaturatedMagneter
Deprecated, for removal: This API element is subject to removal in a future version.Magnetometer values are saturated- Default Value: False
- CAN: 4.0 Hz
- Returns:
- StickyFault_SaturatedMagneter Status Signal Value object
-
getFault_SaturatedAccelometer
Deprecated, for removal: This API element is subject to removal in a future version.Accelerometer values are saturated- Default Value: False
- CAN: 4.0 Hz
- Returns:
- Fault_SaturatedAccelometer Status Signal Value object
-
getStickyFault_SaturatedAccelometer
Deprecated, for removal: This API element is subject to removal in a future version.Accelerometer values are saturated- Default Value: False
- CAN: 4.0 Hz
- Returns:
- StickyFault_SaturatedAccelometer Status Signal Value object
-
getFault_SaturatedGyrosscope
Deprecated, for removal: This API element is subject to removal in a future version.Gyroscope values are saturated- Default Value: False
- CAN: 4.0 Hz
- Returns:
- Fault_SaturatedGyrosscope Status Signal Value object
-
getStickyFault_SaturatedGyrosscope
Deprecated, for removal: This API element is subject to removal in a future version.Gyroscope values are saturated- Default Value: False
- CAN: 4.0 Hz
- Returns:
- StickyFault_SaturatedGyrosscope Status Signal Value object
-
setControl
Deprecated, for removal: This API element is subject to removal in a future version.Control motor with generic control request object.User must make sure the specified object is castable to a valid control request, otherwise this function will fail at run-time and return the NotSupported StatusCode
- Parameters:
request
- Control object to request of the device- Returns:
- Status Code of the request, 0 is OK
-
setYaw
Deprecated, for removal: This API element is subject to removal in a future version.The yaw to set the Pigeon2 to right now.- Parameters:
newValue
- Value to set to.timeoutSeconds
- Maximum time to wait up to in seconds.- Returns:
- StatusCode of the set command
-
setYaw
Deprecated, for removal: This API element is subject to removal in a future version.The yaw to set the Pigeon2 to right now.This will wait up to 0.050 seconds (50ms) by default.
- Parameters:
newValue
- Value to set to.- Returns:
- StatusCode of the set command
-
clearStickyFaults
Deprecated, for removal: This API element is subject to removal in a future version.Clear the sticky faults in the device.This typically has no impact on the device functionality. Instead, it just clears telemetry faults that are accessible via API and Tuner Self-Test.
- Parameters:
timeoutSeconds
- Maximum time to wait up to in seconds.- Returns:
- StatusCode of the set command
-
clearStickyFaults
Deprecated, for removal: This API element is subject to removal in a future version.Clear the sticky faults in the device.This typically has no impact on the device functionality. Instead, it just clears telemetry faults that are accessible via API and Tuner Self-Test.
This will wait up to 0.050 seconds (50ms) by default.
- Returns:
- StatusCode of the set command
-