DifferentialWheelMotorDsl
DSL for creating and configuring a DifferentialWheelMotor. Provides methods to set the speed of the motor.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
Value members
Concrete methods
Creates a new instance of DifferentialWheelMotor with default wheels.
Validates a DifferentialWheelMotor to ensure it meets the domain constraints.
Validates a DifferentialWheelMotor to ensure it meets the domain constraints.
Value parameters
- motor
-
the DifferentialWheelMotor to validate.
Attributes
- Returns
-
Right if the motor is valid, or Left with a validation error.
Extensions
Extensions
Validates the differential wheel motor to ensure it meets the domain constraints.
Validates the differential wheel motor to ensure it meets the domain constraints.
Attributes
- Returns
-
Right if the motor is valid, or Left with a validation error.
Sets the speed of the left wheel of the differential motor.
Sets the speed of the left wheel of the differential motor.
Value parameters
- speed
-
the speed to set for the left wheel.
Attributes
- Returns
-
a new DifferentialWheelMotor instance with the updated left wheel speed.
Sets the speed of the right wheel of the differential motor.
Sets the speed of the right wheel of the differential motor.
Value parameters
- speed
-
the speed to set for the right wheel.
Attributes
- Returns
-
a new DifferentialWheelMotor instance with the updated right wheel speed.
Sets the speed of the left wheel of the differential motor.
Sets the speed of the left wheel of the differential motor.
Value parameters
- speed
-
the speed to set for both wheels.
Attributes
- Returns
-
a new DifferentialWheelMotor instance with the updated speed.
Sets the speed of both wheels of the differential motor.
Sets the speed of both wheels of the differential motor.
Value parameters
- speed
-
the speed to set for both wheels.
Attributes
- Returns
-
a new DifferentialWheelMotor instance with the updated speed.