Update WPILib, roborio compilers, and CTRE Phoenix libraries
This borrows heavily from work that Ravago did to initially get this
stuff working.
Tested rudimentary functionality on a test bench, ensured that we could:
* Enable the robot.
* Read joystick and button values.
* Switch between auto and teleop modes.
* Read sensor values (encoder, absolute encoder, potentiometer).
* Read PDP values.
* Drive PWM motors.
* Drive CANivore motors.
Non-WPILib changes are made to accommodate the upgrade roborio
compiler's improved pickiness.
Merge commit '125aac16d9bf03c833ffa18de2f113a33758a4b8' into HEAD
Change-Id: I8648956fb7517b2d784bf58e0a236742af7a306a
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/third_party/BUILD b/third_party/BUILD
index a550a24..145a7b3 100644
--- a/third_party/BUILD
+++ b/third_party/BUILD
@@ -35,6 +35,24 @@
"@ctre_phoenix_api_cpp_headers//:api-cpp",
"@ctre_phoenix_cci_athena//:cci",
"@ctre_phoenix_cci_headers//:cci",
+ "@ctre_phoenixpro_tools_athena//:tools",
+ "@ctre_phoenixpro_tools_headers//:tools",
+ ],
+)
+
+cc_library(
+ name = "phoenixpro",
+ linkopts = [
+ "-Wl,-rpath",
+ "-Wl,.",
+ ],
+ target_compatible_with = ["//tools/platforms/hardware:roborio"],
+ visibility = ["//visibility:public"],
+ deps = [
+ "@ctre_phoenixpro_api_cpp_athena//:api-cpp",
+ "@ctre_phoenixpro_api_cpp_headers//:api-cpp",
+ "@ctre_phoenixpro_tools_athena//:tools",
+ "@ctre_phoenixpro_tools_headers//:tools",
],
)