Austin Shalit
c45fb73f36
Convert for loops to foreach loops ( #592 )
2017-08-24 00:00:55 -05:00
sciencewhiz
848280d1f1
Improve C++ Compressor documentation based on Java's docs. ( #607 )
2017-08-23 23:58:21 -05:00
Peter Johnson
f7016b359f
HALUtil: Update to new GetJavaStackTrace function.
2017-08-22 23:09:28 -05:00
Peter Johnson
be58a279a5
Cross-platform JNI sometimes has jlong != int64.
2017-08-22 23:09:28 -05:00
Peter Johnson
909e6c4857
Error.cpp: Use llvm path function instead of OS basename.
...
This fixes an issue with the mac build.
2017-08-21 17:20:43 -05:00
Peter Johnson
5c0b08f4f5
Turn off -Wunused-const-variable on Mac.
2017-08-21 17:20:43 -05:00
Peter Johnson
05d1cfa276
Add "override" qualifier to several headers.
...
clang on Mac generates warnings for these.
2017-08-21 17:20:43 -05:00
Peter Johnson
ae675ae4e1
DriverStation: Work around missing pthread_local on Mac.
2017-08-21 17:20:43 -05:00
Peter Johnson
d3b636d073
fpga_clock: Don't use constexpr for time_points.
...
These are not constexpr on some compilers.
2017-08-21 17:20:43 -05:00
Peter Johnson
8b460f5944
sim DriverStation: Fix missing includes.
2017-08-21 17:20:43 -05:00
Tyler Veness
bdfa32876b
Fixed Gradle test task name ( #617 )
2017-08-21 17:15:38 -05:00
Tyler Veness
4a3472ebb2
Removed unused include in PIDCommand.cpp ( #616 )
2017-08-20 17:09:13 -07:00
Thad House
9c804c1351
Fixes builds with skipAthena and onlyAthena, and mac builds ( #613 )
...
Did these in cscore and the other repos, but forgot about some of the
oddities jenkins has.
2017-08-19 22:15:52 -07:00
Tyler Veness
2a9c454baa
Cleaned up and updated .styleguide for new build system file locations and ran wpiformat ( #612 )
2017-08-19 22:14:34 -07:00
Thad House
1a9a6c3678
Fixes HalSimStaticDeps config and publishing ( #610 )
2017-08-19 11:32:49 -07:00
Thad House
e1195e8b9d
Update to 2018_v4 image and new build system. ( #598 )
...
* Revert "Force OpenCV to 3.1.0 (#602 )"
This reverts commit 50ed55e8e2 .
* Removes Simulation
* Removes old build system
* Removes old gtest
* Adds new gmock and gtest
* Updates to new ni-libraries
* removes MyRobot (to be replaced)
* moves files to new location
* Adds new sim backend and new test executables
* updates .styleguide and .gitignore
* Changes cpp WPILibVersion to a function
MSVC throws an AV with the old version.
* Disables USBCamera on all systems except for linux
* 2018 NI Libraries
* New build system
2017-08-18 21:35:53 -07:00
Thad House
50ed55e8e2
Force OpenCV to 3.1.0 ( #602 )
...
Will break otherwise when I push a new version
2017-08-13 21:41:45 -07:00
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
5d3af62c0e
Remove use of std::chrono_literals (C++14 feature). ( #574 )
2017-08-04 20:44:33 -05: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
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
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
Tyler Veness
9d93820717
Replaced STL streams with LLVM's raw_ostream ( #344 )
...
std::cout and std::printf were replaced with llvm::outs() and std::cerr was replaced with llvm::errs().
2017-06-30 19:33:43 -07:00
Thad House
c57a7f0a41
Switches all notifiers created with the external API to be threaded ( #546 )
...
Testing showed this wasn't an issue with timing, and allows for more
safety in user code making mistakes. Places where the extra thread
wouldn't help have been kept non threaded, using a new internal API.
2017-06-30 18:58:58 -07:00
Thad House
1d15fcd072
Prints error when HAL_GetFPGATime call fails in fpga_clock. ( #558 )
2017-06-30 18:46:50 -07:00
Thad House
e824b1129e
Adds way to reset and version all HAL handles ( #545 )
...
Useful in the sim to force a full reset. On roboRIO, the information is
still created and added, but is not checked because of speed
considerations.
2017-06-30 16:28:28 -07:00
Tyler Veness
0cd03c66e3
Remove deprecated Task class ( #550 )
2017-06-30 16:12:19 -07:00
Thad House
462b231dac
Adds function to HAL to free malloc'd joystick name ( #543 )
...
No safe way to do this with interop, so a function is needed.
2017-06-30 16:11:16 -07:00