You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
explicit Odometer(unsigned int kEEPROMOdometerAddress);
void AddMetersToOdometer(float meters_to_add);
float GetOdometer(void);
void SaveOdometerToEEPROM(void);
private:
unsigned int kEEPROMOdometerAddress;
unsigned int kOdometerStart; // Odometer reading from EEPROM at motorcycle startup.
unsigned int meters_traveled_since_last_save_; // Odometer value for the trip, to be added to kOdometerStart and written after > 1 hour and at power down.