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
Peter Johnson
1f93a4ab4f
Change acronym class names to use MixedCase (UsbCamera, MjpegServer). ( #22 )
2016-12-04 00:08:47 -08:00
Thad House
7a587390ba
Fixes OpenCV on windows when we get to it. ( #23 )
2016-12-04 00:08:26 -08:00
sciencewhiz
16181523c9
Put language in version string ( #377 )
2016-12-02 20:36:22 -08:00
Jacob Caporuscio
7e0706cf83
Updated Usage Reporting for 2017 v8 Image ( #385 )
2016-12-02 18:16:49 -08:00
Thad House
bff67887fd
Adds capabilities to support certain HAL functionality from LabVIEW ( #382 )
...
They can only include HAL/LV/HAL.h, HAL/cpp/*.h, and HAL/handles/*.h.
Nothing else will work properly.
2016-12-02 00:32:01 -08:00
Thad House
351ff5eb48
Adds new Threads API for priority setting while using std::thread ( #379 )
...
Also adds Java API for doing the same to Java threads (standard Java Thread.setPriority only works
when Java is run as root, even if the process has the right privileges).
2016-12-01 21:06:19 -08:00
Thad House
378a145cf7
Fixes Missed Symbol from Def file ( #162 )
2016-12-01 13:45:39 -08:00
Thad House
3625f11e08
Adds C methods that take a cv::Mat* ( #21 )
...
Some implementations of OpenCV use cv::Mat as their native pointer
rather then CvMat, so we need to support both in the C interface
2016-11-30 22:00:44 -08:00
Thad House
051df14046
Updates ni patch task to automatically switch all files to LF ( #381 )
...
Still requires manual intervention to make files not readonly, but
that's easier.
2016-11-29 20:20:49 -08:00
Thad House
ee0318f697
Updates NI Libraries to image 8 ( #380 )
2016-11-29 19:56:30 -08:00
Thad House
1332ba3ad2
Adds JNI symbol check to ensure we don't miss any definitions ( #19 )
2016-11-27 23:17:26 -08:00
Peter Johnson
558b2ffa41
NetworkStream: Add setBlocking() and getNativeHandle(). ( #161 )
...
Also add checking for "would block" errors in send() and receive().
Check for set nonblocking failures in TCPConnector as well (generate warnings rather than errors)
2016-11-27 19:59:52 -08:00
Peter Johnson
1315a3967d
NetworkStream: Add setBlocking() and getNativeHandle(). ( #161 )
...
Also add checking for "would block" errors in send() and receive().
Check for set nonblocking failures in TCPConnector as well (generate warnings rather than errors)
2016-11-27 19:59:52 -08:00
Thad House
a6fb1efcbe
Switches internal joystick errors to take StringRef ( #378 )
...
Previously this would have allocated the std::string every time, even if
the message wasn't printed. Now takes a StringRef, and only converts to
std::string when the message actually gets printed.
2016-11-26 21:22:39 -08:00
sciencewhiz
31fecc28a4
Check for NaN motor speed. Fixes artf5467. ( #376 )
2016-11-26 21:04:40 -08:00
Austin Schuh
00b76d42e0
Fixed unused variable warning from gcc. ( #159 )
...
This makes it so that ntcore builds with -Wextra -Werror
2016-11-26 16:28:50 -08:00
Austin Schuh
e7c4150c02
Fixed unused variable warning from gcc. ( #159 )
...
This makes it so that ntcore builds with -Wextra -Werror
2016-11-26 16:28:50 -08:00
Thad House
bc06c843c7
Adds JNI symbol check to ensure we don't miss any definitions ( #160 )
2016-11-25 17:07:58 -08:00
Thad House
30b1efc354
Adds check to ensure all JNI symbols have been defined properly ( #373 )
2016-11-25 17:07:36 -08:00