Added ahal
This is a formatted copy of WPILib's default user-visible C++ API, with
a bit of completely unnecessary functionality stripped out. Most of the
stripping so far is only related to weird threading decisions.
Change-Id: Icbfd949b48cd115561862cb909bcc572aba0e753
diff --git a/third_party/Phoenix-frc-lib/BUILD b/third_party/Phoenix-frc-lib/BUILD
index 7a1934a..4686b68 100644
--- a/third_party/Phoenix-frc-lib/BUILD
+++ b/third_party/Phoenix-frc-lib/BUILD
@@ -1,6 +1,7 @@
# It also restricts use to only with CTRE products and a roboRIO in FRC.
licenses(["permissive"])
+# Excludes motor/sensor code because those have reliances on WPILib.
cc_library(
name = "phoenix",
srcs = glob(
@@ -12,6 +13,8 @@
"**/Tasking/**",
"cpp/src/RCRadio3Ch.cpp",
"cpp/src/CompileTest.cpp",
+ "**/MotorControl/**",
+ "**/Sensors/**",
],
) + [
"libraries/driver/lib/libCTRE_PhoenixCCI.a",
@@ -23,6 +26,8 @@
],
exclude = [
"**/Tasking/**",
+ "**/MotorControl/**",
+ "**/Sensors/**",
"cpp/include/ctre/phoenix/RCRadio3Ch.h",
],
),