Package com.ctre.phoenix.sensors
Enum PigeonIMU.CalibrationMode
- All Implemented Interfaces:
Serializable
,Comparable<PigeonIMU.CalibrationMode>
,java.lang.constant.Constable
- Enclosing class:
- PigeonIMU
public static enum PigeonIMU.CalibrationMode extends Enum<PigeonIMU.CalibrationMode>
Various calibration modes supported by Pigeon.
Note that you can instead use Phoenix Tuner to accomplish certain calibrations.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description Accelerometer
Calibrate the pigeon accelerometerBootTareGyroAccel
Boot-Calibrate the pigeonMagnetometer12Pt
Magnetometer-Calibrate the pigeon using the 12pt processMagnetometer360
Magnetometer-Calibrate the pigeon using 360 turnsTemperature
Temperature-Calibrate the pigeonUnknown
Unknown calibration -
Field Summary
Fields Modifier and Type Field Description int
value
Value of CalibrationMode -
Method Summary
Modifier and Type Method Description static PigeonIMU.CalibrationMode
valueOf(int value)
Get a CalibrationMode of specified valuestatic PigeonIMU.CalibrationMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static PigeonIMU.CalibrationMode[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
-