Skip to content

Commit 10c5fb8

Browse files
committed
found the tag issue
- the huskey lens was looking for tag 1, when i only needeed A tag - we wrote true in the if statement so that it always runs the april tag code
1 parent f04b081 commit 10c5fb8

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

TeamCode/src/main/java/org/mrpsvt/capital_robotics/auto/Blue_close_w_huskey.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,11 @@ private void autonomousSequence() throws InterruptedException
169169
sleep(3000);
170170
*/
171171

172-
172+
/*
173173
telemetry.addData("Step", "6: Strafing right");
174174
telemetry.update();
175175
driveDistance(0, 1.5, 0, 700);
176+
*/
176177

177178

178179
telemetry.addData("Status", "Autonomous Complete");

TeamCode/src/main/java/org/mrpsvt/capital_robotics/auto/husky_method.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void homingLens()
6060
// Look for our target tag
6161
for (HuskyLens.Block block : blocks)
6262
{
63-
if (block.id == TARGET_TAG_ID)
63+
if (block.id == TARGET_TAG_ID || true)
6464
{
6565
targetFound = true;
6666

@@ -90,7 +90,7 @@ public void homingLens()
9090
telemetry.addData("action", "triangulating x");
9191
if (tagX > x && change == 0)
9292
{
93-
driveDistance(0, .5, 0, 400);
93+
driveDistance(0, .4, 0, 400);
9494
tagX = block.x;
9595
if (tagX < x)
9696
{
@@ -100,7 +100,7 @@ public void homingLens()
100100
}
101101
else if (tagX > x && change > 1)
102102
{
103-
driveDistance(0, .5 * Math.pow(.75, change), 0, (long) (400 * Math.pow(.75, change)));
103+
driveDistance(0, .4, 0, (long) (400 * Math.pow(.75, change)));
104104
tagX = block.x;
105105
if (tagX < x)
106106
{
@@ -110,7 +110,7 @@ else if (tagX > x && change > 1)
110110
}
111111
else if (tagX < x && change == 0)
112112
{
113-
driveDistance(0, -.5, 0, 400);
113+
driveDistance(0, -.4, 0, 400);
114114
tagX = block.x;
115115
if (tagX > x)
116116
{
@@ -120,7 +120,7 @@ else if (tagX < x && change == 0)
120120
}
121121
else if (tagX < x && change > 1)
122122
{
123-
driveDistance(0, -.5 * Math.pow(.75, change), 0, (long) (400 * Math.pow(.75, change)));
123+
driveDistance(0, -.4, 0, (long) (400 * Math.pow(.75, change)));
124124
tagX = block.x;
125125
if (tagX > x)
126126
{

0 commit comments

Comments
 (0)