Peter Johnson
5e9575de66
Add missing CS_SetDefaultLogger in cscore-jni.def.
2017-02-17 02:06:46 -08:00
Tyler Veness
12f759860e
Corrects assumptions about return values from i2c-lib ( #484 )
...
Fixes #478
v2017.3.1
2017-02-17 00:05:54 -08:00
Dustin Spicuzza
c02d34dbf3
Allow resetting the logger back to default ( #55 )
2017-02-16 22:12:16 -08:00
Peter Johnson
8f97637b71
Fix handling of HTTP cameras that do not provide a Content-Length. ( #59 )
...
ReadJpeg was not correctly parsing the SOS segment.
2017-02-16 22:11:54 -08:00
Peter Johnson
878d3a6f4f
Publish video modes to webserver. ( #58 )
...
This puts a table of modes onto the main webpage and also adds them to
the JSON output.
Fixes #50 .
2017-02-16 01:06:38 -08:00
Peter Johnson
ef25bbde75
Fix SetExposureAuto. ( #57 )
...
This is an enum value; setting 3 seems to be correct for USB cameras.
Fixes #56 .
2017-02-15 16:25:43 -08:00
Austin Shalit
1bdbb5ddcc
Remove usages of isEnable() ( #483 )
2017-02-14 01:16:36 -08:00
Paul Friederichsen
b573fb6555
Fix param order in RobotDrive docs ( #481 )
...
Fix Javadoc @param order in RobotDrive and fix order of params in C++ docs
2017-02-14 01:14:56 -08:00
Thad House
b50a7bdbee
Fixes memory leak for SPI reads ( #474 )
...
Adds a stack allocation for most use cases.
2017-02-14 01:14:08 -08:00
Thad House
5a5f10dfc8
Fixes I2C read change size of pointer ( #479 )
...
Fixes #477
2017-02-10 15:21:59 -08:00
Dustin Spicuzza
8c3efa5926
Increment reference count when creating VideoSource object ( #53 )
2017-02-09 00:55:40 -08:00
Thad House
e6656326a8
Adds field IP to round robin list ( #187 )
...
With how many more coprocessors are being added, this is probably needed
to make the field crew sane.
2017-02-09 00:55:01 -08:00
Peter Johnson
e375b4a9ff
CameraServer: auto-increment startAutomaticCapture(). ( #468 )
...
Also add GetServer() functions so the automatically created VideoSink can
be retrieved by user code if desired.
v2017.2.1
2017-01-20 01:07:37 -07:00
Thad House
ff141ab1ff
Fixes exception on camera creation without plugged in camera ( #470 )
...
Would throw if the camera was disconnected. We handle this properly at
the JNI level to not have this crash the entire program, but the error
is still kind of annoying, and not really an error.
2017-01-20 01:02:27 -07:00
Thad House
cf8cab850b
Fixes missing VideoProperty constructor. ( #49 )
2017-01-20 00:49:58 -07:00
Peter Johnson
b8537be219
CameraServer: Remove NT-driven settings. ( #467 )
...
Unfortunately, due to the way NT synchronization is currently performed,
this has unexpected and undesirable behavior: when a dashboard (or any other
NT client) is left running between code restarts, when it reconnects, any
code settings will be overwritten by the NT synchronization process. As
fixing this will require a fairly major NT change (and likely a user-visible
one), it's not desirable to do at this point in the year.
Instead, disable NT driven settings entirely (e.g. make the NT interface
publish only). To emphasize the read-only nature of the NT values, attempts
to change the NT values will be immediately overridden by CameraServer.
To better inform users about the actual property names (e.g. for use in their
code), the "raw_" settings no longer have "raw_" removed from their names
(they are still placed in the "RawProperty" subtable).
This change also contains a couple of Java fixes:
* Make getInstance() thread-safe
* Properly synchronize access to m_tables between multiple threads.
* Use Hashtable instead of HashMap.
2017-01-19 12:30:07 -07:00
Thad House
db5dfa1746
Adds sliders for all settable properties to the default webpage ( #48 )
...
When the page is loaded, if properties can be found they will
automatically be created on screen. They are currently not auto
updating. Raw values are currently disabled because of this.
2017-01-19 01:02:37 -07:00
Peter Johnson
13457d1bf4
Update setUpdateRate() documentation to match implementation.
...
Update rates as fast as 10 ms are now allowed.
Fixes #184 .
2017-01-18 21:32:15 -08:00
Austin Shalit
8f1b034b2f
Fix typo in JavaDoc ( #462 )
2017-01-16 22:57:28 -07:00
Thad House
71d0a07e0a
Fixes solenoid allocation error message ( #455 )
...
The error was NO_AVAILABLE_RESOURCES, which is not the proper error to
return. Instead, just return the error directly from the allocation.
2017-01-14 23:59:05 -07:00
sciencewhiz
d322342494
Remove comments about Blue DS ( #450 )
...
It's unlikely that anyone is still using the Blue Kwikbyte DS from 2009,
and the reference is confusing to people who weren't around then.
2017-01-14 23:52:48 -07:00
Peter Johnson
8f8c4d3d95
HttpUtil: Allow "http" scheme to be mixed case.
2017-01-10 00:15:39 -08:00
Thad House
d47bd1ecbc
Fixes embedded library name used for extraction in Java ( #45 )
2017-01-09 20:49:02 -08:00
Thad House
e9fcb5381a
Fixes Java artifact clasifiers when using custom suffix ( #44 )
2017-01-05 14:14:42 -08:00
Thad House
3e2631f49b
Fixes Java artifact clasifiers when using custom suffix ( #183 )
2017-01-05 14:13:57 -08:00
Peter Johnson
bc7ab17692
CameraServer updates ( #446 )
...
* CameraServer: Add properties and video mode NT interchange.
* Automatically serve Axis cameras so they're accessible via USB.
v2017.1.1
2017-01-05 02:51:55 -08:00
Peter Johnson
3c3236c5d5
Fix video mode notifications.
2017-01-05 01:42:19 -08:00
Tyler Veness
7a049c29bd
Added a conditional command that chooses 1 of 2 commands ( #435 )
...
Tests and documentation for ConditionalCommand were also added. This is a fixed version of #9 , so it doesn't support lambdas.
Closes #9
2017-01-04 23:48:13 -08:00
Thad House
23462ec7df
Adds way to force publishing version from command line ( #43 )
...
In case we need to do a recreation of an artifact for some reason, this
makes it possible.
2017-01-04 22:16:17 -08:00
Thad House
ac56b0a33e
Adds way to force publishing version from command line ( #182 )
...
In case we need to do a recreation of an artifact for some reason, this
makes it possible.
2017-01-04 22:15:23 -08:00
Thad House
1fc375b31a
Updates the gradle wrapper to version 3.3 ( #445 )
2017-01-04 22:08:48 -08:00
Austin Shalit
eee7f3991c
Allow VisionRunner to stop ( #442 )
2017-01-04 19:41:07 -08:00
Thad House
b55c604c0a
Updates Gradle to 3.3, and removes the Visual Studio 2015 workaround ( #41 )
2017-01-04 19:40:44 -08:00
Thad House
a72f8f3bcd
Add new ARM Toolchain, add toolchainpath to README ( #42 )
...
Matches ntcore #165
2017-01-04 19:40:28 -08:00
Thad House
2e3503517d
Add OS level serial port ( #426 )
2017-01-04 19:38:17 -08:00
Thad House
27c0405fc9
Reruns gradle wrapper to fully generate 3.3 files ( #181 )
2017-01-04 19:08:33 -08:00
Thad House
b9e80ecfdc
Updates to gradle 3.3, and removes Visual Studio 2015 workaround ( #180 )
2017-01-04 17:37:02 -08:00
Thad House
a3adb38bef
Adds support for specifying output suffix of arm packages. ( #34 )
...
Currently if using a separate compiler prefix, it would get published to
the arm classifier. This modifies so the output suffix can now be
specified (e.g. "hf" for armhf).
2017-01-04 01:38:37 -08:00
Peter Johnson
593ba37c43
Java VideoEvent: Make propertyHandle public.
2017-01-04 01:16:10 -08:00
Peter Johnson
4ed78a84ef
Java VideoMode: Provide PixelFormat-taking constructor.
2017-01-04 01:16:10 -08:00
Thad House
e893662c0a
Adds new functions to def file ( #40 )
2017-01-03 19:52:26 -08:00
Austin Shalit
15e58acc76
Java SendableChooser no longer sets a default on addObject ( #441 )
2017-01-03 19:13:45 -08:00
Thad House
5df78c520c
Adds support for building separate armhf artifacts ( #177 )
...
Currently if using a separate compiler prefix, it would still get published
to the arm classifier. This modifies so a classifier suffix can be used to
disambiguate arm from armhf.
2017-01-03 19:12:47 -08:00
Thad House
f13f886886
Fixes arm example builds on windows ( #39 )
2017-01-03 19:10:21 -08:00
Thad House
5dd8e4dc7f
Adds defs for the C windows functions, and shims the 5 missing ones ( #38 )
2017-01-03 19:09:11 -08:00
Austin Shalit
5aa5e3e09e
SendableChooser generic value ( #433 )
...
* Java SendableChooser now decorates with type (non-breaking change)
* C++ SendableChooser now is templated on the type instead of using void* and stores values (breaking change)
* C++ SendableChooser now uses llvm::StringMap instead of std::map
2017-01-03 14:40:31 -08:00
Peter Johnson
883fd5b062
For property events, provide property name rather than source name.
...
This is much more useful.
2017-01-02 23:17:00 -08:00
Peter Johnson
7ddbf20108
Create VideoCamera base class and move camera settings functions to it.
...
This makes them available for both UsbCamera and HttpCamera / AxisCamera.
To avoid virtual functions in the public-facing interface, move the
implementation of the camera settings functions to the core library.
2017-01-02 23:17:00 -08:00
Peter Johnson
23135d7a5a
Allow Sink.SetSource() to be given an empty source.
...
In Java, allow source to be null (pointers are not used in C++, so
this isn't necessary).
2017-01-02 23:17:00 -08:00
Thad House
b91ab0b44f
Gets builds working on Windows (VS 2015) ( #37 )
...
Def files will be updated after the latest PR with new definitions gets
added.
2017-01-02 23:16:35 -08:00