Skip to content

Commit

Permalink
More Auto Stuff in the making
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishk04 committed Nov 10, 2023
1 parent 0d8b574 commit 603abad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 603abad

Please sign in to comment.