Initial stab at the new WPILib.
Change-Id: Id04cc07649959566deb5b4fa637267072a5191ca
diff --git a/y2014/wpilib_interface.cc b/y2014/wpilib_interface.cc
index a130544..d5f7e5e 100644
--- a/y2014/wpilib_interface.cc
+++ b/y2014/wpilib_interface.cc
@@ -252,12 +252,6 @@
::aos::SetCurrentThreadName("SensorReader");
my_pid_ = getpid();
- ds_ =
-#ifdef WPILIB2015
- DriverStation::GetInstance();
-#else
- &DriverStation::GetInstance();
-#endif
top_reader_.Start();
bottom_reader_.Start();
@@ -282,7 +276,7 @@
}
void RunIteration() {
- ::frc971::wpilib::SendRobotState(my_pid_, ds_);
+ ::frc971::wpilib::SendRobotState(my_pid_);
const auto &values = constants::GetValues();
@@ -441,7 +435,6 @@
}
int32_t my_pid_;
- DriverStation *ds_;
::std::unique_ptr<::frc971::wpilib::DMASynchronizer> dma_synchronizer_;