Thad House
bc6f1e2469
Windows compiler options improvements ( #1709 )
...
- Use generators to set options only during build
- Add ZcThrowingNew
- Disable 4996
Fixes #1699
2019-06-10 20:09:39 -07:00
Thad House
bb48ae391e
cmake: Move example programs into folders ( #1654 )
...
This looks cleaner in VS.
2019-06-10 20:04:34 -07:00
Thad House
221011494d
Update for C++17 and fix MSVC warnings ( #1694 )
...
* Update MSVC arguments
* Fix json allocator
* Fix simulation diamond
* Bump gtest
* Remove empty varargs in unit tests
* Replace test case with test suite
* Remove deprecation warning in optional
* Remove need for NOMIXMAX to be defined in wpilib headers
2019-05-31 15:43:32 -05:00
Thad House
fb1239a2ad
Add raw sources and sinks to cscore ( #1670 )
...
In some cases, we don't want the cv requirement to get an image, for instance interop with other versions of opencv
This enables getting a raw image, and handling conversions from the user side.
2019-05-30 21:12:05 -05:00
Thad House
7de9477347
Add lambda overloads for interrupts ( #1636 )
2019-05-30 19:59:35 -05:00
Thad House
90957aeea4
Move libuv to its own subfolder in build ( #1661 )
...
Allows using system libuv
* Fix Gradle Build and include dirs
* Update cmake find to support vcpkg libuv
2019-05-30 15:59:26 -07:00
Thad House
47aae502a7
Styleguide fixes ( #1702 )
2019-05-30 12:36:36 -07:00
pgfisico
0bff98b5ec
Correct DifferentialDrive::ArcadeDrive param docs ( #1698 )
2019-05-30 11:05:42 -07:00
Sam Carlberg
b52e40b80c
Allow widgets to be added by passing value suppliers ( #1690 )
2019-05-30 09:45:23 -07:00
Sam Carlberg
4a00cd77bb
Add usage reporting for the Shuffleboard API ( #1685 )
2019-05-30 09:36:49 -07:00
Thad House
e25e515f2e
Publish artifacts on azure ( #1678 )
2019-05-25 06:18:49 -07:00
Thad House
322ef9b967
Force Java 11, fix javadoc generation ( #1695 )
2019-05-19 16:59:44 -07:00
Tyler Veness
d42ef5df02
Fix Watchdog print formatting ( #1693 )
2019-05-19 12:24:40 -07:00
Tyler Veness
f432f65bef
Update copyright year in license to 2019 ( #1524 )
...
Also update clang-format to 6.0.
2019-05-17 17:35:09 -07:00
Thad House
1726b77ac5
wpiutil: uv: Remove copy from SimpleBufferPool ( #1680 )
2019-05-07 20:55:58 -07:00
Thad House
620bec9cae
wpiutil: uv: Add LoopClosing status to Handle ( #1647 )
...
Useful for EventLoopRunner to know if a stop is requested, or close is happening for another reason.
2019-05-05 17:38:56 -07:00
Thad House
7cd6e2e7fa
UsbCamera: Solve race in windows initialization ( #1638 )
...
Create message pump during UsbCameraImpl creation.
2019-05-05 16:29:47 -07:00
Thad House
7732836bd5
Completely disable watchdog tests on mac ( #1679 )
...
They’re just not reliable.
2019-05-05 15:51:14 -07:00
Thad House
698edfda9d
Remove framework load, disable mac timeout test ( #1676 )
...
* Remove system includes from all mac builds
* Disable java watchdog on mac
2019-05-05 13:16:47 -07:00
sciencewhiz
1c454b000f
Add Shuffleboard calls to IterativeRobotBase in C++ ( #1607 )
...
Additionally, add epochs for Shuffleboard, LiveWindow, and
Smartdashboard updates.
2019-04-27 22:23:21 -07:00
David Vo
f42905b32e
Include missing headers in HAL.h ( #1660 )
...
* Include CANAPI.h and Encoder.h in HAL.h
* Include Threads.h in HAL.h
* Make Threads.h C compatible
Also changes the #define to a typedef.
2019-04-27 21:52:54 -07:00
Thad House
bdc822fad8
Only generate passthrough URLs for RoboRIO ( #1624 )
...
Otherwise accidentally, a race could occur between coprocessors and rio.
Java was done in both old and new locations as it's a race.
2019-04-27 20:35:23 -07:00
Tyler Veness
d3affb16bc
Make failure of HAL_GetFPGATime() more descriptive ( #1633 )
2019-04-27 20:34:14 -07:00
Peter Johnson
2de3bf7f58
Update LLVM from stable upstream ( #1653 )
...
Replace CheckedMalloc with upstream safe_malloc.
2019-04-27 20:33:08 -07:00
Austin Shalit
3cf4f38f5d
Fix build on macos10.14.4 ( #1648 )
2019-04-27 20:25:27 -07:00
Thad House
4e0c10f488
Fix CAN Clean using wrong ID ( #1668 )
2019-04-27 20:24:40 -07:00
Thad House
3b06313243
Fix Gray to BGR conversion in CameraServer ( #1665 )
2019-04-27 20:17:17 -07:00
Thad House
6cd1c73efe
Fix GUID comparison creating weird symbol ( #1659 )
2019-04-27 20:16:52 -07:00
Austin Shalit
063bbab6f5
MavenArtifacts.md: update links to HTTPS ( #1674 )
2019-04-27 20:16:04 -07:00
sciencewhiz
aab4c494d6
Fix type in build.gradle ( #1604 )
2019-03-10 18:40:16 -07:00
Peter Johnson
bf46af2600
Disable extraneous data warnings in libjpeg ( #1630 )
...
These are common with USB cameras.
2019-03-10 18:39:07 -07:00
Thad House
655763a9a7
Limit length of message sent to DS SendError call ( #1618 )
...
If total length is over 65536, the packet will get thrown out.
This can be a problem in stack overflow cases (e.g. infinite recursion).
2019-03-03 15:43:04 -08:00
Tyler Veness
a095ec2d8f
Fix linker errors with free functions in Threads.h ( #1625 )
...
The functions in Threads.h are in the frc namespace. `using namespace frc;` in
Threads.cpp doesn't put their implementations in the frc namespace, so linker
errors occur when attempting to use them in robot programs.
To fix this, one can either wrap them in a namespace block or prepend
`frc::` to the implementation's signature. Based on past discussion, I
opted for the namespace block.
2019-03-03 15:39:59 -08:00
Thad House
12ab035aad
Fix receive side of LabVIEW USB streams ( #1621 )
...
LabView only accepts %20 instead of + for parameters, only sends '\n' at the boundaries,
and includes the -- when sending the initial boundary. This solves those parts.
This is not fully enough to fix shuffleboard and others, as the NT format for paths is not the correct path.
2019-03-03 11:20:43 -08:00
Thad House
99e4f7dd2c
Fix SPI CS1 not working correctly ( #1614 )
...
It was failing the check when remapping digital sources
v2019.4.1
2019-02-25 18:48:22 -08:00
Peter Johnson
60c2f59051
C++ CameraServer: initialize default Usb camera device number ( #1601 )
...
Otherwise just plain StartAutomaticCapture() starts with random number.
v2019.3.1
v2019.3.2
2019-02-14 22:39:40 -08:00
Peter Johnson
d55ca191b8
CameraServer: Add switched camera support ( #1600 )
...
This adds a new function "addSwitchedCamera" that creates and publishes a
virtual camera where the published stream information is consistent even if
the mjpeg server source is switched to a different camera.
Previously, changing the source of the mjpeg server resulted in updating the
stream information published for that source.
2019-02-14 22:05:40 -08:00
Sam Carlberg
e8b24717c7
C++ Shuffleboard fixes ( #1595 )
...
* Fix C++ ShuffleboardComponent template type
* Fix `WithWidget(WidgetType&)`not being properly capitalized
* Fix data members across dll boundaries by using enum for built in types
2019-02-14 20:44:30 -08:00
Tyler Veness
182758c05b
Fix Ultrasonic sensor runner thread ( #1598 )
...
When there is more than one ultrasonic sensor, only the last sensor
instantiated would work due to incorrect array index management. This
replaces the previous approach with range-based for loops like the C++
implementation.
Supersedes #1589 .
2019-02-14 20:25:56 -08:00
Peter Johnson
74f7ba04b0
Java PIDBase: Make setPIDSourceType and getPIDSourceType public ( #1599 )
...
Fixes #1596 .
2019-02-13 23:41:05 -08:00
Thad House
997d4fdf47
Update HAL GetStackTrace to properly report user errors ( #1594 )
...
With the move of the HAL, the old value no longer worked, as the JNI call is in a different namespace
2019-02-11 20:17:31 -08:00
Thad House
76d9e26633
uv: Add reuse to pipe ( #1577 )
...
Needed for a reconnection API
2019-02-09 00:09:22 -08:00
Thad House
a230c814cb
Add support for WPILib vscode extension for allwpilib C++ intellisense ( #1590 )
2019-02-09 00:07:48 -08:00
Thad House
12cb77cd7c
Fix DS Comm button tests ( #1591 )
...
Mac requires the double braces
2019-02-09 00:07:24 -08:00
Thad House
8a9822a96b
Allow multiple instances of the same PDP ( #1582 )
...
Previously multiple instances would overrun with each other. This make all instances get the same HAL handle.
2019-02-06 22:51:34 -08:00
Thad House
a9371a7586
Fix missing exposure property on windows USB cameras ( #1571 )
2019-02-06 22:49:55 -08:00
Peter Johnson
6992f5421f
cscore: Avoid crash if invalid (null) source set in MjpegServer ( #1585 )
...
Fixes robotpy/robotpy-cscore#60
2019-02-03 00:22:07 -08:00
Tyler Veness
43696956d2
Fix Watchdog incorrectly resetting expiration flag upon disable ( #1580 )
...
Resetting the flag should only occur in Enable() and Reset().
IterativeRobotBase needs the flag to remain set to print epochs after
disabling the Watchdog.
2019-02-02 00:22:07 -08:00
Thad House
ae3fd5adac
Fix docs search having unspecified module directory ( #1568 )
...
Also add Doxygen comment for C++ filesystem API.
2019-02-02 00:20:57 -08:00
Jaci Brunning
404666b298
Fix Halsim DS Button Format ( #1583 )
2019-02-01 23:23:04 -08:00