|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DIMUGyro.RateUnits> lejos.nxt.addon.DIMUGyro.RateUnits
public static enum DIMUGyro.RateUnits
Rotation units supported by the sensor
Enum Constant Summary | |
---|---|
CPS
Rate in cosine/s |
|
DPS
Rate in degrees/s |
|
RPS
Rate in radians/s |
Method Summary | |
---|---|
void |
convertTo(float[] values,
DIMUGyro.RateUnits unit)
Converts an array of values in place to specified unit |
float |
convertTo(float value,
DIMUGyro.RateUnits unit)
Converts a value to specified unit |
static DIMUGyro.RateUnits |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DIMUGyro.RateUnits[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DIMUGyro.RateUnits DPS
public static final DIMUGyro.RateUnits RPS
public static final DIMUGyro.RateUnits CPS
Method Detail |
---|
public static final DIMUGyro.RateUnits[] values()
for(DIMUGyro.RateUnits c : DIMUGyro.RateUnits.values()) System.out.println(c);
public static DIMUGyro.RateUnits valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic float convertTo(float value, DIMUGyro.RateUnits unit)
value
- Value to convert.unit
- Unit to convert to.
public void convertTo(float[] values, DIMUGyro.RateUnits unit)
values
- Array of values to convert.unit
- Unit to convert to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |