Nicolas Machado
ff58c5156a
Change SmartDashboard type of PIDBase.cpp to match PIDBase.java ( #1470 )
2018-12-07 19:40:31 -08:00
Tyler Veness
6d4326a560
Rate-limit Watchdog timeout prints to 1Hz ( #1459 )
2018-12-07 19:39:02 -08:00
Sam Carlberg
97ba195b88
Fix LiveWindow attempting to start listeners on uninitialized sendables ( #1463 )
...
Additionally adds a defensive check in SendableBuilderImpl to avoid the NPE.
2018-12-07 19:38:22 -08:00
Thad House
3d546428ab
Add missing SubTableListener methods to C++ NetworkTable ( #1465 )
2018-12-06 23:27:49 -08:00
Dustin Spicuzza
b64dfacff3
DriverStation: fix error checking for GetXXXAxis and GetXXXPov ( #1469 )
...
Fixes #1436
2018-12-06 22:31:14 -08:00
Peter Johnson
dcbf02a1ec
Update auto SPI for timestamp changes ( #1457 )
...
The 2019 FPGA image switched the output of auto SPI from plain bytes to a
sequence of 32-bit words (timestamp, then words with the byte values in the
least significant byte of each word).
In addition to changing the HAL and simulators to reflect this, add piecewise
integration support to wpilibc/wpilibj SPI to take advantage of the timestamps
and use it in the ADXRS450 gyro.
2018-12-06 22:29:20 -08:00
Thad House
7e1ec28839
NI image 2019v9 ( #1467 )
2018-12-06 21:59:13 -08:00
Thad House
ef16317f8f
Update NativeUtils and Doxygen ( #1462 )
...
Adds debug stripping to executables.
Copies .debug and .pdb files to install directories to ease debugging.
Update to v0.5 of doxygen, which fixes the download location.
2018-12-05 00:27:18 -08:00
Tyler Veness
26e8e587f9
MotorSafety: Use Watchdog instead of DS class polling ( #1442 )
2018-12-01 01:34:52 -08:00
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