Skip to content
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 11 commits into from Jan 7, 2017

Conversation

@rhauch
Copy link
Member

rhauch commented Jan 3, 2017

Fixes #83

rhauch added 7 commits Jan 2, 2017
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.
@rhauch rhauch force-pushed the rhauch:2017-beta branch from 3701dcf to 3a2c99f Jan 3, 2017
rhauch added 2 commits Jan 6, 2017
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.
@rhauch rhauch force-pushed the rhauch:2017-beta branch from 196fc1c to 89582b6 Jan 6, 2017
rhauch added 2 commits Jan 7, 2017
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.
@rhauch rhauch merged commit 024afee into strongback:master Jan 7, 2017
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.