Răsfoiți Sursa

变速器在线时,向OBC发送15帧变速器参数信息,避免OBC未开机漏收数据;

Ye Jin 1 an în urmă
părinte
comite
4ecde9033d
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      User project/3.BasicFunction/Source/enviolo_can.c

+ 2 - 2
User project/3.BasicFunction/Source/enviolo_can.c

@@ -189,12 +189,12 @@ void GearBox_Loop(void)
     case GEAR_STATUS_INITIAL:  //初始化模式,发送变速器状态给仪表
                                 {
                                     MC_RunInfo.GearBoxInfo = (GearBox_Status & 0xE0) + 0x00;
-                                    //初始化完成,主动发送OBC变速器参数,发送5次。
+                                    //初始化完成,主动发送OBC变速器参数,发送15次。
                                     do
                                     {
                                         static uint32_t SendPeriodCnt = 0;
                                         static uint8_t SendCount = 0;
-                                        if(SendCount >= 5)
+                                        if(SendCount >= 15)
                                             continue;
                                         if((cp_ulSystickCnt - SendPeriodCnt) > 200)
                                         {