示例#1
0
 public override void Initialize()
 {
     VoltageFilter         = new IIRFilter(IIRFilter.FilterTypes.Butterworth, 1, IIRFilter.HzToRad(0.7f), 0.001f);
     Battery.ChargePercent = 100;
     Battery.VoltageV      = 72;
     Rele_minima           = new Timer(this);
     Rele_minima.Setup(2f * 60f + 30);
     Convertidor_Estático = new Convertidor_3000Vcc_380Vca3(() => new Electricity(CurrentCircuitBreakerState() == CircuitBreakerState.Closed && Contactor_bateria ? RealLineVoltageV : 0, Acceleration / 0.7f * 315 + 15));
     Cargador_Batería     = new Cargador_Bateria(Convertidor_Estático);
 }
示例#2
0
 public Cargador_Bateria(Convertidor_3000Vcc_380Vca3 Input)
 {
     VFilter    = new IIRFilter(IIRFilter.FilterTypes.Butterworth, 1, IIRFilter.HzToRad(0.7f), 0.001f);
     this.Input = Input;
 }