Explorar el Código

剩余能量用容量表示

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui hace 5 años
padre
commit
1459565442
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Application/app/bms_message.c

+ 1 - 1
Application/app/bms_message.c

@@ -69,7 +69,7 @@ void process_bms_message(can_frame_t *frame, int len){
 		case CAN_KEY_BMS_BASE_INFO:{
 			binfo_cmd_resp_t bresp;
 			bresp.capacity = get_soc()->capacity;
-			bresp.energy = get_soc()->energy;
+			bresp.energy = get_soc()->coulomb_now - get_soc()->coulomb_min;
 			bresp.pack_current = measure_value()->load_current;
 			bresp.pack_voltage = bms_state_get()->pack_voltage;
 			bresp.max_temp = 0;