calibration started

This commit is contained in:
Wolfgang Hottgenroth
2014-11-19 22:25:33 +01:00
parent 9ab050c430
commit f201ce5c4a
5 changed files with 71 additions and 39 deletions

View File

@ -15,13 +15,20 @@ public:
Thermometer();
void begin(bool initializeConfig, int eepromAddr);
void exec(float r);
float alpha;
float temperature;
float temperatureRaw;
float getAlpha() const { return m_alpha; };
void setAlpha(float alpha);
float getTemperature() const { return m_temperature; };
float getTemperatureRaw() const { return m_temperatureRaw; };
private:
int m_eepromAddr;
float m_lastSmoothedTemperature;
float m_smoothedTemperature;
float m_alpha;
float m_temperature;
float m_temperatureRaw;
};
#endif // _THERMOMETER_H_