This commit is contained in:
backuppc
2026-01-14 15:29:38 +09:00
parent 5801137d63
commit d5516f9708
17 changed files with 605 additions and 402 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Linq;
namespace arDev
{
@@ -16,18 +17,10 @@ namespace arDev
}
public class BMSInformationEventArgs : EventArgs
{
public float Volt { get; set; }
public int CurAmp { get; set; }
public int MaxAmp { get; set; }
public float Level { get; set; }
public bool Changed { get; set; }
public BMSInformationEventArgs(float _volt, int _curamp, int _maxamp, float _level, bool _changed)
public BMSBasicInformation Data { get; set; }
public BMSInformationEventArgs(BMSBasicInformation info)
{
this.Volt = _volt;
this.CurAmp = _curamp;
this.MaxAmp = _maxamp;
this.Level = _level;
this.Changed = _changed;
this.Data = info;
}
}
@@ -38,5 +31,9 @@ namespace arDev
{
voltage = new double[] { v1, v2, v3, v4, v5, v6, v7, v8 };
}
public override string ToString()
{
return string.Join(" ", voltage.Select(t => t.ToString()));
}
}
}