Package ch.hevs.kart
Class KartRegisters.V1.Control.HardwareSettings
java.lang.Object
ch.hevs.kart.KartRegisters.V1.Control.HardwareSettings
- Enclosing class:
KartRegisters.V1.Control
Hardware settings register. Defines how the motor rotations are related to the kart move actions.
-
Bit 0: Kart goes as DC motor.
When '0', the kart goes backwards when the motor turns forward. -
Bit 1: Kart turns right (clockwise).
When '1', kart turns to the right as stepper motor phases go from 1 to 4. -
Bit 2: End sensor is on left side.
If '1', the angles are measured clockwise. -
Bit 3: Stepper end emulation.
Emulates an end switch contact for the direction motor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ADDRESS
public static final int ADDRESS- See Also:
-
DRIVE_INVERT_DIRECTION_MASK
public static final int DRIVE_INVERT_DIRECTION_MASK- See Also:
-
STEERING_INVERT_DIRECTION_MASK
public static final int STEERING_INVERT_DIRECTION_MASK- See Also:
-
STEERING_INVERT_END_POSITION_MASK
public static final int STEERING_INVERT_END_POSITION_MASK- See Also:
-
STEERING_EMULATE_END_SWITCH_MASK
public static final int STEERING_EMULATE_END_SWITCH_MASK- See Also:
-
KART_RESET_MASK
public static final int KART_RESET_MASK- See Also:
-
-
Constructor Details
-
HardwareSettings
public HardwareSettings()
-