|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<KartControlRegister>
ch.hei.kart.KartControlRegister
public enum KartControlRegister
Enumeration in order to identify the different control registers of the Kart.
Enum Constant Summary | |
---|---|
DrivePwmPeriod
The Drive PWM period as UINT16. |
|
DriveSpeed
Drive motor speed as INT5. |
|
HardwareSettings
Hardware settings register. |
|
LEDs
LED control register. |
|
SteeringEndSwitchAddress
Specifies the address at which the end switch is read at bit 0 (if it isn't local). |
|
SteeringPosition
Steering position setpoint as UINT16 register. |
|
SteeringStepPeriod
The Stepper (Steering) motor step period as UINT16. |
|
UpdateInterval
Update interval (from kart to App) in milliseconds. |
Method Summary | |
---|---|
int |
getAddress()
Returns the address of the register in the kart's memory. |
static KartControlRegister |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static KartControlRegister[] |
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 KartControlRegister DrivePwmPeriod
public static final KartControlRegister DriveSpeed
public static final KartControlRegister SteeringStepPeriod
public static final KartControlRegister SteeringPosition
public static final KartControlRegister SteeringEndSwitchAddress
public static final KartControlRegister HardwareSettings
public static final KartControlRegister LEDs
public static final KartControlRegister UpdateInterval
Method Detail |
---|
public static KartControlRegister[] values()
for (KartControlRegister c : KartControlRegister.values()) System.out.println(c);
public static KartControlRegister 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |