Skip to content

Commit

Permalink
Limelight Implementation (#285)
Browse files Browse the repository at this point in the history
* Vision is over party

* Baseline Limelight implementation

* // working when it's pitch black

* Make zeroing timeouts constants

* Interpolation map from desmos

* Update Constants.java

* Guess who forgot to commit the working code!

* i forgot a bracket

* Incorrect Comment

* About to do pathplanner shenanigans

* Drive Practice 6/8

* Move red speaker for fairbotics

* Photonlib is CANCLED!!!

* "Field is shortened by exactly 12’ 1"."

* jiofvjoidvsjiodsvijo

* Update PrepAmp.java

* stash

* create fairbotics auto

* fix auton

* Fairbotics was a myth created by advertisers to sell you more fairs
  • Loading branch information
ACat701 authored Jul 27, 2024
1 parent 4049093 commit 3daf2f9
Show file tree
Hide file tree
Showing 31 changed files with 1,736 additions and 487 deletions.
2 changes: 1 addition & 1 deletion simgui-ds.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"useGamepad": true
},
{
"guid": "78696e70757401000000000000000000",
"guid": "030000004c050000e60c000000000000",
"useGamepad": true
},
{
Expand Down
296 changes: 296 additions & 0 deletions src/main/assets/2024-crescendo-pacific-showdown.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,296 @@
{
"tags": [
{
"ID": 1,
"pose": {
"translation": {
"x": 11.355197,
"y": 0.24587199999999998,
"z": 1.355852
},
"rotation": {
"quaternion": {
"W": 0.5000000000000001,
"X": 0.0,
"Y": 0.0,
"Z": 0.8660254037844386
}
}
}
},
{
"ID": 2,
"pose": {
"translation": {
"x": 12.460859,
"y": 0.883666,
"z": 1.355852
},
"rotation": {
"quaternion": {
"W": 0.5000000000000001,
"X": 0.0,
"Y": 0.0,
"Z": 0.8660254037844386
}
}
}
},
{
"ID": 3,
"pose": {
"translation": {
"x": 12.855067,
"y": 4.982717999999999,
"z": 1.4511020000000001
},
"rotation": {
"quaternion": {
"W": 6.123233995736766e-17,
"X": 0.0,
"Y": 0.0,
"Z": 1.0
}
}
}
},
{
"ID": 4,
"pose": {
"translation": {
"x": 12.855067,
"y": 5.547867999999999,
"z": 1.4511020000000001
},
"rotation": {
"quaternion": {
"W": 6.123233995736766e-17,
"X": 0.0,
"Y": 0.0,
"Z": 1.0
}
}
}
},
{
"ID": 5,
"pose": {
"translation": {
"x": 10.976483,
"y": 8.2042,
"z": 1.355852
},
"rotation": {
"quaternion": {
"W": -0.7071067811865475,
"X": -0.0,
"Y": 0.0,
"Z": 0.7071067811865476
}
}
}
},
{
"ID": 6,
"pose": {
"translation": {
"x": 1.8415,
"y": 8.2042,
"z": 1.355852
},
"rotation": {
"quaternion": {
"W": -0.7071067811865475,
"X": -0.0,
"Y": 0.0,
"Z": 0.7071067811865476
}
}
}
},
{
"ID": 7,
"pose": {
"translation": {
"x": -0.038099999999999995,
"y": 5.547867999999999,
"z": 1.4511020000000001
},
"rotation": {
"quaternion": {
"W": 1.0,
"X": 0.0,
"Y": 0.0,
"Z": 0.0
}
}
}
},
{
"ID": 8,
"pose": {
"translation": {
"x": -0.038099999999999995,
"y": 4.982717999999999,
"z": 1.4511020000000001
},
"rotation": {
"quaternion": {
"W": 1.0,
"X": 0.0,
"Y": 0.0,
"Z": 0.0
}
}
}
},
{
"ID": 9,
"pose": {
"translation": {
"x": 0.356108,
"y": 0.883666,
"z": 1.355852
},
"rotation": {
"quaternion": {
"W": 0.8660254037844387,
"X": 0.0,
"Y": 0.0,
"Z": 0.49999999999999994
}
}
}
},
{
"ID": 10,
"pose": {
"translation": {
"x": 1.4615159999999998,
"y": 0.24587199999999998,
"z": 1.355852
},
"rotation": {
"quaternion": {
"W": 0.8660254037844387,
"X": 0.0,
"Y": 0.0,
"Z": 0.49999999999999994
}
}
}
},
{
"ID": 11,
"pose": {
"translation": {
"x": 8.180451,
"y": 3.7132259999999997,
"z": 1.3208
},
"rotation": {
"quaternion": {
"W": -0.8660254037844387,
"X": -0.0,
"Y": 0.0,
"Z": 0.49999999999999994
}
}
}
},
{
"ID": 12,
"pose": {
"translation": {
"x": 8.180451,
"y": 4.49834,
"z": 1.3208
},
"rotation": {
"quaternion": {
"W": 0.8660254037844387,
"X": 0.0,
"Y": 0.0,
"Z": 0.49999999999999994
}
}
}
},
{
"ID": 13,
"pose": {
"translation": {
"x": 7.495921,
"y": 4.105148,
"z": 1.3208
},
"rotation": {
"quaternion": {
"W": 6.123233995736766e-17,
"X": 0.0,
"Y": 0.0,
"Z": 1.0
}
}
}
},
{
"ID": 14,
"pose": {
"translation": {
"x": 5.320792,
"y": 4.105148,
"z": 1.3208
},
"rotation": {
"quaternion": {
"W": 1.0,
"X": 0.0,
"Y": 0.0,
"Z": 0.0
}
}
}
},
{
"ID": 15,
"pose": {
"translation": {
"x": 4.641342,
"y": 4.49834,
"z": 1.3208
},
"rotation": {
"quaternion": {
"W": 0.5000000000000001,
"X": 0.0,
"Y": 0.0,
"Z": 0.8660254037844386
}
}
}
},
{
"ID": 16,
"pose": {
"translation": {
"x": 4.641342,
"y": 3.7132259999999997,
"z": 1.3208
},
"rotation": {
"quaternion": {
"W": -0.4999999999999998,
"X": -0.0,
"Y": 0.0,
"Z": 0.8660254037844387
}
}
}
}
],
"field": {
"length": 12.816725,
"width": 8.211
}
}
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/autos/U C5UntilC1.1.auto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": 1.0,
"startingPose": {
"position": {
"x": 7.9,
"x": 6.54,
"y": 0.74
},
"rotation": 180.0
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/autos/U C5sUntilC1s.1.auto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": 1.0,
"startingPose": {
"position": {
"x": 7.9,
"x": 6.54,
"y": 0.74
},
"rotation": 180.0
Expand Down
6 changes: 3 additions & 3 deletions src/main/deploy/pathplanner/autos/U C5sUntilC1s.3.auto
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"version": 1.0,
"startingPose": {
"position": {
"x": 7.9,
"y": 2.43
"x": 6.3,
"y": 2.02
},
"rotation": 180.0
"rotation": -132.82
},
"command": {
"type": "sequential",
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/paths/PsW1sW2sW3s.path
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"reversed": false,
"folder": "Wing Down",
"previewStartingState": {
"rotation": 0,
"rotation": 180.0,
"velocity": 0
},
"useDefaultConstraints": true
Expand Down
Loading

0 comments on commit 3daf2f9

Please sign in to comment.