Switched from DigitalSource to DigitalInput.
The new WPILib (2016) doesn't define Get on DigitalSource.
Change-Id: Iebff24e6a92ef9879e8908fcd56ec0350a05025e
diff --git a/frc971/wpilib/interrupt_edge_counting.h b/frc971/wpilib/interrupt_edge_counting.h
index f0b5e32..987e01d 100644
--- a/frc971/wpilib/interrupt_edge_counting.h
+++ b/frc971/wpilib/interrupt_edge_counting.h
@@ -9,7 +9,7 @@
#include "aos/common/stl_mutex.h"
#include "aos/common/macros.h"
-#include "DigitalSource.h"
+#include "DigitalInput.h"
#include "Encoder.h"
#include "AnalogInput.h"
#include "Utility.h"
@@ -109,7 +109,7 @@
// input.
class EdgeCounter : public InterruptHandler {
public:
- EdgeCounter(Encoder *encoder, DigitalSource *input)
+ EdgeCounter(Encoder *encoder, DigitalInput *input)
: encoder_(encoder), input_(input) {}
// Returns the current interrupt edge counts and encoder values.
@@ -140,7 +140,7 @@
void operator()() override;
Encoder *encoder_;
- DigitalSource *input_;
+ DigitalInput *input_;
// The following variables represent the current "shadow" state.
bool current_value_ = false;