mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-24 01:31:44 +00:00
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:
@@ -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: ""
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user