Ignore the first 200 NANs when zeroing.
Change-Id: Ib181361546f5ebada699931130e31a414799cb28
diff --git a/frc971/zeroing/zeroing.h b/frc971/zeroing/zeroing.h
index cfac284..48caae0 100644
--- a/frc971/zeroing/zeroing.h
+++ b/frc971/zeroing/zeroing.h
@@ -258,7 +258,9 @@
double offset_ = 0;
// The next position in 'relative_to_absolute_offset_samples_' and
// 'encoder_samples_' to be used to store the next sample.
- int samples_idx_;
+ int samples_idx_ = 0;
+
+ size_t nan_samples_ = 0;
// The unzeroed filtered position.
double filtered_position_ = 0.0;