Class Mecanum.Builder

java.lang.Object
dev.narlyx.tweetybird.Drivers.Mecanum.Builder
Enclosing class:
Mecanum

public static class Mecanum.Builder extends Object
Used to configure and start the driver.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setFrontLeftMotor

      public Mecanum.Builder setFrontLeftMotor(com.qualcomm.robotcore.hardware.DcMotor frontLeft)
      REQUIRED Defines the motor on the front left of the robot.
      Parameters:
      frontLeft - DCMotor reference
      Returns:
      Updated builder
    • setFrontRightMotor

      public Mecanum.Builder setFrontRightMotor(com.qualcomm.robotcore.hardware.DcMotor frontRight)
      REQUIRED Defines the motor on the front right of the robot.
      Parameters:
      frontRight - DCMotor reference
      Returns:
      Updated builder
    • setBackLeftMotor

      public Mecanum.Builder setBackLeftMotor(com.qualcomm.robotcore.hardware.DcMotor backLeft)
      REQUIRED Defines the motor on the back left of the robot.
      Parameters:
      backLeft - DCMotor reference
      Returns:
      Updated builder
    • setBackRightMotor

      public Mecanum.Builder setBackRightMotor(com.qualcomm.robotcore.hardware.DcMotor backRight)
      REQUIRED Defines the motor on the back right of the robot.
      Parameters:
      backRight - DCMotor reference
      Returns:
      Updated builder
    • build

      public Mecanum build()
      This will construct and return a new Odometer
      Returns:
      ThreeWheeled Odometer