Skip to content
Snippets Groups Projects
Commit 81f32d18 authored by Carlo Alessandro Nicolau's avatar Carlo Alessandro Nicolau
Browse files

temperature sensors conversion formula corrected (python only update)

parent 9643e652
No related branches found
No related tags found
No related merge requests found
......@@ -49,11 +49,19 @@ def convert_chn2meas_TEMP2(_chn):
# new version with quadratic fit
# (Rocco's mail 9/12/2021)
a = -15.327
b = 65.478
c = -8.819
v = channel2voltage_ADC(_chn)
return quadratic(a,b,c,v)
# a = -15.327
# b = 65.478
# c = -8.819
# v = channel2voltage_ADC(_chn)
# return quadratic(a,b,c,v)
# new version with linear fit
# (Rocco's mail 02/05/2023)
# temperature = 23.24 * voltage - 25.79
a = 23.24
b = -25.79
v = chennale2voltage_ADC(_chn)
return linear_regression(0.0, b, 1.0, a + b, v)
def convert_chn2meas_TEMP1(_chn):
# same as TEMP2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment