mirror of https://github.com/rusefi/wideband.git
decode temperature based on sensor type
This commit is contained in:
parent
62520aee78
commit
ab84b694b6
|
@ -126,7 +126,16 @@ float GetSensorTemperature(int ch)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch (GetSensorType()) {
|
||||||
|
case SensorType::LSU49:
|
||||||
return interpolate2d(esr, lsu49TempBins, lsu49TempValues);
|
return interpolate2d(esr, lsu49TempBins, lsu49TempValues);
|
||||||
|
case SensorType::LSU42:
|
||||||
|
return interpolate2d(esr, lsu42TempBins, lsu42TempValues);
|
||||||
|
case SensorType::LSUADV:
|
||||||
|
return interpolate2d(esr, lsuAdvTempBins, lsuAdvTempValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
float GetNernstDc(int ch)
|
float GetNernstDc(int ch)
|
||||||
|
|
Loading…
Reference in New Issue