Class BlankDcMotorController
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.qualcomm.robotcore.hardware.HardwareDevice
com.qualcomm.robotcore.hardware.HardwareDevice.Manufacturer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetMotorCurrent(int motor, org.firstinspires.ftc.robotcore.external.navigation.CurrentUnit unit) doublegetMotorCurrentAlert(int motor, org.firstinspires.ftc.robotcore.external.navigation.CurrentUnit unit) intgetMotorCurrentPosition(int motor) com.qualcomm.robotcore.hardware.DcMotor.RunModegetMotorMode(int motor) doublegetMotorPower(int motor) booleangetMotorPowerFloat(int motor) intgetMotorTargetPosition(int motor) com.qualcomm.robotcore.hardware.configuration.typecontainers.MotorConfigurationTypegetMotorType(int motor) doublegetMotorVelocity(int motor) doublegetMotorVelocity(int motor, org.firstinspires.ftc.robotcore.external.navigation.AngleUnit unit) com.qualcomm.robotcore.hardware.DcMotor.ZeroPowerBehaviorgetMotorZeroPowerBehavior(int motor) com.qualcomm.robotcore.hardware.PIDCoefficientsgetPIDCoefficients(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode) com.qualcomm.robotcore.hardware.PIDFCoefficientsgetPIDFCoefficients(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode) booleanisBusy(int motor) booleanisMotorEnabled(int motor) booleanisMotorOverCurrent(int motor) voidresetDeviceConfigurationForOpMode(int motor) voidsetMotorCurrentAlert(int motor, double current, org.firstinspires.ftc.robotcore.external.navigation.CurrentUnit unit) voidsetMotorDisable(int motor) voidsetMotorEnable(int motor) voidsetMotorMode(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode) voidsetMotorPower(int motor, double power) voidsetMotorTargetPosition(int motor, int position) voidsetMotorTargetPosition(int motor, int position, int tolerance) voidsetMotorType(int motor, com.qualcomm.robotcore.hardware.configuration.typecontainers.MotorConfigurationType motorType) voidsetMotorVelocity(int motor, double ticksPerSecond) voidsetMotorVelocity(int motor, double angularRate, org.firstinspires.ftc.robotcore.external.navigation.AngleUnit unit) voidsetMotorZeroPowerBehavior(int motor, com.qualcomm.robotcore.hardware.DcMotor.ZeroPowerBehavior zeroPowerBehavior) voidsetPIDCoefficients(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode, com.qualcomm.robotcore.hardware.PIDCoefficients pidCoefficients) voidsetPIDFCoefficients(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode, com.qualcomm.robotcore.hardware.PIDFCoefficients pidfCoefficients) Methods inherited from class org.firstinspires.ftc.teamcode.fy23.robot.subsystems.blank.hardwaredevice.BlankHardwareDevice
close, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpModeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.qualcomm.robotcore.hardware.HardwareDevice
close, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpMode
-
Constructor Details
-
BlankDcMotorController
public BlankDcMotorController()
-
-
Method Details
-
setMotorType
public void setMotorType(int motor, com.qualcomm.robotcore.hardware.configuration.typecontainers.MotorConfigurationType motorType) - Specified by:
setMotorTypein interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
getMotorType
public com.qualcomm.robotcore.hardware.configuration.typecontainers.MotorConfigurationType getMotorType(int motor) - Specified by:
getMotorTypein interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
setMotorMode
public void setMotorMode(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode) - Specified by:
setMotorModein interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
getMotorMode
public com.qualcomm.robotcore.hardware.DcMotor.RunMode getMotorMode(int motor) - Specified by:
getMotorModein interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
setMotorPower
public void setMotorPower(int motor, double power) - Specified by:
setMotorPowerin interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
getMotorPower
public double getMotorPower(int motor) - Specified by:
getMotorPowerin interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
isBusy
public boolean isBusy(int motor) - Specified by:
isBusyin interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
setMotorZeroPowerBehavior
public void setMotorZeroPowerBehavior(int motor, com.qualcomm.robotcore.hardware.DcMotor.ZeroPowerBehavior zeroPowerBehavior) - Specified by:
setMotorZeroPowerBehaviorin interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
getMotorZeroPowerBehavior
public com.qualcomm.robotcore.hardware.DcMotor.ZeroPowerBehavior getMotorZeroPowerBehavior(int motor) - Specified by:
getMotorZeroPowerBehaviorin interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
getMotorPowerFloat
public boolean getMotorPowerFloat(int motor) - Specified by:
getMotorPowerFloatin interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
setMotorTargetPosition
public void setMotorTargetPosition(int motor, int position) - Specified by:
setMotorTargetPositionin interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
getMotorTargetPosition
public int getMotorTargetPosition(int motor) - Specified by:
getMotorTargetPositionin interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
getMotorCurrentPosition
public int getMotorCurrentPosition(int motor) - Specified by:
getMotorCurrentPositionin interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
resetDeviceConfigurationForOpMode
public void resetDeviceConfigurationForOpMode(int motor) - Specified by:
resetDeviceConfigurationForOpModein interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
setMotorEnable
public void setMotorEnable(int motor) - Specified by:
setMotorEnablein interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-
setMotorDisable
public void setMotorDisable(int motor) - Specified by:
setMotorDisablein interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-
isMotorEnabled
public boolean isMotorEnabled(int motor) - Specified by:
isMotorEnabledin interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-
setMotorVelocity
public void setMotorVelocity(int motor, double ticksPerSecond) - Specified by:
setMotorVelocityin interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-
getMotorVelocity
public double getMotorVelocity(int motor) - Specified by:
getMotorVelocityin interfacecom.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:
setPIDCoefficientsin interfacecom.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:
setPIDFCoefficientsin interfacecom.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:
getPIDCoefficientsin interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-
getPIDFCoefficients
public com.qualcomm.robotcore.hardware.PIDFCoefficients getPIDFCoefficients(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode) - Specified by:
getPIDFCoefficientsin interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-
setMotorTargetPosition
public void setMotorTargetPosition(int motor, int position, int tolerance) - Specified by:
setMotorTargetPositionin interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-
isMotorOverCurrent
public boolean isMotorOverCurrent(int motor) - Specified by:
isMotorOverCurrentin interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-