This commit is contained in:
backuppc
2026-01-08 17:36:34 +09:00
parent 9776205364
commit b84f8c7d2d
5 changed files with 1198 additions and 954 deletions

View File

@@ -12,9 +12,9 @@ namespace AGVEmulator
{
private void BMS_Message(object sender, AR.Dev.RS232.MessageEventArgs e)
{
logBMS.Add(e.Message);
logBMS.Add(e.Message);
}
private void BMS_RequestVoltageData(object sender, DevBMS.RequestVoltageDataArgs e)
@@ -26,7 +26,7 @@ namespace AGVEmulator
this.cellvolt[i] = (UInt16)rnd.Next(3300, 3350);
}
Array.Copy(this.cellvolt, 0, e.cellVolt, 0, 8);
this.btc1.Invoke(new Action(() =>
{
var idx = 0;
@@ -46,8 +46,12 @@ namespace AGVEmulator
if (checkBox1.Checked)
this.trackBar1.Invoke(new Action(() =>
{
this.trackBar1.Value -= 1;
trackBar1_Scroll(null, null);
if (this.trackBar1.Value > 0)
{
this.trackBar1.Value -= 1;
trackBar1_Scroll(null, null);
}
}));
e.CurA = (int)BMS_CurA;