소스 검색

DC 板微小误差电流处理

liyi 1 년 전
부모
커밋
fe04dc4c98
3개의 변경된 파일과 44개의 추가작업 그리고 40개의 파일을 삭제
  1. 6 2
      control/PDU-DC_UPGRADE/App/ADC/ADC.c
  2. 1 1
      control/PDU-DC_UPGRADE/App/Main/cfg.h
  3. 37 37
      control/bootloader64k_dc/boot/USER/bootloader.uvguix.Gowon

+ 6 - 2
control/PDU-DC_UPGRADE/App/ADC/ADC.c

@@ -194,6 +194,10 @@ uint32_t DC_I_calfunction(uint16_t da,uint8_t channel)
 			case 5:
 			{
 				temp_v = da;
+				if(da < 0xA)
+				{
+					temp_v = 0;
+				}
 				temp_v *= ADC_Vref;
 				temp_v *= 1000;
 				temp_v = temp_v >> 12;
@@ -201,8 +205,8 @@ uint32_t DC_I_calfunction(uint16_t da,uint8_t channel)
 				temp_i = temp_v;
 				temp_i /= 10;//去掉第3位小数
 				temp_i *= 10;
-				temp_i += 200;
-				if(temp_i <= 220)
+				//temp_i += 200;
+				if(temp_i <= 80)
 							temp_i = 0;
 			}
 				break;

+ 1 - 1
control/PDU-DC_UPGRADE/App/Main/cfg.h

@@ -18,7 +18,7 @@
 #define PROGRAME_APP1_SIZE								(48*1024)													//App1 programe Max size
 
 
-#define VERSION                          		"V1.0.0.9"
+#define VERSION                          		"V1.0.0.0"
 
 #define MODBUS_HEAD                        	"GOWONE_UPGRADE"
 

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 37 - 37
control/bootloader64k_dc/boot/USER/bootloader.uvguix.Gowon