update bms data

This commit is contained in:
ChiKyun Kim
2026-01-14 16:04:11 +09:00
parent d5516f9708
commit 48acb5b7b7
3 changed files with 14 additions and 9 deletions

View File

@@ -25,7 +25,8 @@ namespace arDev
get
{
if (Voltage.Any() == false) return 0f;
return Math.Abs(Voltage.Max() - Voltage.Min());
var value = Math.Abs(Voltage.Max() - Voltage.Min());
return value * 1000f;
}
}
}
@@ -71,7 +72,7 @@ namespace arDev
protectionStatus = new BMSProtectionStatus();
mosfetStatus = new BMSMosfetStatus();
productionDate = new DateTime();
ntcTemp = new float[] { 0f,0f};
ntcTemp = new float[] { 0f, 0f };
}
public void Clear()
@@ -435,8 +436,8 @@ namespace arDev
//250620 jwlee 추가
newinfo.ntcCount = LastReceiveBuffer[offset + 22]; //센서갯수
int temp1 = (LastReceiveBuffer[offset + 23] << 8) | LastReceiveBuffer[24];
int temp2 = (LastReceiveBuffer[offset + 25] << 8) | LastReceiveBuffer[36];
int temp1 = (LastReceiveBuffer[offset + 23] << 8) | LastReceiveBuffer[offset + 24];
int temp2 = (LastReceiveBuffer[offset + 25] << 8) | LastReceiveBuffer[offset + 26];
var Current_temp1 = (temp1 - 2731) / 10f;
var Current_temp2 = (temp2 - 2731) / 10f;
newinfo.ntcTemp = new float[] { (temp1 - 2731) / 10f, (temp2 - 2731) / 10f };