Commit 88a11d24 authored by 陈家乐's avatar 陈家乐

🐞 fix:52750 燃油采集有问题;大阻值误差大,更改回差值

parent 05230a80
......@@ -6,7 +6,7 @@
#define FUEL_CAL_START 15u /*数据排序后取中间部分计算平均:起始*/
#define FUEL_CAL_END 25u /*数据排序后取中间部分计算平均:结束*/
#define RETURN_DIFFERENCE 15u /*判断上升或下降的回差,精度0.1*/
#define RETURN_DIFFERENCE 10u /*判断上升或下降的回差,精度0.1*/
#define FUEL_SEG_UP 0u
#define FUEL_SEG_DOWN 1u
......@@ -236,22 +236,22 @@ void Fuel_Gauges_Cal(uint8_t deltaTime)
{
DesFuelSetp = 3;
}
else if (((DesFuelSetp == 1) || FuelInitFlag) && (FuelR < 710))
else if (((DesFuelSetp == 1) || FuelInitFlag) && (FuelR < 700))
{
DesFuelSetp = 2;
}
else if (((DesFuelSetp == 0) || FuelInitFlag) && (FuelR < 910))
else if (((DesFuelSetp == 0) || FuelInitFlag) && (FuelR < 900))
{
DesFuelSetp = 1;
}
}
else if (FuelDir == FUEL_SEG_DOWN)
{
if (((DesFuelSetp == 1) || FuelInitFlag) && (FuelR >= 910))
if (((DesFuelSetp == 1) || FuelInitFlag) && (FuelR >= 900))
{
DesFuelSetp = 0;
}
else if (((DesFuelSetp == 2) || FuelInitFlag) && (FuelR >= 710))
else if (((DesFuelSetp == 2) || FuelInitFlag) && (FuelR >= 700))
{
DesFuelSetp = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment