..
This commit is contained in:
@@ -63,18 +63,26 @@ namespace Project.ViewForm
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
timer1.Stop();
|
||||
this.arLabel1.Text = PUB.BMS.Current_Level.ToString("N1") + "%";
|
||||
this.arLabel1.Sign = $"{PUB.BMS.Current_Volt}v, {PUB.BMS.Charge_watt}w";// PUB.BMS.Current_Volt.ToString() + "v";
|
||||
this.cv1.Text = PUB.BMS.CellVoltage[0].ToString("N3") + "v";
|
||||
this.cv2.Text = PUB.BMS.CellVoltage[1].ToString("N3") + "v";
|
||||
this.cv3.Text = PUB.BMS.CellVoltage[2].ToString("N3") + "v";
|
||||
this.cv4.Text = PUB.BMS.CellVoltage[3].ToString("N3") + "v";
|
||||
this.cv5.Text = PUB.BMS.CellVoltage[4].ToString("N3") + "v";
|
||||
this.cv6.Text = PUB.BMS.CellVoltage[5].ToString("N3") + "v";
|
||||
this.cv7.Text = PUB.BMS.CellVoltage[6].ToString("N3") + "v";
|
||||
this.cv8.Text = PUB.BMS.CellVoltage[7].ToString("N3") + "v";
|
||||
this.lbTemp1.Text = PUB.BMS.Current_temp1.ToString() + "℃";
|
||||
this.lbtemp2.Text = PUB.BMS.Current_temp2.ToString() + "℃";
|
||||
var data = PUB.BMS.BMSInformation;
|
||||
var volt = PUB.BMS.BMSCellVoltage;
|
||||
if (PUB.BMS.IsOpen == false)
|
||||
this.lbCycle.Text = "통신이 열려있지 않습니다";
|
||||
else if (PUB.BMS.IsValid == false)
|
||||
this.lbCycle.Text = "데이터가 유효하지 않습니다";
|
||||
else
|
||||
this.lbCycle.Text = $"Cell Average:{volt.Average},Delta:{volt.Delta},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.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";
|
||||
this.cv5.Text = volt.Voltage[4].ToString("N3") + "v";
|
||||
this.cv6.Text = volt.Voltage[5].ToString("N3") + "v";
|
||||
this.cv7.Text = volt.Voltage[6].ToString("N3") + "v";
|
||||
this.cv8.Text = volt.Voltage[7].ToString("N3") + "v";
|
||||
this.lbTemp1.Text = data.ntcTemp[0].ToString() + "℃";
|
||||
this.lbtemp2.Text = data.ntcTemp[1].ToString() + "℃";
|
||||
timer1.Start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user