kopia lustrzana https://github.com/bristol-seds/pico-tracker
[thermistor_equation] fix testcase
rodzic
1843b020a5
commit
bd5d31517d
|
@ -43,7 +43,9 @@ class thermistor_equation_tc:
|
||||||
i = self.index
|
i = self.index
|
||||||
|
|
||||||
# calculate expected ADC value for the current temperature
|
# calculate expected ADC value for the current temperature
|
||||||
params.value = (self.series_resistor/(self.resistances[i]*self.thermistor_nominal + self.series_resistor)) * 1.85;
|
thermistor_resistance = (self.resistances[i] * self.thermistor_nominal)
|
||||||
|
params.value = (self.series_resistor/
|
||||||
|
(thermistor_resistance + self.series_resistor))
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue