Zero gyros when enabled.
Change-Id: Ifc300f1b65b0c7ab7a0b3b6d3c4c48f100c53103
diff --git a/frc971/wpilib/ADIS16448.h b/frc971/wpilib/ADIS16448.h
index 4fefd07..c8552bf 100644
--- a/frc971/wpilib/ADIS16448.h
+++ b/frc971/wpilib/ADIS16448.h
@@ -37,8 +37,6 @@
void Quit() { run_ = false; }
- bool gyros_are_zeroed() const { return gyros_are_zeroed_.load(); }
-
double gyro_x_zeroed_offset() const { return gyro_x_zeroed_offset_; }
double gyro_y_zeroed_offset() const { return gyro_y_zeroed_offset_; }
double gyro_z_zeroed_offset() const { return gyro_z_zeroed_offset_; }
@@ -78,7 +76,7 @@
::std::atomic<bool> run_{true};
// The averaged values of the gyro over 6 seconds after power up.
- ::std::atomic<bool> gyros_are_zeroed_{false};
+ bool gyros_are_zeroed_ = false;
double gyro_x_zeroed_offset_ = 0.0;
double gyro_y_zeroed_offset_ = 0.0;
double gyro_z_zeroed_offset_ = 0.0;