Package com.ctre.phoenix.sensors
Enum Class PigeonIMU.CalibrationMode
- All Implemented Interfaces:
Serializable
,Comparable<PigeonIMU.CalibrationMode>
,Constable
- Enclosing class:
- PigeonIMU
Various calibration modes supported by Pigeon.
Note that you can instead use Phoenix Tuner to accomplish certain calibrations.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCalibrate the pigeon accelerometerBoot-Calibrate the pigeonMagnetometer-Calibrate the pigeon using the 12pt processMagnetometer-Calibrate the pigeon using 360 turnsTemperature-Calibrate the pigeonUnknown calibration -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PigeonIMU.CalibrationMode
valueOf
(int value) Get a CalibrationMode of specified valuestatic PigeonIMU.CalibrationMode
Returns the enum constant of this class with the specified name.static PigeonIMU.CalibrationMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BootTareGyroAccel
Boot-Calibrate the pigeon -
Temperature
Temperature-Calibrate the pigeon -
Magnetometer12Pt
Magnetometer-Calibrate the pigeon using the 12pt process -
Magnetometer360
Magnetometer-Calibrate the pigeon using 360 turns -
Accelerometer
Calibrate the pigeon accelerometer -
Unknown
Unknown calibration
-
-
Field Details
-
value
Value of CalibrationMode
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
Get a CalibrationMode of specified value- Parameters:
value
- Value of CalibrationMode- Returns:
- CalibrationMode of specified value
-