Skip to content

Commit

Permalink
Update DetectMotorType.java
Browse files Browse the repository at this point in the history
Changed to "motor" in config file.
  • Loading branch information
rhsftc committed Nov 17, 2024
1 parent f3c255e commit 0dd40b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public class DetectMotorType extends LinearOpMode {
public void runOpMode() {
timer = new ElapsedTime();
// Change the text in quotes to match any motor name on your robot.
motor = hardwareMap.get(DcMotorEx.class, "leftBackDrive");
motor = hardwareMap.get(DcMotorEx.class, "motor");
motor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
type = motor.getMotorType();
maxRPM = type.getMaxRPM();
Expand Down

0 comments on commit 0dd40b6

Please sign in to comment.