hecl 1 year ago
parent
commit
2aa32f8ae4
1 changed files with 17 additions and 18 deletions
  1. 17 18
      Venus/Venus_Simulator/Instances/SimulatorSystem.cs

+ 17 - 18
Venus/Venus_Simulator/Instances/SimulatorSystem.cs

@@ -529,13 +529,13 @@ namespace Venus_Simulator.Instances
             IO.DI[$"{mod}.DI_SYS_C4"].Value = false;
             IO.DI[$"{mod}.DI_TSYS_C5"].Value = false;
             IO.DI[$"{mod}.DI_TM_N2_1"].Value = true;
-            IO.DI[$"{mod}.DI_VCE_TM_OPS"].Value = true;
+            IO.DI[$"{mod}.DI_VCE_TM_OPS"].Value = false;
             IO.DI[$"{mod}.DI_VCE_TM_CLS"].Value = true;
-            IO.DI[$"{mod}.DI_TM_PMA_OPS"].Value = true;
+            IO.DI[$"{mod}.DI_TM_PMA_OPS"].Value = false;
             IO.DI[$"{mod}.DI_TM_PMA_CLS"].Value = true;
-            IO.DI[$"{mod}.DI_TM_PMB_OPS"].Value = true;
+            IO.DI[$"{mod}.DI_TM_PMB_OPS"].Value = false;
             IO.DI[$"{mod}.DI_TM_PMB_CLS"].Value = true;
-            IO.DI[$"{mod}.DI_TM_PMC_OPS"].Value = true;
+            IO.DI[$"{mod}.DI_TM_PMC_OPS"].Value = false;
             IO.DI[$"{mod}.DI_TM_PMC_CLS"].Value = true;
             IO.DI[$"{mod}.DI_TM_HE"].Value = true;
             IO.DI[$"{mod}.DI_VCE_RB_RET"].Value = true;
@@ -604,7 +604,7 @@ namespace Venus_Simulator.Instances
 
                 MonitorMFSlitDoor();
                 MonitorSEMFSlitDoor();
-
+                MonitorMFPressure();
 
 
 
@@ -618,8 +618,7 @@ namespace Venus_Simulator.Instances
 
         private void ChangeTime(ModuleName mod)
         {
-            if (SimulatorJetTM.CurrentTM == JetTMType.Venus)
-            {
+
                 // Heartbeat with PLC
                 SetAiValue($"{mod}.AI_Heartbeat_FB", GetAoValue($"{mod}.AO_Heartbeat"));
 
@@ -629,7 +628,7 @@ namespace Venus_Simulator.Instances
                 SetAiValue($"{mod}.AI_Time", DateTime.Now.Hour);
                 SetAiValue($"{mod}.AI_Minute", DateTime.Now.Minute);
                 SetAiValue($"{mod}.AI_Second", DateTime.Now.Second);
-            }
+
 
         }
 
@@ -1405,8 +1404,8 @@ namespace Venus_Simulator.Instances
         }
         void MonitorMFPressure()
         {
-            if (SimulatorJetTM.CurrentTM == JetTMType.Venus)
-            {
+            //if (SimulatorJetTM.CurrentTM == JetTMType.Venus)
+            //{
                 string LLA_AI_ChamberPressure = "AI_LLA_CHB_Pressure";
                 string LLB_AI_ChamberPressure = "AI_LLB_CHB_Pressure";
                 string TM_AI_ChamberPressure = "AI_TM_CHB_Pressure";
@@ -1562,15 +1561,15 @@ namespace Venus_Simulator.Instances
 
                 // VAC switch
                 IO.DI[$"{mod}.DI_LLB_VAC_Switch"].Value = GetAiValue($"{mod}.{LLB_AI_ChamberPressure}") < VAC_SW_PRESSURE;
-            }
-            else if (SimulatorJetTM.CurrentTM == JetTMType.VenusSE)
-            {
-                ModuleName mod = ModuleName.TM;
+           // }
+            //else if (SimulatorJetTM.CurrentTM == JetTMType.VenusSE)
+            //{
+            //    ModuleName mod = ModuleName.TM;
 
-                //float getAiValue_LLA_ChamberPressure = GetAiValue($"{mod}.{LLA_AI_ChamberPressure}");
-                //float getAiValue_LLB_ChamberPressure = GetAiValue($"{mod}.{LLB_AI_ChamberPressure}");
-                //float getAiValue_TM_ChamberPressure = GetAiValue($"{mod}.{TM_AI_ChamberPressure}");
-            }
+            //    //float getAiValue_LLA_ChamberPressure = GetAiValue($"{mod}.{LLA_AI_ChamberPressure}");
+            //    //float getAiValue_LLB_ChamberPressure = GetAiValue($"{mod}.{LLB_AI_ChamberPressure}");
+            //    //float getAiValue_TM_ChamberPressure = GetAiValue($"{mod}.{TM_AI_ChamberPressure}");
+            //}
         }
 
         void SetAiValue(string name, float value)