Dustin Spicuzza
0d0492bfcc
HAL: Add additional error messages to HAL_GetErrorMessage ( #965 )
2018-12-01 00:06:30 -08:00
Tyler Veness
3b33abfc7b
Make Watchdog use single thread dispatch ( #1347 )
...
Notifier has one thread per instance because the callbacks must be
asynchronous. Watchdog callbacks can be synchronous, so this overhead
can be done away with via a scheduler thread akin to what the HAL
Notifier does.
2018-12-01 00:05:33 -08:00
Peter Johnson
99033481e0
Add netconsoleTee
...
This is similar to netconsoleServer, but is designed to operate as a tee
in a pipeline (it reads console data from stdin).
2018-11-30 23:06:31 -08:00
Peter Johnson
b4901985b7
Add netconsoleServer
...
This is a updated version of netconsole-host that can serve either as a
new-style TCP riolog or output UDP to either localhost or broadcast.
2018-11-30 23:06:31 -08:00
Peter Johnson
97edb6c68f
wpiutil: uv::Buffer: Add Dup() function
2018-11-30 23:06:31 -08:00
Peter Johnson
73de3364b7
AxisCamera constructor: add StringRef overload ( #1458 )
...
This avoids a conversion ambiguity when StringRef is passed.
2018-11-30 22:35:56 -08:00
Thad House
5551981b3f
Upgrade to Gradle 5.0 ( #1444 )
...
Also skip raspbian for gazebo.
2018-11-29 23:17:06 -08:00
Jaci Brunning
90572a3cc5
Add wpilibc and wpilibj skeleton templates ( #1441 )
...
See also vscode-wpilib#132.
2018-11-29 22:15:17 -08:00
Thad House
c405188052
Fix directory iterators not working correctly ( #1454 )
...
The size of the directory_entry was different between translation units.
This was caused by the FILE_OFFSET_BITS macro when building wpiutil.
Removing that fixes the issue.
Should fix NavX USB issues.
2018-11-29 00:24:10 -08:00
Thad House
bea0565ac9
Update to OpenCV 3.4.4 ( #1452 )
2018-11-28 12:26:56 -08:00
Peter Johnson
0b03454366
wpiutil: Replace LLVM Optional with C++17-compatible optional
...
Imported from https://github.com/akrzemi1/Optional with minor changes:
- Compiler conditional simplifications (we only use recent versions)
- Move from std::experimental to wpi namespace
- Change tests to integrate with Google Test
Update LLVM use cases.
2018-11-28 12:23:56 -08:00
Peter Johnson
489701cacc
wpiutil: Rename Optional.h to LLVMOptional.h
2018-11-28 12:23:56 -08:00
Tyler
a769d56ec1
Create C++ ShuffleBoard example ( #1438 )
2018-11-28 12:13:38 -08:00
Sam Carlberg
6f0c185a05
Add methods to change the selected tab in the Shuffleboard app ( #1448 )
2018-11-27 22:12:50 -08:00
Sam Carlberg
a60f312d19
Add eager null checks in drive base classes ( #1447 )
...
All null motors will be specified in the error messages.
2018-11-27 18:11:56 -08:00
Tyler Veness
acb786a791
Remove MotorSafetyHelper, create MotorSafety base class instead ( #562 )
...
Most of the MotorSafety implementation was moved into the MotorSafety base
class. SafePWM's inheritance of MotorSafety was moved into PWM to
eliminate Java needing a helper class.
In Java, a helper class for Sendable (SendableImpl) was added due to
lack of multiple inheritance.
2018-11-22 21:15:26 -08:00
Peter Johnson
df347e3d80
wpiutil: uv::Process: Revamp args/options approach ( #1434 )
2018-11-19 19:54:54 -08:00
Peter Johnson
e4aa45f34b
wpiutil: WebSocket: Fix Sec-Websocket-Accept computation
...
It needs to use the raw SHA1 bytes, not the hex-decoded text.
2018-11-19 19:24:28 -08:00
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