|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<KartStatusRegister>
ch.hei.kart.KartStatusRegister
public enum KartStatusRegister
Enumeration in order to identify the different status registers of the Kart.
Enum Constant Summary | |
---|---|
AmbientLightSensor1
Proximity sensor 1 ambient light measure. |
|
AmbientLightSensor2
Proximity sensor 2 ambient light measure. |
|
AmbientLightSensor3
Proximity sensor 3 ambient light measure. |
|
AmbientLightSensor4
Proximity sensor 4 ambient light measure. |
|
BatteryVoltageLevel
ADC value of the battery voltage level measure. |
|
DistanceSensor
Ultrasonic distance sensor value. |
|
HallSensorCounter1
Hall sensor 1 pulse count. |
|
HallSensorCounter2
Hall sensor 2 pulse count. |
|
ProximitySensor1
Proximity sensor 1 value. |
|
ProximitySensor2
Proximity sensor 2 value. |
|
ProximitySensor3
Proximity sensor 3 value. |
|
ProximitySensor4
Proximity sensor 4 value. |
|
SteeringEndSwitchState
State of the steering end switch, 0=closed, 1=open. |
|
SteeringPosition
Actual steering position. |
|
SteeringStatus
Steering FSM status: 0=busy 1=target position reached. |
Method Summary | |
---|---|
static KartStatusRegister |
fromAddress(int address)
Creates a status register enumerator from his integer value. |
int |
getAddress()
Returns the actual address of the status register in the Kart's memory. |
static KartStatusRegister |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static KartStatusRegister[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, 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 KartStatusRegister HallSensorCounter1
public static final KartStatusRegister HallSensorCounter2
public static final KartStatusRegister SteeringStatus
public static final KartStatusRegister SteeringPosition
public static final KartStatusRegister SteeringEndSwitchState
public static final KartStatusRegister BatteryVoltageLevel
public static final KartStatusRegister DistanceSensor
public static final KartStatusRegister ProximitySensor1
public static final KartStatusRegister ProximitySensor2
public static final KartStatusRegister ProximitySensor3
public static final KartStatusRegister ProximitySensor4
public static final KartStatusRegister AmbientLightSensor1
public static final KartStatusRegister AmbientLightSensor2
public static final KartStatusRegister AmbientLightSensor3
public static final KartStatusRegister AmbientLightSensor4
Method Detail |
---|
public static KartStatusRegister[] values()
for (KartStatusRegister c : KartStatusRegister.values()) System.out.println(c);
public static KartStatusRegister 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
java.lang.NullPointerException
- if the argument is nullpublic int getAddress()
public static KartStatusRegister fromAddress(int address)
address
- The integer address value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |