Skip to content

Commit

Permalink
position goal change
Browse files Browse the repository at this point in the history
  • Loading branch information
JadedHearth committed Mar 1, 2024
1 parent 07224a9 commit 4e11120
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
22 changes: 2 additions & 20 deletions src/main/deploy/pathplanner/autos/BlueLClose3.auto
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@
{
"type": "named",
"data": {
"name": "FloorPickup"
}
},
{
"type": "named",
"data": {
"name": "RunIntake"
"name": "ShootNoteClose"
}
},
{
Expand All @@ -41,12 +35,6 @@
"name": "FloorPickup"
}
},
{
"type": "named",
"data": {
"name": "RunIntake"
}
},
{
"type": "path",
"data": {
Expand All @@ -56,13 +44,7 @@
{
"type": "named",
"data": {
"name": "FloorPickup"
}
},
{
"type": "named",
"data": {
"name": "RunIntake"
"name": "ShootNoteClose"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ public static Command runOverClosestNote(Drive sDrive, Intake sIntake, Flywheel

if (newDistance < distance || distance == 0) {
distance = currentPostition.getDistance(checkingNotePostition);
closestNotePosition = new Translation2d(x, y);
closestNotePosition =
new Translation2d(
currentPostition.getX() + (x - currentPostition.getX()) / 2,
currentPostition.getY() + (y - currentPostition.getY()) / 2);
}
}

Expand Down

0 comments on commit 4e11120

Please sign in to comment.