瀏覽代碼

2022-02-21 / Simon Xue

Action
1. Change carbon reduction calculation formula.

Files
As the commit history

Image Version: v2.04.XX.XXXX.XX
Simon Xue 3 年之前
父節點
當前提交
a628528302

+ 1 - 1
EVSE/Projects/DD360Tcci/Apps/CSU/main.c

@@ -82,7 +82,7 @@ uint8_t bd1_1_status = 0;
 uint8_t bd1_2_status = 0;
 
 char *fwVersion = "V2.04.00.0000.00"; // Phihong version
-char* DebugVersion = "v2.04.00";      // Software debug version
+char* DebugVersion = "v2.04.01";      // Software debug version
 //sqlite3 *localDb;
 bool isDb_ready;
 

+ 1 - 1
EVSE/Projects/DD360Tcci/Apps/ModuleLcmCtrl/Module_LcmControl.c

@@ -1007,7 +1007,7 @@ void ChangeCarBonValue(float data)
     uint8_t value[10];
     float _carbon = 0;
     memset(cmd, 0x00, sizeof(cmd));
-    _carbon = (data*9)/10*2.36 - data*0.637;
+    _carbon = data * 0.577;
     //log_info("Carbon:%d",(int)_carbon);
 
 	sprintf((char *) value, "%d", (int)_carbon);

二進制
EVSE/Projects/DD360Tcci/Images/ramdisk.gz


二進制
EVSE/Projects/DD360Tcci/output/Module_LcmControl


二進制
EVSE/Projects/DD360Tcci/output/main