Update to the 2019 wpilib
Lots of gratuitious incompatibilities to deal with. Started sanifying a
few classes rather than figuring out how to update them too. Has not yet
been tested on a robot, but everything still builds so it should be
fine.
Also ported over our FPGA timestamp fixes, which were previously only in
allwpilib_2018.
Also upgraded to the new roborio compiler, which has to happen at the
same time due to incompatible pre-compiled libraries.
Change-Id: Ib9b6ad8fc0112d90a9855afe1b706588ef4ebde9
diff --git a/frc971/wpilib/ahal/DriverStation.h b/frc971/wpilib/ahal/DriverStation.h
index f1d0804..2fbac9c 100644
--- a/frc971/wpilib/ahal/DriverStation.h
+++ b/frc971/wpilib/ahal/DriverStation.h
@@ -13,9 +13,9 @@
#include <string>
#include <thread>
-#include "HAL/DriverStation.h"
+#include "hal/DriverStation.h"
#include "frc971/wpilib/ahal/SensorBase.h"
-#include "llvm/StringRef.h"
+#include "wpi/Twine.h"
namespace frc {
@@ -29,10 +29,10 @@
virtual ~DriverStation();
static DriverStation &GetInstance();
- static void ReportError(llvm::StringRef error);
- static void ReportWarning(llvm::StringRef error);
- static void ReportError(bool is_error, int code, llvm::StringRef error,
- llvm::StringRef location, llvm::StringRef stack);
+ static void ReportError(const wpi::Twine &error);
+ static void ReportWarning(const wpi::Twine &error);
+ static void ReportError(bool is_error, int code, const wpi::Twine &error,
+ const wpi::Twine &location, const wpi::Twine &stack);
static const int kJoystickPorts = 6;