Peter Johnson
75cc3cda28
wpiutil: SHA1: Add method to get raw bytes instead of hex
2018-11-19 19:24:28 -08:00
Sam Carlberg
45f4472d42
Add mechanism to control Shuffleboard recordings and add event markers ( #1414 )
2018-11-18 23:15:30 -08:00
Thad House
69cb53b51b
Add support for USB Webcams on Windows ( #1390 )
2018-11-17 23:16:35 -08:00
Tyler Veness
70a66fc943
Make Gradle show stdout for wpilibj tests ( #1431 )
2018-11-17 20:29:27 -08:00
Austin Schuh
9207d788ab
Convert ReadInterrupt* to return int64_t time ( #1417 )
...
HAL_ReadInterruptRisingTimestamp and HAL_ReadInterruptFallingTimestamp
return time as a double. Instead, keep the raw integer count and move the
double conversion into the C++ and Java code. This enables comparison of the
time with other timers.
2018-11-15 21:22:03 -08:00
Thad House
ef3a31aa20
Add an example of using the HAL directly ( #1374 )
...
This is useful for advanced users, and shows a few things like error messages, and DS things that are needed.
2018-11-15 19:33:50 -08:00
Tyler Veness
63775362fe
Remove SynchronousPID class ( #1429 )
...
PR #1300 supersedes it, but won't be merged until the 2020 season. Since
SynchronousPID hasn't been used during a season, it would be best to
just remove it to avoid breakage when we deprecate and remove it again.
2018-11-15 19:25:31 -08:00
Tyler Veness
55493b0c18
Fix polymorphic exception types being caught by value ( #1426 )
...
Catching these by value breaks the build with GCC 8.2.1.
2018-11-12 19:39:49 -08:00
Tyler Veness
1696557c46
Fix deprecation warning in wpilibj shuffleboard example ( #1427 )
...
TimedRobot should be used instead of IterativeRobot.
2018-11-12 19:38:50 -08:00
Thad House
ecd376be4c
Export C functions from JNI statically linked library ( #1425 )
...
The JNI libraries are useful from other tools, so they should contain the C functions.
2018-11-12 19:38:35 -08:00
Peter Johnson
f54c0f70f6
Update opencv to 3.4.3-19 ( #1424 )
2018-11-11 19:27:20 -08:00
Peter Johnson
9bc998f4b0
cscore: Add JSON for source settings ( #1423 )
...
This allows save and restore of camera settings. The restore is a bit
smarter than the save.
* Fix mime types in mjpeg server
* wpiutil: WPI_LOG: Make sure level is an unsigned int
2018-11-10 20:30:02 -08:00
Peter Johnson
43d188a429
RobotBase: Call cscore Shutdown() from destructor
v2019.1.1-beta-2
2018-11-09 23:33:55 -08:00
Peter Johnson
563d5334c9
Update OpenCV to 3.4.3-17
2018-11-09 23:33:55 -08:00
Peter Johnson
193b0a222c
cscore: Add Shutdown() function
...
This allows ordered shutdown / destruction of sources and sinks prior to
global singleton destruction.
2018-11-09 23:33:55 -08:00
Peter Johnson
76f5d153fa
wpiutil: Add Stop() to EventLoopRunner
...
This allows stopping the event loop without having to destroy the object.
Also fix ExecSync() to actually wait for the call to complete.
2018-11-09 23:33:55 -08:00
Peter Johnson
19caeca990
cscore: Use more standard naming for Instance public variables
2018-11-09 23:33:55 -08:00
Peter Johnson
0abae17653
cscore: Refactor sink and source creation
...
Also make sources and sinks members of Instance private, with appropriate
accessor functions.
2018-11-09 23:33:55 -08:00
Peter Johnson
81d10bc656
cscore: Build examples on Windows ( #1421 )
2018-11-09 22:42:04 -08:00
Austin Shalit
b51b86525d
Stop webserver on test run ( #1420 )
2018-11-09 20:36:35 -08:00
Peter Johnson
ace37c517e
CameraServer: enable usb cameras on non-Linux platforms ( #1411 )
2018-11-09 20:27:23 -08:00
Austin Schuh
ac751d3224
Fix unused variable warnings in ntcore ( #1416 )
...
This avoids -Wextra warnings.
2018-11-09 20:02:58 -08:00
Thad House
7c9a3c4d77
Update NI Library to 2019.7.1 and OpenCV to 3.4.3-16 ( #1418 )
...
Add def for each to eliminate duplication of version number.
2018-11-09 19:59:06 -08:00
Sam Carlberg
8be693f55d
Fix list layout in shuffleboard example ( #1413 )
2018-11-09 01:14:15 -08:00
Peter Johnson
622ae29dff
CameraServer: Change opencv sources to publish "cv:" type ( #1412 )
...
The LabVIEW dashboard has been fixed to understand this prefix.
2018-11-09 01:13:39 -08:00
Peter Johnson
e7c98feca2
libuv: Use WPI (FPGA) clock on roboRio ( #1409 )
...
This is set to the FPGA clock by HAL_Initialize. Note this change means
that libuv loops should not be started until after HAL_Initialize is called (on the Rio).
Non-Rio functionality is unchanged.
2018-11-07 00:06:18 -08:00
Jaci Brunning
28087424ec
Add deploy directory detection ( #1400 )
...
Add Filesystem class for java and namespace methods for C++ for detecting deploy location.
2018-11-02 13:16:44 -07:00
Peter Johnson
b6830638df
NetworkListener: use Pimpl idiom ( #1405 )
...
This enables different platforms to use very different implementations.
2018-11-02 13:14:06 -07:00
Liam Kinne
fb557f49ea
Add missing driver station documentation ( #1388 )
2018-11-01 23:34:48 -07:00
Peter Johnson
746f950a0b
Remove ifdefs from linux NetworkListener ( #1404 )
2018-11-01 23:27:22 -07:00
Peter Johnson
9a38a3e188
Don't use static for raw_ostream outs/errs ( #1401 )
...
Static destruction order is not well defined, so it was possible for outs()
or errs() return value to be destroyed even while other code was running,
resulting in a crash. Instead dynamically allocate the static so the
destructor never runs. While this technically leaks, valgrind generally
supresses such leaks as the data is still "reachable" from the static pointer.
2018-11-01 10:48:50 -07:00
Thad House
2e3e3a47b9
Use a kill -9 after attemting a safe kill ( #1397 )
...
Should fix some deploy deadlocks.
2018-11-01 01:55:26 -07:00
Peter Johnson
e27d6d7bb8
cscore: Change impl to only one singleton ( #1398 )
...
This avoids a number of shutdown use-after-free races by controlling the
destruction order. It also is a prerequisite to making the internal
interfaces mockable for unit testing.
2018-10-31 20:22:58 -07:00
Thad House
1dec0393a1
Fix static deletion race condition in DS thread ( #1396 )
...
The static condition variable was getting destroyed before the DS thread exited,
resulting in a deadlock on program exit when the DS thread tried to notify it.
This change moves the condition variable into the DS thread to avoid the race.
2018-10-30 11:51:17 -07:00
Peter Johnson
d03b020326
wpiutil: Add WorkerThread ( #1302 )
...
This provides a worker thread that can execute a work function with the result
going into either a future or a uv::Loop functor.
2018-10-29 20:54:42 -07:00
Austin Shalit
71e29b1d91
Remove unused import from rumble example ( #1395 )
...
This fixes a nit in #1394 .
2018-10-29 20:54:15 -07:00
Thad House
f0b0965f9b
Remove large HAL headers from wpilibc headers ( #1386 )
...
Now only includes the types in the wpilib headers.
Should immensely clean up intellisense.
Closes #1383
2018-10-29 12:49:17 -07:00
Austin Shalit
f774e47c80
Add an example showing how to use a hid rumbler ( #1394 )
2018-10-29 12:37:30 -07:00
Nicolas Machado
761933a164
Refactor Java Ultrasonic to use a List container ( #1389 )
2018-10-29 01:15:32 -07:00
Tyler Veness
99e0f08a6f
Move applicable integration tests to native build as unit tests ( #1364 )
2018-10-29 00:12:38 -07:00
Tyler Veness
e89d5eb692
Fix stringop truncation warning from GCC 8.2 ( #1393 )
...
The next line adds a null terminator, but it's cleaner to just do a
std::memcpy() since the code already assumes a null terminator exists in
the source string.
2018-10-29 00:09:53 -07:00
Austin Shalit
2501e11886
Enable HTML5 javadocs ( #1267 )
...
This suppresses a build warning about HTML 4.01 being used.
2018-10-29 00:08:21 -07:00
Thad House
9174f23f36
Remove some usages of windows.h ( #1370 )
...
For HAL and wpilib, we don't need them, especially where they were being used.
2018-10-28 22:33:55 -07:00
Redrield
9f6544fa87
Allow binding commands to POV ( #1378 )
2018-10-28 21:54:06 -07:00
Peter Johnson
9a1af132bf
Unify GetHostname() and use libuv implementation ( #1391 )
2018-10-28 19:01:48 -07:00
Thad House
a8aacd3657
Update build setup for raspbian and debug binaries ( #1384 )
...
- Build both debug and release binaries
- Append "d" to debug libraries in the style of opencv
- Split shared and static classifiers
- Add raspbian support
2018-10-27 00:19:38 -07:00
Peter Johnson
8ff81f5a2a
cscore: Separate platform-specific sources ( #1387 )
2018-10-23 22:59:47 -07:00
Liam Kinne
349e273ecc
AnalogGyro: add "calibrating for n seconds" message ( #1380 )
2018-10-23 00:29:23 -07:00
Tyler Veness
0a2ab4f0d7
Revert change in behavior in HeldButtonScheduler ( #1381 )
...
Originally, the command was restarted every time the scheduler was
executed if the button was pressed. #1340 changed this behavior in a
breaking manner.
2018-10-20 21:25:37 -07:00
Peter Johnson
7c1a7332e1
uv::Async, uv::AsyncFunction: allow calling from within loop
v2019.1.1-beta-1
2018-10-16 09:40:59 -07:00