java.lang.Object
org.firstinspires.ftc.teamcode.fy23.robot.subsystems.blank.hardwaredevice.BlankHardwareDevice
org.firstinspires.ftc.teamcode.fy23.robot.subsystems.blank.hardwaredevice.BlankDcMotorController
All Implemented Interfaces:
com.qualcomm.robotcore.hardware.DcMotorController, com.qualcomm.robotcore.hardware.DcMotorControllerEx, com.qualcomm.robotcore.hardware.HardwareDevice

public class BlankDcMotorController extends BlankHardwareDevice implements com.qualcomm.robotcore.hardware.DcMotorControllerEx
  • Constructor Details

    • BlankDcMotorController

      public BlankDcMotorController()
  • Method Details

    • setMotorType

      public void setMotorType(int motor, com.qualcomm.robotcore.hardware.configuration.typecontainers.MotorConfigurationType motorType)
      Specified by:
      setMotorType in interface com.qualcomm.robotcore.hardware.DcMotorController
    • getMotorType

      public com.qualcomm.robotcore.hardware.configuration.typecontainers.MotorConfigurationType getMotorType(int motor)
      Specified by:
      getMotorType in interface com.qualcomm.robotcore.hardware.DcMotorController
    • setMotorMode

      public void setMotorMode(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode)
      Specified by:
      setMotorMode in interface com.qualcomm.robotcore.hardware.DcMotorController
    • getMotorMode

      public com.qualcomm.robotcore.hardware.DcMotor.RunMode getMotorMode(int motor)
      Specified by:
      getMotorMode in interface com.qualcomm.robotcore.hardware.DcMotorController
    • setMotorPower

      public void setMotorPower(int motor, double power)
      Specified by:
      setMotorPower in interface com.qualcomm.robotcore.hardware.DcMotorController
    • getMotorPower

      public double getMotorPower(int motor)
      Specified by:
      getMotorPower in interface com.qualcomm.robotcore.hardware.DcMotorController
    • isBusy

      public boolean isBusy(int motor)
      Specified by:
      isBusy in interface com.qualcomm.robotcore.hardware.DcMotorController
    • setMotorZeroPowerBehavior

      public void setMotorZeroPowerBehavior(int motor, com.qualcomm.robotcore.hardware.DcMotor.ZeroPowerBehavior zeroPowerBehavior)
      Specified by:
      setMotorZeroPowerBehavior in interface com.qualcomm.robotcore.hardware.DcMotorController
    • getMotorZeroPowerBehavior

      public com.qualcomm.robotcore.hardware.DcMotor.ZeroPowerBehavior getMotorZeroPowerBehavior(int motor)
      Specified by:
      getMotorZeroPowerBehavior in interface com.qualcomm.robotcore.hardware.DcMotorController
    • getMotorPowerFloat

      public boolean getMotorPowerFloat(int motor)
      Specified by:
      getMotorPowerFloat in interface com.qualcomm.robotcore.hardware.DcMotorController
    • setMotorTargetPosition

      public void setMotorTargetPosition(int motor, int position)
      Specified by:
      setMotorTargetPosition in interface com.qualcomm.robotcore.hardware.DcMotorController
    • getMotorTargetPosition

      public int getMotorTargetPosition(int motor)
      Specified by:
      getMotorTargetPosition in interface com.qualcomm.robotcore.hardware.DcMotorController
    • getMotorCurrentPosition

      public int getMotorCurrentPosition(int motor)
      Specified by:
      getMotorCurrentPosition in interface com.qualcomm.robotcore.hardware.DcMotorController
    • resetDeviceConfigurationForOpMode

      public void resetDeviceConfigurationForOpMode(int motor)
      Specified by:
      resetDeviceConfigurationForOpMode in interface com.qualcomm.robotcore.hardware.DcMotorController
    • setMotorEnable

      public void setMotorEnable(int motor)
      Specified by:
      setMotorEnable in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
    • setMotorDisable

      public void setMotorDisable(int motor)
      Specified by:
      setMotorDisable in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
    • isMotorEnabled

      public boolean isMotorEnabled(int motor)
      Specified by:
      isMotorEnabled in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
    • setMotorVelocity

      public void setMotorVelocity(int motor, double ticksPerSecond)
      Specified by:
      setMotorVelocity in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
    • setMotorVelocity

      public void setMotorVelocity(int motor, double angularRate, org.firstinspires.ftc.robotcore.external.navigation.AngleUnit unit)
      Specified by:
      setMotorVelocity in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
    • getMotorVelocity

      public double getMotorVelocity(int motor)
      Specified by:
      getMotorVelocity in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
    • getMotorVelocity

      public double getMotorVelocity(int motor, org.firstinspires.ftc.robotcore.external.navigation.AngleUnit unit)
      Specified by:
      getMotorVelocity in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
    • setPIDCoefficients

      public void setPIDCoefficients(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode, com.qualcomm.robotcore.hardware.PIDCoefficients pidCoefficients)
      Specified by:
      setPIDCoefficients in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
    • setPIDFCoefficients

      public void setPIDFCoefficients(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode, com.qualcomm.robotcore.hardware.PIDFCoefficients pidfCoefficients) throws UnsupportedOperationException
      Specified by:
      setPIDFCoefficients in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
      Throws:
      UnsupportedOperationException
    • getPIDCoefficients

      public com.qualcomm.robotcore.hardware.PIDCoefficients getPIDCoefficients(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode)
      Specified by:
      getPIDCoefficients in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
    • getPIDFCoefficients

      public com.qualcomm.robotcore.hardware.PIDFCoefficients getPIDFCoefficients(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode)
      Specified by:
      getPIDFCoefficients in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
    • setMotorTargetPosition

      public void setMotorTargetPosition(int motor, int position, int tolerance)
      Specified by:
      setMotorTargetPosition in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
    • getMotorCurrent

      public double getMotorCurrent(int motor, org.firstinspires.ftc.robotcore.external.navigation.CurrentUnit unit)
      Specified by:
      getMotorCurrent in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
    • getMotorCurrentAlert

      public double getMotorCurrentAlert(int motor, org.firstinspires.ftc.robotcore.external.navigation.CurrentUnit unit)
      Specified by:
      getMotorCurrentAlert in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
    • setMotorCurrentAlert

      public void setMotorCurrentAlert(int motor, double current, org.firstinspires.ftc.robotcore.external.navigation.CurrentUnit unit)
      Specified by:
      setMotorCurrentAlert in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx
    • isMotorOverCurrent

      public boolean isMotorOverCurrent(int motor)
      Specified by:
      isMotorOverCurrent in interface com.qualcomm.robotcore.hardware.DcMotorControllerEx