This commit is contained in:
Wolfgang Hottgenroth
2014-11-15 21:36:15 +01:00
parent d3b2af0dc5
commit 96fec4e827
5 changed files with 87 additions and 4 deletions

19
Thermometer.cpp Normal file
View File

@ -0,0 +1,19 @@
#include "Thermometer.h"
using Thermometer;
Thermometer::Thermometer() {
}
void Thermometer::begin() {
m_lastSmoothedTemperature = 0.0;
}
void Thermometer::exec(float r) {
temperatureRaw = (r / PT1000_R0 - 1) / PT1000_Coeff;
}