Commit 44441da
authored
[wpilib] Use reflection to load main class, remove main from templates (#8627)
#8626 needs to switch to using reflection to load the robot class. Do
that with this PR so it's separate.
Also, remove the duplicated main files from the template, and instead
fixup vscode to handle this properly.1 parent 793b0a3 commit 44441da
File tree
93 files changed
+167
-2140
lines changed- developerRobot/src/main/java/wpilib/robot
- wpilibcExamples/src/main/cpp/examples
- wpilibjExamples
- src/main/java/org/wpilib
- examples
- apriltagsvision
- arcadedrivegamepad
- arcadedrive
- armsimulation
- canpdp
- differentialdrivebot
- differentialdriveposeestimator
- digitalcommunication
- drivedistanceoffboard
- dutycycleencoder
- dutycycleinput
- elevatorexponentialprofile
- elevatorexponentialsimulation
- elevatorprofiledpid
- elevatorsimulation
- elevatortrapezoidprofile
- encoder
- eventloop
- flywheelbangbangcontroller
- gettingstarted
- gyromecanum
- gyro
- hatchbotinlined
- hatchbottraditional
- hidrumble
- httpcamera
- i2ccommunication
- intermediatevision
- mecanumbot
- mecanumdriveposeestimator
- mecanumdrive
- mechanism2d
- motorcontrol
- potentiometerpid
- quickvision
- rapidreactcommandbot
- romireference
- selectcommand
- simpledifferentialdrivesimulation
- solenoid
- statespacearm
- statespaceelevator
- statespaceflywheelsysid
- statespaceflywheel
- swervebot
- swervedriveposeestimator
- sysidroutine
- tankdrivegamepad
- tankdrive
- unittest
- xrpreference
- xrptimed
- snippets
- accelerometercollision
- accelerometerfilter
- adxlaccelerometers
- analogaccelerometer
- analogencoder
- analoginput
- analogpotentiometer
- digitalinput
- dutycycleencoder
- encoderdrive
- encoderhoming
- encoder
- limitswitch
- onboardimu
- profiledpidfeedforward
- templates
- commandv2skeleton
- commandv2
- educational
- opmode
- robotbaseskeleton
- romicommandv2
- romieducational
- romitimed
- timedskeleton
- timed
- timesliceskeleton
- timeslice
- xrpcommandv2
- xrpeducational
- xrptimed
- wpilibj/src/main/java/org/wpilib/framework
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
93 files changed
+167
-2140
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
524 | 523 | | |
525 | 524 | | |
526 | 525 | | |
| |||
Lines changed: 33 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
288 | 314 | | |
289 | | - | |
| 315 | + | |
290 | 316 | | |
291 | 317 | | |
292 | 318 | | |
293 | 319 | | |
294 | | - | |
| 320 | + | |
295 | 321 | | |
296 | 322 | | |
297 | 323 | | |
| |||
366 | 392 | | |
367 | 393 | | |
368 | 394 | | |
369 | | - | |
370 | | - | |
| 395 | + | |
371 | 396 | | |
372 | | - | |
| 397 | + | |
373 | 398 | | |
374 | 399 | | |
375 | 400 | | |
| |||
391 | 416 | | |
392 | 417 | | |
393 | 418 | | |
394 | | - | |
| 419 | + | |
395 | 420 | | |
396 | 421 | | |
397 | 422 | | |
| |||
411 | 436 | | |
412 | 437 | | |
413 | 438 | | |
414 | | - | |
| 439 | + | |
415 | 440 | | |
416 | 441 | | |
417 | 442 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
181 | 184 | | |
182 | 185 | | |
183 | 186 | | |
| |||
222 | 225 | | |
223 | 226 | | |
224 | 227 | | |
225 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
226 | 232 | | |
227 | 233 | | |
228 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
39 | 49 | | |
40 | 50 | | |
41 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 0 additions & 25 deletions
This file was deleted.
0 commit comments