-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for 2017 WPILib for Java #88
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Added to the `TalonSRX` interface and implementation support for several other feedback device options already supported by the `CANTalon`.
Corrected the build to download the 3rd party dependencies correctly, and now generated property files that describe those dependencies.
Travis-CI’s version of Ant is too old (1.8.2) to properly download all 3rd party archives, so we have to use the latest version of Ant (1.10.0) so that this works.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #83