Skip to content

Commit

Permalink
[examples] Add field images to Java simulation examples (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
amquake authored Oct 25, 2023
1 parent cb401e1 commit f3fb010
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions photonlib-java-examples/simaimandrange/2020-infiniterecharge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"game": "Infinite Recharge",
"field-image": "2020-field.png",
"field-corners": {
"top-left": [
96,
25
],
"bottom-right": [
1040,
514
]
},
"field-size": [
52.4375,
26.9375
],
"field-unit": "foot"
}
15 changes: 15 additions & 0 deletions photonlib-java-examples/simaimandrange/simgui.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
],
"weight": 3.0
},
"bottom": 514,
"cameras": {
"arrowColor": [
0.0,
Expand All @@ -33,7 +34,19 @@
"selectable": false,
"style": "Hidden"
},
"height": 8.210550308227539,
"image": "2020-field.png",
"left": 96,
"right": 1040,
"targets": {
"arrowColor": [
0.27848100662231445,
1.0,
0.0,
255.0
],
"arrowSize": 58,
"arrowWeight": 6.0,
"color": [
0.05063295364379883,
1.0,
Expand All @@ -43,6 +56,8 @@
"style": "Hidden",
"weight": 1.0
},
"top": 25,
"width": 15.982950210571289,
"window": {
"visible": true
}
Expand Down
19 changes: 19 additions & 0 deletions photonlib-java-examples/swervedriveposeestsim/2023-field.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"game": "Charged Up",
"field-image": "2023-field.png",
"field-corners": {
"top-left": [
46,
36
],
"bottom-right": [
1088,
544
]
},
"field-size": [
54.27083,
26.2916
],
"field-unit": "foot"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 10 additions & 4 deletions photonlib-java-examples/swervedriveposeestsim/simgui.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@
"weight": 2.0
},
"apriltag": {
"arrows": false,
"image": "tag-green.png",
"length": 0.5,
"width": 0.4000000059604645
"length": 0.6000000238418579,
"width": 0.5
},
"bottom": 544,
"cameras": {
"arrowColor": [
0.29535865783691406,
Expand All @@ -75,15 +77,19 @@
"weight": 1.0,
"width": 1.0
},
"height": 8.013699531555176,
"height": 8.013679504394531,
"image": "2023-field.png",
"left": 46,
"right": 1088,
"top": 36,
"visibleTargetPoses": {
"arrows": false,
"image": "tag-blue.png",
"length": 0.5,
"selectable": false,
"width": 0.4000000059604645
},
"width": 16.541749954223633,
"width": 16.541748046875,
"window": {
"visible": true
}
Expand Down

0 comments on commit f3fb010

Please sign in to comment.