Added Support for 3D tracking of the 2022 Cargo Balls (#408)

* added cargo ball 2022

* added cargoball2022. tested on pi.. it works

* spotlessapply

* made list more consistant
This commit is contained in:
drew-struensee
2022-01-20 21:36:54 -06:00
committed by GitHub
parent 9893cf1f7e
commit b09a6d6a2d
2 changed files with 20 additions and 1 deletions

View File

@@ -60,7 +60,7 @@
},
data() {
return {
targetList: ['2020 High Goal Outer', '2020 High Goal Inner', '2019 Dual Target', 'Power Cell (7in)', '2016 High Goal'], //Keep in sync with TargetModel.java
targetList: ['2020 High Goal Outer', '2020 High Goal Inner', '2019 Dual Target', '2020 Power Cell (7in)','2022 Cargo Ball (9.5in)', '2016 High Goal'], //Keep in sync with TargetModel.java
snackbar: {
color: "Success",
text: ""

View File

@@ -73,6 +73,25 @@ public enum TargetModel implements Releasable {
-Units.inchesToMeters(7) / 2,
-Units.inchesToMeters(7) / 2)),
0),
k2022CircularCargoBall(
List.of(
new Point3(
-Units.inchesToMeters(9.5) / 2,
-Units.inchesToMeters(9.5) / 2,
-Units.inchesToMeters(9.5) / 2),
new Point3(
-Units.inchesToMeters(9.5) / 2,
Units.inchesToMeters(9.5) / 2,
-Units.inchesToMeters(9.5) / 2),
new Point3(
Units.inchesToMeters(9.5) / 2,
Units.inchesToMeters(9.5) / 2,
-Units.inchesToMeters(9.5) / 2),
new Point3(
Units.inchesToMeters(9.5) / 2,
-Units.inchesToMeters(9.5) / 2,
-Units.inchesToMeters(9.5) / 2)),
0),
k2016HighGoal(
List.of(
new Point3(Units.inchesToMeters(-10), Units.inchesToMeters(12), 0),