From: kyz Date: Fri, 6 Nov 2026 02:05:38 +0000 (+0800) Subject: 修改回退时等待亮灯的处理 X-Git-Url: http://kyz.pub/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Ftest_on_v3_8;p=yn%2Fcdbs.git 修改回退时等待亮灯的处理 按客户要求,提供测试版本,在状态机到回退时立即启动回退,去掉了等待1秒红灯的时间。 --- diff --git "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/API/lcdshow.c" "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/API/lcdshow.c" index f40ec6a..d8461cd 100644 --- "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/API/lcdshow.c" +++ "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/API/lcdshow.c" @@ -3,7 +3,7 @@ #include "lcdfont.h" #include "delay.h" -char Version[] = "V3.8"; //ÆÁÄ»ÏÔʾÈí¼þ°æ±¾ +char Version[] = "Test_3.8.1"; //ÆÁÄ»ÏÔʾÈí¼þ°æ±¾ //1.54´çTFTÆÁ240*240 /****************************************************************************** º¯Êý˵Ã÷£ºÔÚÖ¸¶¨ÇøÓòÌî³äÑÕÉ« diff --git "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/eventmonitoring.c" "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/eventmonitoring.c" index 68c63b2..1d19899 100644 --- "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/eventmonitoring.c" +++ "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/APP/eventmonitoring.c" @@ -386,6 +386,7 @@ void Control_Status_Process(void) raw_data_save_start(); break; case 1: +#if 0 if(BeepTimes >= BEEP_TIME_COUNT) { BeepTimes = 0; @@ -399,9 +400,26 @@ void Control_Status_Process(void) BeepTimes++; } //printf("step 1\r\n"); - +#else + BeepTimes = 0; + BtnTone(); + NumAngle = 0; + step = 2; +#endif break; case 2: +#if 1 + //2026/11/6 add for testversion + //¿Í»§ÒªÇó¼õµô֮ǰÁÁµÆµÄÒ»Ã룬ÌáÔç»ØÍËÒÔËõ¶Ì»ØÍËʱ¼ä£¬²âÊ԰湩ÑéÖ¤¡£ + if(BeepTimes >= BEEP_TIME_COUNT) + { + BeepTimes = 0; + LED1 = 0; + }else{ + BeepTimes++; + } + +#endif // if(Back_State == 1) // { if((NumAngle >= ((TmsKeyData.BackAngle *TmsKeyData.MechanicalGearRatio[0])/COEFFICIENT)) || Motor_Control_Pro(ELECTRICITY_PP) ==1 ) @@ -414,7 +432,8 @@ void Control_Status_Process(void) Storage_NumAngle = 0; Angle_Flag = 0; Motor_Speed_Val = 0; - Motor_Speed_Start(Motor_Speed_Val); + Motor_Speed_Start(Motor_Speed_Val); + LED1 = 0; //2026/11/6 add for testversion step = 3; printf ( "INTO STEP 3\r\n");