Skip to content

Commit

Permalink
Week 1 @ Ashland (#40)
Browse files Browse the repository at this point in the history
* refactored to primary vision system for photonvision

* removed northstar instances

* remove sim instances

* Add field frame estimator

Estimates the transform between the odometry frame and the field
frame, given drive poses in the odometry frame and vision poses
in the field frame.

Topic: field-frame-estimator
Reviewers: saraansh, rithvik

* Pull TimestampedVisionUpdate out of pose estimator

Topic: refactor-vision-update
Relative: field-frame-estimator
Reviewers: saraansh, rithvik, pranav

* Use field frame estimator in drivetrain

Topic: field-frame-drivetrain-2
Relative: refactor-vision-update
Reviewers: saraansh, rithvik, pranav

* Pull TimestampedVisionUpdate out of pose estimator

Topic: refactor-vision-update
Relative: field-frame-estimator
Reviewers: saraansh, rithvik, pranav

* Use field frame estimator in drivetrain

Topic: field-frame-drivetrain-2
Relative: refactor-vision-update
Reviewers: saraansh, rithvik, pranav

* MVP fixes

* change to proper PID constants and use x/y constants

* four note auto

* reseet pose

* apply odomTField on odom pose when state is odom but path is field

* update names for path following

* even better naming

* revert to four note auto

* new autos

* tune amp score

* add characterization

* week0 prep

* trap scoring

* practice changes

* rumble w/ intake

* week0 final commit

* auto tuning 2/25/23

* add superstructure commands

* finished auto

* test auto path for tuning

* any changes

* tune auto better

* autos so far

* target angle command

* target angle with gyro

* turn down default rpm in auto

* autos + voltage comp

* vision + spotlessApply

* 2/27/24 changes so far

* autos butmore efficient

* tune times better

* turn back to shuffleboard and alliance stuff debugged

* Add note sim

* add protected high

* more note sim

* tune auto align

* fix conflicts

* add leds

* display alliance color

* finished shuffleboard stuff

* autos so far

* add prep score command so it actually reaches targeted position

* preload + leave autos

* make the robot go further into the last note on 4 wing auto

* fix left subwoofer path

* characterizing wheel radius

* drivepractice fixes

* final tuning post week 0

* finish tuning protected shot

* add auto align

* get align working in sim again

* quals 1-6

* fix drivetrain zeroing

* make all week 1 changes

---------

Co-authored-by: AlphaPranav9102 <[email protected]>
Co-authored-by: Parth Oza <[email protected]>
Co-authored-by: Parth Oza <[email protected]>
Co-authored-by: Matthew Choulas <[email protected]>
Co-authored-by: Shom770 <[email protected]>
  • Loading branch information
6 people authored Mar 5, 2024
1 parent 0af5b02 commit 740e068
Show file tree
Hide file tree
Showing 62 changed files with 3,412 additions and 1,074 deletions.
4 changes: 2 additions & 2 deletions .pathplanner/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"robotWidth": 0.9,
"robotLength": 0.9,
"robotWidth": 0.85,
"robotLength": 0.952,
"holonomicMode": true,
"pathFolders": [],
"autoFolders": [],
Expand Down
16 changes: 7 additions & 9 deletions simgui-ds.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,16 @@
"visible": true
}
},
"System Joysticks": {
"window": {
"visible": false
}
},
"keyboardJoysticks": [
{
"axisConfig": [
{
"decKey": 65,
"incKey": 68
"decKey": 68,
"incKey": 65
},
{
"decKey": 87,
"incKey": 83
"decKey": 83,
"incKey": 87
},
{
"decKey": 69,
Expand Down Expand Up @@ -103,6 +98,9 @@
"robotJoysticks": [
{
"guid": "Keyboard0"
},
{
"guid": "Keyboard1"
}
]
}
39 changes: 39 additions & 0 deletions simgui.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,17 @@
"NTProvider": {
"types": {
"/FMSInfo": "FMSInfo",
"/Shuffleboard/Pre-match/Alliance": "String Chooser",
"/Shuffleboard/Pre-match/Mode": "String Chooser",
"/SmartDashboard/AllianceColor": "String Chooser",
"/SmartDashboard/AutonomousMode": "String Chooser"
},
"windows": {
"/Shuffleboard/Pre-match/Mode": {
"window": {
"visible": true
}
}
}
},
"NetworkTables": {
Expand All @@ -26,6 +35,18 @@
"AdvantageKit": {
"open": true
},
"Shuffleboard": {
"Pre-match": {
"Mode": {
"open": true,
"string[]##v_/Shuffleboard/Pre-match/Mode/options": {
"open": true
}
},
"open": true
},
"open": true
},
"SmartDashboard": {
"TunableNumbers": {
"Flywheel": {
Expand All @@ -41,6 +62,24 @@
}
},
"NetworkTables Info": {
"AdvantageScope@1": {
"Publishers": {
"open": true
},
"Subscribers": {
"open": true
},
"open": true
},
"Clients": {
"open": true
},
"Server": {
"open": true
},
"visible": true
},
"NetworkTables View": {
"visible": false
}
}
170 changes: 170 additions & 0 deletions src/main/deploy/pathplanner/paths/4AndPickupNoteAuto.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
"version": 1.0,
"waypoints": [
{
"anchor": {
"x": 0.741887381054855,
"y": 6.695925443427855
},
"prevControl": null,
"nextControl": {
"x": 1.3249004714516954,
"y": 6.550174838486252
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 2.511115021072635,
"y": 6.9832349513151
},
"prevControl": {
"x": 2.212410438221992,
"y": 6.990643205161632
},
"nextControl": {
"x": 2.824296168340601,
"y": 6.975467660245216
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 1.5082724716954066,
"y": 5.488743105018038
},
"prevControl": {
"x": 2.125198127424631,
"y": 5.366730902594161
},
"nextControl": {
"x": 1.4444384407793702,
"y": 5.501367852634432
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 2.388440350339902,
"y": 5.488743105018038
},
"prevControl": {
"x": 1.6754803456796465,
"y": 5.471219489931063
},
"nextControl": {
"x": 2.7106112717723123,
"y": 5.496661640675712
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 1.5082724716954066,
"y": 5.488743105018038
},
"prevControl": {
"x": 2.7225892863967442,
"y": 5.521583593948438
},
"nextControl": {
"x": 1.4220056676836053,
"y": 5.486410069694874
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 7.786221898253982,
"y": 7.42479630901102
},
"prevControl": {
"x": 7.15588177827108,
"y": 7.266533230042734
},
"nextControl": {
"x": 8.416562018236883,
"y": 7.583059387979306
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 1.5082724716954066,
"y": 5.488743105018038
},
"prevControl": {
"x": 2.672514522173267,
"y": 5.695384322269494
},
"nextControl": {
"x": 1.3904431950573972,
"y": 5.467829597262204
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 7.786221898253982,
"y": 5.7846202012571855
},
"prevControl": {
"x": 6.538274967970654,
"y": 7.594698262132346
},
"nextControl": {
"x": 9.03416882853731,
"y": 3.9745421403820247
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 4.834244879861288,
"y": 4.06537564992086
},
"prevControl": {
"x": 6.9342068541992985,
"y": 4.043525214419497
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [
{
"waypointRelativePos": 1,
"rotationDegrees": 180.0,
"rotateFast": false
}
],
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxAngularVelocity": 270.0,
"maxAngularAcceleration": 600.0
},
"goalEndState": {
"velocity": 0,
"rotation": 180.0,
"rotateFast": false
},
"reversed": false,
"folder": null,
"previewStartingState": {
"rotation": 60.0,
"velocity": 0
},
"useDefaultConstraints": false
}
Loading

0 comments on commit 740e068

Please sign in to comment.