Thad House
fddb6cd9d8
Fixes SPI Accumulator averages ( #415 )
2016-12-21 20:17:53 -06:00
Peter Johnson
10b13da3da
Refactor USB vendor/product to product string to UsbUtil.h.
...
Also implement reading of /var/lib/usbutils/usb.ids for systems that
have it (e.g. desktop Linux).
2016-12-21 10:56:40 -08:00
Peter Johnson
88afefe464
Avoid crash in SourceImpl constructor.
...
The Frame constructor calls back into SourceImpl (the passed this reference),
and when in-place constructed in the SourceImpl constructor, SourceImpl
is only partially constructed.
2016-12-21 10:56:40 -08:00
Thad House
841f016017
Fixes SerialHelper when used with OS serial ports. ( #411 )
...
Also makes the SerialHelper API public so it can be used externally.
2016-12-21 00:16:05 -06:00
Thad House
8e4afc95c7
Switches C++ strings to StringRef ( #336 )
2016-12-21 00:08:24 -06:00
Peter Johnson
80abf6bf24
Support per-stream resolution settings.
...
The code now automatically resizes as required.
This change also disconnects camera resolution settings from MJPEG
stream connections; setting the camera resolution can now only be done
via code.
2016-12-20 20:48:31 -08:00
Jaci R
94359709a1
Add new ARM Toolchain, add toolchainpath to README ( #165 )
2016-12-19 23:16:39 -06:00
Tyler Veness
8cec948699
Fix typos ( #409 )
2016-12-19 22:06:39 -06:00
Tyler Veness
31ae7c942c
Fixed signatures of deleted assignment operators ( #408 )
...
While it technically doesn't matter what the return type of the assignment operator is since it's deleted, assignment operators should return a reference instead of a value.
2016-12-19 11:24:23 -08:00
Tyler Veness
d0900626da
Removed format.py shim ( #393 )
...
Now that our formatter is a Python package (wpiformat), the format.py shim for invoking it is no longer necessary. styleguide#29 should be merged before this patch.
2016-12-18 19:46:20 -08:00
Peter Johnson
0ee4cadca0
CameraServer: Workaround LabVIEW dashboard OpenCV compatibility. ( #406 )
...
The current LabVIEW dashboard (Beta 4) requires the source type to be either
"usb:" or "ip:" and does not support "cv:". To work around this, use a source
type of "usb:" for OpenCV sources as well.
Workaround for #407 .
2016-12-18 13:36:44 -08:00
Peter Johnson
8501b7c9e2
CvSourceImpl::CreateProperty(): Use lock_guard instead of unique_lock.
2016-12-18 09:13:52 -08:00
Peter Johnson
0ce0855a6f
Java: check for null and use new jni_util features.
2016-12-18 09:13:51 -08:00
Peter Johnson
e1dabbc2d5
cscore_cpp.cpp: Fix include order.
2016-12-18 09:13:01 -08:00
Peter Johnson
c08a489e27
Improve error message for VIDIOC_STREAMON "no space left on device".
2016-12-18 09:13:01 -08:00
Peter Johnson
28a2ba4bf8
Add external logger interface.
2016-12-18 09:13:01 -08:00
Peter Johnson
2b8b8e7403
Improve logging consistency by using source/sink name throughout.
2016-12-18 09:12:59 -08:00
Peter Johnson
bdaf60b2d6
Replace tabs with spaces in gradle files.
2016-12-18 09:05:03 -08:00
Peter Johnson
7c2f994a66
Refactor source IsConnected() and connected notification.
2016-12-18 09:05:03 -08:00
Thad House
24b5a9c389
Adds UsageReporting include when using the LabVIEW shim ( #401 )
2016-12-16 22:42:45 -08:00
Peter Johnson
bb9f5b7491
jni_util: Add JException wrapper class.
...
This allows more natural C++ Throw semantics (for a variety of string
data types) for any java exception that just takes a String argument.
2016-12-15 21:54:36 -08:00
Peter Johnson
c091d74de4
jni_util: Add JException wrapper class.
...
This allows more natural C++ Throw semantics (for a variety of string
data types) for any java exception that just takes a String argument.
2016-12-15 21:54:36 -08:00
Austin Shalit
626220e9f3
Fix javadoc typo ( #403 )
2016-12-15 19:46:42 -08:00
Peter Johnson
19be09c361
Add null checks on all JNI object parameters.
2016-12-15 00:27:32 -08:00
Peter Johnson
57d053a8fb
jni_util: Make JStringRef and JArrayRef null-safe.
...
They return empty string and empty array (to avoid crashes) but also
report an error with backtrace to stderr when called in that manner.
2016-12-14 23:59:06 -08:00
Peter Johnson
8c2a148ed1
jni_util: Make JStringRef and JArrayRef null-safe.
...
They return empty string and empty array (to avoid crashes) but also
report an error with backtrace to stderr when called in that manner.
2016-12-14 23:59:06 -08:00
Peter Johnson
0e43765c53
jni_util: Add GetJavaStackTrace.
2016-12-14 23:59:02 -08:00
Peter Johnson
6fbaf57b99
jni_util: Add GetJavaStackTrace.
2016-12-14 23:59:02 -08:00
Peter Johnson
12aee3e022
Make JLocal and JArrayRef movable but non-copyable.
2016-12-14 23:29:23 -08:00
Peter Johnson
2df00647d5
Make JLocal and JArrayRef movable but non-copyable.
2016-12-14 23:29:23 -08:00
Peter Johnson
498a8e2b7d
Fix JArrayRef DirectBuffer destructor.
...
Previously it would try to release array elements even if the DirectBuffer
constructor was used.
2016-12-14 23:29:23 -08:00
Peter Johnson
99395273c7
Fix JArrayRef DirectBuffer destructor.
...
Previously it would try to release array elements even if the DirectBuffer
constructor was used.
2016-12-14 23:29:23 -08:00
Peter Johnson
4568156bdf
Make JClass more useful and use it in ntcore JNI.
2016-12-14 23:29:18 -08:00
Peter Johnson
ce7611562f
Make JClass more useful and use it in ntcore JNI.
2016-12-14 23:29:18 -08:00
Thad House
323d68d460
Fixes multiple initialization of HAL_BaseInitialize ( #400 )
2016-12-13 12:31:44 -08:00
Thad House
db2091dd94
Adds safe serial port write methods ( #396 )
...
The old method had a fairly large risk of undefined behavior, and the way the docs
were written could cause users to get confused.
Deprecate the old method and add StringRef method as preferred approach.
2016-12-10 22:40:44 -08:00
Thad House
8216d85e52
Adds check for PWM overallocation ( #392 )
2016-12-09 21:23:54 -08:00
Austin Shalit
a705eb1c61
Add PMD and solve issues ( #389 )
2016-12-07 21:24:44 -08:00
Thad House
77f664a6b1
Fixes simulator HAL builds ( #391 )
2016-12-06 19:56:31 -08:00
Austin Shalit
c30057e923
Remove unused imports ( #387 )
2016-12-05 21:36:52 -08:00
Peter Johnson
81fd0eefac
usbcvstream example: Print error from GrabFrame.
2016-12-04 21:45:37 -08:00
Peter Johnson
b5fd15e052
CvSink::GrabFrame(): Add delays like MjpegServer to avoid consuming CPU.
2016-12-04 21:45:37 -08:00
Peter Johnson
ecfc684174
MjpegServer: Increase bad frame wait from 10 to 20 ms.
2016-12-04 21:45:37 -08:00
Peter Johnson
4600ea135c
Frame: Make Data struct public.
2016-12-04 21:45:37 -08:00
Peter Johnson
3b82ba8945
Refactor JPEG functions to JpegUtil.
2016-12-04 21:45:37 -08:00
Peter Johnson
c32fc57ce1
Refactor HTTP utilities.
2016-12-04 21:45:37 -08:00
Peter Johnson
9a8f66e3e5
SourceImpl: Add no-copy PutFrame.
2016-12-04 21:45:37 -08:00
Peter Johnson
ef39713219
Revert "Don't output \r\n before boundary. This throws off some clients."
...
This reverts commit ae8c8ec230 .
2016-12-04 21:45:37 -08:00
Thad House
da68fea081
Fixes shared wpiutil switch on athena ( #24 )
2016-12-04 21:44:06 -08:00
Peter Johnson
06108b9479
Update CameraServer support. ( #386 )
...
* Follow MixedCase rename.
* Add GetVideo function to get cameras by name.
2016-12-04 00:26:08 -08:00