Skip to content

Commit

Permalink
Merge pull request #103 from HuskieRobotics/dropButton-2-start-game-b…
Browse files Browse the repository at this point in the history
…uttons

Added a drop button and 2 start game buttons. Also fixed an analysis module display error.
  • Loading branch information
jinanparves authored Mar 15, 2024
2 parents 803bc9f + e3ff8b4 commit 2e9dc50
Show file tree
Hide file tree
Showing 4 changed files with 211 additions and 116 deletions.
61 changes: 1 addition & 60 deletions config/analysis-modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,7 @@
"name": "Amp",
"path": "counts.scoreAmp"
},
{
"name": "Speaker",
"path": "counts.scoreSpeaker"
},
{
"name": "Amped Speaker",
"path": "counts.scoreAmpedSpeaker"
},

{
"name": "Miss",
"path": "counts.miss"
Expand All @@ -155,32 +148,6 @@
]
}
},
{
"view": "team",
"module": "Pie",
"position": "main",
"name": "Shot Location Distribution",
"options": {
"slices": [
{
"name": "Subwoofer",
"path": "counts.scoreSubwoofer"
},
{
"name": "Wing",
"path": "counts.scoreWing"
},
{
"name": "Podium",
"path": "counts.scorePodium"
},
{
"name": "Midfield",
"path": "counts.scoreMidfield"
}
]
}
},
{
"view": "team",
"module": "Bar",
Expand Down Expand Up @@ -319,31 +286,5 @@
}
]
}
},
{
"view": "match",
"module": "Pie",
"position": "main",
"name": "Shot Distribution",
"options": {
"slices": [
{
"name": "Amp",
"path": "averages.scoreAmp"
},
{
"name": "Speaker",
"path": "averages.scoreSpeaker"
},
{
"name": "Amped Speaker",
"path": "averages.scoreAmpedSpeaker"
},
{
"name": "Miss",
"path": "averages.miss"
}
]
}
}
]
130 changes: 123 additions & 7 deletions config/analysis-pipeline.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
[
{
{
"type": "tmp",
"name": "countActions",
"outputPath": "counts",
"options": {
"all": true
}
},
{
"type": "team",
"name": "countActions",
"outputPath": "counts",
"options": {
"all": true
}
},
{
"type": "tmp",
"name": "sum",
"outputPath": "counts.scoreSpeaker",
"options": {
Expand All @@ -12,12 +28,106 @@
]
}
},
{
{
"type": "team",
"name": "sum",
"outputPath": "CountsTotalSubwoofer",
"options": {
"addends": [
"counts.scoreSubwoofer",
"counts.scoreAmpedSubwoofer"
]
}
},
{
"type": "team",
"name": "sum",
"outputPath": "CountsTotalPodium",
"options": {
"addends": [
"counts.scorePodium",
"counts.scoreAmpedPodium"
]
}
},
{
"type": "team",
"name": "sum",
"outputPath": "CountsTotalWing",
"options": {
"addends": [
"counts.scoreWing",
"counts.scoreAmpedWing"
]
}
},
{

"type": "team",
"name": "sum",
"outputPath": "CountsTotalMidfield",
"options": {
"addends": [
"counts.scoreMidfield",
"counts.scoreAmpedMidfield"
]
}
},
{
"type": "team",
"name": "average",
"outputPath": "averages.scoreSpeaker",
"options": {
"path": "counts.scoreSpeaker"
}
},
{
"type": "team",
"name": "average",
"outputPath": "averages.scoreAmp",
"options": {
"path": "counts.scoreAmp"
}
},
{
"type": "tmp",
"name": "countActions",
"outputPath": "counts",
"name": "sum",
"outputPath": "counts.scoreAmpedSpeaker",
"options": {
"all": true
"addends": [
"counts.scoreAmpedSubwoofer",
"counts.scoreAmpedWing",
"counts.scoreAmpedPodium",
"counts.scoreAmpedMidfield"
]
}
},
{
"type": "tmp",
"name": "sum",
"outputPath": "CountsTotalSpeaker",
"options": {
"addends": [
"counts.scoreAmpedSpeaker",
"counts.scoreSpeaker"
]
}
},

{
"type": "team",
"name": "average",
"outputPath": "averages.totalSpeaker",
"options": {
"path": "CountsTotalSpeaker"
}
},
{
"type": "team",
"name": "average",
"outputPath": "averages.scoreAmpedSpeaker",
"options": {
"path": "counts.scoreAmpedSpeaker"
}
},
{
Expand Down Expand Up @@ -78,7 +188,10 @@
"scoreWing",
"scorePodium",
"scoreMidfield",
"scoreAmpedSpeaker"
"scoreAmpedSubwoofer",
"scoreAmpedWing",
"scoreAmpedPodium",
"scoreAmpedMidfield"
],
"misses": [
"miss"
Expand Down Expand Up @@ -255,7 +368,10 @@
"countsTeleop.scoreWing": 2,
"countsTeleop.scorePodium": 2,
"countsTeleop.scoreMidfield": 2,
"countsTeleop.scoreAmpedSpeaker": 5
"countsTeleop.scoreAmpedSubwoofer": 5,
"countsTeleop.scoreAmpedWing": 5,
"countsTeleop.scoreAmpedPodium": 5,
"countsTeleop.scoreAmpedMidfield": 5
}
}
},
Expand Down
Loading

0 comments on commit 2e9dc50

Please sign in to comment.