shueja-personal
dafee954e0
Draw3dTargetsPipe returns immediately if coeffs are null (previously NPE crashlooped) ( #485 )
...
* Draw3dTargetsPipe returns immediately if coeffs are null
* fix lint
2022-10-08 09:26:37 -04:00
shueja-personal
5ac541642e
Remove extra distortion in Draw3dTargetsPipe ( #479 )
...
* Remove extra distortion in Draw3dTargetsPipe
* fix wpiformat
2022-09-29 10:47:00 -07:00
Matt
4b4a0a1cd9
[UI] Fix target tab under AprilTag ( #478 )
...
* Start addressing things
* Fix target tab table
* Update TrackedTarget.java
2022-09-29 09:28:11 -07:00
shueja-personal
a764ace7f2
Initial AprilTag support ( #458 )
...
(Very) beta AprilTag support in PhotonVision. Disables Picam GPU acceleration until we can debug auto exposure in the MMAL driver.
Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com >
Co-authored-by: Matt <matthew.morley.ca@gmail.com >
Co-authored-by: Chris Gerth <gerth2@users.noreply.github.com >
Co-authored-by: Chris <chrisgerth010592@gmail.com >
Co-authored-by: mdurrani808 <mdurrani808@gmail.com >
2022-09-28 21:21:41 -04:00
shueja-personal
a3bcd3ac4f
Fix #461 (pipeline type change index) ( #462 )
...
* Fix #461 (pipeline type change index)
* Reassign indexes after changing pipeline type
2022-05-08 17:09:52 -07:00
Matt
971ff3ac40
Calculate aspect ratio using rotated rect ( #447 )
2022-03-31 22:51:14 -04:00
Banks T
b80e436f02
Force fs sync on all .json writes ( #451 )
2022-03-31 22:46:12 -04:00
Matt
f4555dc545
Fix offset point bug ( #445 )
...
Fixes bug where offset point can be wrong
2022-03-16 21:38:47 -07:00
Matt
54fdd1db51
Add test mode from path ( #440 )
...
adds --path to --test-mode
2022-03-16 21:33:20 -07:00
Matt
1805785cc6
Rio discovery slowdown ( #444 )
...
* Only send rio IPs on settings button click
* Wpiformat
2022-03-14 20:44:14 -07:00
Matt
e62f6419b5
Move config saving to its own thread ( #438 )
...
* Move config saving to its own thread
RIO discovery can block
* Add sleep
2022-03-01 00:11:30 -05:00
Declan
fa7824c616
Fix 960x720 weirdness ( #439 )
...
* Update 960x720 FOV modifier to track video mode change
* Update native code to version that includes 960x720 fix
2022-02-28 07:42:26 -05:00
Declan
5655ca6890
Separate AWB gain slider ( #410 )
...
Makes gain adjust digital gain, adds sliders for red/blue on picam
Co-authored-by: Chris Gerth <chrisgerth010592@gmail.com >
2022-02-28 00:45:29 -05:00
Matt
50fdfd8bce
Add outlier rejection ( #432 )
...
Uses standard deviations from mean x/y location to reject outliers
2022-02-28 00:44:22 -05:00
Banks T
5144819ce2
Invertable hue ( #428 )
...
* Add UI-side changes for invertable hue slider
* Add hue inverted range
* Add new slider backgrounds to threshold tab
* Run spotless
* Updated libpicam.so to artifact built from commit c458bab87740 in that repo on gerth2's pi.
* undo the java-side hack since isVCSMSupported is fixed
* Hook up hue inversion frontend to backend and UI tweaks
* Remove unused .flipped class
* Fix hueInverted name in Vue.js store
Co-authored-by: Declan Freeman-Gleason <declanfreemangleason@gmail.com >
Co-authored-by: Matt <matthew.morley.ca@gmail.com >
Co-authored-by: Chris Gerth <chrisgerth010592@gmail.com >
2022-02-21 22:41:51 -05:00
Matt
d779fe23f0
Add disabled stream warning ( #409 )
2022-01-24 12:39:04 -05:00
Matt
b2a3f34433
Fix version verification with non-default networktable ( #407 )
...
Adds version verification to c++ too
2022-01-24 12:38:45 -05:00
drew-struensee
b09a6d6a2d
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
2022-01-20 22:36:54 -05:00
Tyler Veness
9893cf1f7e
Update photonlib and photonlib example license headers to MIT ( #395 )
2022-01-20 22:35:28 -05:00
Matt
fc91daf397
Enable GPU acecel on any Pi Zeros, not just zero W ( #405 )
2022-01-20 21:59:29 -05:00
Matt
da8d70f887
Ensure cameras with gain will always have it enabled ( #388 )
2022-01-11 17:12:30 -08:00
Tyler Veness
80a0d8de1c
Fix test resources path ( #386 )
2022-01-10 21:40:43 -08:00
Matt
3ad476bc28
Send corners of min area rectangles ( #382 )
...
Adds a new corners entry to targets. Breaks byte-packed backwards compatibility.
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2022-01-10 20:31:36 -08:00
Matt
e6d8e05b91
2022 grouping and test mode updates ( #381 )
...
Add 2022 images, "2orMore" grouping mode, and 2022 test mode
Test mode now preserves old settings
2022-01-10 16:51:06 -08:00
Tyler Veness
46fa17dfd8
Upgrade spotless and shadow ( #385 )
...
Fixes Log4J vulnerability
2022-01-10 11:56:45 -08:00
Matt
43c35286f3
Reword restart modal ( #374 )
...
Clarifies that photon will restart (when running as service)
2022-01-09 16:02:32 -08:00
Tyler Veness
a161bd5be9
Upgrade all maven dependencies for 2022 ( #377 )
...
This also fixes compilation with JDK 17.
2022-01-08 10:17:28 -08:00
Matt
12e06b09c3
Add Pi zero 2 W to PiVersion enum ( #373 )
...
This approach is quite brittle, but it's easy to get working and can ship in an initial 2022 release. It's necessary to prevent GPU acceleration from happening on Pi 4s though. Let's try to put together something better for future releases.
2022-01-05 20:34:42 -08:00
Matt
641101f574
Fix NetworkTables team connection bug ( #375 )
2021-12-31 22:55:32 -06:00
Matt
6a1201432c
Hard-code picam resolutions ( #366 )
...
* Hard-code picam resolutions
* Address review comment
2021-12-30 23:19:25 -08:00
Matt
1766f3bf0f
Add picam resolution type, remove k prefix ( #365 )
...
Changes "kUnknown" to "Picam" in resolution dropdown; similarly "kBGR" -> "BGR"
2021-12-20 10:08:17 -08:00
Matt
4578fa756c
Null-check files to be cleaned in Logger ( #367 )
2021-12-19 06:52:13 -06:00
Matt
d6e1e28fc2
Add pi version check ( #360 )
...
Should prevent GPU acceleration on Pi 4
2021-12-18 13:12:53 -05:00
Matt
8b079d9b20
Add pi-only JAR createion ( #362 )
2021-12-18 12:53:08 -05:00
Chris Gerth
c944967476
Offline Update (.jar replace) ( #340 )
...
Allows users to upload a new JAR to a Pi. Also bumps the pi image to increase the heap size.
2021-12-03 23:08:51 -05:00
Matt
a151f23319
Add team number dialog, NT connected chip ( #313 )
...
Makes NT connection status visible from the UI
2021-11-25 15:43:29 -05:00
Tyler Veness
5ca39e7f84
Upgrade to Gradle 7.2 and WPILib 2022 ( #316 )
2021-11-21 20:22:56 -05:00
Matt
ffe34f00fe
Ensure skew is always in [-90, 90] ( #319 )
2021-11-21 18:50:15 -06:00
Banks T
08fafe2607
Fix file delete, possible null on perms set ( #303 )
2021-11-06 19:58:07 -04:00
Matt
a731c7a8db
Revert part of #288 ( #306 )
...
Fixes picam streaming/hangs
2021-10-30 12:27:41 -04:00
Matt
7e74da5cff
Make photonlib complain if versions don't match ( #302 )
...
Adds messages if Photon isn't detected or major versions don't match
2021-10-18 22:31:18 -04:00
Matt
f922466d41
Fix contour grouping ( #298 )
...
Fixes bug where n+1 contours were needed to match a target of size n
2021-10-05 12:16:50 -04:00
Matt
243f06da2d
Fix vision module stream index logic ( #295 )
...
Previous logic could cause stream index with multiple cameras to run away
2021-10-03 22:43:39 -04:00
Chris Gerth
5a475e1071
Fix crash in logging when log files are not writable ( #286 )
...
* Addresses null pointer crash in logging when log files are not writable
* One of these days, I'll be able to type code without spotless complaining.
But today is not that day.
2021-09-23 22:38:50 -04:00
Chris Gerth
db09e5209f
Colored shape fix ( #288 )
...
* Move test images out of resources folder
* Limit workers in CI
* Fix image area filtering bug in colored shape
* Add missing picam settings
* Swap to make blank/empty Mat when a picam doesn't supply a color image.
Co-authored-by: Matt <matthew.morley.ca@gmail.com >
2021-09-23 18:48:18 -04:00
Matt
9fdd945a52
Fix compilation with gradlew build ( #284 )
...
* Fix everything but test mode
* Update TestUtils.java
* Jank testutils fix
* Limit workers in CI
2021-09-07 06:49:07 -07:00
Matt
00b8e7d1c5
Add colored shape to the UI ( #258 )
...
* Fixup colored shape backend code
* More colored shape stuff
* Start adding shape change to drawing
* Mostly works!
* Add powercell image for shape test mode
* Make super-duper-sure to release stuff
Fixes colored shape leak
* Move approx poly dp into Contour
* Adjust epsilon threshold
* Add dialog to change pipeline type
* Run spotless
* Make yes red :>
* Move "no" button
* Fix duplication/deletion name logic and switching
* Fix compilation errors from rebase
* Update VisionSourceManager.java
* Update type dialog, remove duplicate popup
The dropdown still switches even if the user says "no" tho
Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com >
2021-09-03 22:20:55 -04:00
Matt
6007cc752d
Add libpicam with gain slider bugfix ( #278 )
...
* Add libpicam with gain slider bugfix
* Patches to get zero-copy working with Pi3.
-- Success/Failure mistmatch assumptions - lots of functions in the JNI return true on failure (not true on success)
-- isVSCMSupported() is currently implemented to be "isVSCMNotSupported()"
Likely, we'll want at least some .so changes
Co-authored-by: Chris Gerth <chrisgerth010592@gmail.com >
2021-08-31 23:48:11 -04:00
Banks T
9cf5c77d69
CI test fix ( #280 )
...
Addresses OOM in CI
2021-08-31 20:27:51 -07:00
Banks T
129575dd23
Fix Test Mode ( #246 )
...
* Fix test mode path and args
* spoooootless
* Fix unit test resources
2021-03-07 21:39:02 -05:00