on the way to store config values in eeprom
This commit is contained in:
@ -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]; }
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user