Class MotorEncoderTest
java.lang.Object
com.qualcomm.robotcore.eventloop.opmode.OpMode
org.firstinspires.ftc.teamcode.auton.Tests.MotorEncoderTest
@Autonomous(name="Motor Encoder Test")
public class MotorEncoderTest
extends com.qualcomm.robotcore.eventloop.opmode.OpMode
-
Field Summary
Modifier and TypeFieldDescriptioncom.qualcomm.robotcore.hardware.Gamepad
com.qualcomm.robotcore.hardware.Gamepad
com.qualcomm.robotcore.hardware.HardwareMap
static final int
int
Deprecated.org.firstinspires.ftc.robotcore.external.Telemetry
Fields inherited from class com.qualcomm.robotcore.eventloop.opmode.OpMode
msStuckDetectInit, msStuckDetectInitLoop, msStuckDetectLoop, msStuckDetectStart, time
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
double
inchesToMM
(double inches) void
init()
void
loop()
final void
void
setTargetPosition
(com.qualcomm.robotcore.hardware.DcMotor motor, double mm) void
showMotorStatus
(com.qualcomm.robotcore.hardware.DcMotor motor) void
start()
void
updateMotorPower
(com.qualcomm.robotcore.hardware.DcMotor motor) void
boolean
Methods inherited from class com.qualcomm.robotcore.eventloop.opmode.OpMode
getRuntime, init_loop, internalPostInitLoop, internalPostLoop, internalPreInit, internalUpdateTelemetryNow, resetRuntime, stop, terminateOpModeNow, updateTelemetry
-
Field Details
-
MS_BEFORE_FORCE_STOP_AFTER_STOP_REQUESTED
public static final int MS_BEFORE_FORCE_STOP_AFTER_STOP_REQUESTED- See Also:
-
gamepad1
public volatile com.qualcomm.robotcore.hardware.Gamepad gamepad1 -
gamepad2
public volatile com.qualcomm.robotcore.hardware.Gamepad gamepad2 -
telemetry
public org.firstinspires.ftc.robotcore.external.Telemetry telemetry -
hardwareMap
public volatile com.qualcomm.robotcore.hardware.HardwareMap hardwareMap -
msStuckDetectStop
Deprecated.
-
-
Constructor Details
-
MotorEncoderTest
public MotorEncoderTest()
-
-
Method Details
-
init
public void init()- Specified by:
init
in classcom.qualcomm.robotcore.eventloop.opmode.OpMode
-
start
public void start()- Overrides:
start
in classcom.qualcomm.robotcore.eventloop.opmode.OpMode
-
inchesToMM
public double inchesToMM(double inches) -
loop
public void loop()- Specified by:
loop
in classcom.qualcomm.robotcore.eventloop.opmode.OpMode
-
setTargetPosition
public void setTargetPosition(com.qualcomm.robotcore.hardware.DcMotor motor, double mm) -
wheelsInPosition
public boolean wheelsInPosition() -
updateMotors
public void updateMotors() -
checkMotors
public void checkMotors() -
showMotorStatus
public void showMotorStatus(com.qualcomm.robotcore.hardware.DcMotor motor) -
updateMotorPower
public void updateMotorPower(com.qualcomm.robotcore.hardware.DcMotor motor) -
requestOpModeStop
public final void requestOpModeStop()
-