Package dev.narlyx.tweetybird.Drivers
Class Mecanum.Builder
java.lang.Object
dev.narlyx.tweetybird.Drivers.Mecanum.Builder
- Enclosing class:
- Mecanum
Used to configure and start the driver.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
This will construct and return a new OdometersetBackLeftMotor
(com.qualcomm.robotcore.hardware.DcMotor backLeft) REQUIRED Defines the motor on the back left of the robot.setBackRightMotor
(com.qualcomm.robotcore.hardware.DcMotor backRight) REQUIRED Defines the motor on the back right of the robot.setFrontLeftMotor
(com.qualcomm.robotcore.hardware.DcMotor frontLeft) REQUIRED Defines the motor on the front left of the robot.setFrontRightMotor
(com.qualcomm.robotcore.hardware.DcMotor frontRight) REQUIRED Defines the motor on the front right of the robot.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setFrontLeftMotor
REQUIRED Defines the motor on the front left of the robot.- Parameters:
frontLeft
- DCMotor reference- Returns:
- Updated builder
-
setFrontRightMotor
REQUIRED Defines the motor on the front right of the robot.- Parameters:
frontRight
- DCMotor reference- Returns:
- Updated builder
-
setBackLeftMotor
REQUIRED Defines the motor on the back left of the robot.- Parameters:
backLeft
- DCMotor reference- Returns:
- Updated builder
-
setBackRightMotor
REQUIRED Defines the motor on the back right of the robot.- Parameters:
backRight
- DCMotor reference- Returns:
- Updated builder
-
build
This will construct and return a new Odometer- Returns:
- ThreeWheeled Odometer
-