Package com.kauailabs.navx.ftc
Enum AHRS.DeviceDataType
- java.lang.Object
-
- java.lang.Enum<AHRS.DeviceDataType>
-
- com.kauailabs.navx.ftc.AHRS.DeviceDataType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AHRS.DeviceDataType>
- Enclosing class:
- AHRS
public static enum AHRS.DeviceDataType extends java.lang.Enum<AHRS.DeviceDataType>
The DeviceDataType specifies the type of data to be retrieved from the sensor. Due to limitations in the communication bandwidth, only a subset of all available data can be streamed and still maintain a 50Hz update rate via the Core Device Interface Module, since it is limited to a maximum of one 26-byte transfer every 10ms. Note that if all data types are required,
-
-
Enum Constant Summary
Enum Constants Enum Constant Description kAll
All processed and raw data, sensor status and timestamps.kProcessedData
(default): All 6 and 9-axis processed data, sensor status and timestampkQuatAndRawData
Unit Quaternions and unprocessed data from each individual sensor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static AHRS.DeviceDataType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AHRS.DeviceDataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kProcessedData
public static final AHRS.DeviceDataType kProcessedData
(default): All 6 and 9-axis processed data, sensor status and timestamp
-
kQuatAndRawData
public static final AHRS.DeviceDataType kQuatAndRawData
Unit Quaternions and unprocessed data from each individual sensor. Note that this data does not include a timestamp. If a timestamp is needed, use the kAll flag instead.
-
kAll
public static final AHRS.DeviceDataType kAll
All processed and raw data, sensor status and timestamps. Note that on a Android-based FTC robot using the "Core Device Interface Module", acquiring all data requires to I2C transactions.
-
-
Method Detail
-
values
public static AHRS.DeviceDataType[] 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 (AHRS.DeviceDataType c : AHRS.DeviceDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AHRS.DeviceDataType 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
-
getValue
public int getValue()
-
-