--- title: Práctica 3 Actions Code description: Enunciado de la Práctica 0 del laboratorio de Gestión de Datos a Bordo del Grado en Física e Instrumentación Espacial de la Universidad de Alcalá tags: OBDH-GFIE robots: noindex, nofollow --- # Práctica 3. Código de las Acciones de las clases componentes ## Clase CCHK_FDIRMng --- #### void CCHK_FDIRMng::FInit() :::info <div style="color:blue"; > { Pr_Time time; </div> ::: ```c= time.GetTime(); // Get current monotonic time time+=Pr_Time(1,0); // Add X sec + Y microsec VNextTimeout=time; PUSService3::Init(); //Init PUSService 3 ``` :::info <div style="color:blue"; > HK_FDIRTimer.InformAt(time); </div> <div style="color:blue"; > } </div> ::: --- #### void CCHK_FDIRMng::FDoHK_FDIR() :::info <div style="color:blue"; > { Pr_Time time; </div> ::: ```c= VNextTimeout+= Pr_Time(1,0); // Add X sec + Y microsec time=VNextTimeout; PUSService3::DoHK(VCurrentTMList); ``` :::info <div style="color:blue"; > HK_FDIRTimer.InformAt(time); </div> <div style="color:blue"; > } </div> ::: --- #### void CCHK_FDIRMng::FInvokeTxTMList() :::info <div style="color:blue"; > {CDTMList * pSTxTM_Data=EDROOMPoolCDTMList.AllocData(); </div> ::: ```c= // Complete Data *pSTxTM_Data=VCurrentTMList; VCurrentTMList.Clear(); ``` :::info <div style="color:blue"; > MsgBack=TMChannelCtrl.invoke(STxTM,pSTxTM_Data,&EDROOMPoolCDTMList); </div> <div style="color:blue"; > } </div> ::: --- ## Clase CCEPDManager #### void CCEPDManager::FFwdHK_FDIRTC() :::info <div style="color:blue"; > { CDTCHandler * pSHK_FDIR_TC_Data = EDROOMPoolCDTCHandler.AllocData(); </div> ::: ```c= // Complete Data *pSHK_FDIR_TC_Data=VCurrentTC; ``` :::info <div style="color:blue"; > HK_FDIRCtrl.send(SHK_FDIR_TC,pSHK_FDIR_TC_Data,&EDROOMPoolCDTCHandler); </div> <div style="color:blue"; > } </div> ::: --- #### bool CCEPDManager::GFwdToHK_FDIR() :::info <div style="color:blue"; > {CDTMList * pSTxTM_Data=EDROOMPoolCDTMList.AllocData(); </div> ::: ```c= // Complete Data return VCurrentTC.IsHK_FDIRTC(); ``` :::info <div style="color:blue"; > } </div> ::: ---
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up