Package swervelib.parser.deserializer
Enum Class ReflectionsManager.Gyro
- All Implemented Interfaces:
Serializable,Comparable<ReflectionsManager.Gyro>,Constable
- Enclosing class:
- ReflectionsManager
Gyro vendor classes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetGyro(int canid, String canbus, SwerveDriveJson.GyroAxis axis, boolean inverted) Get the angle.static ReflectionsManager.GyroReturns the enum constant of this class with the specified name.static ReflectionsManager.Gyro[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PIGEON2
Pigeon2 Gyro -
NAVX3
NavX3 Gyro -
CANANDGYRO
CANandGyro
-
-
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
-
getGyro
public Pair<Supplier<Angle>,Object> getGyro(int canid, String canbus, SwerveDriveJson.GyroAxis axis, boolean inverted) Get the angle.
-