on the way to store config values in eeprom

This commit is contained in:
hg
2014-03-03 22:53:34 +01:00
parent 0191fa96d9
commit ff730fcab2
4 changed files with 114 additions and 33 deletions

View File

@ -46,7 +46,20 @@ private:
Thermometer *m_thermometer;
};
class ThermCalibrate : public Cmd {
public:
ThermCalibrate(Thermometer *thermometer);
virtual String getCmdName() { return "TCALIBR"; }
virtual String getHelp() { return "Thermometer calibration operations"; }
virtual String exec(String params);
private:
Thermometer *m_thermometer;
bool m_enabled;
unsigned int m_cycles;
float m_r_cal;
float m_preserved_alpha;
unsigned long m_preserved_period;
};
class Thermometer {
public:
@ -80,7 +93,11 @@ private:
void setTemperature(unsigned int index, float t);
void setPeriodMeasure(unsigned long p);
unsigned long getPeriodMeasure() { return m_periodMillis; }
void setAlpha(float a);
float getAlpha() { return m_alpha; }
void setCalibrateFactor(unsigned int i, float c);
float getCalibrateFactor(unsigned int i) { return m_calibrateFactor[i]; }
};