Join GitHub today
Added support for 2017 WPILib for Java #88
Prepared for the next major release that will be named `2017.1.0` to better signify the FRC season and WPILib version that Strongback works with. Also, several APIs were deprecated in Strongback 1.2, and this commit removes most of those deprecated APIs and any use of them.
Upgrade to the 2017 version of WPILib for Java, which is currently only available to those in the Beta program but will be generally available on January 7, 2017. This version removes the `CANTalon` class and instead replaces it with a 3rd party library from Cross The Road Electronics (CTRE), who is now going to be responsible for that class. The CTRE library is also currently accessible only to those teams in the Beta program, so the build installs it from a local file during the `deps` Ant build target. This is specified in the `build.properties` file and will be changed once we have a public URL for the download.
Added the navX-MXP library as a 3rd party library automatically installed during the `ant deps` build target.
The CTRE and navX-MXP libraries are needed on the robot at runtime, and they are now included in the Strongback TAR and ZIP archive in the `strongback/java/lib` directory (next to the `strongback.jar` and `strongback-sources.jar` files). The Strongback CLI will need to be modified to copy these into the WPILib’s `user/lib/java` directory, though it should optionally not overwrite the non-Strongback files.
The Strongback and 3rd party libraries are installed (via the Strongback CLI) into the WPILib's `user/java/lib` directory and therefore are found, used, and deployed during the WPILib's standard Ant build process. However, WPILib's build does not support unit tests, so this file defines Ant targets related only for unit testing. Thus, a robot project that uses Strongback at runtime and has no tests need not use this Ant file.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments.