Package com.ctre.phoenix.sensors
Class WPI_PigeonIMU
java.lang.Object
com.ctre.phoenix.sensors.BasePigeon
com.ctre.phoenix.sensors.PigeonIMU
com.ctre.phoenix.sensors.WPI_PigeonIMU
- All Implemented Interfaces:
Sendable
,Gyro
,AutoCloseable
public class WPI_PigeonIMU extends PigeonIMU implements Sendable, Gyro
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ctre.phoenix.sensors.PigeonIMU
PigeonIMU.CalibrationMode, PigeonIMU.FusionStatus, PigeonIMU.GeneralStatus, PigeonIMU.PigeonState
-
Constructor Summary
Constructors Constructor Description WPI_PigeonIMU(int deviceNumber)
Constructor for Pigeon IMU.WPI_PigeonIMU(TalonSRX talon)
Construtor for WPI_PigeonIMU. -
Method Summary
Modifier and Type Method Description void
calibrate()
This function does nothing, it exists to satisfy the WPILib Gyro interface.void
close()
double
getAngle()
double
getRate()
Rotation2d
getRotation2d()
void
initSendable(SendableBuilder builder)
void
reset()
Methods inherited from class com.ctre.phoenix.sensors.PigeonIMU
addFusedHeading, addFusedHeading, configAllSettings, configAllSettings, configFactoryDefault, configFactoryDefault, enterCalibrationMode, enterCalibrationMode, getAccelerometerAngles, getAllConfigs, getAllConfigs, getFaults, getFusedHeading, getFusedHeading, getGeneralStatus, getState, getStickyFaults, setCompassAngle, setCompassAngle, setCompassDeclination, setCompassDeclination, setFusedHeading, setFusedHeading, setFusedHeadingToCompass, setFusedHeadingToCompass, setTemperatureCompensationDisable, setTemperatureCompensationDisable
Methods inherited from class com.ctre.phoenix.sensors.BasePigeon
addYaw, addYaw, clearStickyFaults, clearStickyFaults, configGetCustomParam, configGetCustomParam, configGetParameter, configGetParameter, configGetParameter, configGetParameter, configSetCustomParam, configSetCustomParam, configSetParameter, configSetParameter, configSetParameter, configSetParameter, DestroyObject, get6dQuaternion, getAbsoluteCompassHeading, getAccumGyro, getBiasedAccelerometer, getBiasedMagnetometer, getCompassFieldStrength, getCompassHeading, getDeviceID, getFirmwareVersion, getHandle, getLastError, getPitch, getRawGyro, getRawMagnetometer, getResetCount, getResetFlags, getRoll, getSimCollection, getStatusFramePeriod, getStatusFramePeriod, getTemp, getUpTime, getYaw, getYawPitchRoll, hasResetOccurred, setAccumZAngle, setAccumZAngle, setControlFramePeriod, setControlFramePeriod, setStatusFramePeriod, setStatusFramePeriod, setStatusFramePeriod, setStatusFramePeriod, setYaw, setYaw, setYawToCompass, setYawToCompass
-
Constructor Details
-
WPI_PigeonIMU
Constructor for Pigeon IMU.- Parameters:
deviceNumber
- device ID of Pigeon IMU
-
WPI_PigeonIMU
Construtor for WPI_PigeonIMU.- Parameters:
talon
- The Talon SRX ribbon-cabled to Pigeon.
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
-
calibrate
This function does nothing, it exists to satisfy the WPILib Gyro interface. Pigeon does calibration on boot and any one-time calibrations (like temperature) are done via Phoenix Tuner. -
reset
-
getAngle
-
getRate
-
getRotation2d
- Specified by:
getRotation2d
in interfaceGyro
-
initSendable
- Specified by:
initSendable
in interfaceSendable
-