/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package mxgstest.sections; import asim.envsim.dhpu.tmutils.ParameterValueEvent; import asim.envsim.dhpu.tmutils.ParameterValueFilter; import java.util.logging.Logger; import mxgsegse.MXGSEGSE; import mxgstest.MxgsTestException; import mxgstest.Output; import mxgstest.egse.Basic; import mxgstest.egse.Power; import mxgstest.mxgs.Dau; import mxgstest.mxgs.Dpu; import mxgstest.mxgs.Hk; import mxgstest.mxgs.Psu; /** * Step 6.4.1: DAUs LV Power On * Step 6.4.2: Enable Required Housekeeping Packets and Perform Initial Verifications * @author frec */ public class Section6_04 { MXGSEGSE egse; Output output; public Section6_04(MXGSEGSE egse, Output output) throws Throwable { this.egse = egse; this.output = output; } Dpu dpu = new Dpu(); Power pow = new Power(); Basic bas = new Basic(); Psu psu = new Psu(); Dau dau = new Dau(); Hk hke = new Hk(); ParameterValueEvent hk47Event; ParameterValueFilter hk47Tm; public void step6_4_1() throws Throwable { try{ hk47Event = new ParameterValueEvent(egse.dhpu.getNonscienceTm(), egse.packetTool, "Private Header.Packet Identification.TM Type", "47", Logger.global); hk47Tm = new ParameterValueFilter(hk47Event, Logger.global); output.printSubSectionStart("6.4.1","Prepare Shutdowm"); output.printStepStart("6.4.1-1","Send PrepareShutdown"); dpu.sendPrepareShutdownTc(egse); Thread.sleep(5000); output.printStepStart("","Verify PSU Power Supply"); pow.verifySupplyPSU(egse, 0.10, 0.02); hk47Tm.clear(); hke.dataQueueWaitForSize(egse, 10, 1, hk47Tm); output.printStepStart("","PSU HK"); String[][] PsuHK = { {"Power Enable Registers.HVPS", "0", "0"}, {"Power Enable Registers.LVPS", "0", "0"}, }; hke.verifyTMarr(egse, hk47Tm.getLast(), PsuHK); } catch(MxgsTestException e) { output.printStepStatus("6.4.1", false, e.getMessage()); throw e; } output.printStepStatus("6.4.1", true); output.printSubSectionEnd("6.4.1"); } }