Commit 4a797822 authored by 陈家乐's avatar 陈家乐

šŸž fix:ę›“ę”¹ē‡ƒę²¹ēŠ¶ę€åˆå§‹åŒ–值ļ¼Œē‡ƒę²¹ēŠ¶ę€ę£€ęµ‹åˆ¤ę–­ę”件

parent f8ad87c1
......@@ -35,7 +35,7 @@ void Fuel_KL30_Init(void)
FuelInitFlag = 1u;
FuelStateInitFlag = 1u;
FuelDir = FUEL_SEG_UP;
FuelSensorState = FuelSensorShortCircuit;//FuelSensorNormal;
FuelSensorState = FuelSensorNormal;//FuelSensorShortCircuit;//FuelSensorNormal;
FuelSensorNormalTime = 0u;
FuelSensorShortTime = 0u;
FuelSensorOpenTime = 0u;
......@@ -51,7 +51,7 @@ void Fuel_KL15_Init(void)
FuelInitFlag = 1u;
FuelStateInitFlag = 1u;
FuelDir = FUEL_SEG_UP;
FuelSensorState = FuelSensorShortCircuit;//FuelSensorNormal;
FuelSensorState = FuelSensorNormal;//FuelSensorShortCircuit;//FuelSensorNormal;
FuelSensorNormalTime = 0u;
FuelSensorShortTime = 0u;
FuelSensorOpenTime = 0u;
......@@ -130,7 +130,7 @@ void Fuel_State_Check(uint8_t deltaTime)
{ /*ēŸ­č·Æ 1*/
FuelSensorOpenTime = 0;
FuelSensorNormalTime = 0;
if ((FuelSensorShortTime > 3000) || ((FuelStateInitFlag) && (FuelSensorShortTime > 3000)))
if ((FuelSensorShortTime > 3000) || ((FuelStateInitFlag) && (FuelSensorShortTime <= 3000)))
{
FuelSensorState = FuelSensorShortCircuit;
DesFuelSetp = 0;
......@@ -148,7 +148,7 @@ void Fuel_State_Check(uint8_t deltaTime)
{ /*ꖭč·Æ 320*/
FuelSensorShortTime = 0;
FuelSensorNormalTime = 0;
if ((FuelSensorOpenTime > 2800) || ((FuelStateInitFlag) && (FuelSensorOpenTime > 2800)))
if ((FuelSensorOpenTime > 2800) || ((FuelStateInitFlag) && (FuelSensorOpenTime <= 2800)))
{
FuelSensorState = FuelSensorOpenCircuit;
DesFuelSetp = 0;
......@@ -222,6 +222,8 @@ void Fuel_Gauges_Cal(uint8_t deltaTime)
}
/*č®”ē®—ē›®ę ‡ę ¼ę•°*/
if(Common_GetIgnOnTime() > 3005)
{
if (FuelDir == FUEL_SEG_UP)
{
if (((DesFuelSetp == 4) || FuelInitFlag) && (FuelR < 130))
......@@ -270,6 +272,9 @@ void Fuel_Gauges_Cal(uint8_t deltaTime)
}
}
}
/*IGN ON 1ē§’/ę•…éšœę¢å¤åŽļ¼Œå¼€å§‹čµ°ę ¼ ē«‹å³ęŒ‡å‘å½“å‰ę ¼ 20220704*/
if (Common_GetIgnOnTime() >= 3000)
{
......
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