Skip to content

Commit

Permalink
Grits (#84)
Browse files Browse the repository at this point in the history
* Added PhotonVision

* Added STD DEVS to photonvision

* Added camera transforms

* SysId Swerve. Fix Swerve Gyro Issue

* Photonvision works

* Fixed Photonvision

* Removed sham cameras

* Initial pass at a PV implementation rewrite/refactor. Should work in real and sim, not sure if it works in replay yet, but it should.

* Initial pass at note tracking, no functionality yet, just logging detected note poses.

* Added note tracking vision IO Inputs

* Drive to Maybe Pose Autonomote Note Tracking!!

* Drive to Maybe Pose Autonomous Note Tracking!!

* better name

* Fixed logs being overwritten

* auto note track

* my computer is too laggy to run so i gotta sim on laptop

* stuff

* photonvision is disabled. janky note detection auto

* getX() replaced with getY()

* random translation for note tracking camera

* changed note pose calculation

* it works :)

* Test adding two translations together on real robot.

* i wanna make teleop assist

* probably not working teleop note lineup assist.

* i cooked :(

* this kinda sucks :|

* Added way to disable PV. Line up to note seems to work. Need to make it assist rotation.

* Got note assist during teleop working. Added timestamp check to note tracking camera.

* Reordered teleop note align code.

* Moved lineup pose into inner optional present scope for autoalign

* Tried note tracking auto. Added rumble to both controllers on note pickup. Disabled auto align to note in teleop.

* post de

* Removed assisted rotation from teleopAssitedLineup

* note tracking failures.

* allegedly this solves the problems.

* added distance offset

* workingish note distance

* idk why it wont get the flipped one 😭😭😭😭😭😭😭

* extra auto path

* Goated changes sim

* maybe PV replay?

* some auto position reset stuff

* seems to work okay.

* Removed mega cooked autos. Gave up on note tracking 😭

* READY FOR GRITS DAY 2

* added goated auto v2

* i hate this variable. changed from sim to real.

* qual 47 and whatever next is

* grits

* Added an option for the robot to not intake a note in Sim. Figured out why the robot hit the stage at Grits. It resumed a command that had a waitfor from earlier in the auto. This wasnt a problem earlier in the season since ig no one ever stole our second note. The solution is to add a withTimeout to the Command Group.

---------

Co-authored-by: harry.chen <[email protected]>
  • Loading branch information
MqxS and HarryXChen3 authored Nov 5, 2024
1 parent 0fd70ab commit cc1642c
Show file tree
Hide file tree
Showing 141 changed files with 284,735 additions and 83,729 deletions.
124,585 changes: 95,567 additions & 29,018 deletions choreo.chor

Large diffs are not rendered by default.

3,696 changes: 2,589 additions & 1,107 deletions src/main/deploy/choreo/AltSourceCenter0_1_2.1.traj

Large diffs are not rendered by default.

3,432 changes: 2,379 additions & 1,053 deletions src/main/deploy/choreo/AltSourceCenter0_1_2.2.traj

Large diffs are not rendered by default.

3,495 changes: 2,442 additions & 1,053 deletions src/main/deploy/choreo/AltSourceCenter0_1_2.3.traj

Large diffs are not rendered by default.

10,595 changes: 7,384 additions & 3,211 deletions src/main/deploy/choreo/AltSourceCenter0_1_2.traj

Large diffs are not rendered by default.

1,412 changes: 1,412 additions & 0 deletions src/main/deploy/choreo/AltSourceCenter0_1_2NOTE.1.traj

Large diffs are not rendered by default.

1,076 changes: 1,076 additions & 0 deletions src/main/deploy/choreo/AltSourceCenter0_1_2NOTE.2.traj

Large diffs are not rendered by default.

1,055 changes: 1,055 additions & 0 deletions src/main/deploy/choreo/AltSourceCenter0_1_2NOTE.3.traj

Large diffs are not rendered by default.

1,076 changes: 1,076 additions & 0 deletions src/main/deploy/choreo/AltSourceCenter0_1_2NOTE.4.traj

Large diffs are not rendered by default.

1,097 changes: 1,097 additions & 0 deletions src/main/deploy/choreo/AltSourceCenter0_1_2NOTE.5.traj

Large diffs are not rendered by default.

1,139 changes: 1,139 additions & 0 deletions src/main/deploy/choreo/AltSourceCenter0_1_2NOTE.6.traj

Large diffs are not rendered by default.

6,725 changes: 6,725 additions & 0 deletions src/main/deploy/choreo/AltSourceCenter0_1_2NOTE.traj

Large diffs are not rendered by default.

224 changes: 208 additions & 16 deletions src/main/deploy/choreo/Amp2_1Center2_3_4.1.traj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,19 @@
"angularVelocity": 3.9118032804214055e-30,
"velocityX": -1.1012281573134583e-27,
"velocityY": 1.1267153731886668e-28,
"timestamp": 0
"timestamp": 0,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 0.789642044593838,
Expand All @@ -16,7 +28,19 @@
"angularVelocity": -0.1323404765799807,
"velocityX": 0.442175764191582,
"velocityY": 0.058891777429089506,
"timestamp": 0.08077790621337487
"timestamp": 0.08077790621337487,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 0.8610780637582033,
Expand All @@ -25,7 +49,19 @@
"angularVelocity": -0.2641008864878815,
"velocityX": 0.8843509631911848,
"velocityY": 0.11777942883507837,
"timestamp": 0.16155581242674974
"timestamp": 0.16155581242674974,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 0.9682321944492093,
Expand All @@ -34,7 +70,19 @@
"angularVelocity": -0.39419529619756094,
"velocityX": 1.3265277068207033,
"velocityY": 0.17666329662822763,
"timestamp": 0.2423337186401246
"timestamp": 0.2423337186401246,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 1.1111047307078972,
Expand All @@ -43,7 +91,19 @@
"angularVelocity": -0.5215223784521282,
"velocityX": 1.7687080905673647,
"velocityY": 0.23554437466752953,
"timestamp": 0.3231116248534995
"timestamp": 0.3231116248534995,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 1.2896961258367037,
Expand All @@ -52,7 +112,19 @@
"angularVelocity": -0.6450032965267918,
"velocityX": 2.2108940860271518,
"velocityY": 0.294424509588744,
"timestamp": 0.40388953106687436
"timestamp": 0.40388953106687436,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 1.5040069696969667,
Expand All @@ -61,7 +133,19 @@
"angularVelocity": -0.7636425555799021,
"velocityX": 2.6530873837477387,
"velocityY": 0.35330654068767325,
"timestamp": 0.48466743728024925
"timestamp": 0.48466743728024925,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 1.7540379453114676,
Expand All @@ -70,7 +154,19 @@
"angularVelocity": -0.8766108160752201,
"velocityX": 3.0952891370326436,
"velocityY": 0.412194332477375,
"timestamp": 0.5654453434936241
"timestamp": 0.5654453434936241,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 2.0040893897244434,
Expand All @@ -79,7 +175,19 @@
"angularVelocity": -0.6980841103446228,
"velocityX": 3.095542533034528,
"velocityY": 0.41242038253702507,
"timestamp": 0.646223249706999
"timestamp": 0.646223249706999,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 2.2184197448836613,
Expand All @@ -88,7 +196,19 @@
"angularVelocity": -0.5931662529442931,
"velocityX": 2.6533289262668465,
"velocityY": 0.3535180440637152,
"timestamp": 0.7270011559203738
"timestamp": 0.7270011559203738,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 2.397028644166194,
Expand All @@ -97,7 +217,19 @@
"angularVelocity": -0.49121567321309245,
"velocityX": 2.2111107808456567,
"velocityY": 0.2946081637180874,
"timestamp": 0.8077790621337487
"timestamp": 0.8077790621337487,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 2.539915852781178,
Expand All @@ -106,7 +238,19 @@
"angularVelocity": -0.3914110388130748,
"velocityX": 1.768889728802173,
"velocityY": 0.23569203708151173,
"timestamp": 0.8885569683471236
"timestamp": 0.8885569683471236,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 2.647081240844143,
Expand All @@ -115,7 +259,19 @@
"angularVelocity": -0.2930235198606984,
"velocityX": 1.3266670688379536,
"velocityY": 0.17677125933676388,
"timestamp": 0.9693348745604985
"timestamp": 0.9693348745604985,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 2.7185247678401168,
Expand All @@ -124,7 +280,19 @@
"angularVelocity": -0.19539625944171407,
"velocityX": 0.8844439073136641,
"velocityY": 0.11784765072685521,
"timestamp": 1.0501127807738733
"timestamp": 1.0501127807738733,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 2.754246473312378,
Expand All @@ -133,7 +301,19 @@
"angularVelocity": -0.09791910307211256,
"velocityX": 0.44222123532023905,
"velocityY": 0.058923196525163236,
"timestamp": 1.1308906869872482
"timestamp": 1.1308906869872482,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
},
{
"x": 2.754246473312378,
Expand All @@ -142,7 +322,19 @@
"angularVelocity": 4.002206042802155e-29,
"velocityX": -5.455626443821376e-28,
"velocityY": 7.662473839118461e-28,
"timestamp": 1.211668593200623
"timestamp": 1.211668593200623,
"moduleForcesX": [
0,
0,
0,
0
],
"moduleForcesY": [
0,
0,
0,
0
]
}
],
"eventMarkers": []
Expand Down
Loading

0 comments on commit cc1642c

Please sign in to comment.