7,540
社区成员
发帖
与我相关
我的任务
分享
public Charger GetCharger(uint address)
{
if (address >= 1 && address <= 16)
{
return chargers[address - 1];
}
else
{
throw new EVPException("Charger with address " + address + " does not exist.");
}
}
public class Charger
{
private float inputCurrent = 0;
private float outputCurrent = 0;
private float outputVoltage = 0;
private uint availablePower = 0;
private sbyte primaryTemp = 0;
private sbyte secondaryTemp = 0;
private sbyte trafoTemp = 0;
private uint inputVoltage = 0;
private byte inputFrequency = 0;
private SystemState systemState = SystemState.SystemState_Idle;
private string[] alarmDescription = new string[32];
private bool[] alarmSetting = new bool[32];
private SelfTest selfTest = new SelfTest();
private bool isPresent = false;
private uint address = 0;
private uint baseCanId = 0;
private DateTime lastStatusTime = new DateTime(0);
private List<ProtocolMessage> sequenceList = new List<ProtocolMessage>();
private DelegateSendMessage SendMessage;
private Configuration configuration = new Configuration();
private Diagnostics diagnostics = new Diagnostics();