Make TalonSRX work in pheonix.
Don't do the WPILib wrapper, just the lower layer.
Change-Id: I41bf7370e3a13cec3367b47a76f157182f796fbb
diff --git a/third_party/Phoenix-frc-lib/BUILD b/third_party/Phoenix-frc-lib/BUILD
index d735d52..f7c27c2 100644
--- a/third_party/Phoenix-frc-lib/BUILD
+++ b/third_party/Phoenix-frc-lib/BUILD
@@ -21,7 +21,8 @@
"**/Tasking/**",
"cpp/src/RCRadio3Ch.cpp",
"cpp/src/CompileTest.cpp",
- "**/MotorControl/**",
+ "cpp/src/MotorControl/CAN/WPI_TalonSRX.cpp",
+ "cpp/src/MotorControl/CAN/WPI_VictorSPX.cpp",
"**/Sensors/**",
],
),
@@ -32,7 +33,6 @@
],
exclude = [
"**/Tasking/**",
- "**/MotorControl/**",
"**/Sensors/**",
"cpp/include/ctre/phoenix/RCRadio3Ch.h",
],
diff --git a/third_party/Phoenix-frc-lib/cpp/include/ctre/phoenix/MotorControl/CAN/BaseMotorController.h b/third_party/Phoenix-frc-lib/cpp/include/ctre/phoenix/MotorControl/CAN/BaseMotorController.h
index 6378f6f..ca95aa9 100644
--- a/third_party/Phoenix-frc-lib/cpp/include/ctre/phoenix/MotorControl/CAN/BaseMotorController.h
+++ b/third_party/Phoenix-frc-lib/cpp/include/ctre/phoenix/MotorControl/CAN/BaseMotorController.h
@@ -13,7 +13,7 @@
#include "ctre/phoenix/Motion/TrajectoryPoint.h"
#include "ctre/phoenix/Motion/MotionProfileStatus.h"
/* WPILIB */
-#include "SpeedController.h"
+//#include "SpeedController.h"
/* forward proto's */
namespace ctre {
diff --git a/third_party/Phoenix-frc-lib/cpp/include/ctre/phoenix/MotorControl/IMotorController.h b/third_party/Phoenix-frc-lib/cpp/include/ctre/phoenix/MotorControl/IMotorController.h
index 947022e..481ec4d 100644
--- a/third_party/Phoenix-frc-lib/cpp/include/ctre/phoenix/MotorControl/IMotorController.h
+++ b/third_party/Phoenix-frc-lib/cpp/include/ctre/phoenix/MotorControl/IMotorController.h
@@ -17,7 +17,7 @@
#include "ctre/phoenix/ErrorCode.h"
#include "IFollower.h"
/* WPILIB */
-#include "SpeedController.h"
+//#include "SpeedController.h"
namespace ctre {
namespace phoenix {