Rename PotAndAbsEncoder to be more consistent
$ git sed 's/AbsoluteEstimatorState/PotAndAbsoluteEncoderEstimatorState/'
$ git sed 's/PotAndAbsEncoderZeroingEstimator/PotAndAbsoluteEncoderZeroingEstimator/'
It's a bit all over the place in terms of naming and doesn't leave much
space to name something which is just an absolute encoder.
Change-Id: Iecbee91191bd9cc16eb08fd24b91335ef772beec
diff --git a/frc971/zeroing/zeroing_test.cc b/frc971/zeroing/zeroing_test.cc
index 7948bf4..2a35764 100644
--- a/frc971/zeroing/zeroing_test.cc
+++ b/frc971/zeroing/zeroing_test.cc
@@ -39,7 +39,7 @@
}
void MoveTo(PositionSensorSimulator *simulator,
- PotAndAbsEncoderZeroingEstimator *estimator,
+ PotAndAbsoluteEncoderZeroingEstimator *estimator,
double new_position) {
PotAndAbsolutePosition sensor_values_;
simulator->MoveTo(new_position);
@@ -338,7 +338,7 @@
sim.Initialize(start_pos, index_diff / 3.0, 0.0,
constants.measured_absolute_position);
- PotAndAbsEncoderZeroingEstimator estimator(constants);
+ PotAndAbsoluteEncoderZeroingEstimator estimator(constants);
for (size_t i = 0; i < kSampleSize + kMovingBufferSize - 1; ++i) {
MoveTo(&sim, &estimator, start_pos);
@@ -366,7 +366,7 @@
sim.Initialize(start_pos, index_diff / 3.0, 0.0,
constants.measured_absolute_position);
- PotAndAbsEncoderZeroingEstimator estimator(constants);
+ PotAndAbsoluteEncoderZeroingEstimator estimator(constants);
// We tolerate a couple NANs before we start.
PotAndAbsolutePosition sensor_values;
@@ -402,7 +402,7 @@
sim.Initialize(start_pos, index_diff / 3.0, 0.0,
constants.measured_absolute_position);
- PotAndAbsEncoderZeroingEstimator estimator(constants);
+ PotAndAbsoluteEncoderZeroingEstimator estimator(constants);
for (size_t i = 0; i < kSampleSize + kMovingBufferSize - 1; ++i) {
MoveTo(&sim, &estimator, start_pos + i * index_diff);
@@ -419,7 +419,7 @@
PotAndAbsoluteEncoderZeroingConstants constants{
kSampleSize, 1, 0.3, 0.1, kMovingBufferSize, kIndexErrorFraction};
- PotAndAbsEncoderZeroingEstimator estimator(constants);
+ PotAndAbsoluteEncoderZeroingEstimator estimator(constants);
PotAndAbsolutePosition sensor_values;
sensor_values.absolute_encoder = ::std::numeric_limits<double>::quiet_NaN();