update bms data
This commit is contained in:
@@ -70,10 +70,14 @@ namespace Project.ViewForm
|
||||
else if (PUB.BMS.IsValid == false)
|
||||
this.lbCycle.Text = "데이터가 유효하지 않습니다";
|
||||
else
|
||||
this.lbCycle.Text = $"Cell Average:{volt.Average},Delta:{volt.Delta},Cycle({data.cycleCount})";
|
||||
this.lbCycle.Text = $"Average:{volt.Average:N2}v, Delta:{volt.Delta:N0}, Cycle({data.cycleCount})";
|
||||
this.arLabel1.Text = $"{data.rsoc}%";
|
||||
this.arLabel1.Sign = $"{data.packVoltage}v, {data.watt}w";// PUB.BMS.Current_Volt.ToString() + "v";
|
||||
this.cv1.Text = volt.Voltage[0].ToString("N3") + "v";
|
||||
this.arLabel1.Sign = $"{data.packVoltage}v, {data.watt:N0}w";// PUB.BMS.Current_Volt.ToString() + "v";
|
||||
|
||||
if (data.watt < 0) this.arLabel1.SignColor = Color.Tomato;
|
||||
else this.arLabel1.SignColor = Color.Lime;
|
||||
|
||||
this.cv1.Text = volt.Voltage[0].ToString("N3") + "v";
|
||||
this.cv2.Text = volt.Voltage[1].ToString("N3") + "v";
|
||||
this.cv3.Text = volt.Voltage[2].ToString("N3") + "v";
|
||||
this.cv4.Text = volt.Voltage[3].ToString("N3") + "v";
|
||||
|
||||
Reference in New Issue
Block a user