Tyler Veness
140c365e4b
Added XboxController class ( #140 )
...
Joystick and Gamepad functionality was separated into cleaner interfaces.
2016-11-18 23:05:37 -08:00
Peter Johnson
8c93ceb728
Add cscore-based CameraServer. ( #352 )
...
Not fully functional yet, but implements basic functionality required for LabView dashboard interoperability.
2016-11-18 22:30:22 -08:00
Peter Johnson
0b1e876dcf
Bump wpiutil version to 1.0.2.
2016-11-18 22:25:38 -08:00
Thad House
ac50d7cf8a
Removes NiVision from allwpilib ( #305 )
2016-11-18 20:04:21 -08:00
Peter Johnson
ae8c8ec230
Don't output \r\n before boundary. This throws off some clients.
2016-11-18 19:52:22 -08:00
Thad House
ecb873ff45
Fixes myRobotJava zipping before Java gets built ( #351 )
2016-11-18 19:44:13 -08:00
Peter Johnson
ec8c0eb3c2
Fix FPS setting and crash in reapplying settings.
2016-11-18 19:23:35 -08:00
Peter Johnson
3d898dd8f7
MJPEGServer: Fix URI %xx-decoding.
2016-11-18 19:03:35 -08:00
Peter Johnson
df18e178ee
MJPEGServer: Provide a bare-bones HTML root page.
2016-11-18 18:58:03 -08:00
Peter Johnson
71a6e08988
MJPEGServer: Make a couple of tweaks for Axis camera compatibility.
2016-11-18 18:33:49 -08:00
Peter Johnson
a05636d9a6
Add data accessors for USBCamera and MJPEGServer.
...
USBCamera: getPath()
MJPEGServer: getListenAddress() and getPort()
2016-11-18 17:21:03 -08:00
Peter Johnson
5eecbfd9bf
Implement immediate notify on network interfaces event.
2016-11-18 16:27:26 -08:00
Thad House
78baa04ecc
Adds OpenCV to myRobotJava ( #350 )
2016-11-18 16:20:30 -08:00
Peter Johnson
65514b3028
USBCamera: Update description on reconnect.
2016-11-18 16:16:04 -08:00
Peter Johnson
881d55f858
VideoListener: Add move assignment operator.
2016-11-18 15:10:37 -08:00
Krypton Cougars
b78f580d47
Adds default methods for Commands ( #238 ) ( #238 )
...
Closes #235
2016-11-18 14:42:40 -08:00
Peter Johnson
cc20d9d0fe
Add no-parameter constructors for specific sources/sinks.
2016-11-18 14:33:47 -08:00
Thad House
b115c75226
Adds SPI DIO to WPILib ( #256 )
2016-11-18 14:15:53 -08:00
Thad House
6bc092f3ae
Updates SPI device pin ( #348 )
2016-11-18 14:14:51 -08:00
Thad House
f99a266ce4
Adds CsCore dependency to myRobotCpp ( #349 )
2016-11-18 14:14:11 -08:00
Peter Johnson
35aa544415
VideoEvent: Make sourceHandle and sinkHandle public.
2016-11-18 13:20:50 -08:00
Peter Johnson
bad4ca4666
Add event for network interfaces change.
2016-11-18 12:41:08 -08:00
Peter Johnson
5fecc57e8a
Add methods to get the hostname and network interfaces.
2016-11-18 12:41:08 -08:00
Peter Johnson
e1f4e3d2d7
Fix mapping into Java enums.
...
The values are bitmask not contiguous, so we need to use a switch instead
of an array.
2016-11-18 12:41:08 -08:00
Peter Johnson
5ace9e4189
Renumber event kind values.
2016-11-18 12:41:08 -08:00
Peter Johnson
9945459a41
Notify sink enable and disable events.
2016-11-18 12:41:08 -08:00
Peter Johnson
22c11fad36
Notify source property events.
2016-11-18 12:41:08 -08:00
Peter Johnson
c6b527d452
Notify source connect, disconnect, and video mode changes.
2016-11-18 12:41:08 -08:00
Peter Johnson
8e9911d330
Notify on sink source change.
2016-11-18 12:41:08 -08:00
Peter Johnson
b245725941
Notify on source and sink create and destroy.
2016-11-18 12:41:08 -08:00
Peter Johnson
154ae5dcbf
Notifier: Take Impl rather than handle in notification functions.
...
Also take CS_EventKind rather than RawEvent::Kind.
Still provide the handle methods for the basic events (this is particularly
useful for create and destroy events).
This makes these functions easier to use from within the implementation.
2016-11-18 12:41:08 -08:00
Peter Johnson
bae2037086
Handle: Add methods to get Data struct from Impl pointer.
...
Also make a number of methods in UnlimitedHandleResource inline.
2016-11-18 12:41:08 -08:00
Peter Johnson
c0bc8d7028
Change examples to start at port 8081 rather than 8080.
...
Port 8080 is too commonly used for other purposes.
2016-11-18 12:41:08 -08:00
Peter Johnson
736b5ff424
Java: throw VideoException on error.
2016-11-18 12:41:08 -08:00
Peter Johnson
29cd2b11be
enum_usb example: output the property type.
2016-11-18 12:41:08 -08:00
Peter Johnson
dcf773c3ef
Add USBCamera setting functions similar to the old WPILib nivision ones.
2016-11-18 12:41:08 -08:00
Peter Johnson
791cabbc26
Rename Type to Kind.
2016-11-18 12:41:08 -08:00
Peter Johnson
3c7d8063f6
VideoProperty: rename type() to getType().
2016-11-18 12:41:08 -08:00
Peter Johnson
3381340eb5
Add method to get source/sink type.
...
Also provide convenience method to enumerate all sinks connected to a source.
2016-11-18 12:41:08 -08:00
Peter Johnson
6446b9ef10
Add sink source changed event.
2016-11-18 12:41:08 -08:00
Peter Johnson
6c19eb59b2
VideoSource, VideoSink: Provide equality operation.
...
* Provide hashCode implementation for Java.
* Provide getHandle for both C++ and Java.
2016-11-18 12:41:08 -08:00
Peter Johnson
797d049f31
Use java.util.function.Consumer for event listener.
2016-11-18 12:41:08 -08:00
Peter Johnson
0bcafedebf
MJPEGServerImpl: Refactor NeedsDHT.
2016-11-18 12:40:31 -08:00
Peter Johnson
7e0e8286eb
SourceImpl: Refactor frame allocation into AllocFrame.
2016-11-18 12:40:31 -08:00
Peter Johnson
5ae1162378
Move MJPEG DHT insertion from SourceImpl to MJPEGServerImpl.
...
OpenCV imdecode supports images with no DHT, so it's not necessary to
add it on the source side.
2016-11-18 12:40:31 -08:00
Peter Johnson
c80c4ae55c
MJPEGServer: Use worker thread model.
...
Also make the worker thread a class for future per-client configuration use.
Depends on wpiutil #153 .
2016-11-18 12:40:31 -08:00
Peter Johnson
254b88bdbe
Start adding support for non-MJPEG frame types.
...
Not yet supported by MJPEGServer.
2016-11-18 12:40:31 -08:00
Thad House
2657d89178
Adds a c_str method to StringRef ( #155 )
...
The StringRef class does not ensure the string is null terminated. As there is
no defined way to actually check for a null terminator, we determine
if it is null terminated based on the constructor type. Then if on c_str
it is not known to be null terminated, we use a passed in buffer to copy
the string and ensure null termination.
2016-11-14 22:51:52 -08:00
Thad House
38ec59f03a
Adds a c_str method to StringRef ( #155 )
...
The StringRef class does not ensure the string is null terminated. As there is
no defined way to actually check for a null terminator, we determine
if it is null terminated based on the constructor type. Then if on c_str
it is not known to be null terminated, we use a passed in buffer to copy
the string and ensure null termination.
2016-11-14 22:51:52 -08:00
Fred Silberberg
1f724d58e0
Made the test scripts executable to fix -dirty on the version numbers. ( #347 )
2016-11-14 21:16:51 -08:00