|
@@ -1,3 +1,12 @@
|
|
|
+/*
|
|
|
+ * @Author : ChenJie
|
|
|
+ * @Date : 2021-11-08 10:44:13
|
|
|
+ * @Version : V3.0
|
|
|
+ * @LastEditors : ChenJie
|
|
|
+ * @LastEditTime : 2021-11-08 14:34:38
|
|
|
+ * @Description : file content
|
|
|
+ * @FilePath : \PLAT\project\ec616_0h00\apps\qx_app\src\EmbeddedCoder_src\TMS.c
|
|
|
+ */
|
|
|
|
|
|
#include "TMS.h"
|
|
|
|
|
@@ -12,7 +21,7 @@ void TMS(void)
|
|
|
static uint8_T TminLowNr;
|
|
|
static uint8_T TminOverNr;
|
|
|
static uint8_T TmaxOverNr;
|
|
|
-
|
|
|
+
|
|
|
//初始值
|
|
|
if (FirstRun_TMS)
|
|
|
{
|
|
@@ -21,7 +30,7 @@ void TMS(void)
|
|
|
TminOverNr = 0;
|
|
|
TmaxOverNr = 0;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//
|
|
|
if (sfmd_T_modTMin < tmsc_T_openThr)
|
|
|
{
|
|
@@ -49,7 +58,7 @@ void TMS(void)
|
|
|
{
|
|
|
TmaxOverNr = 0;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//================================温度判定 开关热管理状态===============================
|
|
|
if (tmsd_st_heatAct == 0)
|
|
|
{
|
|
@@ -65,13 +74,13 @@ void TMS(void)
|
|
|
tmsd_st_heatAct = 0;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//因故障关闭热管理
|
|
|
if (((sfmd_st_fltAct >> 4) & 0x01) == 1)
|
|
|
{
|
|
|
tmsd_st_heatAct = 0;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//强制控制加热回路
|
|
|
if (ihd_st_heatForceControl == 1)
|
|
|
{
|
|
@@ -81,7 +90,6 @@ void TMS(void)
|
|
|
{
|
|
|
tmsd_st_heatAct = 0;
|
|
|
}
|
|
|
- printf("tmsd_st_heatAct:%d\n",tmsd_st_heatAct);
|
|
|
-
|
|
|
+
|
|
|
FirstRun_TMS = false;
|
|
|
}
|