Tyler Veness
d682295ccd
Miscellaneous cleanups for HAL, wpilibc, and wpilibj JNI ( #589 )
...
* Static functions in the HAL implementation were placed in the hal namespace
* "using namespace" declarations in HAL/cpp/Log.h and Timer.cpp were replaced
with "using" declarations for std::chrono
* An extra include was removed from AnalogGyro.cpp
* InterruptableSensorBase's constructor was defaulted
* Newlines were added to some wpilibc integration tests for grouping
* A variable in HALUtil.h was renamed to follow the style guide
Supersedes #586
2017-08-07 17:36:34 -07:00
Austin Shalit
5e19c1881f
Use diamond operator
2017-08-07 17:31:16 -07:00
Austin Shalit
617ff52f18
Use generics
2017-08-07 17:31:16 -07:00
Peter Johnson
7e011bda6f
Add HTTP utilities. ( #7 )
...
Imported from cscore.
2017-08-06 23:28:21 -07:00
Peter Johnson
8418c39120
Add Path and Twine components from LLVM. ( #10 )
2017-08-06 23:26:42 -07:00
Peter Johnson
5d3af62c0e
Remove use of std::chrono_literals (C++14 feature). ( #574 )
2017-08-04 20:44:33 -05:00
Peter Johnson
4b8ef57a99
Remove networktables2.type Java custom container types. ( #214 )
2017-08-04 20:24:36 -05:00
Peter Johnson
d910b0b2a2
Remove deprecated throwing get functions. ( #213 )
2017-08-04 14:02:28 -05:00
Thad House
80c8de7d69
Add dependency to jni task to fix 32 bit builds ( #216 )
...
Fixes #212
Also forces appveyor to test both 32 and 64 bit correctly.
assemble was removed because it would inadvertently cause a 3rd build.
2017-08-04 13:46:58 -05:00
Peter Johnson
7f776deae2
Fix ntcoreExe build model. ( #215 )
2017-08-04 13:35:23 -05:00
Peter Johnson
8209ba8a00
Move NetworkTable into nt namespace, with a shim. ( #211 )
...
Defining NAMESPACED_NT will disable the shim.
2017-08-04 10:32:33 -05:00
Peter Johnson
25c8e873d0
TCPConnector: Add method to connect to server in parallel. ( #6 )
...
This substantially speeds up connection times compared to sequentially
trying to connect to each server in round-robin fashion.
2017-08-03 16:45:42 -05:00
Thad House
e24db75f08
Build updates to newest version of plugins and gradle, along with config file ( #13 )
2017-08-03 16:24:02 -05:00
Thad House
5df7463663
Remove wpiutil and update to the new build system ( #210 )
2017-08-03 16:14:40 -05:00
Thad House
eb7331f2ab
Actually makes the right classifier
2017-08-02 19:47:32 -07:00
Thad House
03bd0820cc
Adds a java classifier whenever jenkins is building ( #12 )
...
Makes the jar much easier to find when attempting to combine.
2017-08-02 19:33:26 -07:00
Thad House
63768166ea
Updates to plugin 1.2 ( #9 )
...
1.1 was a bad publish
2017-08-02 13:17:34 -07:00
Thad House
bd899a7a7c
Fixes mac RuntimeDetector ( #11 )
2017-08-02 13:17:26 -07:00
Austin Shalit
ddd5aeba19
Checkstyle 8.1 ( #584 )
...
Added a few checks too:
- SimplifyBooleanExpression
- SimplifyBooleanReturn
- StringLiteralEquality
- UnnecessaryParentheses
2017-07-28 22:24:05 -07:00
Peter Johnson
301442ee43
Add json support to wpiutil.
...
This is a modified version of https://github.com/nlohmann/json .
It's been moved into the wpi namespace as many of the changes are not
compatible. The amount of template code has been significantly reduced,
enabling many functions to be moved out-of-line, and for the result to
build on older compiler versions (in particular GCC 4.8).
2017-07-28 21:55:03 -07:00
Peter Johnson
de9dd1180b
Include src/main/native/cpp when building test.
2017-07-28 21:55:03 -07:00
Peter Johnson
436ed4d1e3
Implement comparison operators for llvm::StringMap.
2017-07-28 21:55:03 -07:00
Peter Johnson
88aa273e55
license.txt: Add LLVM license.
2017-07-28 18:09:14 -07:00
Peter Johnson
d11d8409a8
license.txt: Remove leading asterisks
2017-07-28 18:09:14 -07:00
Peter Johnson
9385d1b6d8
GetJavaStackTrace: Provide llvm::StringRef excludeFuncPrefix. ( #3 )
...
This is a bit cleaner to use than the templated version (many compilers
have issues with templating on static strings, for example).
2017-07-28 18:08:54 -07:00
Peter Johnson
b90653f3e3
Logger: Add def_func and min_level constructors. ( #2 )
2017-07-28 18:08:31 -07:00
Thad House
1243cf04ea
Adds new build system to repo ( #1 )
2017-07-28 07:29:49 -07:00
Peter Johnson
3cfcbe9a95
Remove Scheduler.java from the sim path. ( #564 )
...
This is an old version and is duplicative of the shared Scheduler.java.
2017-07-27 00:41:56 -07:00
Thad House
4f5b5b1377
Adds gmock files
2017-07-27 00:04:00 -07:00
Tyler Veness
6bc793505d
Suppress MultipleTopLevelClasses warning ( #581 )
2017-07-26 23:15:00 -07:00
Austin Shalit
3b44160cff
Rearrange some method calls so methods fail faster ( #583 )
2017-07-26 23:14:35 -07:00
Thad House
d9586c8d38
Fixes JNI aliasing issues involving ControlWord and AllianceStation ( #575 )
2017-07-26 20:59:40 -07:00
Austin Shalit
74df3fac4e
Require non null ( #580 )
...
* Replace null checks with Objects.requireNonNull()
* Use PMD rule instead of checkstyle rule
2017-07-18 20:32:08 -07:00
Austin Shalit
06321b8e87
Fix encoder sourceA null check ( #579 )
2017-07-18 19:34:45 -07:00
Thad House
f3efb948fe
Switches CANJNI to use byte[] rather then ByteBuffer, and throws exceptions for invalid platforms ( #571 )
...
Fixes #567
2017-07-10 20:33:34 -07:00
Tyler Veness
432c03bf63
Updated Gradle to 4.0.1 ( #573 )
...
New PMD checks required modifying PIDController
2017-07-10 20:31:20 -07:00
Austin Shalit
bfd224278b
Fix Java MyRobot linting ( #572 )
2017-07-10 20:29:52 -07:00
Tyler Veness
822ea6abc8
Made SpeedController class organization consistent between languages ( #568 )
2017-07-09 19:43:56 -07:00
Tyler Veness
97437ee58b
Miscellaneous formatting and style fixes for integration tests ( #570 )
...
Added newline before comment block and replaced angle brackets around includes
with quotation marks. All other integration tests use quotation marks for WPILib
includes.
2017-07-09 19:27:43 -07:00
Thad House
aa7fe0db29
Fixes unused buffer warning on platforms other then athena ( #566 )
2017-07-09 08:59:26 -07:00
Thad House
237685d4a5
Fixes static initialization of HAL handles ( #565 )
2017-07-08 22:04:01 -07:00
Thad House
abbe630274
Gets WPILib building on windows and C++11 vs C++1y ( #561 )
2017-07-08 14:17:21 -07:00
Tyler Veness
89d3b08e77
Added TimedRobot ( #520 )
2017-07-08 07:50:56 -07:00
Thad House
f826216a28
Gets JNI compiling on all platforms ( #563 )
2017-07-08 07:48:27 -07:00
Austin Shalit
aa0a874ad0
Add periodic method to subsystems ( #528 )
...
Fixes #526 .
2017-07-02 23:02:41 -07:00
Thad House
2da26c0579
Make HAL_Initialize timeout configurable, makes result a bool, and makes Java an exception rather than assert. ( #557 )
2017-07-01 00:43:06 -07:00
Tyler Veness
d34c844900
Fixed function ordering in robot base classes ( #553 )
2017-06-30 22:12:28 -07:00
Tyler Veness
68b63632c4
Removed functions that have been deprecated for at least one year ( #551 )
2017-06-30 22:05:33 -07:00
Chris Gregory
d2de94778e
Remove memory leak in ConditionalCommand ( #537 )
...
This also properly handles nullptrs passed into ConditionalCommand
instead of having Undefined Behavior or NullPointerExceptions.
2017-06-30 22:01:21 -07:00
Austin Shalit
4fd4a50d41
Update Preferences to not use deprecated APIs ( #555 )
2017-06-30 19:38:32 -07:00