Remove potentiometer reading for the hood
Change-Id: Ia6b8650d30adf2212284bbf8d651bd04aafe98b0
diff --git a/frc971/wpilib/encoder_and_potentiometer.cc b/frc971/wpilib/encoder_and_potentiometer.cc
index 800c49b..1787c3f 100644
--- a/frc971/wpilib/encoder_and_potentiometer.cc
+++ b/frc971/wpilib/encoder_and_potentiometer.cc
@@ -6,7 +6,7 @@
namespace frc971 {
namespace wpilib {
-void DMAEncoderAndPotentiometer::UpdateFromSample(const DMASample &sample) {
+bool DMAEncoder::DoUpdateFromSample(const DMASample &sample) {
if (index_last_value_) {
// It was already true last time, so check if it's reset back to false yet.
index_last_value_ = sample.Get(index_.get());
@@ -15,8 +15,9 @@
index_last_value_ = true;
++index_posedge_count_;
last_encoder_value_ = sample.GetRaw(encoder_.get());
- last_potentiometer_voltage_ = sample.GetVoltage(potentiometer_.get());
+ return true;
}
+ return false;
}
void InterruptEncoderAndPotentiometer::Start() {