Package com.kauailabs.navx.ftc
Enum navXPIDController.navXTimestampedDataSource
- java.lang.Object
-
- java.lang.Enum<navXPIDController.navXTimestampedDataSource>
-
- com.kauailabs.navx.ftc.navXPIDController.navXTimestampedDataSource
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<navXPIDController.navXTimestampedDataSource>
- Enclosing class:
- navXPIDController
public static enum navXPIDController.navXTimestampedDataSource extends java.lang.Enum<navXPIDController.navXTimestampedDataSource>
The navXTimestampedDataSources specifies the navX-Model device sensor data source type used by the navXPIDController as it's input data source. These data sources are timestamped by the navX-Model device and thus are delivered with sufficient data (a highly-accurate "sensor timestamp") to allow the navXPIDController to compensate for any jitter in the transmission from the navX-Model device to the navXPIDController.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALTITUDE
COMPASS_HEADING
FUSED_HEADING
LINEAR_ACCEL_X
LINEAR_ACCEL_Y
LINEAR_ACCEL_Z
PITCH
ROLL
YAW
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static navXPIDController.navXTimestampedDataSource
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static navXPIDController.navXTimestampedDataSource[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YAW
public static final navXPIDController.navXTimestampedDataSource YAW
-
PITCH
public static final navXPIDController.navXTimestampedDataSource PITCH
-
ROLL
public static final navXPIDController.navXTimestampedDataSource ROLL
-
COMPASS_HEADING
public static final navXPIDController.navXTimestampedDataSource COMPASS_HEADING
-
FUSED_HEADING
public static final navXPIDController.navXTimestampedDataSource FUSED_HEADING
-
ALTITUDE
public static final navXPIDController.navXTimestampedDataSource ALTITUDE
-
LINEAR_ACCEL_X
public static final navXPIDController.navXTimestampedDataSource LINEAR_ACCEL_X
-
LINEAR_ACCEL_Y
public static final navXPIDController.navXTimestampedDataSource LINEAR_ACCEL_Y
-
LINEAR_ACCEL_Z
public static final navXPIDController.navXTimestampedDataSource LINEAR_ACCEL_Z
-
-
Method Detail
-
values
public static navXPIDController.navXTimestampedDataSource[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (navXPIDController.navXTimestampedDataSource c : navXPIDController.navXTimestampedDataSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static navXPIDController.navXTimestampedDataSource valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-