Commit 66edf39
committed
Refactor vision config to use Factors interface
Introduced a Factors interface with ObjFactors and StdDevFactors implementations to generalize camera configuration parameters. Updated Vision, VisionConstants, and object detection logic to use the new factors structure, enabling more flexible and descriptive configuration for both standard deviation and object confidence weights.1 parent 9c1d37e commit 66edf39
File tree
4 files changed
+65
-16
lines changed- src/main/java/org/steelhawks/subsystems/vision
- objdetect
4 files changed
+65
-16
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
| 203 | + | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
Lines changed: 59 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
31 | 80 | | |
32 | | - | |
| 81 | + | |
33 | 82 | | |
34 | 83 | | |
35 | | - | |
| 84 | + | |
36 | 85 | | |
37 | 86 | | |
38 | 87 | | |
| |||
55 | 104 | | |
56 | 105 | | |
57 | 106 | | |
58 | | - | |
| 107 | + | |
59 | 108 | | |
60 | 109 | | |
61 | 110 | | |
| |||
75 | 124 | | |
76 | 125 | | |
77 | 126 | | |
78 | | - | |
| 127 | + | |
79 | 128 | | |
80 | 129 | | |
81 | 130 | | |
| |||
93 | 142 | | |
94 | 143 | | |
95 | 144 | | |
96 | | - | |
| 145 | + | |
97 | 146 | | |
98 | 147 | | |
99 | 148 | | |
| |||
111 | 160 | | |
112 | 161 | | |
113 | 162 | | |
114 | | - | |
| 163 | + | |
115 | 164 | | |
116 | 165 | | |
117 | 166 | | |
| |||
120 | 169 | | |
121 | 170 | | |
122 | 171 | | |
123 | | - | |
| 172 | + | |
124 | 173 | | |
125 | 174 | | |
126 | 175 | | |
| |||
129 | 178 | | |
130 | 179 | | |
131 | 180 | | |
132 | | - | |
| 181 | + | |
133 | 182 | | |
134 | 183 | | |
135 | 184 | | |
| |||
138 | 187 | | |
139 | 188 | | |
140 | 189 | | |
141 | | - | |
| 190 | + | |
142 | 191 | | |
143 | 192 | | |
144 | 193 | | |
145 | 194 | | |
146 | 195 | | |
147 | | - | |
| 196 | + | |
148 | 197 | | |
149 | 198 | | |
150 | 199 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments