Kaynağa Gözat

DC 板微小误差电流处理

liyi 1 yıl önce
ebeveyn
işleme
fe04dc4c98

+ 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"
 

Dosya farkı çok büyük olduğundan ihmal edildi
+ 37 - 37
control/bootloader64k_dc/boot/USER/bootloader.uvguix.Gowon