Update the controller: deleting unnecessary code

This commit is contained in:
atef 2024-04-22 08:52:09 +02:00
parent 35b3d91f05
commit 24d2518453
1 changed files with 1 additions and 32 deletions

View File

@ -434,7 +434,6 @@ public static class Controller
s.DcDc.Enable();
s.AcDc.Enable();
s.AcDc.EnableGridTieMode();
s.EnableDcLinkGridTie();
s.Relays.ConnectIslandBusToGrid();
return true;
@ -487,7 +486,7 @@ public static class Controller
private static Boolean State27(StatusRecord s)
{
s.StateMachine.Message = "";
s.StateMachine.Message = "K2 open and enable island mode";
s.DcDc.Disable();
s.AcDc.Disable();
@ -506,7 +505,6 @@ public static class Controller
s.DcDc.Enable();
s.AcDc.Enable();
s.AcDc.EnableIslandMode();
s.EnableDcLinkIslandMode();
s.Relays.DisconnectIslandBusFromGrid();
return false;
@ -675,35 +673,6 @@ public static class Controller
.ForAll(c => c.Ac.GridType = Island400V50Hz); // TODO: config grid type
}
// This is must be deleted , not needed anymore
private static void EnableDcLinkIslandMode(this StatusRecord s)
{
// // Dc Link Windows on AcDc +- 60
// s.Config.ReferenceDcLinkVoltageFromAcDc ;
// s.Config.MinDcLinkVoltageFromAcDc ;
// s.Config.MaxDcLinkVoltageFromAcDc ;
//
// // Dc Link Windows on DcDc +-55
// s.Config.ReferenceDcLinkVoltageFromDc = 750;
// s.Config.UpperDcLinkVoltageFromDc = 55;
// s.Config.LowerDcLinkVoltageFromDc = 55;
}
// This is must be deleted , not needed anymore
private static void EnableDcLinkGridTie(this StatusRecord s)
{
// Dc Link Windows on DcDc +-30
//s.Config.ReferenceDcLinkVoltageFromAcDc = 750;
//s.Config.MinDcLinkVoltageFromAcDc = 720;
//s.Config.MaxDcLinkVoltageFromAcDc = 780;
//
//// Dc Link Windows on DcDc +-20
//s.Config.ReferenceDcLinkVoltageFromDc = 750;
//s.Config.UpperDcLinkVoltageFromDc = 20;
//s.Config.LowerDcLinkVoltageFromDc = 20;
}
private static void DisconnectIslandBusFromGrid(this IRelaysRecord? relays)
{
if (relays is not null)