|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.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(java.lang.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, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, 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(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
public 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 | ||||||||