Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #111 from rh-robotics/teo-open-claw-auto
Browse files Browse the repository at this point in the history
Minor Change - Makes Claws Open Automatically
  • Loading branch information
DragonDev07 authored Mar 7, 2024
2 parents c6cc361 + 6c35c68 commit e10f936
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,7 @@ public void elapsedTimeSleep(int milliseconds) {
while (sleepTime.milliseconds() < milliseconds) {
pulleyLComponent.moveUsingPID();
pulleyRComponent.moveUsingPID();

telemetry.addData("sleeping", "true");
telemetry.update();
}
telemetry.addData("sleeping", "slept");
telemetry.update();
}

// ------ Function to Initialize TensorFlow Object Detection ------ //
Expand Down Expand Up @@ -223,10 +218,7 @@ public Location detectElement(AllianceColor allianceColor) {
x = (recognition.getLeft() + recognition.getRight()) / 2;
y = (recognition.getTop() + recognition.getBottom()) / 2;

telemetry.addData("", " ");
telemetry.addData("Image", "%s (%.0f %% Conf.)", recognition.getLabel(), recognition.getConfidence() * 100);
telemetry.addData("- Position", "%.0f / %.0f", x, y);
telemetry.addData("- Size", "%.0f x %.0f", recognition.getWidth(), recognition.getHeight());
}

switch (allianceColor) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ private void deliveryPosition() {
private void intakePosition() {
wristPosition = HWC.wristIntakePos;
passoverPosition = HWC.passoverIntakePos;

robot.toggleClaw('L');
robot.toggleClaw('R');

slideHeight = 0;
}
}

0 comments on commit e10f936

Please sign in to comment.