diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/SimpleAuto.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/SimpleAuto.java index 564b5e3961b8..eb8dc0896902 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/SimpleAuto.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/SimpleAuto.java @@ -52,7 +52,7 @@ public void runOpMode() { driveMotors.frontRight.setPower(0.4); driveMotors.backRight.setPower(0.4); // Claw scoring code - claw. + telemetry.addData("Distance Driven Forward: ", distance); telemetry.update(); } diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/configurations/RobotConfiguration.kt b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/configurations/RobotConfiguration.kt index b8fb68da22da..ebe1907b0352 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/configurations/RobotConfiguration.kt +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/configurations/RobotConfiguration.kt @@ -19,8 +19,10 @@ abstract class RobotConfiguration { abstract val driveMotorLock: SharedResource protected abstract val clawGrab: Servo? + // Use this to manually tell it to open and close fun clawGrab(): Servo = clawGrab ?: throw NullPointerException("Robot configuration has no claw grab servo but it was requested") protected abstract val clawRotate: Servo? + // Up and down fun clawRotate(): Servo = clawRotate ?: throw NullPointerException("Robot configuration has no claw rotate servo but it was requested") abstract val clawLock: SharedResource