..
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user