mirror of
https://github.com/mck1117/wideband.git
synced 2026-11-12 15:19:18 -05:00
format sampling, lambda
This commit is contained in:
@@ -16,8 +16,8 @@ static float GetPhiLsu49(float pumpCurrent)
|
||||
return 1 / 0.5f;
|
||||
}
|
||||
|
||||
// This estimation is accurate within 0.5% from 0.8 to 1.0, and 0.01% from 1 to 1.2 lambda when compared to the lookup table in the Bosch datasheet
|
||||
// This error is less than half of the claimed accuracy of the sensor itself
|
||||
// This estimation is accurate within 0.5% from 0.8 to 1.0, and 0.01% from 1 to 1.2 lambda when compared to the
|
||||
// lookup table in the Bosch datasheet This error is less than half of the claimed accuracy of the sensor itself
|
||||
float gain = pumpCurrent < 0 ? -0.28299f : -0.44817f;
|
||||
|
||||
return gain * pumpCurrent + 0.99559f;
|
||||
@@ -37,8 +37,8 @@ static float GetPhiLsu42(float pumpCurrent)
|
||||
return 1 / 0.7f;
|
||||
}
|
||||
|
||||
// This estimation is accurate within 0.5% from 0.8 to 1.0, and 0.01% from 1 to 1.2 lambda when compared to the lookup table in the Bosch datasheet
|
||||
// This error is less than half of the claimed accuracy of the sensor itself
|
||||
// This estimation is accurate within 0.5% from 0.8 to 1.0, and 0.01% from 1 to 1.2 lambda when compared to the
|
||||
// lookup table in the Bosch datasheet This error is less than half of the claimed accuracy of the sensor itself
|
||||
float gain = pumpCurrent < 0 ? -0.23505f : -0.41441f;
|
||||
|
||||
return gain * pumpCurrent + 0.99153f;
|
||||
@@ -71,14 +71,13 @@ static float GetPhiLsuAdv(float pumpCurrent)
|
||||
}
|
||||
}
|
||||
|
||||
static float GetPhi(float pumpCurrent) {
|
||||
switch (GetSensorType()) {
|
||||
case SensorType::LSU49:
|
||||
return GetPhiLsu49(pumpCurrent);
|
||||
case SensorType::LSU42:
|
||||
return GetPhiLsu42(pumpCurrent);
|
||||
case SensorType::LSUADV:
|
||||
return GetPhiLsuAdv(pumpCurrent);
|
||||
static float GetPhi(float pumpCurrent)
|
||||
{
|
||||
switch (GetSensorType())
|
||||
{
|
||||
case SensorType::LSU49: return GetPhiLsu49(pumpCurrent);
|
||||
case SensorType::LSU42: return GetPhiLsu42(pumpCurrent);
|
||||
case SensorType::LSUADV: return GetPhiLsuAdv(pumpCurrent);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user