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
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getMotorCurrent
(int motor, org.firstinspires.ftc.robotcore.external.navigation.CurrentUnit unit) double
getMotorCurrentAlert
(int motor, org.firstinspires.ftc.robotcore.external.navigation.CurrentUnit unit) int
getMotorCurrentPosition
(int motor) com.qualcomm.robotcore.hardware.DcMotor.RunMode
getMotorMode
(int motor) double
getMotorPower
(int motor) boolean
getMotorPowerFloat
(int motor) int
getMotorTargetPosition
(int motor) com.qualcomm.robotcore.hardware.configuration.typecontainers.MotorConfigurationType
getMotorType
(int motor) double
getMotorVelocity
(int motor) double
getMotorVelocity
(int motor, org.firstinspires.ftc.robotcore.external.navigation.AngleUnit unit) com.qualcomm.robotcore.hardware.DcMotor.ZeroPowerBehavior
getMotorZeroPowerBehavior
(int motor) com.qualcomm.robotcore.hardware.PIDCoefficients
getPIDCoefficients
(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode) com.qualcomm.robotcore.hardware.PIDFCoefficients
getPIDFCoefficients
(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode) boolean
isBusy
(int motor) boolean
isMotorEnabled
(int motor) boolean
isMotorOverCurrent
(int motor) void
resetDeviceConfigurationForOpMode
(int motor) void
setMotorCurrentAlert
(int motor, double current, org.firstinspires.ftc.robotcore.external.navigation.CurrentUnit unit) void
setMotorDisable
(int motor) void
setMotorEnable
(int motor) void
setMotorMode
(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode) void
setMotorPower
(int motor, double power) void
setMotorTargetPosition
(int motor, int position) void
setMotorTargetPosition
(int motor, int position, int tolerance) void
setMotorType
(int motor, com.qualcomm.robotcore.hardware.configuration.typecontainers.MotorConfigurationType motorType) void
setMotorVelocity
(int motor, double ticksPerSecond) void
setMotorVelocity
(int motor, double angularRate, org.firstinspires.ftc.robotcore.external.navigation.AngleUnit unit) void
setMotorZeroPowerBehavior
(int motor, com.qualcomm.robotcore.hardware.DcMotor.ZeroPowerBehavior zeroPowerBehavior) void
setPIDCoefficients
(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode, com.qualcomm.robotcore.hardware.PIDCoefficients pidCoefficients) void
setPIDFCoefficients
(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, resetDeviceConfigurationForOpMode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
setMotorType
in interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
getMotorType
public com.qualcomm.robotcore.hardware.configuration.typecontainers.MotorConfigurationType getMotorType(int motor) - Specified by:
getMotorType
in interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
setMotorMode
public void setMotorMode(int motor, com.qualcomm.robotcore.hardware.DcMotor.RunMode mode) - Specified by:
setMotorMode
in interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
getMotorMode
public com.qualcomm.robotcore.hardware.DcMotor.RunMode getMotorMode(int motor) - Specified by:
getMotorMode
in interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
setMotorPower
public void setMotorPower(int motor, double power) - Specified by:
setMotorPower
in interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
getMotorPower
public double getMotorPower(int motor) - Specified by:
getMotorPower
in interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
isBusy
public boolean isBusy(int motor) - Specified by:
isBusy
in interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
setMotorZeroPowerBehavior
public void setMotorZeroPowerBehavior(int motor, com.qualcomm.robotcore.hardware.DcMotor.ZeroPowerBehavior zeroPowerBehavior) - Specified by:
setMotorZeroPowerBehavior
in interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
getMotorZeroPowerBehavior
public com.qualcomm.robotcore.hardware.DcMotor.ZeroPowerBehavior getMotorZeroPowerBehavior(int motor) - Specified by:
getMotorZeroPowerBehavior
in interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
getMotorPowerFloat
public boolean getMotorPowerFloat(int motor) - Specified by:
getMotorPowerFloat
in interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
setMotorTargetPosition
public void setMotorTargetPosition(int motor, int position) - Specified by:
setMotorTargetPosition
in interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
getMotorTargetPosition
public int getMotorTargetPosition(int motor) - Specified by:
getMotorTargetPosition
in interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
getMotorCurrentPosition
public int getMotorCurrentPosition(int motor) - Specified by:
getMotorCurrentPosition
in interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
resetDeviceConfigurationForOpMode
public void resetDeviceConfigurationForOpMode(int motor) - Specified by:
resetDeviceConfigurationForOpMode
in interfacecom.qualcomm.robotcore.hardware.DcMotorController
-
setMotorEnable
public void setMotorEnable(int motor) - Specified by:
setMotorEnable
in interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-
setMotorDisable
public void setMotorDisable(int motor) - Specified by:
setMotorDisable
in interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-
isMotorEnabled
public boolean isMotorEnabled(int motor) - Specified by:
isMotorEnabled
in interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-
setMotorVelocity
public void setMotorVelocity(int motor, double ticksPerSecond) - Specified by:
setMotorVelocity
in interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-
getMotorVelocity
public double getMotorVelocity(int motor) - Specified by:
getMotorVelocity
in 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:
setPIDCoefficients
in 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:
setPIDFCoefficients
in 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:
getPIDCoefficients
in interfacecom.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 interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-
setMotorTargetPosition
public void setMotorTargetPosition(int motor, int position, int tolerance) - Specified by:
setMotorTargetPosition
in interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-
isMotorOverCurrent
public boolean isMotorOverCurrent(int motor) - Specified by:
isMotorOverCurrent
in interfacecom.qualcomm.robotcore.hardware.DcMotorControllerEx
-