diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/FCC_Sys_New_harness.c b/src/validation/FCC_Sys_New_harness_ert_rtw/FCC_Sys_New_harness.c deleted file mode 100644 index cc498ae51051c65391702624ae4e95d2a742a5c4..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/FCC_Sys_New_harness.c +++ /dev/null @@ -1,569 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: FCC_Sys_New_harness.c - * - * Code generated for Simulink model 'FCC_Sys_New_harness'. - * - * Model version : 1.91 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:26 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#include "FCC_Sys_New_harness.h" - -/* Private macros used by the generated code to access rtModel */ -#ifndef rtmIsMajorTimeStep -# define rtmIsMajorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MAJOR_TIME_STEP) -#endif - -#ifndef rtmIsMinorTimeStep -# define rtmIsMinorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MINOR_TIME_STEP) -#endif - -#ifndef rtmSetTPtr -# define rtmSetTPtr(rtm, val) ((rtm)->Timing.t = (val)) -#endif - -/* Used by FromWorkspace Block: '/FromWs' */ -#ifndef rtInterpolate -# define rtInterpolate(v1,v2,f1,f2) (((v1)==(v2))?((double)(v1)): (((f1)*((double)(v1)))+((f2)*((double)(v2))))) -#endif - -#ifndef rtRound -# define rtRound(v) ( ((v) >= 0) ? floor((v) + 0.5) : ceil((v) - 0.5) ) -#endif - -rtTimingBridge FCC_Sys_New_harness_TimingBrdg; - -/* Block signals and states (default storage) */ -DW_FCC_Sys_New_harness_T FCC_Sys_New_harness_DW; - -/* External outputs (root outports fed by signals with default storage) */ -ExtY_FCC_Sys_New_harness_T FCC_Sys_New_harness_Y; - -/* Real-time model */ -RT_MODEL_FCC_Sys_New_harness_T FCC_Sys_New_harness_M_; -RT_MODEL_FCC_Sys_New_harness_T *const FCC_Sys_New_harness_M = - &FCC_Sys_New_harness_M_; - -/* Model step function for TID0 */ -void FCC_Sys_New_harness_step0(void) /* Sample time: [0.0s, 0.0s] */ -{ - real_T v; - - /* Update the flag to indicate when data transfers from - * Sample time: [0.001s, 0.0s] to Sample time: [0.01s, 0.0s] */ - FCC_Sys_New_harness_M->Timing.RateInteraction.b_TID1_2 = - (FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2 == 0); - (FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2)++; - if ((FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2) > 9) { - FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2 = 0; - } - - /* FromWorkspace: '/FromWs' */ - { - real_T *pDataValues = (real_T *) FCC_Sys_New_harness_DW.FromWs_PWORK.DataPtr; - real_T *pTimeValues = (real_T *) FCC_Sys_New_harness_DW.FromWs_PWORK.TimePtr; - int_T currTimeIndex = FCC_Sys_New_harness_DW.FromWs_IWORK.PrevIndex; - real_T t = FCC_Sys_New_harness_M->Timing.t[0]; - - /* Get index */ - if (t <= pTimeValues[0]) { - currTimeIndex = 0; - } else if (t >= pTimeValues[11]) { - currTimeIndex = 10; - } else { - if (t < pTimeValues[currTimeIndex]) { - while (t < pTimeValues[currTimeIndex]) { - currTimeIndex--; - } - } else { - while (t >= pTimeValues[currTimeIndex + 1]) { - currTimeIndex++; - } - } - } - - FCC_Sys_New_harness_DW.FromWs_IWORK.PrevIndex = currTimeIndex; - - /* Post output */ - { - real_T t1 = pTimeValues[currTimeIndex]; - real_T t2 = pTimeValues[currTimeIndex + 1]; - if (t1 == t2) { - if (t < t1) { - { - int_T elIdx; - for (elIdx = 0; elIdx < 27; ++elIdx) { - (&FCC_Sys_New_harness_DW.FromWs[0])[elIdx] = - pDataValues[currTimeIndex]; - pDataValues += 12; - } - } - } else { - { - int_T elIdx; - for (elIdx = 0; elIdx < 27; ++elIdx) { - (&FCC_Sys_New_harness_DW.FromWs[0])[elIdx] = - pDataValues[currTimeIndex + 1]; - pDataValues += 12; - } - } - } - } else { - real_T f1 = (t2 - t) / (t2 - t1); - real_T f2 = 1.0 - f1; - real_T d1; - real_T d2; - int_T TimeIndex= currTimeIndex; - - { - int_T elIdx; - for (elIdx = 0; elIdx < 27; ++elIdx) { - d1 = pDataValues[TimeIndex]; - d2 = pDataValues[TimeIndex + 1]; - (&FCC_Sys_New_harness_DW.FromWs[0])[elIdx] = (real_T) rtInterpolate - (d1, d2, f1, f2); - pDataValues += 12; - } - } - } - } - } - - /* DataTypeConversion: '/Cast1' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[0]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[0] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[0]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Cast1 = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Cast1 = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Cast1 = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast1' */ - - /* DataTypeConversion: '/Cast2' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[1]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[1] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[1]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Cast2 = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Cast2 = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Cast2 = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast2' */ - - /* DataTypeConversion: '/Cast3' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[2]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[2] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[2]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Cast3 = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Cast3 = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Cast3 = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast3' */ - - /* ModelReference: '/FCC_New' incorporates: - * Outport: '/Actuator1' - * Outport: '/Actuator2' - * Outport: '/Actuator3' - */ - FCC_NewTID0(&FCC_Sys_New_harness_DW.Cast1, &FCC_Sys_New_harness_DW.Cast2, - &FCC_Sys_New_harness_DW.Cast3, &FCC_Sys_New_harness_Y.Actuator1, - &FCC_Sys_New_harness_Y.Actuator2, &FCC_Sys_New_harness_Y.Actuator3); - - /* RateTransition: '/Sync4' incorporates: - * RateTransition: '/Sync10' - * RateTransition: '/Sync14' - * RateTransition: '/Sync21' - * RateTransition: '/Sync5' - * RateTransition: '/Sync6' - */ - if (FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2 == 1) { - /* DataTypeConversion: '/Cast4' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[3]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[3] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[3]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Sync4_Buffer = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Sync4_Buffer = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Sync4_Buffer = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast4' */ - - /* DataTypeConversion: '/Cast5' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[4]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[4] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[4]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Sync5_Buffer = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Sync5_Buffer = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Sync5_Buffer = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast5' */ - - /* DataTypeConversion: '/Cast6' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[5]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[5] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[5]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Sync6_Buffer = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Sync6_Buffer = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Sync6_Buffer = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast6' */ - FCC_Sys_New_harness_DW.Sync10_Buffer = FCC_Sys_New_harness_DW.FromWs[9]; - - /* RateTransition: '/Sync11' */ - FCC_Sys_New_harness_DW.Sync11_Buffer = FCC_Sys_New_harness_DW.FromWs[10]; - - /* RateTransition: '/Sync12' */ - FCC_Sys_New_harness_DW.Sync12_Buffer = FCC_Sys_New_harness_DW.FromWs[11]; - - /* RateTransition: '/Sync13' incorporates: - * DataTypeConversion: '/Cast13' - */ - FCC_Sys_New_harness_DW.Sync13_Buffer = (FCC_Sys_New_harness_DW.FromWs[12] != - 0.0); - - /* RateTransition: '/Sync7' */ - FCC_Sys_New_harness_DW.Sync7_Buffer = FCC_Sys_New_harness_DW.FromWs[6]; - - /* RateTransition: '/Sync8' */ - FCC_Sys_New_harness_DW.Sync8_Buffer = FCC_Sys_New_harness_DW.FromWs[7]; - - /* RateTransition: '/Sync9' */ - FCC_Sys_New_harness_DW.Sync9_Buffer = FCC_Sys_New_harness_DW.FromWs[8]; - FCC_Sys_New_harness_DW.Sync14_Buffer = FCC_Sys_New_harness_DW.FromWs[13]; - - /* RateTransition: '/Sync15' */ - FCC_Sys_New_harness_DW.Sync15_Buffer = FCC_Sys_New_harness_DW.FromWs[14]; - - /* RateTransition: '/Sync16' */ - FCC_Sys_New_harness_DW.Sync16_Buffer = FCC_Sys_New_harness_DW.FromWs[15]; - - /* RateTransition: '/Sync17' */ - FCC_Sys_New_harness_DW.Sync17_Buffer = FCC_Sys_New_harness_DW.FromWs[16]; - - /* RateTransition: '/Sync18' */ - FCC_Sys_New_harness_DW.Sync18_Buffer = FCC_Sys_New_harness_DW.FromWs[17]; - - /* RateTransition: '/Sync19' */ - FCC_Sys_New_harness_DW.Sync19_Buffer = FCC_Sys_New_harness_DW.FromWs[18]; - - /* RateTransition: '/Sync20' incorporates: - * DataTypeConversion: '/Cast20' - */ - FCC_Sys_New_harness_DW.Sync20_Buffer = (FCC_Sys_New_harness_DW.FromWs[19] != - 0.0); - FCC_Sys_New_harness_DW.Sync21_Buffer = FCC_Sys_New_harness_DW.FromWs[20]; - - /* RateTransition: '/Sync22' */ - FCC_Sys_New_harness_DW.Sync22_Buffer = FCC_Sys_New_harness_DW.FromWs[21]; - - /* RateTransition: '/Sync23' */ - FCC_Sys_New_harness_DW.Sync23_Buffer = FCC_Sys_New_harness_DW.FromWs[22]; - - /* RateTransition: '/Sync24' */ - FCC_Sys_New_harness_DW.Sync24_Buffer = FCC_Sys_New_harness_DW.FromWs[23]; - - /* RateTransition: '/Sync25' */ - FCC_Sys_New_harness_DW.Sync25_Buffer = FCC_Sys_New_harness_DW.FromWs[24]; - - /* RateTransition: '/Sync26' */ - FCC_Sys_New_harness_DW.Sync26_Buffer = FCC_Sys_New_harness_DW.FromWs[25]; - - /* RateTransition: '/Sync27' incorporates: - * DataTypeConversion: '/Cast27' - */ - FCC_Sys_New_harness_DW.Sync27_Buffer = (FCC_Sys_New_harness_DW.FromWs[26] != - 0.0); - } - - /* End of RateTransition: '/Sync4' */ - - /* Update absolute time */ - /* The "clockTick0" counts the number of times the code of this task has - * been executed. The absolute time is the multiplication of "clockTick0" - * and "Timing.stepSize0". Size of "clockTick0" ensures timer will not - * overflow during the application lifespan selected. - */ - FCC_Sys_New_harness_M->Timing.t[0] = - ((time_T)(++FCC_Sys_New_harness_M->Timing.clockTick0)) * - FCC_Sys_New_harness_M->Timing.stepSize0; - - /* Update absolute time */ - /* The "clockTick1" counts the number of times the code of this task has - * been executed. The resolution of this integer timer is 0.001, which is the step size - * of the task. Size of "clockTick1" ensures timer will not overflow during the - * application lifespan selected. - */ - FCC_Sys_New_harness_M->Timing.clockTick1++; -} - -/* Model step function for TID2 */ -void FCC_Sys_New_harness_step2(void) /* Sample time: [0.01s, 0.0s] */ -{ - /* local block i/o variables */ - AHRS_Bus rtb_AHRS11; - AHRS_Bus rtb_AHRS21; - AHRS_Bus rtb_AHRS31; - int16_T rtb_Sync4; - int16_T rtb_Sync5; - int16_T rtb_Sync6; - - /* RateTransition: '/Sync4' */ - rtb_Sync4 = FCC_Sys_New_harness_DW.Sync4_Buffer; - - /* RateTransition: '/Sync5' */ - rtb_Sync5 = FCC_Sys_New_harness_DW.Sync5_Buffer; - - /* RateTransition: '/Sync6' */ - rtb_Sync6 = FCC_Sys_New_harness_DW.Sync6_Buffer; - - /* BusCreator: '/AHRS1(1)' incorporates: - * RateTransition: '/Sync10' - * RateTransition: '/Sync11' - * RateTransition: '/Sync12' - * RateTransition: '/Sync13' - * RateTransition: '/Sync7' - * RateTransition: '/Sync8' - * RateTransition: '/Sync9' - */ - rtb_AHRS11.theta = FCC_Sys_New_harness_DW.Sync7_Buffer; - rtb_AHRS11.phi = FCC_Sys_New_harness_DW.Sync8_Buffer; - rtb_AHRS11.psi = FCC_Sys_New_harness_DW.Sync9_Buffer; - rtb_AHRS11.q = FCC_Sys_New_harness_DW.Sync10_Buffer; - rtb_AHRS11.p = FCC_Sys_New_harness_DW.Sync11_Buffer; - rtb_AHRS11.r = FCC_Sys_New_harness_DW.Sync12_Buffer; - rtb_AHRS11.valid = FCC_Sys_New_harness_DW.Sync13_Buffer; - - /* BusCreator: '/AHRS2(1)' incorporates: - * RateTransition: '/Sync14' - * RateTransition: '/Sync15' - * RateTransition: '/Sync16' - * RateTransition: '/Sync17' - * RateTransition: '/Sync18' - * RateTransition: '/Sync19' - * RateTransition: '/Sync20' - */ - rtb_AHRS21.theta = FCC_Sys_New_harness_DW.Sync14_Buffer; - rtb_AHRS21.phi = FCC_Sys_New_harness_DW.Sync15_Buffer; - rtb_AHRS21.psi = FCC_Sys_New_harness_DW.Sync16_Buffer; - rtb_AHRS21.q = FCC_Sys_New_harness_DW.Sync17_Buffer; - rtb_AHRS21.p = FCC_Sys_New_harness_DW.Sync18_Buffer; - rtb_AHRS21.r = FCC_Sys_New_harness_DW.Sync19_Buffer; - rtb_AHRS21.valid = FCC_Sys_New_harness_DW.Sync20_Buffer; - - /* BusCreator: '/AHRS3(1)' incorporates: - * RateTransition: '/Sync21' - * RateTransition: '/Sync22' - * RateTransition: '/Sync23' - * RateTransition: '/Sync24' - * RateTransition: '/Sync25' - * RateTransition: '/Sync26' - * RateTransition: '/Sync27' - */ - rtb_AHRS31.theta = FCC_Sys_New_harness_DW.Sync21_Buffer; - rtb_AHRS31.phi = FCC_Sys_New_harness_DW.Sync22_Buffer; - rtb_AHRS31.psi = FCC_Sys_New_harness_DW.Sync23_Buffer; - rtb_AHRS31.q = FCC_Sys_New_harness_DW.Sync24_Buffer; - rtb_AHRS31.p = FCC_Sys_New_harness_DW.Sync25_Buffer; - rtb_AHRS31.r = FCC_Sys_New_harness_DW.Sync26_Buffer; - rtb_AHRS31.valid = FCC_Sys_New_harness_DW.Sync27_Buffer; - - /* ModelReference: '/FCC_New' incorporates: - * Outport: '/Actuator1' - * Outport: '/Actuator2' - * Outport: '/Actuator3' - */ - FCC_NewTID1(&rtb_Sync4, &rtb_Sync5, &rtb_Sync6, &rtb_AHRS11, &rtb_AHRS21, - &rtb_AHRS31); -} - -/* Model initialize function */ -void FCC_Sys_New_harness_initialize(void) -{ - /* Registration code */ - { - /* Setup solver object */ - rtsiSetSimTimeStepPtr(&FCC_Sys_New_harness_M->solverInfo, - &FCC_Sys_New_harness_M->Timing.simTimeStep); - rtsiSetTPtr(&FCC_Sys_New_harness_M->solverInfo, &rtmGetTPtr - (FCC_Sys_New_harness_M)); - rtsiSetStepSizePtr(&FCC_Sys_New_harness_M->solverInfo, - &FCC_Sys_New_harness_M->Timing.stepSize0); - rtsiSetErrorStatusPtr(&FCC_Sys_New_harness_M->solverInfo, - (&rtmGetErrorStatus(FCC_Sys_New_harness_M))); - rtsiSetRTModelPtr(&FCC_Sys_New_harness_M->solverInfo, FCC_Sys_New_harness_M); - } - - rtsiSetSimTimeStep(&FCC_Sys_New_harness_M->solverInfo, MAJOR_TIME_STEP); - rtsiSetSolverName(&FCC_Sys_New_harness_M->solverInfo,"FixedStepDiscrete"); - rtmSetTPtr(FCC_Sys_New_harness_M, &FCC_Sys_New_harness_M->Timing.tArray[0]); - FCC_Sys_New_harness_M->Timing.stepSize0 = 0.001; - - { - static uint32_T *clockTickPtrs[3]; - static real_T *taskTimePtrs[3]; - static boolean_T *rateTransitionPtrs[(3 * 3)]; - FCC_Sys_New_harness_TimingBrdg.nTasks = 3; - clockTickPtrs[0] = &(FCC_Sys_New_harness_M->Timing.clockTick0); - clockTickPtrs[1] = &(FCC_Sys_New_harness_M->Timing.clockTick1); - clockTickPtrs[2] = (NULL); - FCC_Sys_New_harness_TimingBrdg.clockTick = clockTickPtrs; - FCC_Sys_New_harness_TimingBrdg.clockTickH = (NULL); - rateTransitionPtrs[1*3 + 2] = - &(FCC_Sys_New_harness_M->Timing.RateInteraction.b_TID1_2); - FCC_Sys_New_harness_TimingBrdg.rateTransition = rateTransitionPtrs; - taskTimePtrs[0] = &(FCC_Sys_New_harness_M->Timing.t[0]); - taskTimePtrs[1] = (NULL); - taskTimePtrs[2] = (NULL); - FCC_Sys_New_harness_TimingBrdg.taskTime = taskTimePtrs; - } - - /* Model Initialize function for ModelReference Block: '/FCC_New' */ - FCC_New_initialize(rtmGetErrorStatusPointer(FCC_Sys_New_harness_M), - &FCC_Sys_New_harness_TimingBrdg, 1, 2); - - /* Start for FromWorkspace: '/FromWs' */ - { - static real_T pTimeValues0[] = { 0.0, 0.15, 0.15, 0.18, 0.18, 0.192, 0.192, - 0.26, 0.26, 0.27, 0.27, 0.271 } ; - - static real_T pDataValues0[] = { -32722.0, -32722.0, 0.0, 0.0, 0.0, 0.0, - -32728.0, -32728.0, 0.0, 0.0, 0.0, 0.0, -32671.0, -32671.0, 0.0, 0.0, 0.0, - 0.0, -32721.0, -32721.0, 0.0, 0.0, 0.0, 0.0, -32711.0, -32711.0, 0.0, 0.0, - 0.0, 0.0, -32720.0, -32720.0, 0.0, 0.0, 0.0, 0.0, -32722.0, -32722.0, 0.0, - 0.0, 0.0, 0.0, -32684.0, -32684.0, 0.0, 0.0, 0.0, 0.0, -32711.0, -32711.0, - 0.0, 0.0, 0.0, 0.0, -32710.0, -32710.0, 0.0, 0.0, 0.0, 0.0, -32686.0, - -32686.0, 0.0, 0.0, 0.0, 0.0, -32768.0, -32768.0, 0.0, 0.0, 0.0, 0.0, - -118.15138, -118.15138, -180.0, -180.0, -180.0, -180.0, 17.01541, 17.01541, - -180.0, -180.0, -180.0, -180.0, 25.9801, 25.9801, -180.0, -180.0, -180.0, - -180.0, 26.06345, 26.06345, -180.0, -180.0, -180.0, -180.0, 67.51613, - 67.51613, 0.0, 0.0, 0.0, 0.0, 305.78971, 305.78971, 0.0, 0.0, 0.0, 0.0, - 107.78888, 107.78888, -180.0, -180.0, -180.0, -180.0, -169.80836, - -169.80836, -180.0, -180.0, -180.0, -180.0, 171.2196, 171.2196, -180.0, - -180.0, -180.0, -180.0, -32.26304, -32.26304, -180.0, -180.0, 180.0, 180.0, - -3.5854, -3.5854, -180.0, -180.0, -180.0, -180.0, -55.81231, -55.81231, - -180.0, -180.0, -180.0, -180.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, - 1.0, 1.0, 1.0, 1.0, 179.94728, 179.94728, -180.0, -180.0, -180.0, -180.0, - 42.21022, 42.21022, -180.0, -180.0, -180.0, -180.0, -12.15585, -12.15585, - -180.0, -180.0, -180.0, -180.0, 65.16104, 65.16104, -180.0, -180.0, -180.0, - -180.0, 331.47544, 331.47544, 0.0, 0.0, 0.0, 0.0, 63.30298, 63.30298, 0.0, - 0.0, 0.0, 0.0, 158.38363, 158.38363, -180.0, -180.0, -180.0, -180.0, - -139.48832, -139.48832, -180.0, -180.0, -180.0, -180.0, -170.3775, - -170.3775, -180.0, -180.0, -180.0, -180.0, -150.40707, -150.40707, -180.0, - -180.0, 180.0, 180.0, -61.13408, -61.13408, -180.0, -180.0, -180.0, -180.0, - 141.8528, 141.8528, -180.0, -180.0, -180.0, -180.0, 1.0, 1.0, 1.0, 1.0, - 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 60.68156, 60.68156, -180.0, -180.0, - -180.0, -180.0, -93.63384, -93.63384, -180.0, -180.0, -180.0, -180.0, - 165.74818, 165.74818, -180.0, -180.0, -180.0, -180.0, 73.13588, 73.13588, - -180.0, -180.0, -180.0, -180.0, 42.57845, 42.57845, 0.0, 0.0, 0.0, 0.0, - 339.30663, 339.30663, 0.0, 0.0, 0.0, 0.0, 73.76652, 73.76652, -180.0, - -180.0, -180.0, -180.0, -75.80978, -75.80978, -180.0, -180.0, -180.0, - -180.0, -81.62332, -81.62332, -180.0, -180.0, -180.0, -180.0, 48.62002, - 48.62002, -180.0, -180.0, -180.0, -180.0, -31.30247, -31.30247, -180.0, - -180.0, -180.0, -180.0, 99.35286, 99.35286, -180.0, -180.0, -180.0, -180.0, - 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 } ; - - FCC_Sys_New_harness_DW.FromWs_PWORK.TimePtr = (void *) pTimeValues0; - FCC_Sys_New_harness_DW.FromWs_PWORK.DataPtr = (void *) pDataValues0; - FCC_Sys_New_harness_DW.FromWs_IWORK.PrevIndex = 0; - } -} - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/FCC_Sys_New_harness.h b/src/validation/FCC_Sys_New_harness_ert_rtw/FCC_Sys_New_harness.h deleted file mode 100644 index fe05ad205093d8ed6018d2a2ff3cb9fd593a8d95..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/FCC_Sys_New_harness.h +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: FCC_Sys_New_harness.h - * - * Code generated for Simulink model 'FCC_Sys_New_harness'. - * - * Model version : 1.91 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:26 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#ifndef RTW_HEADER_FCC_Sys_New_harness_h_ -#define RTW_HEADER_FCC_Sys_New_harness_h_ -#include -#include -#include "AHRS_Bus.h" -#ifndef FCC_Sys_New_harness_COMMON_INCLUDES_ -# define FCC_Sys_New_harness_COMMON_INCLUDES_ -#include "rtwtypes.h" -#include "rtw_continuous.h" -#include "rtw_solver.h" -#endif /* FCC_Sys_New_harness_COMMON_INCLUDES_ */ - -/* Shared type includes */ -#include "model_reference_types.h" - -/* Child system includes */ -#define FCC_New_MDLREF_HIDE_CHILD_ -#include "FCC_New.h" - -/* Model Code Variants */ - -/* Macros for accessing real-time model data structure */ -#ifndef rtmGetErrorStatus -# define rtmGetErrorStatus(rtm) ((rtm)->errorStatus) -#endif - -#ifndef rtmSetErrorStatus -# define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val)) -#endif - -#ifndef rtmGetErrorStatusPointer -# define rtmGetErrorStatusPointer(rtm) ((const char_T **)(&((rtm)->errorStatus))) -#endif - -#ifndef rtmGetT -# define rtmGetT(rtm) (rtmGetTPtr((rtm))[0]) -#endif - -#ifndef rtmGetTPtr -# define rtmGetTPtr(rtm) ((rtm)->Timing.t) -#endif - -/* Forward declaration for rtModel */ -typedef struct tag_RTM_FCC_Sys_New_harness_T RT_MODEL_FCC_Sys_New_harness_T; - -/* Block signals and states (default storage) for system '' */ -typedef struct { - real_T FromWs[27]; /* '/FromWs' */ - real_T Sync10_Buffer; /* '/Sync10' */ - real_T Sync11_Buffer; /* '/Sync11' */ - real_T Sync12_Buffer; /* '/Sync12' */ - real_T Sync7_Buffer; /* '/Sync7' */ - real_T Sync8_Buffer; /* '/Sync8' */ - real_T Sync9_Buffer; /* '/Sync9' */ - real_T Sync14_Buffer; /* '/Sync14' */ - real_T Sync15_Buffer; /* '/Sync15' */ - real_T Sync16_Buffer; /* '/Sync16' */ - real_T Sync17_Buffer; /* '/Sync17' */ - real_T Sync18_Buffer; /* '/Sync18' */ - real_T Sync19_Buffer; /* '/Sync19' */ - real_T Sync21_Buffer; /* '/Sync21' */ - real_T Sync22_Buffer; /* '/Sync22' */ - real_T Sync23_Buffer; /* '/Sync23' */ - real_T Sync24_Buffer; /* '/Sync24' */ - real_T Sync25_Buffer; /* '/Sync25' */ - real_T Sync26_Buffer; /* '/Sync26' */ - struct { - int_T PrevIndex; - } FromWs_IWORK; /* '/FromWs' */ - - struct { - void *TimePtr; - void *DataPtr; - void *RSimInfoPtr; - } FromWs_PWORK; /* '/FromWs' */ - - int16_T Cast1; /* '/Cast1' */ - int16_T Cast2; /* '/Cast2' */ - int16_T Cast3; /* '/Cast3' */ - int16_T Sync4_Buffer; /* '/Sync4' */ - int16_T Sync5_Buffer; /* '/Sync5' */ - int16_T Sync6_Buffer; /* '/Sync6' */ - boolean_T Sync13_Buffer; /* '/Sync13' */ - boolean_T Sync20_Buffer; /* '/Sync20' */ - boolean_T Sync27_Buffer; /* '/Sync27' */ -} DW_FCC_Sys_New_harness_T; - -/* External outputs (root outports fed by signals with default storage) */ -typedef struct { - int16_T Actuator1; /* '/Actuator1' */ - int16_T Actuator2; /* '/Actuator2' */ - int16_T Actuator3; /* '/Actuator3' */ -} ExtY_FCC_Sys_New_harness_T; - -/* Code_Instrumentation_Declarations_Placeholder */ - -/* Real-time Model Data Structure */ -struct tag_RTM_FCC_Sys_New_harness_T { - const char_T *errorStatus; - RTWSolverInfo solverInfo; - - /* - * Timing: - * The following substructure contains information regarding - * the timing information for the model. - */ - struct { - uint32_T clockTick0; - time_T stepSize0; - uint32_T clockTick1; - struct { - uint32_T TID1_2; - boolean_T b_TID1_2; - } RateInteraction; - - SimTimeStep simTimeStep; - time_T *t; - time_T tArray[3]; - } Timing; -}; - -extern rtTimingBridge FCC_Sys_New_harness_TimingBrdg; - -/* Block signals and states (default storage) */ -extern DW_FCC_Sys_New_harness_T FCC_Sys_New_harness_DW; - -/* External outputs (root outports fed by signals with default storage) */ -extern ExtY_FCC_Sys_New_harness_T FCC_Sys_New_harness_Y; - -/* Model entry point functions */ -extern void FCC_Sys_New_harness_initialize(void); -extern void FCC_Sys_New_harness_step0(void); -extern void FCC_Sys_New_harness_step2(void); - -/* Real-time Model object */ -extern RT_MODEL_FCC_Sys_New_harness_T *const FCC_Sys_New_harness_M; - -/*- - * These blocks were eliminated from the model due to optimizations: - * - * Block '/Cast10' : Eliminate redundant data type conversion - * Block '/Cast11' : Eliminate redundant data type conversion - * Block '/Cast12' : Eliminate redundant data type conversion - * Block '/Cast14' : Eliminate redundant data type conversion - * Block '/Cast15' : Eliminate redundant data type conversion - * Block '/Cast16' : Eliminate redundant data type conversion - * Block '/Cast17' : Eliminate redundant data type conversion - * Block '/Cast18' : Eliminate redundant data type conversion - * Block '/Cast19' : Eliminate redundant data type conversion - * Block '/Cast21' : Eliminate redundant data type conversion - * Block '/Cast22' : Eliminate redundant data type conversion - * Block '/Cast23' : Eliminate redundant data type conversion - * Block '/Cast24' : Eliminate redundant data type conversion - * Block '/Cast25' : Eliminate redundant data type conversion - * Block '/Cast26' : Eliminate redundant data type conversion - * Block '/Cast7' : Eliminate redundant data type conversion - * Block '/Cast8' : Eliminate redundant data type conversion - * Block '/Cast9' : Eliminate redundant data type conversion - * Block '/Sync1' : Eliminated since input and output rates are identical - * Block '/Sync2' : Eliminated since input and output rates are identical - * Block '/Sync3' : Eliminated since input and output rates are identical - */ - -/*- - * The generated code includes comments that allow you to trace directly - * back to the appropriate location in the model. The basic format - * is /block_name, where system is the system number (uniquely - * assigned by Simulink) and block_name is the name of the block. - * - * Use the MATLAB hilite_system command to trace the generated code back - * to the model. For example, - * - * hilite_system('') - opens system 3 - * hilite_system('/Kp') - opens and selects block Kp which resides in S3 - * - * Here is the system hierarchy for this model - * - * '' : 'FCC_Sys_New_harness' - * '' : 'FCC_Sys_New_harness/Inputs' - * '' : 'FCC_Sys_New_harness/Size-Type' - * '' : 'FCC_Sys_New_harness/Test Case Explanation' - * '' : 'FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)' - * '' : 'FCC_Sys_New_harness/Size-Type/Bus7' - * '' : 'FCC_Sys_New_harness/Size-Type/Bus8' - * '' : 'FCC_Sys_New_harness/Size-Type/Bus9' - */ - -/*- - * Requirements for '': FCC_Sys_New_harness - */ -#endif /* RTW_HEADER_FCC_Sys_New_harness_h_ */ - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/buildInfo.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/buildInfo.mat deleted file mode 100644 index 6c4fc6301c78bd547b28aaa7951173443b66f8af..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/buildInfo.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/codeInfo.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/codeInfo.mat deleted file mode 100644 index 394393c38674ed19c781fc8b8d55f70b8c2dca0b..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/codeInfo.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/codedescriptor.dmr b/src/validation/FCC_Sys_New_harness_ert_rtw/codedescriptor.dmr deleted file mode 100644 index 474af30345f13bff0c3096ac76ff668c0a9c71d3..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/codedescriptor.dmr and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/FCC_Sys_New_harness_ca.c b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/FCC_Sys_New_harness_ca.c deleted file mode 100644 index 98066a9df2afc5452c70563c53372200fac839a6..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/FCC_Sys_New_harness_ca.c +++ /dev/null @@ -1,63 +0,0 @@ -/* - * File: FCC_Sys_New_harness_ca.c - * - * Abstract: Tests assumptions in the generated code. - */ - -#include "FCC_Sys_New_harness_ca.h" - -CA_HWImpl_TestResults CA_FCC_Sys_New_harness_HWRes; -CA_PWS_TestResults CA_FCC_Sys_New_harness_PWSRes; -const CA_HWImpl CA_FCC_Sys_New_harness_ExpHW = { - -#ifdef PORTABLE_WORDSIZES - - 8, /* BitPerChar */ - 16, /* BitPerShort */ - 32, /* BitPerInt */ - 32, /* BitPerLong */ - 64, /* BitPerLongLong */ - 32, /* BitPerFloat */ - 64, /* BitPerDouble */ - 64, /* BitPerPointer */ - 64, /* BitPerSizeT */ - 64, /* BitPerPtrDiffT */ - CA_LITTLE_ENDIAN, /* Endianess */ - CA_ZERO, /* IntDivRoundTo */ - 1, /* ShiftRightIntArith */ - -#else - - 8, /* BitPerChar */ - 16, /* BitPerShort */ - 32, /* BitPerInt */ - 32, /* BitPerLong */ - 64, /* BitPerLongLong */ - 32, /* BitPerFloat */ - 64, /* BitPerDouble */ - 32, /* BitPerPointer */ - 32, /* BitPerSizeT */ - 32, /* BitPerPtrDiffT */ - CA_LITTLE_ENDIAN, /* Endianess */ - CA_ZERO, /* IntDivRoundTo */ - 1, /* ShiftRightIntArith */ - -#endif - - 1, /* LongLongMode */ - 1, /* PortableWordSizes */ - "Intel->x86-32 (Windows32)", /* HWDeviceType */ - 0, /* MemoryAtStartup */ - 0, /* DenormalFlushToZero */ - 0 /* DenormalAsZero */ -}; - -CA_HWImpl CA_FCC_Sys_New_harness_ActHW; -void FCC_Sys_New_harness_caRunTests(void) -{ - /* verify hardware implementation */ - caVerifyPortableWordSizes(&CA_FCC_Sys_New_harness_ActHW, - &CA_FCC_Sys_New_harness_ExpHW, &CA_FCC_Sys_New_harness_PWSRes); - caVerifyHWImpl(&CA_FCC_Sys_New_harness_ActHW, &CA_FCC_Sys_New_harness_ExpHW, - &CA_FCC_Sys_New_harness_HWRes); -} diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/FCC_Sys_New_harness_ca.h b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/FCC_Sys_New_harness_ca.h deleted file mode 100644 index 4de5e10f2e203cd15a7aa89819d40b7209b3ad7a..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/FCC_Sys_New_harness_ca.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * File: FCC_Sys_New_harness_ca.h - * - * Abstract: Tests assumptions in the generated code. - */ - -#ifndef FCC_SYS_NEW_HARNESS_CA_H -#define FCC_SYS_NEW_HARNESS_CA_H - -/* preprocessor validation checks */ -#include "FCC_Sys_New_harness_ca_preproc.h" -#include "coder_assumptions_hwimpl.h" - -/* variables holding test results */ -extern CA_HWImpl_TestResults CA_FCC_Sys_New_harness_HWRes; -extern CA_PWS_TestResults CA_FCC_Sys_New_harness_PWSRes; - -/* variables holding "expected" and "actual" hardware implementation */ -extern const CA_HWImpl CA_FCC_Sys_New_harness_ExpHW; -extern CA_HWImpl CA_FCC_Sys_New_harness_ActHW; - -/* entry point function to run tests */ -void FCC_Sys_New_harness_caRunTests(void); - -#endif /* FCC_SYS_NEW_HARNESS_CA_H */ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/FCC_Sys_New_harness_ca_preproc.h b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/FCC_Sys_New_harness_ca_preproc.h deleted file mode 100644 index 3e511acc3be1dd13d548e5702a4d82b8c21c7e72..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/FCC_Sys_New_harness_ca_preproc.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * File: FCC_Sys_New_harness_ca_preproc.h - * - * Abstract: Preprocessor checks for hardware implementation settings. - * - * Hardware Implementation Specification: - * - * HWDeviceType: Intel->x86-32 (Windows32) - * PortableWordSizes: on - * PreprocMaxBitsUint: 32 - * PreprocMaxBitsSint: 32 - * BitPerChar: 8 - * BitPerShort: 16 - * BitPerInt: 32 - * BitPerLong: 32 - * LongLongMode: on - * BitPerLongLong: 64 - */ - -#ifndef FCC_SYS_NEW_HARNESS_CA_PREPROC_H -#define FCC_SYS_NEW_HARNESS_CA_PREPROC_H -#ifndef PORTABLE_WORDSIZES - -/* make sure limits are available */ -#ifndef UCHAR_MAX -#include -#endif - -#if (UCHAR_MAX != (0xFFU)) || (SCHAR_MAX != (0x7F)) -#error Code was generated for compiler with different sized uchar/char. \ -Consider adjusting Hardware Implementation data type sizes to \ -match your compiler (defined in limits.h). -#endif - -#if (USHRT_MAX != (0xFFFFU)) || (SHRT_MAX != (0x7FFF)) -#error Code was generated for compiler with different sized ushort/short. \ -Consider adjusting Hardware Implementation data type sizes to \ -match your compiler (defined in limits.h). -#endif - -#if (UINT_MAX != (0xFFFFFFFFU)) || (INT_MAX != (0x7FFFFFFF)) -#error Code was generated for compiler with different sized uint/int. \ -Consider adjusting Hardware Implementation data type sizes to \ -match your compiler (defined in limits.h). -#endif - -#if (ULONG_MAX != (0xFFFFFFFFU)) || (LONG_MAX != (0x7FFFFFFF)) -#error Code was generated for compiler with different sized ulong/long. \ -Consider adjusting Hardware Implementation data type sizes to \ -match your compiler (defined in limits.h). -#endif - -/* Skipping ulong_long/long_long check: insufficient preprocessor integer range. */ -#endif /* !PORTABLE_WORDSIZES */ -#endif /* FCC_SYS_NEW_HARNESS_CA_PREPROC_H */ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/coder_assumptions.h b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/coder_assumptions.h deleted file mode 100644 index bb4abda7f8079661e0939eab2faced0a22e02d9f..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/coder_assumptions.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * File: coder_assumptions.h - * - * Abstract: Coder assumptions header file - */ - -#ifndef CODER_ASSUMPTIONS_H -#define CODER_ASSUMPTIONS_H - -/* include model specific checks */ -#include "FCC_Sys_New_harness_ca.h" - -/* global results variable mapping for static code */ -#define CA_Expected_HWImpl CA_FCC_Sys_New_harness_ExpHW -#define CA_Actual_HWImpl CA_FCC_Sys_New_harness_ActHW -#define CA_HWImpl_Results CA_FCC_Sys_New_harness_HWRes -#define CA_PortableWordSizes_Results CA_FCC_Sys_New_harness_PWSRes - -/* entry point function mapping for static code */ -#define CA_Run_Tests FCC_Sys_New_harness_caRunTests -#endif /* CODER_ASSUMPTIONS_H */ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.bat b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.bat deleted file mode 100644 index fb9ed958c61fdfaae3f1676467aa644a5373c87a..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.bat +++ /dev/null @@ -1,15 +0,0 @@ -@if not "%MINGW_ROOT%" == "" (@set "PATH=%PATH%;%MINGW_ROOT%") - - -call "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a\bin\win64\checkMATLABRootForDriveMap.exe" "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a" > mlEnv.txt -for /f %%a in (mlEnv.txt) do set "%%a"\n -cd . - -if "%1"=="" ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f FCC_Sys_New_harness_ca.mk all) else ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f FCC_Sys_New_harness_ca.mk %1) -@if errorlevel 1 goto error_exit - -exit 0 - -:error_exit -echo The make command returned an error of %errorlevel% -exit 1 diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.lib b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.lib deleted file mode 100644 index a6e2efe699708463d32c21875efd8416ad107ceb..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.lib and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.mk b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.mk deleted file mode 100644 index 3697f0587056be93d3ac3e1d395024fdb4c9244a..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.mk +++ /dev/null @@ -1,417 +0,0 @@ -########################################################################### -## Makefile generated for Simulink model 'FCC_Sys_New_harness_ca'. -## -## Makefile : FCC_Sys_New_harness_ca.mk -## Generated on : Thu Jul 16 18:55:49 2020 -## MATLAB Coder version: 5.0 (R2020a) -## -## Build Info: -## -## Final product: ./FCC_Sys_New_harness_ca.lib -## Product type : static library -## Build type : Model Reference Library -## -########################################################################### - -########################################################################### -## MACROS -########################################################################### - -# Macro Descriptions: -# PRODUCT_NAME Name of the system to build -# MAKEFILE Name of this makefile -# COMPILER_COMMAND_FILE Compiler command listing model reference header paths -# CMD_FILE Command file -# MODELLIB Static library target - -PRODUCT_NAME = FCC_Sys_New_harness_ca -MAKEFILE = FCC_Sys_New_harness_ca.mk -MATLAB_ROOT = D:/Program Files/MATLAB/R2020a -MATLAB_BIN = D:/Program Files/MATLAB/R2020a/bin -MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64 -MASTER_ANCHOR_DIR = -START_DIR = D:/Documents/SCHOOL/McSCert/do178/src/validation -SOLVER = -SOLVER_OBJ = -CLASSIC_INTERFACE = 0 -TGT_FCN_LIB = ISO_C -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0 -RELATIVE_PATH_TO_ANCHOR = ../../.. -COMPILER_COMMAND_FILE = FCC_Sys_New_harness_ca_comp.rsp -CMD_FILE = FCC_Sys_New_harness_ca.rsp -C_STANDARD_OPTS = -fwrapv -CPP_STANDARD_OPTS = -fwrapv -MODELLIB = FCC_Sys_New_harness_ca.lib - -########################################################################### -## TOOLCHAIN SPECIFICATIONS -########################################################################### - -# Toolchain Name: MinGW64 | gmake (64-bit Windows) -# Supported Version(s): 6.x -# ToolchainInfo Version: 2020a -# Specification Revision: 1.0 -# -#------------------------------------------- -# Macros assumed to be defined elsewhere -#------------------------------------------- - -# C_STANDARD_OPTS -# CPP_STANDARD_OPTS -# MINGW_ROOT -# MINGW_C_STANDARD_OPTS - -#----------- -# MACROS -#----------- - -WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -WARN_FLAGS_MAX = $(WARN_FLAGS) -Wcast-qual -Wshadow -CPP_WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wpointer-arith -Wcast-align -CPP_WARN_FLAGS_MAX = $(CPP_WARN_FLAGS) -Wcast-qual -Wshadow -MW_EXTERNLIB_DIR = $(MATLAB_ROOT)/extern/lib/win64/mingw64 -SHELL = %SystemRoot%/system32/cmd.exe - -TOOLCHAIN_SRCS = -TOOLCHAIN_INCS = -TOOLCHAIN_LIBS = -lws2_32 - -#------------------------ -# BUILD TOOL COMMANDS -#------------------------ - -# C Compiler: GNU C Compiler -CC_PATH = $(MINGW_ROOT) -CC = "$(CC_PATH)/gcc" - -# Linker: GNU Linker -LD_PATH = $(MINGW_ROOT) -LD = "$(LD_PATH)/g++" - -# C++ Compiler: GNU C++ Compiler -CPP_PATH = $(MINGW_ROOT) -CPP = "$(CPP_PATH)/g++" - -# C++ Linker: GNU C++ Linker -CPP_LD_PATH = $(MINGW_ROOT) -CPP_LD = "$(CPP_LD_PATH)/g++" - -# Archiver: GNU Archiver -AR_PATH = $(MINGW_ROOT) -AR = "$(AR_PATH)/ar" - -# MEX Tool: MEX Tool -MEX_PATH = $(MATLAB_ARCH_BIN) -MEX = "$(MEX_PATH)/mex" - -# Download: Download -DOWNLOAD = - -# Execute: Execute -EXECUTE = $(PRODUCT) - -# Builder: GMAKE Utility -MAKE_PATH = %MATLAB%/bin/win64 -MAKE = "$(MAKE_PATH)/gmake" - - -#------------------------- -# Directives/Utilities -#------------------------- - -CDEBUG = -g -C_OUTPUT_FLAG = -o -LDDEBUG = -g -OUTPUT_FLAG = -o -CPPDEBUG = -g -CPP_OUTPUT_FLAG = -o -CPPLDDEBUG = -g -OUTPUT_FLAG = -o -ARDEBUG = -STATICLIB_OUTPUT_FLAG = -MEX_DEBUG = -g -RM = @del -ECHO = @echo -MV = @move -RUN = - -#---------------------------------------- -# "Faster Builds" Build Configuration -#---------------------------------------- - -ARFLAGS = ruvs -CFLAGS = -c $(MINGW_C_STANDARD_OPTS) -m64 \ - -O0 -CPPFLAGS = -c $(CPP_STANDARD_OPTS) -m64 -std=c++11 \ - -O0 -CPP_LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -CPP_SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib -DOWNLOAD_FLAGS = -EXECUTE_FLAGS = -LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -MEX_CPPFLAGS = -MEX_CPPLDFLAGS = -MEX_CFLAGS = -MEX_LDFLAGS = -MAKE_FLAGS = -f $(MAKEFILE) -SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib - - - -########################################################################### -## OUTPUT INFO -########################################################################### - -PRODUCT = ./FCC_Sys_New_harness_ca.lib -PRODUCT_TYPE = "static library" -BUILD_TYPE = "Model Reference Library" - -########################################################################### -## INCLUDE PATHS -########################################################################### - -INCLUDES_BUILDINFO = - -INCLUDES = $(INCLUDES_BUILDINFO) - -########################################################################### -## DEFINES -########################################################################### - -DEFINES_BUILD_ARGS = -DINTEGER_CODE=0 -DEFINES_CUSTOM = -DEFINES_OPTS = -DCA_CHECK_FLOATING_POINT_ENABLED=1 -DPORTABLE_WORDSIZES -DCA_CHECK_LONG_LONG_ENABLED=1 -DCA_CHECK_DAZ_ENABLED=1 - -DEFINES = $(DEFINES_BUILD_ARGS) $(DEFINES_CUSTOM) $(DEFINES_OPTS) - -########################################################################### -## SOURCE FILES -########################################################################### - -SRCS = $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/coder_assumptions_hwimpl.c $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/coder_assumptions_flt.c $(START_DIR)/FCC_Sys_New_harness_ert_rtw/coderassumptions/FCC_Sys_New_harness_ca.c - -ALL_SRCS = $(SRCS) - -########################################################################### -## OBJECTS -########################################################################### - -OBJS = coder_assumptions_hwimpl.obj coder_assumptions_flt.obj FCC_Sys_New_harness_ca.obj - -ALL_OBJS = $(OBJS) - -########################################################################### -## PREBUILT OBJECT FILES -########################################################################### - -PREBUILT_OBJS = - -########################################################################### -## LIBRARIES -########################################################################### - -LIBS = - -########################################################################### -## SYSTEM LIBRARIES -########################################################################### - -SYSTEM_LIBS = - -########################################################################### -## ADDITIONAL TOOLCHAIN FLAGS -########################################################################### - -#--------------- -# C Compiler -#--------------- - -CFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CFLAGS += $(CFLAGS_BASIC) - -#----------------- -# C++ Compiler -#----------------- - -CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CPPFLAGS += $(CPPFLAGS_BASIC) - -#--------------------- -# MEX C++ Compiler -#--------------------- - -MEX_CPP_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CPPFLAGS += $(MEX_CPP_Compiler_BASIC) - -#----------------- -# MEX Compiler -#----------------- - -MEX_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CFLAGS += $(MEX_Compiler_BASIC) - -########################################################################### -## INLINED COMMANDS -########################################################################### - - -MINGW_C_STANDARD_OPTS = $(C_STANDARD_OPTS) - - -########################################################################### -## PHONY TARGETS -########################################################################### - -.PHONY : all build clean info prebuild download execute - - -all : build - @echo "### Successfully generated all binary outputs." - - -build : prebuild $(PRODUCT) - - -prebuild : - - -download : $(PRODUCT) - - -execute : download - - -########################################################################### -## FINAL TARGET -########################################################################### - -#--------------------------------- -# Create a static library -#--------------------------------- - -$(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) - @echo "### Creating static library "$(PRODUCT)" ..." - $(AR) $(ARFLAGS) $(PRODUCT) @$(CMD_FILE) - @echo "### Created: $(PRODUCT)" - - -########################################################################### -## INTERMEDIATE TARGETS -########################################################################### - -#--------------------- -# SOURCE-TO-OBJECT -#--------------------- - -%.obj : %.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : %.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/FCC_Sys_New_harness_ert_rtw/coderassumptions/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/FCC_Sys_New_harness_ert_rtw/coderassumptions/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -coder_assumptions_hwimpl.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/coder_assumptions_hwimpl.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -coder_assumptions_flt.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/coder_assumptions_flt.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -FCC_Sys_New_harness_ca.obj : $(START_DIR)/FCC_Sys_New_harness_ert_rtw/coderassumptions/FCC_Sys_New_harness_ca.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -########################################################################### -## DEPENDENCIES -########################################################################### - -$(ALL_OBJS) : $(COMPILER_COMMAND_FILE) $(MAKEFILE) - - -########################################################################### -## MISCELLANEOUS TARGETS -########################################################################### - -info : - @echo "### PRODUCT = $(PRODUCT)" - @echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)" - @echo "### BUILD_TYPE = $(BUILD_TYPE)" - @echo "### INCLUDES = $(INCLUDES)" - @echo "### DEFINES = $(DEFINES)" - @echo "### ALL_SRCS = $(ALL_SRCS)" - @echo "### ALL_OBJS = $(ALL_OBJS)" - @echo "### LIBS = $(LIBS)" - @echo "### MODELREF_LIBS = $(MODELREF_LIBS)" - @echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)" - @echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)" - @echo "### CFLAGS = $(CFLAGS)" - @echo "### LDFLAGS = $(LDFLAGS)" - @echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)" - @echo "### CPPFLAGS = $(CPPFLAGS)" - @echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)" - @echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)" - @echo "### ARFLAGS = $(ARFLAGS)" - @echo "### MEX_CFLAGS = $(MEX_CFLAGS)" - @echo "### MEX_CPPFLAGS = $(MEX_CPPFLAGS)" - @echo "### MEX_LDFLAGS = $(MEX_LDFLAGS)" - @echo "### MEX_CPPLDFLAGS = $(MEX_CPPLDFLAGS)" - @echo "### DOWNLOAD_FLAGS = $(DOWNLOAD_FLAGS)" - @echo "### EXECUTE_FLAGS = $(EXECUTE_FLAGS)" - @echo "### MAKE_FLAGS = $(MAKE_FLAGS)" - - -clean : - $(ECHO) "### Deleting all derived files..." - $(RM) $(subst /,\,$(PRODUCT)) - $(RM) $(subst /,\,$(ALL_OBJS)) - $(ECHO) "### Deleted all derived files." - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.obj deleted file mode 100644 index 424889610de787fa03315edf46b41950bb264f10..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.rsp b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.rsp deleted file mode 100644 index 35b900b071faa3e7e6db297534288c3e12a4e392..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.rsp +++ /dev/null @@ -1,3 +0,0 @@ -FCC_Sys_New_harness_ca.obj -coder_assumptions_flt.obj -coder_assumptions_hwimpl.obj diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca_comp.rsp b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca_comp.rsp deleted file mode 100644 index d2ddcc51325d81147dc0aee7ef3ca048b2966171..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca_comp.rsp +++ /dev/null @@ -1,13 +0,0 @@ --ID:/Documents/SCHOOL/McSCert/do178/src/validation --ID:/Program\ Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c --ID:/Documents/SCHOOL/McSCert/do178/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/FCC_New --ID:/Documents/SCHOOL/McSCert/do178/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented --ID:/Program\ Files/MATLAB/R2020a/extern/include --ID:/Program\ Files/MATLAB/R2020a/simulink/include --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src/ext_mode/common --ID:/Program\ Files/MATLAB/R2020a/rtw/c/ert --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/_sharedutils diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca_ref.rsp b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca_ref.rsp deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/buildInfo.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/buildInfo.mat deleted file mode 100644 index fc266b2018d0cc5df02818090d069da4332c48b2..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/buildInfo.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/coder_assumptions_flt.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/coder_assumptions_flt.obj deleted file mode 100644 index 5a29b9c952761538e6e42a6fb8c53e9856495c59..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/coder_assumptions_flt.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/coder_assumptions_hwimpl.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/coder_assumptions_hwimpl.obj deleted file mode 100644 index be6ef843e06ec737744df9bbb8fb876cd824f3a6..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/coder_assumptions_hwimpl.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/compileInfo.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/compileInfo.mat deleted file mode 100644 index 26077d8b7baa54985014e400bc89017aa97b8dce..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/compileInfo.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/defines.txt b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/defines.txt deleted file mode 100644 index b7a13b54f1a0f837a72c3344c9c1fafdc0e433a2..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/defines.txt +++ /dev/null @@ -1,5 +0,0 @@ -CA_CHECK_FLOATING_POINT_ENABLED=1 -PORTABLE_WORDSIZES -INTEGER_CODE=0 -CA_CHECK_LONG_LONG_ENABLED=1 -CA_CHECK_DAZ_ENABLED=1 diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/mlEnv.txt b/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/mlEnv.txt deleted file mode 100644 index 4dd92c55ba21f6d084f4d56da9e810007d42794a..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/mlEnv.txt +++ /dev/null @@ -1,4 +0,0 @@ -MATLAB_ROOT=E: -ALT_MATLAB_ROOT=E: -MATLAB_BIN=E:\bin -ALT_MATLAB_BIN=E:\bin diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/defines.txt b/src/validation/FCC_Sys_New_harness_ert_rtw/defines.txt deleted file mode 100644 index b5ab630ab5807c6f7e689a2148d683010900c502..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/defines.txt +++ /dev/null @@ -1,15 +0,0 @@ -MODEL=FCC_Sys_New_harness -NUMST=3 -NCSTATES=0 -HAVESTDIO -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -CLASSIC_INTERFACE=0 -ALLOCATIONFCN=0 -TID01EQ=1 -PORTABLE_WORDSIZES -TERMFCN=0 -ONESTEPFCN=1 -MAT_FILE=0 -MULTI_INSTANCE_CODE=0 -INTEGER_CODE=0 -MT=1 diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/ert_main.c b/src/validation/FCC_Sys_New_harness_ert_rtw/ert_main.c deleted file mode 100644 index 79179126d4f53c4222e9188fd9aba9973978de37..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/ert_main.c +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: ert_main.c - * - * Code generated for Simulink model 'FCC_Sys_New_harness'. - * - * Model version : 1.91 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:26 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#include -#include /* This ert_main.c example uses printf/fflush */ -#include "FCC_Sys_New_harness.h" /* Model's header file */ -#include "rtwtypes.h" -#include "model_reference_types.h" - -/* - * Associating rt_OneStep with a real-time clock or interrupt service routine - * is what makes the generated code "real-time". The function rt_OneStep is - * always associated with the base rate of the model. Subrates are managed - * by the base rate from inside the generated code. Enabling/disabling - * interrupts and floating point context switches are target specific. This - * example code indicates where these should take place relative to executing - * the generated code step function. Overrun behavior should be tailored to - * your application needs. This example simply sets an error status in the - * real-time model and returns from rt_OneStep. - */ -void rt_OneStep(void); -void rt_OneStep(void) -{ - static boolean_T OverrunFlags[3] = { 0, 0, 0 }; - - static boolean_T eventFlags[3] = { 0, 0, 0 };/* Model has 3 rates */ - - static int_T taskCounter[3] = { 0, 0, 0 }; - - /* Disable interrupts here */ - - /* Check base rate for overrun */ - if (OverrunFlags[0]) { - rtmSetErrorStatus(FCC_Sys_New_harness_M, "Overrun"); - return; - } - - OverrunFlags[0] = true; - - /* Save FPU context here (if necessary) */ - /* Re-enable timer or interrupt here */ - - /* - * For a bare-board target (i.e., no operating system), the - * following code checks whether any subrate overruns, - * and also sets the rates that need to run this time step. - */ - if (taskCounter[2] == 0) { - if (eventFlags[2]) { - OverrunFlags[0] = false; - OverrunFlags[2] = true; - - /* Sampling too fast */ - rtmSetErrorStatus(FCC_Sys_New_harness_M, "Overrun"); - return; - } - - eventFlags[2] = true; - } - - taskCounter[1]++; - if (taskCounter[1] == 1) { - taskCounter[1]= 0; - } - - taskCounter[2]++; - if (taskCounter[2] == 10) { - taskCounter[2]= 0; - } - - /* Set model inputs associated with base rate here */ - - /* Step the model for base rate */ - FCC_Sys_New_harness_step0(); - - /* Get model outputs here */ - - /* Indicate task for base rate complete */ - OverrunFlags[0] = false; - - /* If task 1 is running, don't run any lower priority task */ - if (OverrunFlags[1]) { - return; - } - - /* Step the model for subrate */ - if (eventFlags[2]) { - OverrunFlags[2] = true; - - /* Set model inputs associated with subrates here */ - - /* Step the model for subrate 2 */ - FCC_Sys_New_harness_step2(); - - /* Get model outputs here */ - - /* Indicate task complete for subrate */ - OverrunFlags[2] = false; - eventFlags[2] = false; - } - - /* Disable interrupts here */ - /* Restore FPU context here (if necessary) */ - /* Enable interrupts here */ -} - -/* - * The example "main" function illustrates what is required by your - * application code to initialize, execute, and terminate the generated code. - * Attaching rt_OneStep to a real-time clock is target specific. This example - * illustrates how you do this relative to initializing the model. - */ -int_T main(int_T argc, const char *argv[]) -{ - /* Unused arguments */ - (void)(argc); - (void)(argv); - - /* Initialize model */ - FCC_Sys_New_harness_initialize(); - - /* Attach rt_OneStep to a timer or interrupt service routine with - * period 0.001 seconds (the model's base sample time) here. The - * call syntax for rt_OneStep is - * - * rt_OneStep(); - */ - printf("Warning: The simulation will run forever. " - "Generated ERT main won't simulate model step behavior. " - "To change this behavior select the 'MAT-file logging' option.\n"); - fflush((NULL)); - while (rtmGetErrorStatus(FCC_Sys_New_harness_M) == (NULL)) { - /* Perform other application tasks here */ - } - - /* Disable rt_OneStep() here */ - return 0; -} - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/CodeInstrTgtAppSvc_CInterface_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/CodeInstrTgtAppSvc_CInterface_h.html deleted file mode 100644 index 919c4232f3d5eeff59593301864c25a61877ac4b..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/CodeInstrTgtAppSvc_CInterface_h.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2013-2015 The MathWorks, Inc. */
2
3#ifndef CodeInstrTgtAppSvc_CInterface_h
4#define CodeInstrTgtAppSvc_CInterface_h
5
6#include "CodeInstrTgtAppSvc.h"
7
8CODEINSTRTGTAPPSVC_API_EXTERN_C uint8_T codeInstrTgtAppSvcCreate(void);
9
10CODEINSTRTGTAPPSVC_API_EXTERN_C void codeInstrTgtAppSvcDestroy(void);
11
12CODEINSTRTGTAPPSVC_API_EXTERN_C uint8_T codeInstrTgtAppSvcAllocBuffer(void** ppBuf,
13 const uint16_T size);
14
15CODEINSTRTGTAPPSVC_API_EXTERN_C IOUnit_T* codeInstrTgtAppSvcGetBufferDataPtr(void* pBufVoid);
16
17CODEINSTRTGTAPPSVC_API_EXTERN_C uint8_T codeInstrTgtAppSvcSend(void* pBufVoid,
18 const uint16_T payloadSize);
19
20CODEINSTRTGTAPPSVC_API_EXTERN_C uint16_T codeInstrTgtAppSvcGetMaxPayloadCapacity(void);
21
22#endif
23
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/CodeInstrTgtAppSvc_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/CodeInstrTgtAppSvc_h.html deleted file mode 100644 index ca40391dedb41622e162ecdfeb43224da49baddc..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/CodeInstrTgtAppSvc_h.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2013-2015 The MathWorks, Inc. */
2
3#ifndef CodeInstrTgtAppSvc_h
4#define CodeInstrTgtAppSvc_h
5
6#include "CodeInstrTgtAppSvc_spec.h"
7#include "rtwtypes.h"
8
9#if defined (USING_CS_API) || defined(BUILDING_LIBMWCODER_CODEINSTRTGTAPPSVC)
10
11 typedef uint8_T IOUnit_T;
12#else
13
14 #include "xilcomms_rtiostream.h"
15#endif
16
17static const boolean_T CODEINSTRTGTAPPSVC_ERROR = 0;
18static const boolean_T CODEINSTRTGTAPPSVC_SUCCESS = 1;
19
20#define CODEINSTR_RTIOSTREAM_BASED_SERVICE_ID 2
21
22#endif
23
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/CoderAssumpTgtAppSvc_CInterface_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/CoderAssumpTgtAppSvc_CInterface_h.html deleted file mode 100644 index 7f48873d72c3e84e497a072153459119986fa39e..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/CoderAssumpTgtAppSvc_CInterface_h.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2013-2015 The MathWorks, Inc. */
2
3#ifndef CoderAssumpTgtAppSvc_CInterface_h
4#define CoderAssumpTgtAppSvc_CInterface_h
5
6#include "CoderAssumpTgtAppSvc_spec.h"
7#include "rtwtypes.h"
8
9#if defined (USING_CS_API) || defined(BUILDING_LIBMWCODER_CODERASSUMPTGTAPPSVC)
10 typedef uint8_T IOUnit_T;
11#else
12 #include "xilcomms_rtiostream.h"
13#endif
14
15#define CODERASSUMP_RTIOSTREAM_BASED_SERVICE_ID 3
16
17static const uint8_T CODERASSUMPTGTAPPSVC_ERROR = 0;
18static const uint8_T CODERASSUMPTGTAPPSVC_SUCCESS = 1;
19
20CODERASSUMPTGTAPPSVC_API_EXTERN_C uint8_T coderAssumpTgtAppSvcCreate(void);
21
22CODERASSUMPTGTAPPSVC_API_EXTERN_C void coderAssumpTgtAppSvcDestroy(void);
23
24CODERASSUMPTGTAPPSVC_API_EXTERN_C uint8_T coderAssumpTgtAppSvcAllocBuffer(void** ppBuf,
25 const uint16_T size);
26
27CODERASSUMPTGTAPPSVC_API_EXTERN_C IOUnit_T* coderAssumpTgtAppSvcGetBufferDataPtr(void* pBufVoid);
28
29CODERASSUMPTGTAPPSVC_API_EXTERN_C uint8_T coderAssumpTgtAppSvcSend(void* pBufVoid,
30 const uint16_T payloadSize);
31
32CODERASSUMPTGTAPPSVC_API_EXTERN_C uint16_T coderAssumpTgtAppSvcGetMaxPayloadCapacity(void);
33
34#endif
35
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/ExecutionProfiling_422a9dcd7331f0d8.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/ExecutionProfiling_422a9dcd7331f0d8.html deleted file mode 100644 index c8c9f487eeaab75268f571937aa0a3472ed7c1f9..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/ExecutionProfiling_422a9dcd7331f0d8.html +++ /dev/null @@ -1,391 +0,0 @@ - - - - - -Code Execution Profiling Report for FCC_Sys_New_harness - - - - -

-Code Execution Profiling Report for FCC_Sys_New_harness -

-

The code execution profiling report provides metrics based on data collected from a SIL or PIL execution. Execution times are calculated from data recorded by instrumentation probes added to the SIL or PIL test harness or inside the code generated for each component. See Code Execution Profiling for more information.

-

-1. Summary -

- - - - - - -
- - - - - - - - - - - - - - - - -
Total time270.064
Unit of timeµs
Commandreport(executionProfile, 'Units', 'seconds', 'ScaleFactor', '1e-06', 'NumericFormat', '%0.3f');
Timer frequency (ticks per second)3.501e+09
Profiling data created16-Jul-2020 18:56:21
- -
-

-2. Profiled Sections of Code -

- - - - - - -
- - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
- -Section - - - - -Maximum Execution Time in µs - - - - -Average Execution Time in µs - - - - -Maximum Self Time in µs - - - - -Average Self Time in µs - - - - -Calls - - - - - - - -
- -
- - - - - - -
- - - - - - - - - - - - -
-     FCC_Sys_New_harness_initialize - -18.402 - -18.402 - -18.402 - -18.402 - -1 - - -
- -
- -
- - - - - - - - - - -
- - - - - - - - - - - - -
-[+] FCC_Sys_New_harness_step0 [0.001 0] - -10.800 - -0.783 - -10.567 - -0.488 - -272 - - -
- -
- - - - - - - - -
- -
- - - - - - - - - - -
- - - - - - - - - - - - -
-[+] FCC_Sys_New_harness_step2 [0.01 0] - -1.998 - -1.386 - -0.290 - -0.121 - -28 - - -
- -
- - - - - - - - -
- -
- - -
-

-3. CPU Utilization -

- - - - - - -
- - - - - - - - - - - - - - - - -
Task -Average CPU Utilization -Maximum CPU Utilization -
FCC_Sys_New_harness_step0 [0.001 0]0.07826%1.08%
FCC_Sys_New_harness_step2 [0.01 0]0.01386%0.01998%
Overall CPU Utilization0.09212%1.1%
- -
-

-4. Definitions -

- - - - - - -
-

CPU Utilization: Percentage of CPU time assigned to a task. Computed by dividing task execution time by sample time.

Execution Time: Time between start and end of code section.

Self Time: Execution time, excluding time in child sections.

-
- - - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/ExecutionProfiling_a4de9061c63ba255.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/ExecutionProfiling_a4de9061c63ba255.html deleted file mode 100644 index ba6ce223212e405f4c52ad06c67cd6c97bbe6b69..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/ExecutionProfiling_a4de9061c63ba255.html +++ /dev/null @@ -1,391 +0,0 @@ - - - - - -Code Execution Profiling Report for FCC_Sys_New_harness - - - - -

-Code Execution Profiling Report for FCC_Sys_New_harness -

-

The code execution profiling report provides metrics based on data collected from a SIL or PIL execution. Execution times are calculated from data recorded by instrumentation probes added to the SIL or PIL test harness or inside the code generated for each component. See Code Execution Profiling for more information.

-

-1. Summary -

- - - - - - -
- - - - - - - - - - - - - - - - -
Total time270064
Unit of timens
Commandreport(executionProfile, 'Units', 'seconds', 'ScaleFactor', '1e-09', 'NumericFormat', '%0.0f');
Timer frequency (ticks per second)3.501e+09
Profiling data created16-Jul-2020 18:56:21
- -
-

-2. Profiled Sections of Code -

- - - - - - -
- - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
- -Section - - - - -Maximum Execution Time in ns - - - - -Average Execution Time in ns - - - - -Maximum Self Time in ns - - - - -Average Self Time in ns - - - - -Calls - - - - - - - -
- -
- - - - - - -
- - - - - - - - - - - - -
-     FCC_Sys_New_harness_initialize - -18402 - -18402 - -18402 - -18402 - -1 - - -
- -
- -
- - - - - - - - - - -
- - - - - - - - - - - - -
-[+] FCC_Sys_New_harness_step0 [0.001 0] - -10800 - -783 - -10567 - -488 - -272 - - -
- -
- - - - - - - - -
- -
- - - - - - - - - - -
- - - - - - - - - - - - -
-[+] FCC_Sys_New_harness_step2 [0.01 0] - -1998 - -1386 - -290 - -121 - -28 - - -
- -
- - - - - - - - -
- -
- - -
-

-3. CPU Utilization -

- - - - - - -
- - - - - - - - - - - - - - - - -
Task -Average CPU Utilization -Maximum CPU Utilization -
FCC_Sys_New_harness_step0 [0.001 0]0.07826%1.08%
FCC_Sys_New_harness_step2 [0.01 0]0.01386%0.01998%
Overall CPU Utilization0.09212%1.1%
- -
-

-4. Definitions -

- - - - - - -
-

CPU Utilization: Percentage of CPU time assigned to a task. Computed by dividing task execution time by sample time.

Execution Time: Time between start and end of code section.

Self Time: Execution time, excluding time in child sections.

-
- - - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_c.html deleted file mode 100644 index 8b5723f2f31659a791d7c2fde24afcaead687727..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_c.html +++ /dev/null @@ -1,1156 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/*
2 * Academic License - for use in teaching, academic research, and meeting
3 * course requirements at degree granting institutions only. Not for
4 * government, commercial, or other organizational use.
5 *
6 * File: FCC_Sys_New_harness.c
7 *
8 * Code generated for Simulink model 'FCC_Sys_New_harness'.
9 *
10 * Model version : 1.91
11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
12 * C/C++ source code generated on : Thu Jul 16 18:51:26 2020
13 *
14 * Target selection: ert.tlc
15 * Embedded hardware selection: Intel->x86-32 (Windows32)
16 * Code generation objectives:
17 * 1. Execution efficiency
18 * 2. RAM efficiency
19 * Validation result: Not run
20 */
21
22#include "FCC_Sys_New_harness.h"
23
24/* Private macros used by the generated code to access rtModel */
25#ifndef rtmIsMajorTimeStep
26# define rtmIsMajorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MAJOR_TIME_STEP)
27#endif
28
29#ifndef rtmIsMinorTimeStep
30# define rtmIsMinorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MINOR_TIME_STEP)
31#endif
32
33#ifndef rtmSetTPtr
34# define rtmSetTPtr(rtm, val) ((rtm)->Timing.t = (val))
35#endif
36
37/* Used by FromWorkspace Block: '<S1>/FromWs' */
38#ifndef rtInterpolate
39# define rtInterpolate(v1,v2,f1,f2) (((v1)==(v2))?((double)(v1)): (((f1)*((double)(v1)))+((f2)*((double)(v2)))))
40#endif
41
42#ifndef rtRound
43# define rtRound(v) ( ((v) >= 0) ? floor((v) + 0.5) : ceil((v) - 0.5) )
44#endif
45
46rtTimingBridge FCC_Sys_New_harness_TimingBrdg;
47
48/* Block signals and states (default storage) */
49DW_FCC_Sys_New_harness_T FCC_Sys_New_harness_DW;
50
51/* External outputs (root outports fed by signals with default storage) */
52ExtY_FCC_Sys_New_harness_T FCC_Sys_New_harness_Y;
53
54/* Real-time model */
55RT_MODEL_FCC_Sys_New_harness_T FCC_Sys_New_harness_M_;
56RT_MODEL_FCC_Sys_New_harness_T *const FCC_Sys_New_harness_M =
57 &FCC_Sys_New_harness_M_;
58
59/* Model step function for TID0 */
60void FCC_Sys_New_harness_step0(void) /* Sample time: [0.0s, 0.0s] */
61{
62 real_T v;
63
64 /* Update the flag to indicate when data transfers from
65 * Sample time: [0.001s, 0.0s] to Sample time: [0.01s, 0.0s] */
66 FCC_Sys_New_harness_M->Timing.RateInteraction.b_TID1_2 =
67 (FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2 == 0);
68 (FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2)++;
69 if ((FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2) > 9) {
70 FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2 = 0;
71 }
72
73 /* FromWorkspace: '<S1>/FromWs' */
74 {
75 real_T *pDataValues = (real_T *) FCC_Sys_New_harness_DW.FromWs_PWORK.DataPtr;
76 real_T *pTimeValues = (real_T *) FCC_Sys_New_harness_DW.FromWs_PWORK.TimePtr;
77 int_T currTimeIndex = FCC_Sys_New_harness_DW.FromWs_IWORK.PrevIndex;
78 real_T t = FCC_Sys_New_harness_M->Timing.t[0];
79
80 /* Get index */
81 if (t <= pTimeValues[0]) {
82 currTimeIndex = 0;
83 } else if (t >= pTimeValues[11]) {
84 currTimeIndex = 10;
85 } else {
86 if (t < pTimeValues[currTimeIndex]) {
87 while (t < pTimeValues[currTimeIndex]) {
88 currTimeIndex--;
89 }
90 } else {
91 while (t >= pTimeValues[currTimeIndex + 1]) {
92 currTimeIndex++;
93 }
94 }
95 }
96
97 FCC_Sys_New_harness_DW.FromWs_IWORK.PrevIndex = currTimeIndex;
98
99 /* Post output */
100 {
101 real_T t1 = pTimeValues[currTimeIndex];
102 real_T t2 = pTimeValues[currTimeIndex + 1];
103 if (t1 == t2) {
104 if (t < t1) {
105 {
106 int_T elIdx;
107 for (elIdx = 0; elIdx < 27; ++elIdx) {
108 (&FCC_Sys_New_harness_DW.FromWs[0])[elIdx] =
109 pDataValues[currTimeIndex];
110 pDataValues += 12;
111 }
112 }
113 } else {
114 {
115 int_T elIdx;
116 for (elIdx = 0; elIdx < 27; ++elIdx) {
117 (&FCC_Sys_New_harness_DW.FromWs[0])[elIdx] =
118 pDataValues[currTimeIndex + 1];
119 pDataValues += 12;
120 }
121 }
122 }
123 } else {
124 real_T f1 = (t2 - t) / (t2 - t1);
125 real_T f2 = 1.0 - f1;
126 real_T d1;
127 real_T d2;
128 int_T TimeIndex= currTimeIndex;
129
130 {
131 int_T elIdx;
132 for (elIdx = 0; elIdx < 27; ++elIdx) {
133 d1 = pDataValues[TimeIndex];
134 d2 = pDataValues[TimeIndex + 1];
135 (&FCC_Sys_New_harness_DW.FromWs[0])[elIdx] = (real_T) rtInterpolate
136 (d1, d2, f1, f2);
137 pDataValues += 12;
138 }
139 }
140 }
141 }
142 }
143
144 /* DataTypeConversion: '<S2>/Cast1' */
145 v = fabs(FCC_Sys_New_harness_DW.FromWs[0]);
146 if (v < 4.503599627370496E+15) {
147 if (v >= 0.5) {
148 v = floor(FCC_Sys_New_harness_DW.FromWs[0] + 0.5);
149 } else {
150 v = 0.0;
151 }
152 } else {
153 v = FCC_Sys_New_harness_DW.FromWs[0];
154 }
155
156 if (v < 32768.0) {
157 if (v >= -32768.0) {
158 FCC_Sys_New_harness_DW.Cast1 = (int16_T)v;
159 } else {
160 FCC_Sys_New_harness_DW.Cast1 = MIN_int16_T;
161 }
162 } else {
163 FCC_Sys_New_harness_DW.Cast1 = MAX_int16_T;
164 }
165
166 /* End of DataTypeConversion: '<S2>/Cast1' */
167
168 /* DataTypeConversion: '<S2>/Cast2' */
169 v = fabs(FCC_Sys_New_harness_DW.FromWs[1]);
170 if (v < 4.503599627370496E+15) {
171 if (v >= 0.5) {
172 v = floor(FCC_Sys_New_harness_DW.FromWs[1] + 0.5);
173 } else {
174 v = 0.0;
175 }
176 } else {
177 v = FCC_Sys_New_harness_DW.FromWs[1];
178 }
179
180 if (v < 32768.0) {
181 if (v >= -32768.0) {
182 FCC_Sys_New_harness_DW.Cast2 = (int16_T)v;
183 } else {
184 FCC_Sys_New_harness_DW.Cast2 = MIN_int16_T;
185 }
186 } else {
187 FCC_Sys_New_harness_DW.Cast2 = MAX_int16_T;
188 }
189
190 /* End of DataTypeConversion: '<S2>/Cast2' */
191
192 /* DataTypeConversion: '<S2>/Cast3' */
193 v = fabs(FCC_Sys_New_harness_DW.FromWs[2]);
194 if (v < 4.503599627370496E+15) {
195 if (v >= 0.5) {
196 v = floor(FCC_Sys_New_harness_DW.FromWs[2] + 0.5);
197 } else {
198 v = 0.0;
199 }
200 } else {
201 v = FCC_Sys_New_harness_DW.FromWs[2];
202 }
203
204 if (v < 32768.0) {
205 if (v >= -32768.0) {
206 FCC_Sys_New_harness_DW.Cast3 = (int16_T)v;
207 } else {
208 FCC_Sys_New_harness_DW.Cast3 = MIN_int16_T;
209 }
210 } else {
211 FCC_Sys_New_harness_DW.Cast3 = MAX_int16_T;
212 }
213
214 /* End of DataTypeConversion: '<S2>/Cast3' */
215
216 /* ModelReference: '<S4>/FCC_New' incorporates:
217 * Outport: '<Root>/Actuator1'
218 * Outport: '<Root>/Actuator2'
219 * Outport: '<Root>/Actuator3'
220 */
221 FCC_NewTID0(&FCC_Sys_New_harness_DW.Cast1, &FCC_Sys_New_harness_DW.Cast2,
222 &FCC_Sys_New_harness_DW.Cast3, &FCC_Sys_New_harness_Y.Actuator1,
223 &FCC_Sys_New_harness_Y.Actuator2, &FCC_Sys_New_harness_Y.Actuator3);
224
225 /* RateTransition: '<S2>/Sync4' incorporates:
226 * RateTransition: '<S2>/Sync10'
227 * RateTransition: '<S2>/Sync14'
228 * RateTransition: '<S2>/Sync21'
229 * RateTransition: '<S2>/Sync5'
230 * RateTransition: '<S2>/Sync6'
231 */
232 if (FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2 == 1) {
233 /* DataTypeConversion: '<S2>/Cast4' */
234 v = fabs(FCC_Sys_New_harness_DW.FromWs[3]);
235 if (v < 4.503599627370496E+15) {
236 if (v >= 0.5) {
237 v = floor(FCC_Sys_New_harness_DW.FromWs[3] + 0.5);
238 } else {
239 v = 0.0;
240 }
241 } else {
242 v = FCC_Sys_New_harness_DW.FromWs[3];
243 }
244
245 if (v < 32768.0) {
246 if (v >= -32768.0) {
247 FCC_Sys_New_harness_DW.Sync4_Buffer = (int16_T)v;
248 } else {
249 FCC_Sys_New_harness_DW.Sync4_Buffer = MIN_int16_T;
250 }
251 } else {
252 FCC_Sys_New_harness_DW.Sync4_Buffer = MAX_int16_T;
253 }
254
255 /* End of DataTypeConversion: '<S2>/Cast4' */
256
257 /* DataTypeConversion: '<S2>/Cast5' */
258 v = fabs(FCC_Sys_New_harness_DW.FromWs[4]);
259 if (v < 4.503599627370496E+15) {
260 if (v >= 0.5) {
261 v = floor(FCC_Sys_New_harness_DW.FromWs[4] + 0.5);
262 } else {
263 v = 0.0;
264 }
265 } else {
266 v = FCC_Sys_New_harness_DW.FromWs[4];
267 }
268
269 if (v < 32768.0) {
270 if (v >= -32768.0) {
271 FCC_Sys_New_harness_DW.Sync5_Buffer = (int16_T)v;
272 } else {
273 FCC_Sys_New_harness_DW.Sync5_Buffer = MIN_int16_T;
274 }
275 } else {
276 FCC_Sys_New_harness_DW.Sync5_Buffer = MAX_int16_T;
277 }
278
279 /* End of DataTypeConversion: '<S2>/Cast5' */
280
281 /* DataTypeConversion: '<S2>/Cast6' */
282 v = fabs(FCC_Sys_New_harness_DW.FromWs[5]);
283 if (v < 4.503599627370496E+15) {
284 if (v >= 0.5) {
285 v = floor(FCC_Sys_New_harness_DW.FromWs[5] + 0.5);
286 } else {
287 v = 0.0;
288 }
289 } else {
290 v = FCC_Sys_New_harness_DW.FromWs[5];
291 }
292
293 if (v < 32768.0) {
294 if (v >= -32768.0) {
295 FCC_Sys_New_harness_DW.Sync6_Buffer = (int16_T)v;
296 } else {
297 FCC_Sys_New_harness_DW.Sync6_Buffer = MIN_int16_T;
298 }
299 } else {
300 FCC_Sys_New_harness_DW.Sync6_Buffer = MAX_int16_T;
301 }
302
303 /* End of DataTypeConversion: '<S2>/Cast6' */
304 FCC_Sys_New_harness_DW.Sync10_Buffer = FCC_Sys_New_harness_DW.FromWs[9];
305
306 /* RateTransition: '<S2>/Sync11' */
307 FCC_Sys_New_harness_DW.Sync11_Buffer = FCC_Sys_New_harness_DW.FromWs[10];
308
309 /* RateTransition: '<S2>/Sync12' */
310 FCC_Sys_New_harness_DW.Sync12_Buffer = FCC_Sys_New_harness_DW.FromWs[11];
311
312 /* RateTransition: '<S2>/Sync13' incorporates:
313 * DataTypeConversion: '<S2>/Cast13'
314 */
315 FCC_Sys_New_harness_DW.Sync13_Buffer = (FCC_Sys_New_harness_DW.FromWs[12] !=
316 0.0);
317
318 /* RateTransition: '<S2>/Sync7' */
319 FCC_Sys_New_harness_DW.Sync7_Buffer = FCC_Sys_New_harness_DW.FromWs[6];
320
321 /* RateTransition: '<S2>/Sync8' */
322 FCC_Sys_New_harness_DW.Sync8_Buffer = FCC_Sys_New_harness_DW.FromWs[7];
323
324 /* RateTransition: '<S2>/Sync9' */
325 FCC_Sys_New_harness_DW.Sync9_Buffer = FCC_Sys_New_harness_DW.FromWs[8];
326 FCC_Sys_New_harness_DW.Sync14_Buffer = FCC_Sys_New_harness_DW.FromWs[13];
327
328 /* RateTransition: '<S2>/Sync15' */
329 FCC_Sys_New_harness_DW.Sync15_Buffer = FCC_Sys_New_harness_DW.FromWs[14];
330
331 /* RateTransition: '<S2>/Sync16' */
332 FCC_Sys_New_harness_DW.Sync16_Buffer = FCC_Sys_New_harness_DW.FromWs[15];
333
334 /* RateTransition: '<S2>/Sync17' */
335 FCC_Sys_New_harness_DW.Sync17_Buffer = FCC_Sys_New_harness_DW.FromWs[16];
336
337 /* RateTransition: '<S2>/Sync18' */
338 FCC_Sys_New_harness_DW.Sync18_Buffer = FCC_Sys_New_harness_DW.FromWs[17];
339
340 /* RateTransition: '<S2>/Sync19' */
341 FCC_Sys_New_harness_DW.Sync19_Buffer = FCC_Sys_New_harness_DW.FromWs[18];
342
343 /* RateTransition: '<S2>/Sync20' incorporates:
344 * DataTypeConversion: '<S2>/Cast20'
345 */
346 FCC_Sys_New_harness_DW.Sync20_Buffer = (FCC_Sys_New_harness_DW.FromWs[19] !=
347 0.0);
348 FCC_Sys_New_harness_DW.Sync21_Buffer = FCC_Sys_New_harness_DW.FromWs[20];
349
350 /* RateTransition: '<S2>/Sync22' */
351 FCC_Sys_New_harness_DW.Sync22_Buffer = FCC_Sys_New_harness_DW.FromWs[21];
352
353 /* RateTransition: '<S2>/Sync23' */
354 FCC_Sys_New_harness_DW.Sync23_Buffer = FCC_Sys_New_harness_DW.FromWs[22];
355
356 /* RateTransition: '<S2>/Sync24' */
357 FCC_Sys_New_harness_DW.Sync24_Buffer = FCC_Sys_New_harness_DW.FromWs[23];
358
359 /* RateTransition: '<S2>/Sync25' */
360 FCC_Sys_New_harness_DW.Sync25_Buffer = FCC_Sys_New_harness_DW.FromWs[24];
361
362 /* RateTransition: '<S2>/Sync26' */
363 FCC_Sys_New_harness_DW.Sync26_Buffer = FCC_Sys_New_harness_DW.FromWs[25];
364
365 /* RateTransition: '<S2>/Sync27' incorporates:
366 * DataTypeConversion: '<S2>/Cast27'
367 */
368 FCC_Sys_New_harness_DW.Sync27_Buffer = (FCC_Sys_New_harness_DW.FromWs[26] !=
369 0.0);
370 }
371
372 /* End of RateTransition: '<S2>/Sync4' */
373
374 /* Update absolute time */
375 /* The "clockTick0" counts the number of times the code of this task has
376 * been executed. The absolute time is the multiplication of "clockTick0"
377 * and "Timing.stepSize0". Size of "clockTick0" ensures timer will not
378 * overflow during the application lifespan selected.
379 */
380 FCC_Sys_New_harness_M->Timing.t[0] =
381 ((time_T)(++FCC_Sys_New_harness_M->Timing.clockTick0)) *
382 FCC_Sys_New_harness_M->Timing.stepSize0;
383
384 /* Update absolute time */
385 /* The "clockTick1" counts the number of times the code of this task has
386 * been executed. The resolution of this integer timer is 0.001, which is the step size
387 * of the task. Size of "clockTick1" ensures timer will not overflow during the
388 * application lifespan selected.
389 */
390 FCC_Sys_New_harness_M->Timing.clockTick1++;
391}
392
393/* Model step function for TID2 */
394void FCC_Sys_New_harness_step2(void) /* Sample time: [0.01s, 0.0s] */
395{
396 /* local block i/o variables */
397 AHRS_Bus rtb_AHRS11;
398 AHRS_Bus rtb_AHRS21;
399 AHRS_Bus rtb_AHRS31;
400 int16_T rtb_Sync4;
401 int16_T rtb_Sync5;
402 int16_T rtb_Sync6;
403
404 /* RateTransition: '<S2>/Sync4' */
405 rtb_Sync4 = FCC_Sys_New_harness_DW.Sync4_Buffer;
406
407 /* RateTransition: '<S2>/Sync5' */
408 rtb_Sync5 = FCC_Sys_New_harness_DW.Sync5_Buffer;
409
410 /* RateTransition: '<S2>/Sync6' */
411 rtb_Sync6 = FCC_Sys_New_harness_DW.Sync6_Buffer;
412
413 /* BusCreator: '<S5>/AHRS1(1)' incorporates:
414 * RateTransition: '<S2>/Sync10'
415 * RateTransition: '<S2>/Sync11'
416 * RateTransition: '<S2>/Sync12'
417 * RateTransition: '<S2>/Sync13'
418 * RateTransition: '<S2>/Sync7'
419 * RateTransition: '<S2>/Sync8'
420 * RateTransition: '<S2>/Sync9'
421 */
422 rtb_AHRS11.theta = FCC_Sys_New_harness_DW.Sync7_Buffer;
423 rtb_AHRS11.phi = FCC_Sys_New_harness_DW.Sync8_Buffer;
424 rtb_AHRS11.psi = FCC_Sys_New_harness_DW.Sync9_Buffer;
425 rtb_AHRS11.q = FCC_Sys_New_harness_DW.Sync10_Buffer;
426 rtb_AHRS11.p = FCC_Sys_New_harness_DW.Sync11_Buffer;
427 rtb_AHRS11.r = FCC_Sys_New_harness_DW.Sync12_Buffer;
428 rtb_AHRS11.valid = FCC_Sys_New_harness_DW.Sync13_Buffer;
429
430 /* BusCreator: '<S6>/AHRS2(1)' incorporates:
431 * RateTransition: '<S2>/Sync14'
432 * RateTransition: '<S2>/Sync15'
433 * RateTransition: '<S2>/Sync16'
434 * RateTransition: '<S2>/Sync17'
435 * RateTransition: '<S2>/Sync18'
436 * RateTransition: '<S2>/Sync19'
437 * RateTransition: '<S2>/Sync20'
438 */
439 rtb_AHRS21.theta = FCC_Sys_New_harness_DW.Sync14_Buffer;
440 rtb_AHRS21.phi = FCC_Sys_New_harness_DW.Sync15_Buffer;
441 rtb_AHRS21.psi = FCC_Sys_New_harness_DW.Sync16_Buffer;
442 rtb_AHRS21.q = FCC_Sys_New_harness_DW.Sync17_Buffer;
443 rtb_AHRS21.p = FCC_Sys_New_harness_DW.Sync18_Buffer;
444 rtb_AHRS21.r = FCC_Sys_New_harness_DW.Sync19_Buffer;
445 rtb_AHRS21.valid = FCC_Sys_New_harness_DW.Sync20_Buffer;
446
447 /* BusCreator: '<S7>/AHRS3(1)' incorporates:
448 * RateTransition: '<S2>/Sync21'
449 * RateTransition: '<S2>/Sync22'
450 * RateTransition: '<S2>/Sync23'
451 * RateTransition: '<S2>/Sync24'
452 * RateTransition: '<S2>/Sync25'
453 * RateTransition: '<S2>/Sync26'
454 * RateTransition: '<S2>/Sync27'
455 */
456 rtb_AHRS31.theta = FCC_Sys_New_harness_DW.Sync21_Buffer;
457 rtb_AHRS31.phi = FCC_Sys_New_harness_DW.Sync22_Buffer;
458 rtb_AHRS31.psi = FCC_Sys_New_harness_DW.Sync23_Buffer;
459 rtb_AHRS31.q = FCC_Sys_New_harness_DW.Sync24_Buffer;
460 rtb_AHRS31.p = FCC_Sys_New_harness_DW.Sync25_Buffer;
461 rtb_AHRS31.r = FCC_Sys_New_harness_DW.Sync26_Buffer;
462 rtb_AHRS31.valid = FCC_Sys_New_harness_DW.Sync27_Buffer;
463
464 /* ModelReference: '<S4>/FCC_New' incorporates:
465 * Outport: '<Root>/Actuator1'
466 * Outport: '<Root>/Actuator2'
467 * Outport: '<Root>/Actuator3'
468 */
469 FCC_NewTID1(&rtb_Sync4, &rtb_Sync5, &rtb_Sync6, &rtb_AHRS11, &rtb_AHRS21,
470 &rtb_AHRS31);
471}
472
473/* Model initialize function */
474void FCC_Sys_New_harness_initialize(void)
475{
476 /* Registration code */
477 {
478 /* Setup solver object */
479 rtsiSetSimTimeStepPtr(&FCC_Sys_New_harness_M->solverInfo,
480 &FCC_Sys_New_harness_M->Timing.simTimeStep);
481 rtsiSetTPtr(&FCC_Sys_New_harness_M->solverInfo, &rtmGetTPtr
482 (FCC_Sys_New_harness_M));
483 rtsiSetStepSizePtr(&FCC_Sys_New_harness_M->solverInfo,
484 &FCC_Sys_New_harness_M->Timing.stepSize0);
485 rtsiSetErrorStatusPtr(&FCC_Sys_New_harness_M->solverInfo,
486 (&rtmGetErrorStatus(FCC_Sys_New_harness_M)));
487 rtsiSetRTModelPtr(&FCC_Sys_New_harness_M->solverInfo, FCC_Sys_New_harness_M);
488 }
489
490 rtsiSetSimTimeStep(&FCC_Sys_New_harness_M->solverInfo, MAJOR_TIME_STEP);
491 rtsiSetSolverName(&FCC_Sys_New_harness_M->solverInfo,"FixedStepDiscrete");
492 rtmSetTPtr(FCC_Sys_New_harness_M, &FCC_Sys_New_harness_M->Timing.tArray[0]);
493 FCC_Sys_New_harness_M->Timing.stepSize0 = 0.001;
494
495 {
496 static uint32_T *clockTickPtrs[3];
497 static real_T *taskTimePtrs[3];
498 static boolean_T *rateTransitionPtrs[(3 * 3)];
499 FCC_Sys_New_harness_TimingBrdg.nTasks = 3;
500 clockTickPtrs[0] = &(FCC_Sys_New_harness_M->Timing.clockTick0);
501 clockTickPtrs[1] = &(FCC_Sys_New_harness_M->Timing.clockTick1);
502 clockTickPtrs[2] = (NULL);
503 FCC_Sys_New_harness_TimingBrdg.clockTick = clockTickPtrs;
504 FCC_Sys_New_harness_TimingBrdg.clockTickH = (NULL);
505 rateTransitionPtrs[1*3 + 2] =
506 &(FCC_Sys_New_harness_M->Timing.RateInteraction.b_TID1_2);
507 FCC_Sys_New_harness_TimingBrdg.rateTransition = rateTransitionPtrs;
508 taskTimePtrs[0] = &(FCC_Sys_New_harness_M->Timing.t[0]);
509 taskTimePtrs[1] = (NULL);
510 taskTimePtrs[2] = (NULL);
511 FCC_Sys_New_harness_TimingBrdg.taskTime = taskTimePtrs;
512 }
513
514 /* Model Initialize function for ModelReference Block: '<S4>/FCC_New' */
515 FCC_New_initialize(rtmGetErrorStatusPointer(FCC_Sys_New_harness_M),
516 &FCC_Sys_New_harness_TimingBrdg, 1, 2);
517
518 /* Start for FromWorkspace: '<S1>/FromWs' */
519 {
520 static real_T pTimeValues0[] = { 0.0, 0.15, 0.15, 0.18, 0.18, 0.192, 0.192,
521 0.26, 0.26, 0.27, 0.27, 0.271 } ;
522
523 static real_T pDataValues0[] = { -32722.0, -32722.0, 0.0, 0.0, 0.0, 0.0,
524 -32728.0, -32728.0, 0.0, 0.0, 0.0, 0.0, -32671.0, -32671.0, 0.0, 0.0, 0.0,
525 0.0, -32721.0, -32721.0, 0.0, 0.0, 0.0, 0.0, -32711.0, -32711.0, 0.0, 0.0,
526 0.0, 0.0, -32720.0, -32720.0, 0.0, 0.0, 0.0, 0.0, -32722.0, -32722.0, 0.0,
527 0.0, 0.0, 0.0, -32684.0, -32684.0, 0.0, 0.0, 0.0, 0.0, -32711.0, -32711.0,
528 0.0, 0.0, 0.0, 0.0, -32710.0, -32710.0, 0.0, 0.0, 0.0, 0.0, -32686.0,
529 -32686.0, 0.0, 0.0, 0.0, 0.0, -32768.0, -32768.0, 0.0, 0.0, 0.0, 0.0,
530 -118.15138, -118.15138, -180.0, -180.0, -180.0, -180.0, 17.01541, 17.01541,
531 -180.0, -180.0, -180.0, -180.0, 25.9801, 25.9801, -180.0, -180.0, -180.0,
532 -180.0, 26.06345, 26.06345, -180.0, -180.0, -180.0, -180.0, 67.51613,
533 67.51613, 0.0, 0.0, 0.0, 0.0, 305.78971, 305.78971, 0.0, 0.0, 0.0, 0.0,
534 107.78888, 107.78888, -180.0, -180.0, -180.0, -180.0, -169.80836,
535 -169.80836, -180.0, -180.0, -180.0, -180.0, 171.2196, 171.2196, -180.0,
536 -180.0, -180.0, -180.0, -32.26304, -32.26304, -180.0, -180.0, 180.0, 180.0,
537 -3.5854, -3.5854, -180.0, -180.0, -180.0, -180.0, -55.81231, -55.81231,
538 -180.0, -180.0, -180.0, -180.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
539 1.0, 1.0, 1.0, 1.0, 179.94728, 179.94728, -180.0, -180.0, -180.0, -180.0,
540 42.21022, 42.21022, -180.0, -180.0, -180.0, -180.0, -12.15585, -12.15585,
541 -180.0, -180.0, -180.0, -180.0, 65.16104, 65.16104, -180.0, -180.0, -180.0,
542 -180.0, 331.47544, 331.47544, 0.0, 0.0, 0.0, 0.0, 63.30298, 63.30298, 0.0,
543 0.0, 0.0, 0.0, 158.38363, 158.38363, -180.0, -180.0, -180.0, -180.0,
544 -139.48832, -139.48832, -180.0, -180.0, -180.0, -180.0, -170.3775,
545 -170.3775, -180.0, -180.0, -180.0, -180.0, -150.40707, -150.40707, -180.0,
546 -180.0, 180.0, 180.0, -61.13408, -61.13408, -180.0, -180.0, -180.0, -180.0,
547 141.8528, 141.8528, -180.0, -180.0, -180.0, -180.0, 1.0, 1.0, 1.0, 1.0,
548 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 60.68156, 60.68156, -180.0, -180.0,
549 -180.0, -180.0, -93.63384, -93.63384, -180.0, -180.0, -180.0, -180.0,
550 165.74818, 165.74818, -180.0, -180.0, -180.0, -180.0, 73.13588, 73.13588,
551 -180.0, -180.0, -180.0, -180.0, 42.57845, 42.57845, 0.0, 0.0, 0.0, 0.0,
552 339.30663, 339.30663, 0.0, 0.0, 0.0, 0.0, 73.76652, 73.76652, -180.0,
553 -180.0, -180.0, -180.0, -75.80978, -75.80978, -180.0, -180.0, -180.0,
554 -180.0, -81.62332, -81.62332, -180.0, -180.0, -180.0, -180.0, 48.62002,
555 48.62002, -180.0, -180.0, -180.0, -180.0, -31.30247, -31.30247, -180.0,
556 -180.0, -180.0, -180.0, 99.35286, 99.35286, -180.0, -180.0, -180.0, -180.0,
557 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 } ;
558
559 FCC_Sys_New_harness_DW.FromWs_PWORK.TimePtr = (void *) pTimeValues0;
560 FCC_Sys_New_harness_DW.FromWs_PWORK.DataPtr = (void *) pDataValues0;
561 FCC_Sys_New_harness_DW.FromWs_IWORK.PrevIndex = 0;
562 }
563}
564
565/*
566 * File trailer for generated code.
567 *
568 * [EOF]
569 */
570
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_codegen_rpt.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_codegen_rpt.html deleted file mode 100644 index 1da8d45f9232da0ec017f85a05193d994dd163f8..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_codegen_rpt.html +++ /dev/null @@ -1,33 +0,0 @@ - - - -FCC_Sys_New_harness Code Generation Report - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_coderassumptions.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_coderassumptions.html deleted file mode 100644 index 3aa0c600674e17af5fda713f48c3fc8c44ad1b7f..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_coderassumptions.html +++ /dev/null @@ -1,377 +0,0 @@ - - - -Coder Assumptions for 'FCC_Sys_New_harness' - - - - -

-Coder Assumptions for 'FCC_Sys_New_harness' -

-
-

-List of assumptions that you can check and expected results for selected target environment. For more information see, Verification of Code Generation Assumptions. -

-
-
- -
-

-C Language Configuration for Intel->x86-32 (Windows32) Target Hardware -

- - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-BitPerChar - -8 -
-BitPerShort - -16 -
-BitPerInt - -32 -
-BitPerLong - -32 -
-BitPerLongLong - -64 -
-BitPerFloat - -32 -
-BitPerDouble - -64 -
-BitPerPointer - -32 -
-BitPerSizeT - -32 -
-BitPerPtrDiffT - -32 -
-
- - - - - - - - - - - - - - - - -
-Endianess - -LittleEndian -
-Shift right for signed integer is arithmetic shift - -True -
-Signed integer division rounds to - -Zero -
- -

- -
-

-C Language Configuration for Development Computer -

- - - - - - -
-

-Expected values are used only if the code has been compiled with PORTABLE_WORDSIZES defined, i.e. when you run a SIL simulation with PortableWordSizes set to 'on'. -

-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-BitPerChar - -8 -
-BitPerShort - -16 -
-BitPerInt - -32 -
-BitPerLong - -32 -
-BitPerLongLong - -64 -
-BitPerFloat - -32 -
-BitPerDouble - -64 -
-BitPerPointer - -64 -
-BitPerSizeT - -64 -
-BitPerPtrDiffT - -64 -
-
- - - - - - - - - - - - - - - - -
-Endianess - -LittleEndian -
-Shift right for signed integer is arithmetic shift - -True -
-Signed integer division rounds to - -Zero -
- -

- -
-

-C Language Standard -

- - - - - - -
-

-Zero initialization code has been optimized for model 'FCC_Sys_New_harness'. -

-

- - - - - - - -
-Initial value of a global integer variable is zero - -True -
- -

-

-If the assumption is not correct, remove the optimization through the Configuration Parameters > Code Generation > Optimization settings. Alternatively, configure your target environment to make the assumption hold. -

- -
-

-Floating-Point Numbers -

- - - - - - -
-

-Code generation is configured to support floating-point numbers, therefore your target environment might perform subnormal number calculations. -

-

- - - - - - - - - - - - -
-Flush-to-zero computed subnormal values (FTZ) - -False -
-Flush-to-zero incoming subnormal values (DAZ) - -False -
- -

-

-If the assumptions are not correct, subnormal numbers might cause mismatches between model and generated code simulation results. For more information see, Subnormal Number Performance. -

- -
- - - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_contents.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_contents.html deleted file mode 100644 index 085818952756a944ca424ba139845c5039294a0d..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_contents.html +++ /dev/null @@ -1,688 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -Contents - - -
- - -
- -Summary - - -
- -Subsystem Report - - -
- -Code Interface Report - - -
- -Traceability Report - - -
- -Static Code Metrics Report - - -
- -Code Replacements Report - - -
- -Coder Assumptions - - -
-
- - - - - - - - - - - - - - - - - - - - - -
- -Generated Code - - -
- - - - - - - - - - - - -
-[-] - -Main file -
- - - - - - - - -
- -ert_main.c - - -
- -
- -
- - - - - - - - - - - - -
-[-] - -Model files -
- - - - - - - - - - - - -
- -FCC_Sys_New_harness.c - - -
- -FCC_Sys_New_harness.h - - -
- -
- -
- - - - - - - - - - - - -
-[+] - -Shared files (3) -
- - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - -
-[+] - -SIL/PIL files (40) -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
- - - - - - - - - - - - - - - - - -
- -Referenced Models - - -
-AHRSControl -
-ActuatorControl -
-FCC_New -
- - - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_h.html deleted file mode 100644 index c4484617d1473c9147f077762b5ad69c5c4056b7..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_h.html +++ /dev/null @@ -1,454 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/*
2 * Academic License - for use in teaching, academic research, and meeting
3 * course requirements at degree granting institutions only. Not for
4 * government, commercial, or other organizational use.
5 *
6 * File: FCC_Sys_New_harness.h
7 *
8 * Code generated for Simulink model 'FCC_Sys_New_harness'.
9 *
10 * Model version : 1.91
11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
12 * C/C++ source code generated on : Thu Jul 16 18:51:26 2020
13 *
14 * Target selection: ert.tlc
15 * Embedded hardware selection: Intel->x86-32 (Windows32)
16 * Code generation objectives:
17 * 1. Execution efficiency
18 * 2. RAM efficiency
19 * Validation result: Not run
20 */
21
22#ifndef RTW_HEADER_FCC_Sys_New_harness_h_
23#define RTW_HEADER_FCC_Sys_New_harness_h_
24#include <math.h>
25#include <stddef.h>
26#include "AHRS_Bus.h"
27#ifndef FCC_Sys_New_harness_COMMON_INCLUDES_
28# define FCC_Sys_New_harness_COMMON_INCLUDES_
29#include "rtwtypes.h"
30#include "rtw_continuous.h"
31#include "rtw_solver.h"
32#endif /* FCC_Sys_New_harness_COMMON_INCLUDES_ */
33
34/* Shared type includes */
35#include "model_reference_types.h"
36
37/* Child system includes */
38#define FCC_New_MDLREF_HIDE_CHILD_
39#include "FCC_New.h"
40
41/* Model Code Variants */
42
43/* Macros for accessing real-time model data structure */
44#ifndef rtmGetErrorStatus
45# define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
46#endif
47
48#ifndef rtmSetErrorStatus
49# define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
50#endif
51
52#ifndef rtmGetErrorStatusPointer
53# define rtmGetErrorStatusPointer(rtm) ((const char_T **)(&((rtm)->errorStatus)))
54#endif
55
56#ifndef rtmGetT
57# define rtmGetT(rtm) (rtmGetTPtr((rtm))[0])
58#endif
59
60#ifndef rtmGetTPtr
61# define rtmGetTPtr(rtm) ((rtm)->Timing.t)
62#endif
63
64/* Forward declaration for rtModel */
65typedef struct tag_RTM_FCC_Sys_New_harness_T RT_MODEL_FCC_Sys_New_harness_T;
66
67/* Block signals and states (default storage) for system '<Root>' */
68typedef struct {
69 real_T FromWs[27]; /* '<S1>/FromWs' */
70 real_T Sync10_Buffer; /* '<S2>/Sync10' */
71 real_T Sync11_Buffer; /* '<S2>/Sync11' */
72 real_T Sync12_Buffer; /* '<S2>/Sync12' */
73 real_T Sync7_Buffer; /* '<S2>/Sync7' */
74 real_T Sync8_Buffer; /* '<S2>/Sync8' */
75 real_T Sync9_Buffer; /* '<S2>/Sync9' */
76 real_T Sync14_Buffer; /* '<S2>/Sync14' */
77 real_T Sync15_Buffer; /* '<S2>/Sync15' */
78 real_T Sync16_Buffer; /* '<S2>/Sync16' */
79 real_T Sync17_Buffer; /* '<S2>/Sync17' */
80 real_T Sync18_Buffer; /* '<S2>/Sync18' */
81 real_T Sync19_Buffer; /* '<S2>/Sync19' */
82 real_T Sync21_Buffer; /* '<S2>/Sync21' */
83 real_T Sync22_Buffer; /* '<S2>/Sync22' */
84 real_T Sync23_Buffer; /* '<S2>/Sync23' */
85 real_T Sync24_Buffer; /* '<S2>/Sync24' */
86 real_T Sync25_Buffer; /* '<S2>/Sync25' */
87 real_T Sync26_Buffer; /* '<S2>/Sync26' */
88 struct {
89 int_T PrevIndex;
90 } FromWs_IWORK; /* '<S1>/FromWs' */
91
92 struct {
93 void *TimePtr;
94 void *DataPtr;
95 void *RSimInfoPtr;
96 } FromWs_PWORK; /* '<S1>/FromWs' */
97
98 int16_T Cast1; /* '<S2>/Cast1' */
99 int16_T Cast2; /* '<S2>/Cast2' */
100 int16_T Cast3; /* '<S2>/Cast3' */
101 int16_T Sync4_Buffer; /* '<S2>/Sync4' */
102 int16_T Sync5_Buffer; /* '<S2>/Sync5' */
103 int16_T Sync6_Buffer; /* '<S2>/Sync6' */
104 boolean_T Sync13_Buffer; /* '<S2>/Sync13' */
105 boolean_T Sync20_Buffer; /* '<S2>/Sync20' */
106 boolean_T Sync27_Buffer; /* '<S2>/Sync27' */
107} DW_FCC_Sys_New_harness_T;
108
109/* External outputs (root outports fed by signals with default storage) */
110typedef struct {
111 int16_T Actuator1; /* '<Root>/Actuator1' */
112 int16_T Actuator2; /* '<Root>/Actuator2' */
113 int16_T Actuator3; /* '<Root>/Actuator3' */
114} ExtY_FCC_Sys_New_harness_T;
115
116/* Code_Instrumentation_Declarations_Placeholder */
117
118/* Real-time Model Data Structure */
119struct tag_RTM_FCC_Sys_New_harness_T {
120 const char_T *errorStatus;
121 RTWSolverInfo solverInfo;
122
123 /*
124 * Timing:
125 * The following substructure contains information regarding
126 * the timing information for the model.
127 */
128 struct {
129 uint32_T clockTick0;
130 time_T stepSize0;
131 uint32_T clockTick1;
132 struct {
133 uint32_T TID1_2;
134 boolean_T b_TID1_2;
135 } RateInteraction;
136
137 SimTimeStep simTimeStep;
138 time_T *t;
139 time_T tArray[3];
140 } Timing;
141};
142
143extern rtTimingBridge FCC_Sys_New_harness_TimingBrdg;
144
145/* Block signals and states (default storage) */
146extern DW_FCC_Sys_New_harness_T FCC_Sys_New_harness_DW;
147
148/* External outputs (root outports fed by signals with default storage) */
149extern ExtY_FCC_Sys_New_harness_T FCC_Sys_New_harness_Y;
150
151/* Model entry point functions */
152extern void FCC_Sys_New_harness_initialize(void);
153extern void FCC_Sys_New_harness_step0(void);
154extern void FCC_Sys_New_harness_step2(void);
155
156/* Real-time Model object */
157extern RT_MODEL_FCC_Sys_New_harness_T *const FCC_Sys_New_harness_M;
158
159/*-
160 * These blocks were eliminated from the model due to optimizations:
161 *
162 * Block '<S2>/Cast10' : Eliminate redundant data type conversion
163 * Block '<S2>/Cast11' : Eliminate redundant data type conversion
164 * Block '<S2>/Cast12' : Eliminate redundant data type conversion
165 * Block '<S2>/Cast14' : Eliminate redundant data type conversion
166 * Block '<S2>/Cast15' : Eliminate redundant data type conversion
167 * Block '<S2>/Cast16' : Eliminate redundant data type conversion
168 * Block '<S2>/Cast17' : Eliminate redundant data type conversion
169 * Block '<S2>/Cast18' : Eliminate redundant data type conversion
170 * Block '<S2>/Cast19' : Eliminate redundant data type conversion
171 * Block '<S2>/Cast21' : Eliminate redundant data type conversion
172 * Block '<S2>/Cast22' : Eliminate redundant data type conversion
173 * Block '<S2>/Cast23' : Eliminate redundant data type conversion
174 * Block '<S2>/Cast24' : Eliminate redundant data type conversion
175 * Block '<S2>/Cast25' : Eliminate redundant data type conversion
176 * Block '<S2>/Cast26' : Eliminate redundant data type conversion
177 * Block '<S2>/Cast7' : Eliminate redundant data type conversion
178 * Block '<S2>/Cast8' : Eliminate redundant data type conversion
179 * Block '<S2>/Cast9' : Eliminate redundant data type conversion
180 * Block '<S2>/Sync1' : Eliminated since input and output rates are identical
181 * Block '<S2>/Sync2' : Eliminated since input and output rates are identical
182 * Block '<S2>/Sync3' : Eliminated since input and output rates are identical
183 */
184
185/*-
186 * The generated code includes comments that allow you to trace directly
187 * back to the appropriate location in the model. The basic format
188 * is <system>/block_name, where system is the system number (uniquely
189 * assigned by Simulink) and block_name is the name of the block.
190 *
191 * Use the MATLAB hilite_system command to trace the generated code back
192 * to the model. For example,
193 *
194 * hilite_system('<S3>') - opens system 3
195 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
196 *
197 * Here is the system hierarchy for this model
198 *
199 * '<Root>' : 'FCC_Sys_New_harness'
200 * '<S1>' : 'FCC_Sys_New_harness/Inputs'
201 * '<S2>' : 'FCC_Sys_New_harness/Size-Type'
202 * '<S3>' : 'FCC_Sys_New_harness/Test Case Explanation'
203 * '<S4>' : 'FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)'
204 * '<S5>' : 'FCC_Sys_New_harness/Size-Type/Bus7'
205 * '<S6>' : 'FCC_Sys_New_harness/Size-Type/Bus8'
206 * '<S7>' : 'FCC_Sys_New_harness/Size-Type/Bus9'
207 */
208
209/*-
210 * Requirements for '<Root>': FCC_Sys_New_harness
211 */
212#endif /* RTW_HEADER_FCC_Sys_New_harness_h_ */
213
214/*
215 * File trailer for generated code.
216 *
217 * [EOF]
218 */
219
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_interface.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_interface.html deleted file mode 100644 index 29114210bbed7fb11c4774c2585ff4fddc8c3329..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_interface.html +++ /dev/null @@ -1,354 +0,0 @@ - - - -Code Interface Report for FCC_Sys_New_harness - - - - -

-Code Interface Report for FCC_Sys_New_harness -

-

-Table of Contents -

- -

- -Entry-Point Functions - - -

-

-Function: FCC_Sys_New_harness_initialize -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Prototype - - -void FCC_Sys_New_harness_initialize(void) - - -
-Description - -Initialization entry point of generated code -
-Timing - -Must be called exactly once -
-Arguments - -None -
-Return value - -None -
-Header file - -FCC_Sys_New_harness.h -
-

-Function: FCC_Sys_New_harness_step0 -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Prototype - - -void FCC_Sys_New_harness_step0(void) - - -
-Description - -Output entry point of generated code -
-Timing - -Must be called periodically, every 0.001 seconds -
-Arguments - -None -
-Return value - -None -
-Header file - -FCC_Sys_New_harness.h -
-

-Function: FCC_Sys_New_harness_step2 -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Prototype - - -void FCC_Sys_New_harness_step2(void) - - -
-Description - -Output entry point of generated code -
-Timing - -Must be called periodically, every 0.01 seconds -
-Arguments - -None -
-Return value - -None -
-Header file - -FCC_Sys_New_harness.h -
-

- -Inports - - -

-

-No Inports in model. -

-

- -Outports - - -

-[-] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -Block Name - - - - -Code Identifier - - - - -Data Type - - - - -Dimension - - -
-<Root>/Actuator1 - -FCC_Sys_New_harness_Y.Actuator1 - -int16_T - -1 -
-<Root>/Actuator2 - -FCC_Sys_New_harness_Y.Actuator2 - -int16_T - -1 -
-<Root>/Actuator3 - -FCC_Sys_New_harness_Y.Actuator3 - -int16_T - -1 -
-

- -Interface Parameters - - -

-

-No interface/tunable parameters in model. -

-

- -Data Stores - - -

-

-No data stores in the model; note that this report lists only data stores with non-auto storage class and global data stores -

- - - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_metrics.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_metrics.html deleted file mode 100644 index 6c07620c8f591c74203b1f4a1bf7de476cbba1c2..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_metrics.html +++ /dev/null @@ -1,7 +0,0 @@ -Static Code Metrics Report for FCC_Sys_New_harness - - - -

Static Code Metrics Report for FCC_Sys_New_harness

-

Static Code Metrics report is not generated. On the Configuration Parameters > Code Generation > Report pane, select Generate static code metrics. On the model diagram window, select Code > C/C++ Code > Code Generation Report > Open Model Report or rebuild the model.

- \ No newline at end of file diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_replacements.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_replacements.html deleted file mode 100644 index 308de817cb3760bf0e7a13c51895e8c58b65eed2..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_replacements.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -Code replacements in FCC_Sys_New_harness - - - - -

-Code replacements in FCC_Sys_New_harness -

-
- -
-Code replacements report not generated. Select 'Summarize which blocks triggered code replacements'. - - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_sbs_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_sbs_c.html deleted file mode 100644 index 8477a58080002054433c05222588000f7490d772..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_sbs_c.html +++ /dev/null @@ -1,5472 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/*
2 * FCC_Sys_New_harness_sbs.c
3 *
4 * Automatically generated s-function with I/O interface for:
5 * Component: FCC_Sys_New_harness
6 * Component Simulink Path: FCC_Sys_New_harness
7 * Simulation Mode: SIL
8 *
9 */
10
11#define S_FUNCTION_NAME FCC_Sys_New_harness_sbs
12#define S_FUNCTION_LEVEL 2
13#if !defined(RTW_GENERATED_S_FUNCTION)
14#define RTW_GENERATED_S_FUNCTION
15#endif
16
17#include <stdio.h>
18#include <string.h>
19#include "simstruc.h"
20#include "simtarget/slMdlrefSimTargetCoreHeaders.h"
21#include "simtarget/slMdlrefSimTargetInstrumentationHeaders.h"
22#include "fixedpoint.h"
23#include "coder/connectivity_core/xilutils/xilutils.h"
24#include "coder/simulinkcoder/xilutils_sl/xilutils_sl.h"
25#include "rtiostream_utils.h"
26#include "coder/connectivity/xilcomms_rtiostream/xilcomms_rtiostream.h"
27#include "coder/connectivity/XILHostAppSvc/XILHostAppSvc_CInterface.h"
28#include "messages/slMessagesSfcnBridge.h"
29#include "strings/slStringSfcnAPI.h"
30#include "mwstringutil.h"
31#include "coder/connectivity/CodeInstrHostAppSvc/CodeInstrHostAppSvc_CInterface.h"
32#include "coder/connectivity/CoderAssumpHostAppSvc/CoderAssumpHostAppSvc_CInterface.h"
33
34/* Response case labels */
35enum ResponseIDs {
36 RESPONSE_ERROR = 0,
37 RESPONSE_OUTPUT_PRE_DATA = 1,
38 RESPONSE_OUTPUT_DATA = 2,
39 RESPONSE_PRINTF = 3,
40 RESPONSE_FOPEN = 4,
41 RESPONSE_FPRINTF = 5,
42 RESPONSE_SIGNAL_RAISED = 6
43};
44
45typedef struct {
46 FILE ** Fd;
47 mwSize size;
48 int32_T fidOffset;
49} targetIOFd_T;
50
51typedef enum {
52 XIL_INIT_COMMAND = 0,
53 XIL_INITIALIZE_COMMAND,
54 XIL_SYSTEM_INITIALIZE_COMMAND,
55 XIL_OUTPUT_COMMAND,
56 XIL_TERMINATE_COMMAND,
57 XIL_ENABLE_COMMAND,
58 XIL_DISABLE_COMMAND,
59 XIL_CONST_OUTPUT_COMMAND,
60 XIL_PROCESS_PARAMS_COMMAND,
61 XIL_CLIENT_SERVER_COMMAND,
62 XIL_SHUTDOWN_COMMAND,
63 XIL_UPDATE_COMMAND,
64 XIL_SYSTEM_RESET_COMMAND,
65 XIL_PAUSE_COMMAND
66}
67 XIL_COMMAND_TYPE_ENUM;
68
69static void callStopHookAndFreeSFcnMemory(SimStruct *S);
70static void mdlTerminate(SimStruct *S);
71
72/* grow the buffer for target I/O Fd array
73 * targetIOFd->Fd is NULL on failure */
74static void growTargetIOFd(SimStruct *S, targetIOFd_T * IOFd, mwSize
75 requiredSize)
76{
77 if (IOFd->size < requiredSize) {
78 IOFd->Fd = mxRealloc(IOFd->Fd, requiredSize * sizeof(FILE*));
79 if (IOFd->Fd == NULL) {
80 ssSetErrorStatus( S,"growTargetIOFd: mxRealloc failed.");
81 } else {
82 mexMakeMemoryPersistent(IOFd->Fd);
83 IOFd->size = requiredSize;
84 } /* if */
85 } /* if */
86}
87
88static void closeAndFreeTargetIOFd(SimStruct *S)
89{
90 int i;
91 if (ssGetPWork(S) != NULL) {
92 targetIOFd_T * targetIOFdPtr = (targetIOFd_T *) ssGetPWorkValue(S, 3);
93 if (targetIOFdPtr != NULL) {
94 if (targetIOFdPtr->Fd != NULL) {
95 for (i=0; i<targetIOFdPtr->size; i++) {
96 if (targetIOFdPtr->Fd[i] != NULL) {
97 fclose(targetIOFdPtr->Fd[i]);
98 } /* if */
99 } /* for */
100
101 mxFree(targetIOFdPtr->Fd);
102 } /* if */
103
104 mxFree(targetIOFdPtr);
105 } /* if */
106
107 ssSetPWorkValue(S, 3, NULL);
108 } /* if */
109}
110
111/* receive one packet of data and dispatch to owning application */
112static boolean_T recvData(SimStruct *S, void* pComms)
113{
114 int * pCommErrorOccurred = (int *) ssGetPWorkValue(S, 4);
115 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
116 if (pCommErrorOccurred == NULL) {
117 ssSetErrorStatus( S,"pCommErrorOccurred is NULL.");
118 return XILHOSTAPPSVC_ERROR;
119 } /* if */
120
121 if (pXILUtils == NULL) {
122 ssSetErrorStatus( S,"pXILUtils is NULL.");
123 return XILHOSTAPPSVC_ERROR;
124 } /* if */
125
126 *pCommErrorOccurred = (xilCommsRun(pComms, pXILUtils) !=
127 XILCOMMS_RTIOSTREAM_SUCCESS);
128 return (*pCommErrorOccurred?XILHOSTAPPSVC_ERROR:XILHOSTAPPSVC_SUCCESS);
129}
130
131/* send data via xil comms */
132static boolean_T sendData(SimStruct *S, void* pXILService, XIL_IOBuffer_T
133 * IOBuffer, mwSize sendSize)
134{
135 int * pCommErrorOccurred = (int *) ssGetPWorkValue(S, 4);
136 if (pCommErrorOccurred == NULL) {
137 ssSetErrorStatus( S,"pCommErrorOccurred is NULL.");
138 return XILHOSTAPPSVC_ERROR;
139 } /* if */
140
141 *pCommErrorOccurred = (xilHostAppSvcSend(pXILService, IOBuffer->data, sendSize)
142 != XILHOSTAPPSVC_SUCCESS);
143 return (*pCommErrorOccurred?XILHOSTAPPSVC_ERROR:XILHOSTAPPSVC_SUCCESS);
144}
145
146/* implements command dispatch */
147static boolean_T commandDispatch(SimStruct *S, XIL_IOBuffer_T* IOBuffer, mwSize
148 dataOutSize)
149{
150 void * pXILService = (void *) ssGetPWorkValue(S, 9);
151 if (pXILService == NULL) {
152 ssSetErrorStatus( S,"pXILService is NULL!");
153 return XILHOSTAPPSVC_ERROR;
154 } /* if */
155
156 /* send the data */
157 if (sendData(S, pXILService, IOBuffer, dataOutSize) != XILHOSTAPPSVC_SUCCESS)
158 {
159 return XILHOSTAPPSVC_ERROR;
160 } /* if */
161
162 return XILHOSTAPPSVC_SUCCESS;
163}
164
165/* implements command response */
166static boolean_T commandResponse(SimStruct *S, mwSize* dataInSize,
167 XILCommandResponseType* commandType)
168{
169 void * pXILService = (void *) ssGetPWorkValue(S, 9);
170 if (pXILService == NULL) {
171 ssSetErrorStatus( S,"pXILService is NULL!");
172 return XILHOSTAPPSVC_ERROR;
173 } /* if */
174
175 {
176 /* receive the response data */
177 uint8_T COMMAND_COMPLETE = 0;
178 void * pComms = (void *) ssGetPWorkValue(S, 7);
179 if (pComms == NULL) {
180 ssSetErrorStatus( S,"pComms is NULL!");
181 return XILHOSTAPPSVC_ERROR;
182 } /* if */
183
184 while (!COMMAND_COMPLETE) {
185 xilHostAppSvcSetIsResponseComplete(pXILService, 0);
186 if (recvData(S, pComms) != XILHOSTAPPSVC_SUCCESS) {
187 return XILHOSTAPPSVC_ERROR;
188 } /* if */
189
190 COMMAND_COMPLETE = xilHostAppSvcGetIsResponseComplete(pXILService);
191 } /* while */
192
193 /* determine command response type */
194 *commandType = (XILCommandResponseType) COMMAND_COMPLETE;
195 *dataInSize = xilHostAppSvcGetPayloadSizeForOneStep(pXILService);
196 return XILHOSTAPPSVC_SUCCESS;
197 }
198}
199
200static void copyIOData(void * const dstPtr, void * const srcPtr, uint8_T **
201 const tgtPtrPtr, size_t numElements, size_t cTypeSize)
202{
203 size_t maxBytesConsumed = numElements * cTypeSize;
204 memcpy(dstPtr, srcPtr, maxBytesConsumed);
205 (*tgtPtrPtr)+=(maxBytesConsumed/sizeof(**tgtPtrPtr));
206}
207
208static void copyStringIOData(void * const dstPtr, void * const srcPtr, uint8_T **
209 const tgtPtrPtr, size_t numElements, size_t cTypeSize, uint8_T isInput)
210{
211 size_t maxBytesConsumed = numElements * cTypeSize;
212 if (isInput) {
213 suWriteSILStringInput(dstPtr, (int32_T)numElements, srcPtr);
214 } else {
215 suWriteSILStringOutput(dstPtr, srcPtr, (int32_T)numElements);
216 } /* if */
217
218 (*tgtPtrPtr)+=(maxBytesConsumed/sizeof(**tgtPtrPtr));
219}
220
221/* returns data needed by code instrumentation service */
222static CodeInstrServiceData_T* codeInstrServiceData(SimStruct *S, uint8_T
223 memUnitSizeBytes)
224{
225 CodeInstrServiceData_T* pCodeInstrServiceData = (CodeInstrServiceData_T*)
226 mxCalloc(1, sizeof(CodeInstrServiceData_T));
227 const char * simulinkBlockPath = ssGetPath(S);
228 if (pCodeInstrServiceData == NULL) {
229 ssSetErrorStatus( S,
230 "Error in allocating memory for code instrumentation data through mxCalloc.");
231 return NULL;
232 } /* if */
233
234 pCodeInstrServiceData->infoPath =
235 "D:/Documents/SCHOOL/McSCert/do178/src/validation/FCC_Sys_New_harness_ert_rtw/sil";
236 pCodeInstrServiceData->blockPath = simulinkBlockPath;
237 pCodeInstrServiceData->rootModel = ssGetPath(ssGetRootSS(S));
238 pCodeInstrServiceData->memUnitSize = memUnitSizeBytes;
239 pCodeInstrServiceData->isProfilingEnabled = true;
240 pCodeInstrServiceData->inTheLoopType = 0;
241 pCodeInstrServiceData->silPilInterfaceFcn =
242 "@coder.connectivity.SimulinkInterface.getSILPILInterface";
243 return pCodeInstrServiceData;
244}
245
246static void callStopHookAndFreeSFcnMemory(SimStruct *S)
247{
248 closeAndFreeTargetIOFd(S);
249 if (ssGetPWork(S) != NULL) {
250 int * pCommErrorOccurred = (int *) ssGetPWorkValue(S, 4);
251 int * pIsXILApplicationStarted = (int *) ssGetPWorkValue(S, 5);
252 if ((pIsXILApplicationStarted != NULL) && (*pIsXILApplicationStarted == 1))
253 {
254 {
255 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
256 if (pXILUtils) {
257 mxArray *rhs[3];
258 const char * simulinkBlockPath = ssGetPath(S);
259 rhs[ 0 ] = mxCreateString(
260 "@coder.connectivity.SimulinkInterface.getSILPILInterface");
261 rhs[ 1 ] = mxCreateDoubleScalar( 0 );
262 rhs[ 2 ] = mxCreateString(simulinkBlockPath);
263 if (xilUtilsCallMATLAB(pXILUtils, 0, NULL, 3, rhs,
264 "rtw.pil.SILPILInterface.sfunctionPILStopHook")
265 != XIL_UTILS_SUCCESS) {
266 } /* if */
267 } /* if */
268 }
269 } /* if */
270
271 if (pIsXILApplicationStarted != NULL) {
272 *pIsXILApplicationStarted = 0;
273 } /* if */
274 } /* if */
275
276 if (ssGetPWork(S) != NULL) {
277 XIL_IOBuffer_T* IOBufferPtr;
278 XIL_RtIOStreamData_T * rtIOStreamDataPtr = (XIL_RtIOStreamData_T *)
279 ssGetPWorkValue(S, 0);
280 SIL_DEBUGGING_DATA_T * silDebuggingDataPtr = (SIL_DEBUGGING_DATA_T *)
281 ssGetPWorkValue(S, 2);
282 if (rtIOStreamDataPtr != NULL) {
283 {
284 int errorStatus = rtIOStreamUnloadLib(&rtIOStreamDataPtr->libH);
285 if (errorStatus) {
286 ssSetErrorStatus( S,"rtIOStreamUnloadLib failed.");
287 } /* if */
288 }
289
290 mxFree(rtIOStreamDataPtr->lib);
291 mxDestroyArray(rtIOStreamDataPtr->MATLABObject);
292 mxFree(rtIOStreamDataPtr);
293 ssSetPWorkValue(S, 0, NULL);
294 } /* if */
295
296 if (silDebuggingDataPtr != NULL) {
297 mxFree(silDebuggingDataPtr->componentBlockPath);
298 mxFree(silDebuggingDataPtr->SILPILInterfaceFcnStr);
299 mxFree(silDebuggingDataPtr);
300 ssSetPWorkValue(S, 2, NULL);
301 } /* if */
302
303 IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
304 if (IOBufferPtr != NULL) {
305 mxFree(IOBufferPtr->data);
306 mxFree(IOBufferPtr);
307 ssSetPWorkValue(S, 1, NULL);
308 } /* if */
309
310 closeAndFreeTargetIOFd(S);
311 if (ssGetPWork(S) != NULL) {
312 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
313 void * pComms = (void *) ssGetPWorkValue(S, 7);
314 void * pXILService = (void *) ssGetPWorkValue(S, 9);
315 void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10);
316 void * pCoderAssumptionsApp = (void *) ssGetPWorkValue(S, 12);
317 if (pCodeInstrService != NULL) {
318 uint8_T memUnitSizeBytes = 1;
319 CodeInstrServiceData_T* pCodeInstrServiceData = codeInstrServiceData(S,
320 memUnitSizeBytes);
321 codeInstrHostAppSvcDestroy(pCodeInstrService, pCodeInstrServiceData);
322 mxFree(pCodeInstrServiceData);
323 } /* if */
324
325 ssSetPWorkValue(S, 10, NULL);
326 if (pCoderAssumptionsApp != NULL) {
327 coderAssumpHostAppSvcDestroy(pCoderAssumptionsApp);
328 ssSetPWorkValue(S, 12, NULL);
329 } /* if */
330
331 if (pXILService != NULL) {
332 xilHostAppSvcDestroy(pXILService);
333 ssSetPWorkValue(S, 9, NULL);
334 } /* if */
335
336 if (pComms != NULL) {
337 xilCommsDestroy(pComms);
338 ssSetPWorkValue(S, 7, NULL);
339 } /* if */
340 } /* if */
341 } /* if */
342}
343
344static boolean_T processResponseError(SimStruct * S, uint8_T ** mxMemUnitPtrPtr)
345{
346 uint8_T errorId = **mxMemUnitPtrPtr;
347 (*mxMemUnitPtrPtr)++;
348 if (errorId) {
349 {
350 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
351 mxArray * rhs[ 2 ];
352 rhs[0] = mxCreateString("PIL:pilverification:PILError");
353 rhs[1] = mxCreateDoubleScalar(errorId);
354 xilUtilsHandleError(pXILUtils, 2 , rhs );
355 return XILHOSTAPPSVC_ERROR;
356 }
357 } /* if */
358
359 return XILHOSTAPPSVC_SUCCESS;
360}
361
362static boolean_T processResponsePrintf(SimStruct * S, uint8_T ** mxMemUnitPtrPtr)
363{
364 const int TARGET_IO_SUCCESS = 0;
365 uint8_T PRINTF_ERROR;
366 uint16_T PRINTF_SIZE;
367
368 {
369 {
370 uint8_T * simDataMemUnitPtr;
371 simDataMemUnitPtr = (uint8_T *) &PRINTF_ERROR;
372
373 {
374 size_t num_elements = 1;
375
376 {
377 copyIOData(simDataMemUnitPtr, *mxMemUnitPtrPtr, &*mxMemUnitPtrPtr,
378 num_elements, sizeof(uint8_T));
379 }
380 }
381 }
382 }
383
384 {
385 {
386 uint8_T * simDataMemUnitPtr;
387 simDataMemUnitPtr = (uint8_T *) &PRINTF_SIZE;
388
389 {
390 size_t num_elements = 1;
391
392 {
393 copyIOData(simDataMemUnitPtr, *mxMemUnitPtrPtr, &*mxMemUnitPtrPtr,
394 num_elements, sizeof(uint16_T));
395 }
396 }
397 }
398 }
399
400 if (PRINTF_ERROR != TARGET_IO_SUCCESS) {
401 {
402 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
403 mxArray * rhs[ 2 ];
404 rhs[0] = mxCreateString("PIL:pil:TargetIOError");
405 rhs[1] = mxCreateDoubleScalar(PRINTF_ERROR);
406 xilUtilsHandleError(pXILUtils, 2 , rhs );
407 return XILHOSTAPPSVC_ERROR;
408 }
409 } else {
410 uint8_T *pPrintBuff;
411 pPrintBuff = *mxMemUnitPtrPtr;
412 if (pPrintBuff[PRINTF_SIZE-1] == '\0') {
413 mexPrintf("%s", pPrintBuff);
414 } /* if */
415 } /* if */
416
417 (*mxMemUnitPtrPtr) = (*mxMemUnitPtrPtr) + PRINTF_SIZE;
418 return XILHOSTAPPSVC_SUCCESS;
419}
420
421static boolean_T processResponseFopen(SimStruct * S, uint8_T ** mxMemUnitPtrPtr)
422{
423 uint16_T FOPEN_FID;
424 uint16_T FOPEN_NAME_SIZE;
425 targetIOFd_T *targetIOFdPtr;
426
427 {
428 {
429 uint8_T * simDataMemUnitPtr;
430 simDataMemUnitPtr = (uint8_T *) &FOPEN_FID;
431
432 {
433 size_t num_elements = 1;
434
435 {
436 copyIOData(simDataMemUnitPtr, *mxMemUnitPtrPtr, &*mxMemUnitPtrPtr,
437 num_elements, sizeof(uint16_T));
438 }
439 }
440 }
441 }
442
443 {
444 {
445 uint8_T * simDataMemUnitPtr;
446 simDataMemUnitPtr = (uint8_T *) &FOPEN_NAME_SIZE;
447
448 {
449 size_t num_elements = 1;
450
451 {
452 copyIOData(simDataMemUnitPtr, *mxMemUnitPtrPtr, &*mxMemUnitPtrPtr,
453 num_elements, sizeof(uint16_T));
454 }
455 }
456 }
457 }
458
459 targetIOFdPtr = (targetIOFd_T *) ssGetPWorkValue(S, 3);
460 if (targetIOFdPtr != NULL) {
461 /* check fid increments by 1 */
462 if (targetIOFdPtr->fidOffset + 1 == FOPEN_FID) {
463 targetIOFdPtr->fidOffset = FOPEN_FID;
464 growTargetIOFd(S, targetIOFdPtr, targetIOFdPtr->fidOffset + 1);
465 if (targetIOFdPtr->Fd != NULL) {
466 uint8_T *pFopenBuff;
467 targetIOFdPtr->Fd[targetIOFdPtr->fidOffset] = NULL;
468 pFopenBuff = (*mxMemUnitPtrPtr);
469 if (pFopenBuff[FOPEN_NAME_SIZE-1] == '\0') {
470 FILE * tmpFd = NULL;
471 tmpFd = fopen((char *) pFopenBuff,"w");
472 if (tmpFd != NULL) {
473 /* save the file descriptor */
474 targetIOFdPtr->Fd[targetIOFdPtr->fidOffset] = tmpFd;
475 } else {
476 {
477 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
478 mxArray * rhs[ 2 ];
479 rhs[0] = mxCreateString("PIL:pil:TargetIOFopenError");
480 rhs[1] = mxCreateString((char *) pFopenBuff);
481 xilUtilsHandleError(pXILUtils, 2 , rhs );
482 return XILHOSTAPPSVC_ERROR;
483 }
484 } /* if */
485 } /* if */
486 } /* if */
487 } else {
488 {
489 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
490 mxArray * rhs[ 2 ];
491 rhs[0] = mxCreateString("PIL:pil:TargetIOFopenFidError");
492 rhs[1] = mxCreateDoubleScalar(FOPEN_FID);
493 xilUtilsHandleError(pXILUtils, 2 , rhs );
494 return XILHOSTAPPSVC_ERROR;
495 }
496 } /* if */
497 } /* if */
498
499 (*mxMemUnitPtrPtr) = (*mxMemUnitPtrPtr) + FOPEN_NAME_SIZE;
500 return XILHOSTAPPSVC_SUCCESS;
501}
502
503static boolean_T processResponseFprintf(SimStruct * S, uint8_T
504 ** mxMemUnitPtrPtr)
505{
506 const int TARGET_IO_SUCCESS = 0;
507 uint8_T FPRINTF_ERROR;
508 uint16_T FPRINTF_FID;
509 uint16_T FPRINTF_SIZE;
510
511 {
512 {
513 uint8_T * simDataMemUnitPtr;
514 simDataMemUnitPtr = (uint8_T *) &FPRINTF_ERROR;
515
516 {
517 size_t num_elements = 1;
518
519 {
520 copyIOData(simDataMemUnitPtr, *mxMemUnitPtrPtr, &*mxMemUnitPtrPtr,
521 num_elements, sizeof(uint8_T));
522 }
523 }
524 }
525 }
526
527 {
528 {
529 uint8_T * simDataMemUnitPtr;
530 simDataMemUnitPtr = (uint8_T *) &FPRINTF_FID;
531
532 {
533 size_t num_elements = 1;
534
535 {
536 copyIOData(simDataMemUnitPtr, *mxMemUnitPtrPtr, &*mxMemUnitPtrPtr,
537 num_elements, sizeof(uint16_T));
538 }
539 }
540 }
541 }
542
543 {
544 {
545 uint8_T * simDataMemUnitPtr;
546 simDataMemUnitPtr = (uint8_T *) &FPRINTF_SIZE;
547
548 {
549 size_t num_elements = 1;
550
551 {
552 copyIOData(simDataMemUnitPtr, *mxMemUnitPtrPtr, &*mxMemUnitPtrPtr,
553 num_elements, sizeof(uint16_T));
554 }
555 }
556 }
557 }
558
559 if (FPRINTF_ERROR != TARGET_IO_SUCCESS) {
560 {
561 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
562 mxArray * rhs[ 2 ];
563 rhs[0] = mxCreateString("PIL:pil:TargetIOError");
564 rhs[1] = mxCreateDoubleScalar(FPRINTF_ERROR);
565 xilUtilsHandleError(pXILUtils, 2 , rhs );
566 return XILHOSTAPPSVC_ERROR;
567 }
568 } else {
569 targetIOFd_T * targetIOFdPtr = (targetIOFd_T *) ssGetPWorkValue(S, 3);
570 if (targetIOFdPtr != NULL) {
571 if (targetIOFdPtr->size > FPRINTF_FID) {
572 if (targetIOFdPtr->Fd[FPRINTF_FID] != NULL) {
573 uint8_T *pFprintfBuff;
574 pFprintfBuff = (*mxMemUnitPtrPtr);
575 if (pFprintfBuff[FPRINTF_SIZE-1] == '\0') {
576 fprintf(targetIOFdPtr->Fd[FPRINTF_FID], "%s", pFprintfBuff);
577 } /* if */
578 } /* if */
579 } /* if */
580 } /* if */
581 } /* if */
582
583 (*mxMemUnitPtrPtr) = (*mxMemUnitPtrPtr) + FPRINTF_SIZE ;
584 return XILHOSTAPPSVC_SUCCESS;
585}
586
587static boolean_T processResponseSignalRaised(SimStruct * S, uint8_T
588 ** mxMemUnitPtrPtr)
589{
590 const char *signalStr[5] = { "SIGFPE", "SIGILL", "SIGABRT", "SIGSEGV",
591 "Unknown Signal" };
592
593 uint8_T errorId = **mxMemUnitPtrPtr;
594 (*mxMemUnitPtrPtr)++;
595
596 {
597 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
598 mxArray * rhs[ 3 ];
599 rhs[0] = mxCreateString("Connectivity:target:CaughtTargetSignalWithStderr");
600 rhs[1] = mxCreateString(signalStr[errorId]);
601 rhs[2] = mxCreateDoubleScalar(ssGetT(S));
602 xilUtilsHandleError(pXILUtils, 3 , rhs );
603 return XILHOSTAPPSVC_ERROR;
604 }
605}
606
607static boolean_T processErrorAndTargetIOResponseCases(SimStruct * S, const int
608 responseId, uint8_T ** mxMemUnitPtrPtr)
609{
610 switch (responseId) {
611 case RESPONSE_ERROR:
612 {
613 return processResponseError(S, mxMemUnitPtrPtr);
614 }
615
616 case RESPONSE_PRINTF:
617 {
618 return processResponsePrintf(S, mxMemUnitPtrPtr);
619 }
620
621 case RESPONSE_FOPEN:
622 {
623 return processResponseFopen(S, mxMemUnitPtrPtr);
624 }
625
626 case RESPONSE_FPRINTF:
627 {
628 return processResponseFprintf(S, mxMemUnitPtrPtr);
629 }
630
631 case RESPONSE_SIGNAL_RAISED:
632 {
633 return processResponseSignalRaised(S, mxMemUnitPtrPtr);
634 }
635
636 default:
637 {
638 {
639 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
640 mxArray * rhs[ 2 ];
641 rhs[0] = mxCreateString("PIL:pilverification:UnknownResponseId");
642 rhs[1] = mxCreateDoubleScalar(responseId);
643 xilUtilsHandleError(pXILUtils, 2 , rhs );
644 return XILHOSTAPPSVC_ERROR;
645 }
646 }
647 } /* switch */
648}
649
650static size_t getBusElementDimension(SimStruct * S, DTypeId dType, int_T
651 offsetIdx, const int_T ** dimsOut, int_T * numDims)
652{
653 int_T numDimensions = ssGetBusElementNumDimensions(S, dType, offsetIdx);
654 const int_T *dims = ssGetBusElementDimensions(S, dType, offsetIdx);
655 size_t numElements = 1;
656 int j = 0;
657 for (j = 0; j< numDimensions; j++) {
658 numElements *= dims[j];
659 } /* for */
660
661 *dimsOut = dims;
662 *numDims = numDimensions;
663 return numElements;
664}
665
666/* Process params function shared between mdlStart and mdlProcessParams */
667static boolean_T processParams(SimStruct * S)
668{
669 if (ssGetPWork(S) != NULL) {
670 int * pIsXILApplicationStarted = (int *) ssGetPWorkValue(S, 5);
671 if ((pIsXILApplicationStarted!=NULL) && (*pIsXILApplicationStarted==1)) {
672 /* update run time params */
673 ssUpdateAllTunableParamsAsRunTimeParams(S);
674
675 {
676 uint8_T * mxMemUnitPtr;
677 mwSize dataInSize = 0;
678 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
679 if (IOBufferPtr != NULL) {
680 void * pXILService = (void *) ssGetPWorkValue(S, 9);
681 if (pXILService != NULL) {
682 if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 5, 0)!=
683 XILHOSTAPPSVC_SUCCESS) {
684 return false;
685 } /* if */
686
687 if (IOBufferPtr->data != NULL) {
688 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
689
690 /* write command id */
691 *mxMemUnitPtr = (uint8_T) XIL_PROCESS_PARAMS_COMMAND;
692 mxMemUnitPtr++;
693
694 {
695 {
696 uint8_T * simDataMemUnitPtr;
697 uint32_T commandDataFcnid = 0;
698 simDataMemUnitPtr = (uint8_T *) &commandDataFcnid;
699
700 {
701 size_t num_elements = 1;
702
703 {
704 copyIOData(mxMemUnitPtr, simDataMemUnitPtr, &mxMemUnitPtr,
705 num_elements, sizeof(uint32_T));
706 }
707 }
708 }
709 }
710 } /* if */
711 } /* if */
712 } /* if */
713 }
714
715 {
716 {
717 uint8_T * mxMemUnitPtr;
718 mwSize dataInSize = 0;
719 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
720
721 /* provide the time information to the code instrumentation service */
722 {
723 void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10);
724 time_T simTime = ssGetT(S);
725 if (pCodeInstrService != NULL) {
726 codeInstrHostAppSvcSetTime(pCodeInstrService, simTime);
727 } /* if */
728 }
729
730 /* dispatch command to the target */
731 if (commandDispatch(S, IOBufferPtr, 5)!=XILHOSTAPPSVC_SUCCESS) {
732 return false;
733 } /* if */
734
735 {
736 XILCommandResponseType commandResponseType =
737 XIL_COMMAND_NOT_COMPLETE;
738 while (commandResponseType != XIL_STEP_COMPLETE) {
739 /* receive command from the target */
740 mwSize dataInSize = 0;
741 if (commandResponse(S, &dataInSize, &commandResponseType) !=
742 XILHOSTAPPSVC_SUCCESS) {
743 return false;
744 } /* if */
745
746 if (dataInSize>0) {
747 size_t dataInMemUnitSize = dataInSize;
748 uint8_T responseId = 0;
749 uint8_T * mxMemUnitPtrEnd;
750 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
751 mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1;
752 while (mxMemUnitPtr <= mxMemUnitPtrEnd) {
753 /* read response id */
754 responseId = *mxMemUnitPtr;
755 mxMemUnitPtr++;
756 switch (responseId) {
757 case RESPONSE_ERROR:
758 case RESPONSE_PRINTF:
759 case RESPONSE_FOPEN:
760 case RESPONSE_FPRINTF:
761 case RESPONSE_SIGNAL_RAISED:
762 {
763 if (processErrorAndTargetIOResponseCases(S, responseId,
764 &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) {
765 return false;
766 } /* if */
767 break;
768 }
769
770 default:
771 {
772 {
773 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
774 mxArray * rhs[ 2 ];
775 rhs[0] = mxCreateString(
776 "PIL:pilverification:UnknownResponseId");
777 rhs[1] = mxCreateDoubleScalar(responseId);
778 xilUtilsHandleError(pXILUtils, 2 , rhs );
779 return false;
780 }
781 break;
782 }
783 } /* switch */
784 } /* while */
785 } /* if */
786 } /* while */
787 }
788 }
789 }
790 } /* if */
791 } /* if */
792
793 return true;
794}
795
796static boolean_T startAndSetupApplication(SimStruct *S)
797{
798 {
799 {
800 mxArray *rhs[4];
801 const char * simulinkBlockPath = ssGetPath(S);
802 rhs[ 0 ] = mxCreateString(
803 "@coder.connectivity.SimulinkInterface.getSILPILInterface");
804 rhs[ 1 ] = mxCreateDoubleScalar( 0 );
805 rhs[ 2 ] = mxCreateString(simulinkBlockPath);
806 rhs[3] = mxCreateString("uint8");
807
808 {
809 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
810 if (xilUtilsCallMATLAB(pXILUtils, 0, 0, 4, rhs,
811 "rtw.pil.SILPILInterface.sfunctionPILStartHook")
812 !=XIL_UTILS_SUCCESS) {
813 return false;
814 } /* if */
815 }
816 }
817
818 { /* record that the XIL application has started */
819 int * pIsXILApplicationStarted = (int *) ssGetPWorkValue(S, 5);
820 *pIsXILApplicationStarted = 1;
821 ssSetPWorkValue(S, 5, pIsXILApplicationStarted);
822 }
823 }
824
825 {
826 mxArray *rhs[3];
827 mxArray *lhs[5];
828 const char * simulinkBlockPath = ssGetPath(S);
829 rhs[ 0 ] = mxCreateString(
830 "@coder.connectivity.SimulinkInterface.getSILPILInterface");
831 rhs[ 1 ] = mxCreateDoubleScalar( 0 );
832 rhs[ 2 ] = mxCreateString(simulinkBlockPath);
833
834 {
835 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
836 if (xilUtilsCallMATLAB(pXILUtils, 5, lhs, 3, rhs,
837 "rtw.pil.SILPILInterface.sfunctionGetRtIOStreamInfoHook")
838 !=XIL_UTILS_SUCCESS) {
839 return false;
840 } /* if */
841 }
842
843 {
844 XIL_RtIOStreamData_T* rtIOStreamDataPtr = (XIL_RtIOStreamData_T*) mxCalloc
845 (1, sizeof(XIL_RtIOStreamData_T));
846 if (rtIOStreamDataPtr == NULL) {
847 ssSetErrorStatus( S,"Error in allocating memory through mxCalloc.");
848 return false;
849 } /* if */
850
851 rtIOStreamDataPtr->lib = mxArrayToString(lhs[0]);
852 rtIOStreamDataPtr->MATLABObject = mxDuplicateArray(lhs[1]);
853 mexMakeMemoryPersistent(rtIOStreamDataPtr);
854 mexMakeMemoryPersistent(rtIOStreamDataPtr->lib);
855 mexMakeArrayPersistent(rtIOStreamDataPtr->MATLABObject);
856 rtIOStreamDataPtr->streamID = *mxGetPr(lhs[2]);
857 rtIOStreamDataPtr->recvTimeout = *mxGetPr(lhs[3]);
858 rtIOStreamDataPtr->sendTimeout = *mxGetPr(lhs[4]);
859 rtIOStreamDataPtr->isRtIOStreamCCall = 1;
860 rtIOStreamDataPtr->ioMxClassID = mxUINT8_CLASS;
861 rtIOStreamDataPtr->ioDataSize = sizeof(uint8_T);
862 rtIOStreamDataPtr->targetRecvBufferSizeBytes = 50000;
863 rtIOStreamDataPtr->targetSendBufferSizeBytes = 50000;
864
865 {
866 int errorStatus = rtIOStreamLoadLib(&rtIOStreamDataPtr->libH,
867 rtIOStreamDataPtr->lib);
868 if (errorStatus) {
869 ssSetErrorStatus( S,"rtIOStreamLoadLib failed.");
870 return false;
871 } /* if */
872 }
873
874 ssSetPWorkValue(S, 0, rtIOStreamDataPtr);
875 }
876
877 {
878 int i;
879 for (i=0; i<5; i++) {
880 mxDestroyArray(lhs[i]);
881 } /* for */
882 }
883 }
884
885 {
886 XIL_IOBuffer_T* IOBufferPtr = (XIL_IOBuffer_T *) mxCalloc(1, sizeof
887 (XIL_IOBuffer_T));
888 if (IOBufferPtr == NULL) {
889 ssSetErrorStatus( S,"Error in allocating memory through mxCalloc.");
890 return false;
891 } /* if */
892
893 mexMakeMemoryPersistent(IOBufferPtr);
894 ssSetPWorkValue(S, 1, IOBufferPtr);
895 }
896
897 {
898 SIL_DEBUGGING_DATA_T* silDebuggingDataPtr = (SIL_DEBUGGING_DATA_T*) mxCalloc
899 (1, sizeof(SIL_DEBUGGING_DATA_T));
900 const char * simulinkBlockPath = ssGetPath(S);
901 if (silDebuggingDataPtr == NULL) {
902 ssSetErrorStatus( S,
903 "Error in allocating memory through mxCalloc for SIL_DEBUGGING_DATA_T.");
904 return false;
905 } /* if */
906
907 silDebuggingDataPtr->componentBlockPath = strcpy((char *) mxCalloc(strlen
908 (simulinkBlockPath)+1, sizeof(char)), simulinkBlockPath);
909 silDebuggingDataPtr->SILPILInterfaceFcnStr = strcpy((char*) mxCalloc(57,
910 sizeof(char)), "@coder.connectivity.SimulinkInterface.getSILPILInterface");
911 silDebuggingDataPtr->inTheLoopType = 0;
912 mexMakeMemoryPersistent(silDebuggingDataPtr);
913 mexMakeMemoryPersistent(silDebuggingDataPtr->componentBlockPath);
914 mexMakeMemoryPersistent(silDebuggingDataPtr->SILPILInterfaceFcnStr);
915 ssSetPWorkValue(S, 2, silDebuggingDataPtr);
916 }
917
918 {
919 targetIOFd_T * targetIOFdPtr = (targetIOFd_T *) mxCalloc(1, sizeof
920 (targetIOFd_T));
921 if (targetIOFdPtr == NULL) {
922 return false;
923 } /* if */
924
925 mexMakeMemoryPersistent(targetIOFdPtr);
926 targetIOFdPtr->size = 0;
927 targetIOFdPtr->Fd = NULL;
928 targetIOFdPtr->fidOffset = -1;
929 ssSetPWorkValue(S, 3, targetIOFdPtr);
930 }
931
932 {
933 void* pConnectionOptions = NULL;
934 void* pComms = NULL;
935 void* pXILService = NULL;
936 void* pMemUnitTransformer = NULL;
937 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
938 uint8_T memUnitSizeBytes = 1;
939 uint8_T ioDataTypeSizeBytes = sizeof(uint8_T);
940 XIL_RtIOStreamData_T * rtIOStreamDataPtr = (XIL_RtIOStreamData_T *)
941 ssGetPWorkValue(S, 0);
942 SIL_DEBUGGING_DATA_T * silDebuggingDataPtr = (SIL_DEBUGGING_DATA_T *)
943 ssGetPWorkValue(S, 2);
944 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
945 void* pCodeInstrService = NULL;
946 CodeInstrServiceData_T* pCodeInstrServiceData = codeInstrServiceData(S,
947 memUnitSizeBytes);
948 void * pCoderAssumptionsApp = NULL;
949 if (xilCommsCreate(&pComms, rtIOStreamDataPtr, silDebuggingDataPtr,
950 memUnitSizeBytes, pMemUnitTransformer, pXILUtils, 0) !=
951 XILCOMMS_RTIOSTREAM_SUCCESS) {
952 return false;
953 } /* if */
954
955 if (xilHostAppSvcCreate(&pXILService, pComms, pXILUtils, IOBufferPtr,
956 memUnitSizeBytes, ioDataTypeSizeBytes, 0) !=
957 XILHOSTAPPSVC_SUCCESS) {
958 return false;
959 } /* if */
960
961 {
962 void * pCodeInstrMultiRunData = NULL;
963 pCodeInstrMultiRunData = (void *) ssGetPWorkValue(S, 11);
964 if (codeInstrHostAppSvcCreate(&pCodeInstrService, pCodeInstrServiceData,
965 pComms, pMemUnitTransformer, 32, pXILUtils, memUnitSizeBytes, 0,
966 pCodeInstrMultiRunData) != CODEINSTRHOSTAPPSVC_SUCCESS) {
967 mxFree(pCodeInstrServiceData);
968 return false;
969 } /* if */
970
971 mxFree(pCodeInstrServiceData);
972 }
973
974 {
975 mxArray * codeGenComponent = mxCreateString("FCC_Sys_New_harness");
976 mxArray *rhs[3];
977 const char * simulinkBlockPath = ssGetPath(S);
978 rhs[ 0 ] = mxCreateString(
979 "@coder.connectivity.SimulinkInterface.getSILPILInterface");
980 rhs[ 1 ] = mxCreateDoubleScalar( 0 );
981 rhs[ 2 ] = mxCreateString(simulinkBlockPath);
982 if (coderAssumpHostAppSvcCreate(&pCoderAssumptionsApp, pComms, pXILUtils,
983 0, 1, codeGenComponent, rhs[0], rhs[1], rhs[2], 1, 0, 1) !=
984 CODERASSUMPHOSTAPPSVC_SUCCESS) {
985 return false;
986 } /* if */
987 }
988
989 xilCommsRegisterApplication(pComms, pXILService);
990 xilCommsRegisterApplication(pComms, pCodeInstrService);
991 xilCommsRegisterApplication(pComms, pCoderAssumptionsApp);
992 ssSetPWorkValue(S, 9, pXILService);
993 ssSetPWorkValue(S, 7, pComms);
994 ssSetPWorkValue(S, 6, pXILUtils);
995 ssSetPWorkValue(S, 10, pCodeInstrService);
996 ssSetPWorkValue(S, 12, pCoderAssumptionsApp);
997 }
998
999 {
1000 uint8_T * mxMemUnitPtr;
1001 mwSize dataInSize = 0;
1002 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
1003 if (IOBufferPtr != NULL) {
1004 void * pXILService = (void *) ssGetPWorkValue(S, 9);
1005 if (pXILService != NULL) {
1006 if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 5, 0)!=
1007 XILHOSTAPPSVC_SUCCESS) {
1008 return false;
1009 } /* if */
1010
1011 if (IOBufferPtr->data != NULL) {
1012 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
1013
1014 /* write command id */
1015 *mxMemUnitPtr = (uint8_T) XIL_INIT_COMMAND;
1016 mxMemUnitPtr++;
1017
1018 {
1019 {
1020 uint8_T * simDataMemUnitPtr;
1021 uint32_T commandDataFcnid = 0;
1022 simDataMemUnitPtr = (uint8_T *) &commandDataFcnid;
1023
1024 {
1025 size_t num_elements = 1;
1026
1027 {
1028 copyIOData(mxMemUnitPtr, simDataMemUnitPtr, &mxMemUnitPtr,
1029 num_elements, sizeof(uint32_T));
1030 }
1031 }
1032 }
1033 }
1034 } /* if */
1035 } /* if */
1036 } /* if */
1037 }
1038
1039 {
1040 {
1041 uint8_T * mxMemUnitPtr;
1042 mwSize dataInSize = 0;
1043 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
1044
1045 /* provide the time information to the code instrumentation service */
1046 {
1047 void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10);
1048 time_T simTime = ssGetT(S);
1049 if (pCodeInstrService != NULL) {
1050 codeInstrHostAppSvcSetTime(pCodeInstrService, simTime);
1051 } /* if */
1052 }
1053
1054 /* dispatch command to the target */
1055 if (commandDispatch(S, IOBufferPtr, 5)!=XILHOSTAPPSVC_SUCCESS) {
1056 return false;
1057 } /* if */
1058
1059 {
1060 XILCommandResponseType commandResponseType = XIL_COMMAND_NOT_COMPLETE;
1061 while (commandResponseType != XIL_STEP_COMPLETE) {
1062 /* receive command from the target */
1063 mwSize dataInSize = 0;
1064 if (commandResponse(S, &dataInSize, &commandResponseType) !=
1065 XILHOSTAPPSVC_SUCCESS) {
1066 return false;
1067 } /* if */
1068
1069 if (dataInSize>0) {
1070 size_t dataInMemUnitSize = dataInSize;
1071 uint8_T responseId = 0;
1072 uint8_T * mxMemUnitPtrEnd;
1073
1074#define RESPONSE_TYPE_SIZE 7
1075
1076 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
1077 mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1;
1078 while (mxMemUnitPtr <= mxMemUnitPtrEnd) {
1079 /* read response id */
1080 responseId = *mxMemUnitPtr;
1081 mxMemUnitPtr++;
1082 switch (responseId) {
1083 case RESPONSE_ERROR:
1084 case RESPONSE_PRINTF:
1085 case RESPONSE_FOPEN:
1086 case RESPONSE_FPRINTF:
1087 case RESPONSE_SIGNAL_RAISED:
1088 {
1089 if (processErrorAndTargetIOResponseCases(S, responseId,
1090 &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) {
1091 return false;
1092 } /* if */
1093 break;
1094 }
1095
1096 case RESPONSE_TYPE_SIZE:
1097 {
1098 uint8_T typeBytes;
1099 uint8_T typeId = *mxMemUnitPtr;
1100 mxMemUnitPtr++;
1101 typeBytes = *mxMemUnitPtr;
1102 mxMemUnitPtr++;
1103 switch (typeId) {
1104 case SS_SINGLE:
1105 {
1106 if (typeBytes != 4) {
1107 {
1108 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
1109 mxArray * rhs[ 3 ];
1110 rhs[0] = mxCreateString(
1111 "PIL:pilverification:SingleUnsupported");
1112 rhs[1] = mxCreateDoubleScalar(4);
1113 rhs[2] = mxCreateDoubleScalar(typeBytes);
1114 xilUtilsHandleError(pXILUtils, 3 , rhs );
1115 return false;
1116 }
1117 } /* if */
1118 break;
1119 }
1120
1121 case SS_DOUBLE:
1122 {
1123 if (typeBytes != 8) {
1124 {
1125 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
1126 mxArray * rhs[ 3 ];
1127 rhs[0] = mxCreateString(
1128 "PIL:pilverification:DoubleUnsupported");
1129 rhs[1] = mxCreateDoubleScalar(8);
1130 rhs[2] = mxCreateDoubleScalar(typeBytes);
1131 xilUtilsHandleError(pXILUtils, 3 , rhs );
1132 return false;
1133 }
1134 } /* if */
1135 break;
1136 }
1137
1138 default:
1139 {
1140 {
1141 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
1142 mxArray * rhs[ 2 ];
1143 rhs[0] = mxCreateString(
1144 "PIL:pilverification:UnknownTypeId");
1145 rhs[1] = mxCreateDoubleScalar(typeId);
1146 xilUtilsHandleError(pXILUtils, 2 , rhs );
1147 return false;
1148 }
1149 break;
1150 }
1151 } /* switch */
1152 break;
1153 }
1154
1155 default:
1156 {
1157 {
1158 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
1159 mxArray * rhs[ 2 ];
1160 rhs[0] = mxCreateString(
1161 "PIL:pilverification:UnknownResponseId");
1162 rhs[1] = mxCreateDoubleScalar(responseId);
1163 xilUtilsHandleError(pXILUtils, 2 , rhs );
1164 return false;
1165 }
1166 break;
1167 }
1168 } /* switch */
1169 } /* while */
1170 } /* if */
1171 } /* while */
1172 }
1173 }
1174 }
1175
1176 /* initialize parameters */
1177 if (!processParams(S)) {
1178 return false;
1179 } /* if */
1180
1181 {
1182 /* DataInterface: output, 1 */
1183 void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S, 0);
1184 }
1185
1186 {
1187 /* DataInterface: output, 2 */
1188 void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S, 1);
1189 }
1190
1191 {
1192 /* DataInterface: output, 3 */
1193 void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S, 2);
1194 }
1195
1196 return true;
1197}
1198
1199static void sendInitializeCommand(SimStruct *S)
1200{
1201 {
1202 uint8_T * mxMemUnitPtr;
1203 mwSize dataInSize = 0;
1204 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
1205 if (IOBufferPtr != NULL) {
1206 void * pXILService = (void *) ssGetPWorkValue(S, 9);
1207 if (pXILService != NULL) {
1208 if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 5, 0)!=
1209 XILHOSTAPPSVC_SUCCESS) {
1210 return;
1211 } /* if */
1212
1213 if (IOBufferPtr->data != NULL) {
1214 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
1215
1216 /* write command id */
1217 *mxMemUnitPtr = (uint8_T) XIL_INITIALIZE_COMMAND;
1218 mxMemUnitPtr++;
1219
1220 {
1221 {
1222 uint8_T * simDataMemUnitPtr;
1223 uint32_T commandDataFcnid = 0;
1224 simDataMemUnitPtr = (uint8_T *) &commandDataFcnid;
1225
1226 {
1227 size_t num_elements = 1;
1228
1229 {
1230 copyIOData(mxMemUnitPtr, simDataMemUnitPtr, &mxMemUnitPtr,
1231 num_elements, sizeof(uint32_T));
1232 }
1233 }
1234 }
1235 }
1236 } /* if */
1237 } /* if */
1238 } /* if */
1239 }
1240
1241 {
1242 {
1243 uint8_T * mxMemUnitPtr;
1244 mwSize dataInSize = 0;
1245 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
1246
1247 /* provide the time information to the code instrumentation service */
1248 {
1249 void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10);
1250 time_T simTime = ssGetT(S);
1251 if (pCodeInstrService != NULL) {
1252 codeInstrHostAppSvcSetTime(pCodeInstrService, simTime);
1253 } /* if */
1254 }
1255
1256 /* dispatch command to the target */
1257 if (commandDispatch(S, IOBufferPtr, 5)!=XILHOSTAPPSVC_SUCCESS) {
1258 return;
1259 } /* if */
1260
1261 {
1262 XILCommandResponseType commandResponseType = XIL_COMMAND_NOT_COMPLETE;
1263 while (commandResponseType != XIL_STEP_COMPLETE) {
1264 /* receive command from the target */
1265 mwSize dataInSize = 0;
1266 if (commandResponse(S, &dataInSize, &commandResponseType) !=
1267 XILHOSTAPPSVC_SUCCESS) {
1268 return;
1269 } /* if */
1270
1271 if (dataInSize>0) {
1272 size_t dataInMemUnitSize = dataInSize;
1273 uint8_T responseId = 0;
1274 uint8_T * mxMemUnitPtrEnd;
1275 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
1276 mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1;
1277 while (mxMemUnitPtr <= mxMemUnitPtrEnd) {
1278 /* read response id */
1279 responseId = *mxMemUnitPtr;
1280 mxMemUnitPtr++;
1281 switch (responseId) {
1282 case RESPONSE_ERROR:
1283 case RESPONSE_PRINTF:
1284 case RESPONSE_FOPEN:
1285 case RESPONSE_FPRINTF:
1286 case RESPONSE_SIGNAL_RAISED:
1287 {
1288 if (processErrorAndTargetIOResponseCases(S, responseId,
1289 &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) {
1290 return;
1291 } /* if */
1292 break;
1293 }
1294
1295 case RESPONSE_OUTPUT_PRE_DATA:
1296 {
1297 break;
1298 }
1299
1300 case RESPONSE_OUTPUT_DATA:
1301 {
1302 {
1303 /* DataInterface: output, 1 */
1304 void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S,
1305 0);
1306
1307 {
1308 uint8_T * simDataMemUnitPtr;
1309
1310 /* DataInterface: output, 1 */
1311 simDataMemUnitPtr = ( uint8_T *) dataInterfacePtr;
1312
1313 {
1314 size_t num_elements = 1;
1315
1316 {
1317 copyIOData(simDataMemUnitPtr, mxMemUnitPtr,
1318 &mxMemUnitPtr, num_elements, sizeof(int16_T));
1319 }
1320 }
1321 }
1322 }
1323
1324 {
1325 /* DataInterface: output, 2 */
1326 void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S,
1327 1);
1328
1329 {
1330 uint8_T * simDataMemUnitPtr;
1331
1332 /* DataInterface: output, 2 */
1333 simDataMemUnitPtr = ( uint8_T *) dataInterfacePtr;
1334
1335 {
1336 size_t num_elements = 1;
1337
1338 {
1339 copyIOData(simDataMemUnitPtr, mxMemUnitPtr,
1340 &mxMemUnitPtr, num_elements, sizeof(int16_T));
1341 }
1342 }
1343 }
1344 }
1345
1346 {
1347 /* DataInterface: output, 3 */
1348 void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S,
1349 2);
1350
1351 {
1352 uint8_T * simDataMemUnitPtr;
1353
1354 /* DataInterface: output, 3 */
1355 simDataMemUnitPtr = ( uint8_T *) dataInterfacePtr;
1356
1357 {
1358 size_t num_elements = 1;
1359
1360 {
1361 copyIOData(simDataMemUnitPtr, mxMemUnitPtr,
1362 &mxMemUnitPtr, num_elements, sizeof(int16_T));
1363 }
1364 }
1365 }
1366 }
1367 break;
1368 }
1369
1370 default:
1371 {
1372 {
1373 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
1374 mxArray * rhs[ 2 ];
1375 rhs[0] = mxCreateString(
1376 "PIL:pilverification:UnknownResponseId");
1377 rhs[1] = mxCreateDoubleScalar(responseId);
1378 xilUtilsHandleError(pXILUtils, 2 , rhs );
1379 return;
1380 }
1381 break;
1382 }
1383 } /* switch */
1384 } /* while */
1385 } /* if */
1386 } /* while */
1387 }
1388 }
1389 }
1390}
1391
1392/* This function checks the attributes of tunable parameters. */
1393#define MDL_CHECK_PARAMETERS
1394#if defined(MDL_CHECK_PARAMETERS) && defined(MATLAB_MEX_FILE)
1395
1396static void mdlCheckParameters(SimStruct *S)
1397{
1398}
1399
1400#endif /* MDL_CHECK_PARAMETERS */
1401
1402static void mdlInitializeSizes(SimStruct *S)
1403{
1404 ssSetNumSFcnParams(S, 0); /* Number of expected parameters */
1405 if (ssGetNumSFcnParams(S) == ssGetSFcnParamsCount(S)) {
1406
1407#if defined(MDL_CHECK_PARAMETERS)
1408
1409 mdlCheckParameters(S);
1410
1411#endif
1412
1413 if (ssGetErrorStatus(S) != (NULL))
1414 return;
1415 } else {
1416 /* Parameter mismatch will be reported by Simulink */
1417 return;
1418 }
1419
1420 ssSetNumContStates(S, 0);
1421 ssSetNumDiscStates(S, 0);
1422
1423 /* no support for SimState */
1424 ssSetSimStateCompliance(S, DISALLOW_SIM_STATE);
1425
1426 /* Allow signal dimensions greater than 2 */
1427 ssAllowSignalsWithMoreThan2D(S);
1428
1429 /* Allow fixed-point data types with 33 or more bits */
1430 ssFxpSetU32BitRegionCompliant(S,1);
1431 ssSetRTWGeneratedSFcn(S, 4);
1432 if (!ssSetNumInputPorts(S, 0))
1433 return;
1434 if (!ssSetNumOutputPorts(S, 3))
1435 return;
1436
1437 /* Output Port 0 */
1438 if (ssGetSimMode(S) != SS_SIMMODE_SIZES_CALL_ONLY) {
1439 DTypeId dataTypeId = INVALID_DTYPE_ID;
1440
1441 /* set datatype */
1442 dataTypeId = 4;
1443 ssSetOutputPortDataType(S, 0, dataTypeId);
1444 }
1445
1446 /* dimensions */
1447 {
1448 DECL_AND_INIT_DIMSINFO(di);
1449 int_T dims[ 1 ] = { 1 };
1450
1451 di.numDims = 1;
1452 di.dims = dims;
1453 di.width = 1;
1454 ssSetOutputPortDimensionInfo(S, 0, &di);
1455 }
1456
1457 ssSetOutputPortDimensionsMode(S, 0, FIXED_DIMS_MODE);
1458
1459 /* complexity */
1460 ssSetOutputPortComplexSignal(S, 0, COMPLEX_NO);
1461
1462 /* using hybrid block and port based sample times */
1463 ssSetOutputPortSampleTime(S, 0, 0.001);
1464 ssSetOutputPortOffsetTime(S, 0, 0);
1465
1466 /* sampling mode */
1467 ssSetOutputPortFrameData(S, 0, FRAME_NO);
1468
1469 /* units */
1470 if (ssGetSimMode(S) != SS_SIMMODE_SIZES_CALL_ONLY) {
1471
1472#if defined (MATLAB_MEX_FILE)
1473
1474 UnitId unitIdReg;
1475 ssRegisterUnitFromExpr(
1476 S,
1477 "",
1478 &unitIdReg);
1479 if (unitIdReg == INVALID_UNIT_ID)
1480 return;
1481 ssSetOutputPortUnit(S, 0, unitIdReg);
1482
1483#endif
1484
1485 } /* Output Port 1 */
1486
1487 if (ssGetSimMode(S) != SS_SIMMODE_SIZES_CALL_ONLY) {
1488 DTypeId dataTypeId = INVALID_DTYPE_ID;
1489
1490 /* set datatype */
1491 dataTypeId = 4;
1492 ssSetOutputPortDataType(S, 1, dataTypeId);
1493 }
1494
1495 /* dimensions */
1496 {
1497 DECL_AND_INIT_DIMSINFO(di);
1498 int_T dims[ 1 ] = { 1 };
1499
1500 di.numDims = 1;
1501 di.dims = dims;
1502 di.width = 1;
1503 ssSetOutputPortDimensionInfo(S, 1, &di);
1504 }
1505
1506 ssSetOutputPortDimensionsMode(S, 1, FIXED_DIMS_MODE);
1507
1508 /* complexity */
1509 ssSetOutputPortComplexSignal(S, 1, COMPLEX_NO);
1510
1511 /* using hybrid block and port based sample times */
1512 ssSetOutputPortSampleTime(S, 1, 0.001);
1513 ssSetOutputPortOffsetTime(S, 1, 0);
1514
1515 /* sampling mode */
1516 ssSetOutputPortFrameData(S, 1, FRAME_NO);
1517
1518 /* units */
1519 if (ssGetSimMode(S) != SS_SIMMODE_SIZES_CALL_ONLY) {
1520
1521#if defined (MATLAB_MEX_FILE)
1522
1523 UnitId unitIdReg;
1524 ssRegisterUnitFromExpr(
1525 S,
1526 "",
1527 &unitIdReg);
1528 if (unitIdReg == INVALID_UNIT_ID)
1529 return;
1530 ssSetOutputPortUnit(S, 1, unitIdReg);
1531
1532#endif
1533
1534 } /* Output Port 2 */
1535
1536 if (ssGetSimMode(S) != SS_SIMMODE_SIZES_CALL_ONLY) {
1537 DTypeId dataTypeId = INVALID_DTYPE_ID;
1538
1539 /* set datatype */
1540 dataTypeId = 4;
1541 ssSetOutputPortDataType(S, 2, dataTypeId);
1542 }
1543
1544 /* dimensions */
1545 {
1546 DECL_AND_INIT_DIMSINFO(di);
1547 int_T dims[ 1 ] = { 1 };
1548
1549 di.numDims = 1;
1550 di.dims = dims;
1551 di.width = 1;
1552 ssSetOutputPortDimensionInfo(S, 2, &di);
1553 }
1554
1555 ssSetOutputPortDimensionsMode(S, 2, FIXED_DIMS_MODE);
1556
1557 /* complexity */
1558 ssSetOutputPortComplexSignal(S, 2, COMPLEX_NO);
1559
1560 /* using hybrid block and port based sample times */
1561 ssSetOutputPortSampleTime(S, 2, 0.001);
1562 ssSetOutputPortOffsetTime(S, 2, 0);
1563
1564 /* sampling mode */
1565 ssSetOutputPortFrameData(S, 2, FRAME_NO);
1566
1567 /* units */
1568 if (ssGetSimMode(S) != SS_SIMMODE_SIZES_CALL_ONLY) {
1569
1570#if defined (MATLAB_MEX_FILE)
1571
1572 UnitId unitIdReg;
1573 ssRegisterUnitFromExpr(
1574 S,
1575 "",
1576 &unitIdReg);
1577 if (unitIdReg == INVALID_UNIT_ID)
1578 return;
1579 ssSetOutputPortUnit(S, 2, unitIdReg);
1580
1581#endif
1582
1583 } /* using hybrid block and port based sample times */
1584
1585 ssSetNumSampleTimes(S, 2);
1586
1587 /* this s-function is sample time dependent: do not allow sub-models containing it to inherit sample times */
1588 ssSetModelReferenceSampleTimeInheritanceRule(S,
1589 DISALLOW_SAMPLE_TIME_INHERITANCE);
1590 if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S) ) {
1591 ssSetNumPWork(S, 0);
1592 } else {
1593 ssSetNumPWork(S, 13);
1594 } /* if */
1595
1596 ssSetNumRWork(S, 0);
1597 ssSetNumIWork(S, 0);
1598 ssSetNumModes(S, 0);
1599 ssSetNumNonsampledZCs(S, 0);
1600
1601 {
1602 uint_T options = 0;
1603
1604 /* using hybrid block and port based sample times */
1605 options |= SS_OPTION_PORT_SAMPLE_TIMES_ASSIGNED;
1606
1607 /* do not allow (including inheritance of) constant block-based sample times*/
1608 options |= SS_OPTION_DISALLOW_CONSTANT_SAMPLE_TIME;
1609 options |= SS_OPTION_SUPPORTS_ALIAS_DATA_TYPES;
1610 options |= SS_OPTION_CALL_TERMINATE_ON_EXIT;
1611 ssSetOptions(S, options);
1612 }
1613
1614 ssSetModelReferenceNormalModeSupport(S, MDL_START_AND_MDL_PROCESS_PARAMS_OK);
1615}
1616
1617#define MDL_SET_INPUT_PORT_SAMPLE_TIME /* Change to #undef to remove function */
1618#if defined(MDL_SET_INPUT_PORT_SAMPLE_TIME) && defined(MATLAB_MEX_FILE)
1619
1620static void mdlSetInputPortSampleTime(SimStruct *S, int_T portIdx, real_T
1621 sampleTime, real_T offsetTime)
1622{
1623 /* sample times are fully specified */
1624}
1625
1626#endif /* MDL_SET_INPUT_PORT_SAMPLE_TIME */
1627
1628#define MDL_SET_OUTPUT_PORT_SAMPLE_TIME /* Change to #undef to remove function */
1629#if defined(MDL_SET_OUTPUT_PORT_SAMPLE_TIME) && defined(MATLAB_MEX_FILE)
1630
1631static void mdlSetOutputPortSampleTime(SimStruct *S, int_T portIdx, real_T
1632 sampleTime, real_T offsetTime)
1633{
1634 /* sample times are fully specified */
1635}
1636
1637#endif /* MDL_SET_OUTPUT_PORT_SAMPLE_TIME */
1638
1639static void mdlInitializeSampleTimes(SimStruct *S)
1640{
1641 if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) {
1642 return;
1643 } /* if */
1644
1645 /* using hybrid block and port based sample times */
1646 ssSetSampleTime(S, 0, 0.001);
1647 ssSetOffsetTime(S, 0, 0);
1648 ssSetSampleTime(S, 1, 0.01);
1649 ssSetOffsetTime(S, 1, 0);
1650}
1651
1652#define MDL_SETUP_RUNTIME_RESOURCES /* Change to #undef to remove function */
1653#if defined(MDL_SETUP_RUNTIME_RESOURCES)
1654
1655static void mdlSetupRuntimeResources(SimStruct *S)
1656{
1657 if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) {
1658 return;
1659 } /* if */
1660
1661 {
1662 mxArray * error = NULL;
1663 error = mexCallMATLABWithTrap( 0, NULL, 0, NULL,
1664 "rtw.pil.checkEmbeddedCoderInstalled");
1665 if (error != NULL) {
1666 mexCallMATLAB( 0, NULL, 1, &error, "throw");
1667 } /* if */
1668 }
1669
1670 {
1671 mxArray * lhs[1];
1672 mxArray * error = NULL;
1673 char * installVersion;
1674 error = mexCallMATLABWithTrap(1, lhs, 0, NULL, "rtw.pil.getPILVersion");
1675 if (error != NULL) {
1676 mxDestroyArray(error);
1677 ssSetErrorStatus( S,
1678 "Failed to determine the installed In-the-Loop version for comparison against the In-the-Loop s-function version (release 9.8 (R2020a)_13). To avoid this error, remove the In-the-Loop s-function from your MATLAB path (e.g. delete it or move to a clean working directory).");
1679 return;
1680 } /* if */
1681
1682 if (mxIsEmpty(lhs[0])) {
1683 ssSetErrorStatus( S,"rtw.pil.getPILVersion returned empty!");
1684 return;
1685 } /* if */
1686
1687 installVersion = mxArrayToString(lhs[0]);
1688 mxDestroyArray(lhs[0]);
1689 if (installVersion == NULL) {
1690 ssSetErrorStatus( S,"Failed to determine installed In-the-Loop version.");
1691 return;
1692 } /* if */
1693
1694 if (strcmp(installVersion, "9.8 (R2020a)_13") != 0) {
1695 ssSetErrorStatus( S,
1696 "The In-the-Loop s-function is incompatible with the installed In-the-Loop version (see ver('matlab')); it was generated for release 9.8 (R2020a)_13. To avoid this error, remove the In-the-Loop s-function from your MATLAB path (e.g. delete it or move to a clean working directory)");
1697 return;
1698 } /* if */
1699
1700 mxFree(installVersion);
1701 }
1702
1703 {
1704 int retValXILUtils = XIL_UTILS_SUCCESS;
1705 void* pXILUtils = NULL;
1706 retValXILUtils = xilSimulinkUtilsCreate(&pXILUtils, S);
1707 if (retValXILUtils!=XIL_UTILS_SUCCESS) {
1708 ssSetErrorStatus( S,"Error instantiating XIL Utils!");
1709 return;
1710 } /* if */
1711
1712 ssSetPWorkValue(S, 6, pXILUtils);
1713 }
1714
1715 {
1716 int * pCommErrorOccurred = (int *) mxCalloc(1, sizeof(int));
1717 if (pCommErrorOccurred == NULL) {
1718 ssSetErrorStatus( S,
1719 "Error in allocating memory for pCommErrorOccurred through mxCalloc.");
1720 return;
1721 } /* if */
1722
1723 *pCommErrorOccurred = 0;
1724 mexMakeMemoryPersistent(pCommErrorOccurred);
1725 ssSetPWorkValue(S, 4, pCommErrorOccurred);
1726 }
1727
1728 {
1729 int * pIsXILApplicationStarted = (int *) mxCalloc(1, sizeof(int));
1730 if (pIsXILApplicationStarted == NULL) {
1731 ssSetErrorStatus( S,
1732 "Error in allocating memory for pIsXILApplicationStarted through mxCalloc.");
1733 return;
1734 } /* if */
1735
1736 *pIsXILApplicationStarted = 0;
1737 mexMakeMemoryPersistent(pIsXILApplicationStarted);
1738 ssSetPWorkValue(S, 5, pIsXILApplicationStarted);
1739 }
1740
1741 {
1742 mxArray *rhs[4];
1743 mxArray *lhs[1];
1744 char * rootLoggingPath;
1745 const char * simulinkBlockPath = ssGetPath(S);
1746 rhs[ 0 ] = mxCreateString(
1747 "@coder.connectivity.SimulinkInterface.getSILPILInterface");
1748 rhs[ 1 ] = mxCreateDoubleScalar( 0 );
1749 rhs[ 2 ] = mxCreateString(simulinkBlockPath);
1750 rhs[3] = mxCreateString(ssGetPath(ssGetRootSS(S)));
1751
1752 {
1753 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
1754 if (xilUtilsCallMATLAB(pXILUtils, 1, lhs, 4, rhs,
1755 "rtw.pil.SILPILInterface.sfunctionInitializeHook")
1756 !=XIL_UTILS_SUCCESS) {
1757 return;
1758 } /* if */
1759 }
1760
1761 rootLoggingPath = mxArrayToString(lhs[0]);
1762 mxDestroyArray(lhs[0]);
1763 mxFree(rootLoggingPath);
1764 }
1765
1766 {
1767 void * multiRunDataPtr = xilSimulinkUtilsStaticInitMultiRunInstrData();
1768 ssSetPWorkValue(S, 11, multiRunDataPtr);
1769 }
1770}
1771
1772#endif /* MDL_SETUP_RUNTIME_RESOURCES */
1773
1774#define MDL_SIM_STATUS_CHANGE /* Change to #undef to remove function */
1775#if defined(MDL_SIM_STATUS_CHANGE)
1776
1777static void mdlSimStatusChange(SimStruct *S, ssSimStatusChangeType simStatus)
1778{
1779 if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) {
1780 return;
1781 } /* if */
1782
1783 if (simStatus == SIM_PAUSE) {
1784 {
1785 uint8_T * mxMemUnitPtr;
1786 mwSize dataInSize = 0;
1787 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
1788 if (IOBufferPtr != NULL) {
1789 void * pXILService = (void *) ssGetPWorkValue(S, 9);
1790 if (pXILService != NULL) {
1791 if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 5, 0)!=
1792 XILHOSTAPPSVC_SUCCESS) {
1793 return ;
1794 } /* if */
1795
1796 if (IOBufferPtr->data != NULL) {
1797 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
1798
1799 /* write command id */
1800 *mxMemUnitPtr = (uint8_T) XIL_PAUSE_COMMAND;
1801 mxMemUnitPtr++;
1802
1803 {
1804 {
1805 uint8_T * simDataMemUnitPtr;
1806 uint32_T commandDataFcnid = 0;
1807 simDataMemUnitPtr = (uint8_T *) &commandDataFcnid;
1808
1809 {
1810 size_t num_elements = 1;
1811
1812 {
1813 copyIOData(mxMemUnitPtr, simDataMemUnitPtr, &mxMemUnitPtr,
1814 num_elements, sizeof(uint32_T));
1815 }
1816 }
1817 }
1818 }
1819 } /* if */
1820 } /* if */
1821 } /* if */
1822 }
1823
1824 {
1825 {
1826 uint8_T * mxMemUnitPtr;
1827 mwSize dataInSize = 0;
1828 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
1829
1830 /* provide the time information to the code instrumentation service */
1831 {
1832 void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10);
1833 time_T simTime = ssGetT(S);
1834 if (pCodeInstrService != NULL) {
1835 codeInstrHostAppSvcSetTime(pCodeInstrService, simTime);
1836 } /* if */
1837 }
1838
1839 /* dispatch command to the target */
1840 if (commandDispatch(S, IOBufferPtr, 5)!=XILHOSTAPPSVC_SUCCESS) {
1841 return ;
1842 } /* if */
1843
1844 {
1845 XILCommandResponseType commandResponseType = XIL_COMMAND_NOT_COMPLETE;
1846 while (commandResponseType != XIL_STEP_COMPLETE) {
1847 /* receive command from the target */
1848 mwSize dataInSize = 0;
1849 if (commandResponse(S, &dataInSize, &commandResponseType) !=
1850 XILHOSTAPPSVC_SUCCESS) {
1851 return ;
1852 } /* if */
1853
1854 if (dataInSize>0) {
1855 size_t dataInMemUnitSize = dataInSize;
1856 uint8_T responseId = 0;
1857 uint8_T * mxMemUnitPtrEnd;
1858 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
1859 mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1;
1860 while (mxMemUnitPtr <= mxMemUnitPtrEnd) {
1861 /* read response id */
1862 responseId = *mxMemUnitPtr;
1863 mxMemUnitPtr++;
1864 switch (responseId) {
1865 case RESPONSE_ERROR:
1866 case RESPONSE_PRINTF:
1867 case RESPONSE_FOPEN:
1868 case RESPONSE_FPRINTF:
1869 case RESPONSE_SIGNAL_RAISED:
1870 {
1871 if (processErrorAndTargetIOResponseCases(S, responseId,
1872 &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) {
1873 return ;
1874 } /* if */
1875 break;
1876 }
1877
1878 default:
1879 {
1880 {
1881 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
1882 mxArray * rhs[ 2 ];
1883 rhs[0] = mxCreateString(
1884 "PIL:pilverification:UnknownResponseId");
1885 rhs[1] = mxCreateDoubleScalar(responseId);
1886 xilUtilsHandleError(pXILUtils, 2 , rhs );
1887 return ;
1888 }
1889 break;
1890 }
1891 } /* switch */
1892 } /* while */
1893 } /* if */
1894 } /* while */
1895 }
1896 }
1897 }
1898
1899 {
1900 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
1901 if (pXILUtils) {
1902 mxArray *rhs[3];
1903 const char * simulinkBlockPath = ssGetPath(S);
1904 rhs[ 0 ] = mxCreateString(
1905 "@coder.connectivity.SimulinkInterface.getSILPILInterface");
1906 rhs[ 1 ] = mxCreateDoubleScalar( 0 );
1907 rhs[ 2 ] = mxCreateString(simulinkBlockPath);
1908 if (xilUtilsCallMATLAB(pXILUtils, 0, NULL, 3, rhs,
1909 "rtw.pil.SILPILInterface.sfunctionPILPauseHook")
1910 != XIL_UTILS_SUCCESS) {
1911 return ;
1912 } /* if */
1913 } /* if */
1914 }
1915 } /* if */
1916}
1917
1918#endif /* MDL_SIM_STATUS_CHANGE */
1919
1920#define MDL_START /* Change to #undef to remove function */
1921#if defined(MDL_START)
1922
1923static void mdlStart(SimStruct *S)
1924{
1925 if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) {
1926 return;
1927 } /* if */
1928
1929 /* no solver check required for multitasking scheduling */
1930 /* Check current start time is consistent with the generated code */
1931 if (ssGetTStart(S) != 0) {
1932 {
1933 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
1934 mxArray * rhs[ 2 ];
1935 rhs[0] = mxCreateString("PIL:pil:XILBlockStartTimeError");
1936 rhs[1] = mxCreateString("0");
1937 xilUtilsHandleError(pXILUtils, 2 , rhs );
1938 return;
1939 }
1940 } /* if */
1941
1942 {
1943 int * pIsXILApplicationStartedLocal = (int *) ssGetPWorkValue(S, 5);
1944 if (pIsXILApplicationStartedLocal != NULL && (*pIsXILApplicationStartedLocal)
1945 != 0) {
1946 ssSetErrorStatus( S,
1947 "Failed to start the application: another instance is already running.");
1948 return ;
1949 } /* if */
1950 }
1951
1952 {
1953 boolean_T applicationStarted = startAndSetupApplication(S);
1954 if (!applicationStarted) {
1955 return;
1956 } /* if */
1957 }
1958
1959 sendInitializeCommand(S);
1960}
1961
1962#endif /* MDL_START */
1963
1964static void XILoutputTID01(SimStruct *S, int tid)
1965{
1966 time_T taskTime = ssGetTaskTime(S, 0);
1967
1968 {
1969 uint8_T * mxMemUnitPtr;
1970 mwSize dataInSize = 0;
1971 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
1972 if (IOBufferPtr != NULL) {
1973 void * pXILService = (void *) ssGetPWorkValue(S, 9);
1974 if (pXILService != NULL) {
1975 if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 9, 0)!=
1976 XILHOSTAPPSVC_SUCCESS) {
1977 return;
1978 } /* if */
1979
1980 if (IOBufferPtr->data != NULL) {
1981 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
1982
1983 /* write command id */
1984 *mxMemUnitPtr = (uint8_T) XIL_OUTPUT_COMMAND;
1985 mxMemUnitPtr++;
1986
1987 {
1988 {
1989 uint8_T * simDataMemUnitPtr;
1990 uint32_T commandDataFcnidTID[2] = { 0, 1 };
1991
1992 simDataMemUnitPtr = (uint8_T *) &commandDataFcnidTID[0];
1993
1994 {
1995 size_t num_elements = 2;
1996
1997 {
1998 copyIOData(mxMemUnitPtr, simDataMemUnitPtr, &mxMemUnitPtr,
1999 num_elements, sizeof(uint32_T));
2000 }
2001 }
2002 }
2003 }
2004 } /* if */
2005 } /* if */
2006 } /* if */
2007 }
2008
2009 {
2010 {
2011 uint8_T * mxMemUnitPtr;
2012 mwSize dataInSize = 0;
2013 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
2014
2015 /* provide the time information to the code instrumentation service */
2016 {
2017 void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10);
2018 if (pCodeInstrService != NULL) {
2019 codeInstrHostAppSvcSetTime(pCodeInstrService, taskTime);
2020 } /* if */
2021 }
2022
2023 /* dispatch command to the target */
2024 if (commandDispatch(S, IOBufferPtr, 9)!=XILHOSTAPPSVC_SUCCESS) {
2025 return;
2026 } /* if */
2027
2028 {
2029 XILCommandResponseType commandResponseType = XIL_COMMAND_NOT_COMPLETE;
2030 while (commandResponseType != XIL_STEP_COMPLETE) {
2031 /* receive command from the target */
2032 mwSize dataInSize = 0;
2033 if (commandResponse(S, &dataInSize, &commandResponseType) !=
2034 XILHOSTAPPSVC_SUCCESS) {
2035 return;
2036 } /* if */
2037
2038 if (dataInSize>0) {
2039 size_t dataInMemUnitSize = dataInSize;
2040 uint8_T responseId = 0;
2041 uint8_T * mxMemUnitPtrEnd;
2042 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
2043 mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1;
2044 while (mxMemUnitPtr <= mxMemUnitPtrEnd) {
2045 /* read response id */
2046 responseId = *mxMemUnitPtr;
2047 mxMemUnitPtr++;
2048 switch (responseId) {
2049 case RESPONSE_ERROR:
2050 case RESPONSE_PRINTF:
2051 case RESPONSE_FOPEN:
2052 case RESPONSE_FPRINTF:
2053 case RESPONSE_SIGNAL_RAISED:
2054 {
2055 if (processErrorAndTargetIOResponseCases(S, responseId,
2056 &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) {
2057 return;
2058 } /* if */
2059 break;
2060 }
2061
2062 case RESPONSE_OUTPUT_PRE_DATA:
2063 {
2064 break;
2065 }
2066
2067 case RESPONSE_OUTPUT_DATA:
2068 {
2069 {
2070 /* DataInterface: output, 1 */
2071 void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S,
2072 0);
2073
2074 {
2075 uint8_T * simDataMemUnitPtr;
2076
2077 /* DataInterface: output, 1 */
2078 simDataMemUnitPtr = ( uint8_T *) dataInterfacePtr;
2079
2080 {
2081 size_t num_elements = 1;
2082
2083 {
2084 copyIOData(simDataMemUnitPtr, mxMemUnitPtr,
2085 &mxMemUnitPtr, num_elements, sizeof(int16_T));
2086 }
2087 }
2088 }
2089 }
2090
2091 {
2092 /* DataInterface: output, 2 */
2093 void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S,
2094 1);
2095
2096 {
2097 uint8_T * simDataMemUnitPtr;
2098
2099 /* DataInterface: output, 2 */
2100 simDataMemUnitPtr = ( uint8_T *) dataInterfacePtr;
2101
2102 {
2103 size_t num_elements = 1;
2104
2105 {
2106 copyIOData(simDataMemUnitPtr, mxMemUnitPtr,
2107 &mxMemUnitPtr, num_elements, sizeof(int16_T));
2108 }
2109 }
2110 }
2111 }
2112
2113 {
2114 /* DataInterface: output, 3 */
2115 void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S,
2116 2);
2117
2118 {
2119 uint8_T * simDataMemUnitPtr;
2120
2121 /* DataInterface: output, 3 */
2122 simDataMemUnitPtr = ( uint8_T *) dataInterfacePtr;
2123
2124 {
2125 size_t num_elements = 1;
2126
2127 {
2128 copyIOData(simDataMemUnitPtr, mxMemUnitPtr,
2129 &mxMemUnitPtr, num_elements, sizeof(int16_T));
2130 }
2131 }
2132 }
2133 }
2134 break;
2135 }
2136
2137 default:
2138 {
2139 {
2140 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
2141 mxArray * rhs[ 2 ];
2142 rhs[0] = mxCreateString(
2143 "PIL:pilverification:UnknownResponseId");
2144 rhs[1] = mxCreateDoubleScalar(responseId);
2145 xilUtilsHandleError(pXILUtils, 2 , rhs );
2146 return;
2147 }
2148 break;
2149 }
2150 } /* switch */
2151 } /* while */
2152 } /* if */
2153 } /* while */
2154 }
2155 }
2156 }
2157
2158 {
2159 uint8_T * mxMemUnitPtr;
2160 mwSize dataInSize = 0;
2161 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
2162 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
2163 if (dataInSize>0) {
2164 size_t dataInMemUnitSize = dataInSize;
2165 uint8_T responseId = 0;
2166 uint8_T * mxMemUnitPtrEnd;
2167 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
2168 mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1;
2169 while (mxMemUnitPtr <= mxMemUnitPtrEnd) {
2170 /* read response id */
2171 responseId = *mxMemUnitPtr;
2172 mxMemUnitPtr++;
2173 switch (responseId) {
2174 case RESPONSE_ERROR:
2175 case RESPONSE_PRINTF:
2176 case RESPONSE_FOPEN:
2177 case RESPONSE_FPRINTF:
2178 case RESPONSE_SIGNAL_RAISED:
2179 {
2180 if (processErrorAndTargetIOResponseCases(S, responseId,
2181 &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) {
2182 return;
2183 } /* if */
2184 break;
2185 }
2186
2187 default:
2188 {
2189 {
2190 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
2191 mxArray * rhs[ 2 ];
2192 rhs[0] = mxCreateString("PIL:pilverification:UnknownResponseId");
2193 rhs[1] = mxCreateDoubleScalar(responseId);
2194 xilUtilsHandleError(pXILUtils, 2 , rhs );
2195 return;
2196 }
2197 break;
2198 }
2199 } /* switch */
2200 } /* while */
2201 } /* if */
2202 }
2203}
2204
2205static void XILoutputTID02(SimStruct *S, int tid)
2206{
2207 time_T taskTime = ssGetTaskTime(S, 1);
2208
2209 {
2210 uint8_T * mxMemUnitPtr;
2211 mwSize dataInSize = 0;
2212 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
2213 if (IOBufferPtr != NULL) {
2214 void * pXILService = (void *) ssGetPWorkValue(S, 9);
2215 if (pXILService != NULL) {
2216 if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 9, 0)!=
2217 XILHOSTAPPSVC_SUCCESS) {
2218 return;
2219 } /* if */
2220
2221 if (IOBufferPtr->data != NULL) {
2222 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
2223
2224 /* write command id */
2225 *mxMemUnitPtr = (uint8_T) XIL_OUTPUT_COMMAND;
2226 mxMemUnitPtr++;
2227
2228 {
2229 {
2230 uint8_T * simDataMemUnitPtr;
2231 uint32_T commandDataFcnidTID[2] = { 0, 2 };
2232
2233 simDataMemUnitPtr = (uint8_T *) &commandDataFcnidTID[0];
2234
2235 {
2236 size_t num_elements = 2;
2237
2238 {
2239 copyIOData(mxMemUnitPtr, simDataMemUnitPtr, &mxMemUnitPtr,
2240 num_elements, sizeof(uint32_T));
2241 }
2242 }
2243 }
2244 }
2245 } /* if */
2246 } /* if */
2247 } /* if */
2248 }
2249
2250 {
2251 {
2252 uint8_T * mxMemUnitPtr;
2253 mwSize dataInSize = 0;
2254 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
2255
2256 /* provide the time information to the code instrumentation service */
2257 {
2258 void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10);
2259 if (pCodeInstrService != NULL) {
2260 codeInstrHostAppSvcSetTime(pCodeInstrService, taskTime);
2261 } /* if */
2262 }
2263
2264 /* dispatch command to the target */
2265 if (commandDispatch(S, IOBufferPtr, 9)!=XILHOSTAPPSVC_SUCCESS) {
2266 return;
2267 } /* if */
2268
2269 {
2270 XILCommandResponseType commandResponseType = XIL_COMMAND_NOT_COMPLETE;
2271 while (commandResponseType != XIL_STEP_COMPLETE) {
2272 /* receive command from the target */
2273 mwSize dataInSize = 0;
2274 if (commandResponse(S, &dataInSize, &commandResponseType) !=
2275 XILHOSTAPPSVC_SUCCESS) {
2276 return;
2277 } /* if */
2278
2279 if (dataInSize>0) {
2280 size_t dataInMemUnitSize = dataInSize;
2281 uint8_T responseId = 0;
2282 uint8_T * mxMemUnitPtrEnd;
2283 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
2284 mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1;
2285 while (mxMemUnitPtr <= mxMemUnitPtrEnd) {
2286 /* read response id */
2287 responseId = *mxMemUnitPtr;
2288 mxMemUnitPtr++;
2289 switch (responseId) {
2290 case RESPONSE_ERROR:
2291 case RESPONSE_PRINTF:
2292 case RESPONSE_FOPEN:
2293 case RESPONSE_FPRINTF:
2294 case RESPONSE_SIGNAL_RAISED:
2295 {
2296 if (processErrorAndTargetIOResponseCases(S, responseId,
2297 &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) {
2298 return;
2299 } /* if */
2300 break;
2301 }
2302
2303 default:
2304 {
2305 {
2306 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
2307 mxArray * rhs[ 2 ];
2308 rhs[0] = mxCreateString(
2309 "PIL:pilverification:UnknownResponseId");
2310 rhs[1] = mxCreateDoubleScalar(responseId);
2311 xilUtilsHandleError(pXILUtils, 2 , rhs );
2312 return;
2313 }
2314 break;
2315 }
2316 } /* switch */
2317 } /* while */
2318 } /* if */
2319 } /* while */
2320 }
2321 }
2322 }
2323
2324 {
2325 uint8_T * mxMemUnitPtr;
2326 mwSize dataInSize = 0;
2327 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
2328 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
2329 if (dataInSize>0) {
2330 size_t dataInMemUnitSize = dataInSize;
2331 uint8_T responseId = 0;
2332 uint8_T * mxMemUnitPtrEnd;
2333 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
2334 mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1;
2335 while (mxMemUnitPtr <= mxMemUnitPtrEnd) {
2336 /* read response id */
2337 responseId = *mxMemUnitPtr;
2338 mxMemUnitPtr++;
2339 switch (responseId) {
2340 case RESPONSE_ERROR:
2341 case RESPONSE_PRINTF:
2342 case RESPONSE_FOPEN:
2343 case RESPONSE_FPRINTF:
2344 case RESPONSE_SIGNAL_RAISED:
2345 {
2346 if (processErrorAndTargetIOResponseCases(S, responseId,
2347 &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) {
2348 return;
2349 } /* if */
2350 break;
2351 }
2352
2353 default:
2354 {
2355 {
2356 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
2357 mxArray * rhs[ 2 ];
2358 rhs[0] = mxCreateString("PIL:pilverification:UnknownResponseId");
2359 rhs[1] = mxCreateDoubleScalar(responseId);
2360 xilUtilsHandleError(pXILUtils, 2 , rhs );
2361 return;
2362 }
2363 break;
2364 }
2365 } /* switch */
2366 } /* while */
2367 } /* if */
2368 }
2369}
2370
2371#define MDL_PROCESS_PARAMETERS
2372#if defined(MDL_PROCESS_PARAMETERS)
2373
2374static void mdlProcessParameters(SimStruct *S)
2375{
2376 if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) {
2377 return;
2378 } /* if */
2379
2380 processParams(S);
2381}
2382
2383#endif /* MDL_PROCESS_PARAMETERS */
2384
2385#define MDL_INITIALIZE_CONDITIONS /* Change to #undef to remove function */
2386#if defined(MDL_INITIALIZE_CONDITIONS)
2387
2388static void mdlInitializeConditions(SimStruct *S)
2389{
2390 if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) {
2391 return;
2392 } /* if */
2393
2394 if (!ssIsFirstInitCond(S)) {
2395 {
2396 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
2397 mxArray * rhs[ 2 ];
2398 rhs[0] = mxCreateString("PIL:pil:NoInitConditionsToInvoke");
2399 rhs[1] = mxCreateString(ssGetPath(S));
2400 xilUtilsHandleError(pXILUtils, 2 , rhs );
2401 return;
2402 }
2403 } /* if */
2404}
2405
2406#endif /* MDL_INITIALIZE_CONDITIONS */
2407
2408#define MDL_SET_WORK_WIDTHS /* Change to #undef to remove function */
2409#if defined(MDL_SET_WORK_WIDTHS)
2410
2411static void mdlSetWorkWidths(SimStruct *S)
2412{
2413}
2414
2415#endif /* MDL_SET_WORK_WIDTHS */
2416
2417static void mdlOutputs(SimStruct *S, int_T tid)
2418{
2419 if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) {
2420 return;
2421 } /* if */
2422
2423 /* Multirate, multitasking scheduling */
2424 /* check for sample time hit associated with task 1 */
2425 if (ssIsSampleHit(S, 0, tid)) {
2426 XILoutputTID01(S, tid);
2427 } /* if */
2428
2429 /* Multirate, multitasking scheduling */
2430 /* check for sample time hit associated with task 2 */
2431 if (ssIsSampleHit(S, 1, tid)) {
2432 XILoutputTID02(S, tid);
2433 } /* if */
2434}
2435
2436#define MDL_UPDATE
2437#if defined(MDL_UPDATE)
2438
2439static void mdlUpdate(SimStruct *S, int_T tid)
2440{
2441}
2442
2443#endif
2444
2445static void mdlTerminate(SimStruct *S)
2446{
2447 int commErrorOccurred = 0;
2448 int isXILApplicationStarted = 0;
2449
2450 {
2451 if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) {
2452 return;
2453 } /* if */
2454
2455 if (ssGetPWork(S) != NULL) {
2456 int * pCommErrorOccurred = (int *) ssGetPWorkValue(S, 4);
2457 int * pIsXILApplicationStarted = (int *) ssGetPWorkValue(S, 5);
2458 if (pCommErrorOccurred != NULL) {
2459 commErrorOccurred = *pCommErrorOccurred;
2460 } /* if */
2461
2462 if (pIsXILApplicationStarted != NULL) {
2463 isXILApplicationStarted = *pIsXILApplicationStarted;
2464 } /* if */
2465 } /* if */
2466 }
2467
2468 if (isXILApplicationStarted) {
2469 if (!commErrorOccurred) {
2470 {
2471 uint8_T * mxMemUnitPtr;
2472 mwSize dataInSize = 0;
2473 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
2474 if (IOBufferPtr != NULL) {
2475 void * pXILService = (void *) ssGetPWorkValue(S, 9);
2476 if (pXILService != NULL) {
2477 if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 5, 0)!=
2478 XILHOSTAPPSVC_SUCCESS) {
2479 callStopHookAndFreeSFcnMemory(S);
2480 return;
2481 } /* if */
2482
2483 if (IOBufferPtr->data != NULL) {
2484 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
2485
2486 /* write command id */
2487 *mxMemUnitPtr = (uint8_T) XIL_TERMINATE_COMMAND;
2488 mxMemUnitPtr++;
2489
2490 {
2491 {
2492 uint8_T * simDataMemUnitPtr;
2493 uint32_T commandDataFcnid = 0;
2494 simDataMemUnitPtr = (uint8_T *) &commandDataFcnid;
2495
2496 {
2497 size_t num_elements = 1;
2498
2499 {
2500 copyIOData(mxMemUnitPtr, simDataMemUnitPtr, &mxMemUnitPtr,
2501 num_elements, sizeof(uint32_T));
2502 }
2503 }
2504 }
2505 }
2506 } /* if */
2507 } /* if */
2508 } /* if */
2509 }
2510
2511 {
2512 {
2513 uint8_T * mxMemUnitPtr;
2514 mwSize dataInSize = 0;
2515 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
2516
2517 /* provide the time information to the code instrumentation service */
2518 {
2519 void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10);
2520 time_T simTime = ssGetT(S);
2521 if (pCodeInstrService != NULL) {
2522 codeInstrHostAppSvcSetTime(pCodeInstrService, simTime);
2523 } /* if */
2524 }
2525
2526 /* dispatch command to the target */
2527 if (commandDispatch(S, IOBufferPtr, 5)!=XILHOSTAPPSVC_SUCCESS) {
2528 callStopHookAndFreeSFcnMemory(S);
2529 return;
2530 } /* if */
2531
2532 {
2533 XILCommandResponseType commandResponseType =
2534 XIL_COMMAND_NOT_COMPLETE;
2535 while (commandResponseType != XIL_STEP_COMPLETE) {
2536 /* receive command from the target */
2537 mwSize dataInSize = 0;
2538 if (commandResponse(S, &dataInSize, &commandResponseType) !=
2539 XILHOSTAPPSVC_SUCCESS) {
2540 callStopHookAndFreeSFcnMemory(S);
2541 return;
2542 } /* if */
2543
2544 if (dataInSize>0) {
2545 size_t dataInMemUnitSize = dataInSize;
2546 uint8_T responseId = 0;
2547 uint8_T * mxMemUnitPtrEnd;
2548 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
2549 mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1;
2550 while (mxMemUnitPtr <= mxMemUnitPtrEnd) {
2551 /* read response id */
2552 responseId = *mxMemUnitPtr;
2553 mxMemUnitPtr++;
2554 switch (responseId) {
2555 case RESPONSE_ERROR:
2556 case RESPONSE_PRINTF:
2557 case RESPONSE_FOPEN:
2558 case RESPONSE_FPRINTF:
2559 case RESPONSE_SIGNAL_RAISED:
2560 {
2561 if (processErrorAndTargetIOResponseCases(S, responseId,
2562 &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) {
2563 callStopHookAndFreeSFcnMemory(S);
2564 return;
2565 } /* if */
2566 break;
2567 }
2568
2569 default:
2570 {
2571 {
2572 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
2573 mxArray * rhs[ 2 ];
2574 rhs[0] = mxCreateString(
2575 "PIL:pilverification:UnknownResponseId");
2576 rhs[1] = mxCreateDoubleScalar(responseId);
2577 xilUtilsHandleError(pXILUtils, 2 , rhs );
2578 callStopHookAndFreeSFcnMemory(S);
2579 return;
2580 }
2581 break;
2582 }
2583 } /* switch */
2584 } /* while */
2585 } /* if */
2586 } /* while */
2587 }
2588 }
2589 }
2590
2591 {
2592 uint8_T * mxMemUnitPtr;
2593 mwSize dataInSize = 0;
2594 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
2595 if (IOBufferPtr != NULL) {
2596 void * pXILService = (void *) ssGetPWorkValue(S, 9);
2597 if (pXILService != NULL) {
2598 if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 1, 0)!=
2599 XILHOSTAPPSVC_SUCCESS) {
2600 callStopHookAndFreeSFcnMemory(S);
2601 return;
2602 } /* if */
2603
2604 if (IOBufferPtr->data != NULL) {
2605 mxMemUnitPtr = (uint8_T *) IOBufferPtr->data;
2606
2607 /* write command id */
2608 *mxMemUnitPtr = (uint8_T) XIL_SHUTDOWN_COMMAND;
2609 mxMemUnitPtr++;
2610 } /* if */
2611 } /* if */
2612 } /* if */
2613 }
2614
2615 {
2616 {
2617 uint8_T * mxMemUnitPtr;
2618 mwSize dataInSize = 0;
2619 XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1);
2620
2621 /* provide the time information to the code instrumentation service */
2622 {
2623 void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10);
2624 time_T simTime = ssGetT(S);
2625 if (pCodeInstrService != NULL) {
2626 codeInstrHostAppSvcSetTime(pCodeInstrService, simTime);
2627 } /* if */
2628 }
2629
2630 /* dispatch command to the target */
2631 if (commandDispatch(S, IOBufferPtr, 1)!=XILHOSTAPPSVC_SUCCESS) {
2632 callStopHookAndFreeSFcnMemory(S);
2633 return;
2634 } /* if */
2635 }
2636 }
2637 } /* if */
2638 } /* if */
2639
2640 callStopHookAndFreeSFcnMemory(S);
2641}
2642
2643#define MDL_CLEANUP_RUNTIME_RESOURCES /* Change to #undef to remove function */
2644#if defined(MDL_CLEANUP_RUNTIME_RESOURCES)
2645
2646static void mdlCleanupRuntimeResources(SimStruct *S)
2647{
2648 if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) {
2649 return;
2650 } /* if */
2651
2652 {
2653 void * pCodeInstrMultiRunData = NULL;
2654 pCodeInstrMultiRunData = (void *) ssGetPWorkValue(S, 11);
2655 xilSimulinkUtilsStaticFreeMultiRunInstrData(pCodeInstrMultiRunData);
2656 }
2657
2658 if (ssGetPWork(S) != NULL) {
2659 int * pIsXILApplicationStarted = (int *) ssGetPWorkValue(S, 5);
2660 int * pCommErrorOccurred = (int *) ssGetPWorkValue(S, 4);
2661 if (pIsXILApplicationStarted != NULL) {
2662 mxFree(pIsXILApplicationStarted);
2663 ssSetPWorkValue(S, 5, NULL);
2664 } /* if */
2665
2666 if (pCommErrorOccurred != NULL) {
2667 mxFree(pCommErrorOccurred);
2668 ssSetPWorkValue(S, 4, NULL);
2669 } /* if */
2670 } /* if */
2671
2672 if (ssGetPWork(S) != NULL) {
2673 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
2674 if (pXILUtils != NULL) {
2675 xilUtilsDestroy(pXILUtils);
2676 ssSetPWorkValue(S, 6, NULL);
2677 } /* if */
2678 } /* if */
2679}
2680
2681#endif /* MDL_CLEANUP_RUNTIME_RESOURCES */
2682
2683#define MDL_ENABLE
2684#if defined(MDL_ENABLE)
2685
2686static void mdlEnable(SimStruct *S)
2687{
2688 if (ssGetT(S) != ssGetTStart(S)) {
2689 {
2690 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
2691 mxArray * rhs[ 3 ];
2692 rhs[0] = mxCreateString("PIL:pil:EnableDisableCallbackError");
2693 rhs[1] = mxCreateString("enable");
2694 rhs[2] = mxCreateString("enable");
2695 xilUtilsHandleError(pXILUtils, 3 , rhs );
2696 return;
2697 }
2698 } /* if */
2699}
2700
2701#endif /* MDL_ENABLE */
2702
2703#define MDL_DISABLE
2704#if defined(MDL_DISABLE)
2705
2706static void mdlDisable(SimStruct *S)
2707{
2708 {
2709 void * pXILUtils = (void *) ssGetPWorkValue(S, 6);
2710 mxArray * rhs[ 3 ];
2711 rhs[0] = mxCreateString("PIL:pil:EnableDisableCallbackError");
2712 rhs[1] = mxCreateString("disable");
2713 rhs[2] = mxCreateString("disable");
2714 xilUtilsHandleError(pXILUtils, 3 , rhs );
2715 return;
2716 }
2717}
2718
2719#endif /* MDL_DISABLE */
2720
2721/* Required S-function trailer */
2722#ifdef MATLAB_MEX_FILE /* Is this file being compiled as a MEX-file? */
2723#include "simulink.c" /* MEX-file interface mechanism */
2724#include "fixedpoint.c"
2725#else
2726#error Assertion failed: file must be compiled as a MEX-file
2727#endif
2728
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_subsystems.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_subsystems.html deleted file mode 100644 index 513a01ec25907d20566d42b68333e8cc771d40f1..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_subsystems.html +++ /dev/null @@ -1,87 +0,0 @@ - - - -Non-virtual subsystems in FCC_Sys_New_harness - - - - -

-Non-virtual subsystems in FCC_Sys_New_harness -

-
- -
-
- -
-

-1. Code Mapping [hide] -

- - - - - - - - - - -
-

-The following table:

    -
  • -provides a mapping from the non-virtual subsystems in the model to functions or reusable functions in the generated code and -
  • -
  • -notes exceptions that caused some non-virtual subsystems to not reuse code even though they were assigned a function packaging setting ('Function packaging' entry on the Subsystem Block Dialog) of 'Auto' or 'Reusable function'. -
  • - -
- -

- -
- -No non-virtual subsystems generating functions in model - - -
-

-2. Code Reuse Exceptions [hide] -

- - - - - - - - - - -
-

-The following section provides details on each exception that caused a non-virtual subsystem with a function packaging setting of

    -
  • -'Auto' to become an inlined code segment, -
  • -
  • -'Auto' to become a non-reusable function without arguments, or -
  • -
  • -'Reusable function' to become a non-reusable function without arguments. -
  • - -
-Note:This section does not report graphically identical non-virtual subsystems marked as 'Auto' that were not reused due to differences in their functional properties (such as dimensions, datatypes, work vectors, parameters, etc.). You may identify reasons for non-reuse in such cases by inspecting the differences in the functional attributes of the subsystems in the model or in the inlined generated code. -

- -
-
No reuse exception in model -
- - - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_survey.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_survey.html deleted file mode 100644 index a6f4f85b81aebf574c67e199b8ef8b98b31eee5b..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_survey.html +++ /dev/null @@ -1,186 +0,0 @@ - - - -Code Generation Report for 'FCC_Sys_New_harness' - - - - -

-Code Generation Report for 'FCC_Sys_New_harness' -

-
- -
-
- -
-

-Model Information -

- - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - -
-Author - -bpotter -
-Last Modified By - -super -
-Model Version - -1.91 -
-Tasking Mode - -MultiTasking -
-
- -Configuration settings at time of code generation - - -

- -
-

-Code Information -

- - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-System Target File - -ert.tlc -
-Hardware Device Type - -Intel->x86-32 (Windows32) -
-Simulink Coder Version - -9.3 (R2020a) 18-Nov-2019 -
-Timestamp of Generated Source Code - -Thu Jul 16 18:51:26 2020 -
- - - -
-Type of Build - -Top Model -
-Objectives Specified - -Execution efficiency, RAM efficiency -
- -

- -
-

-Additional Information -

- - - - - - -
- - - - - - - -
-Code Generation Advisor - -Not run -
- -
- - - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_trace.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_trace.html deleted file mode 100644 index 9c8363e17338ec041e6a89e9094e3528892f3107..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_trace.html +++ /dev/null @@ -1,21 +0,0 @@ -Traceability Report for FCC_Sys_New_harness - - -

Eliminated / Virtual Blocks

Block NameComment
<Root>/Inputs

Masked SubSystem

<Root>/Size-Type

Virtual SubSystem

<Root>/Test Case Explanation

Masked SubSystem

<Root>/Test Unit (copied from FCC_Sys_New)

Virtual SubSystem

<S1>/Demux

Demux

<S1>/Act_Pos1

Outport

<S1>/Act_Pos2

Outport

<S1>/Act_Pos3

Outport

<S1>/Pilot_theta_cmd

Outport

<S1>/Pilot_phi_cmd

Outport

<S1>/Pilot_r_cmd

Outport

<S1>/AHRS1.theta

Outport

<S1>/AHRS1.phi

Outport

<S1>/AHRS1.psi

Outport

<S1>/AHRS1.q

Outport

<S1>/AHRS1.p

Outport

<S1>/AHRS1.r

Outport

<S1>/AHRS1.valid

Outport

<S1>/AHRS2.theta

Outport

<S1>/AHRS2.phi

Outport

<S1>/AHRS2.psi

Outport

<S1>/AHRS2.q

Outport

<S1>/AHRS2.p

Outport

<S1>/AHRS2.r

Outport

<S1>/AHRS2.valid

Outport

<S1>/AHRS3.theta

Outport

<S1>/AHRS3.phi

Outport

<S1>/AHRS3.psi

Outport

<S1>/AHRS3.q

Outport

<S1>/AHRS3.p

Outport

<S1>/AHRS3.r

Outport

<S1>/AHRS3.valid

Outport

<S2>/In1

Inport

<S2>/In2

Inport

<S2>/In3

Inport

<S2>/In4

Inport

<S2>/In5

Inport

<S2>/In6

Inport

<S2>/In7

Inport

<S2>/In8

Inport

<S2>/In9

Inport

<S2>/In10

Inport

<S2>/In11

Inport

<S2>/In12

Inport

<S2>/In13

Inport

<S2>/In14

Inport

<S2>/In15

Inport

<S2>/In16

Inport

<S2>/In17

Inport

<S2>/In18

Inport

<S2>/In19

Inport

<S2>/In20

Inport

<S2>/In21

Inport

<S2>/In22

Inport

<S2>/In23

Inport

<S2>/In24

Inport

<S2>/In25

Inport

<S2>/In26

Inport

<S2>/In27

Inport

<S2>/Bus7

Virtual SubSystem

<S2>/Bus8

Virtual SubSystem

<S2>/Bus9

Virtual SubSystem

<S2>/Cast10

Eliminate redundant data type conversion

<S2>/Cast11

Eliminate redundant data type conversion

<S2>/Cast12

Eliminate redundant data type conversion

<S2>/Cast14

Eliminate redundant data type conversion

<S2>/Cast15

Eliminate redundant data type conversion

<S2>/Cast16

Eliminate redundant data type conversion

<S2>/Cast17

Eliminate redundant data type conversion

<S2>/Cast18

Eliminate redundant data type conversion

<S2>/Cast19

Eliminate redundant data type conversion

<S2>/Cast21

Eliminate redundant data type conversion

<S2>/Cast22

Eliminate redundant data type conversion

<S2>/Cast23

Eliminate redundant data type conversion

<S2>/Cast24

Eliminate redundant data type conversion

<S2>/Cast25

Eliminate redundant data type conversion

<S2>/Cast26

Eliminate redundant data type conversion

<S2>/Cast7

Eliminate redundant data type conversion

<S2>/Cast8

Eliminate redundant data type conversion

<S2>/Cast9

Eliminate redundant data type conversion

<S2>/Sync1

Eliminated since input and output rates are identical

<S2>/Sync2

Eliminated since input and output rates are identical

<S2>/Sync3

Eliminated since input and output rates are identical

<S2>/Out1

Outport

<S2>/Out2

Outport

<S2>/Out3

Outport

<S2>/Out4

Outport

<S2>/Out5

Outport

<S2>/Out6

Outport

<S2>/Out7

Outport

<S2>/Out8

Outport

<S2>/Out9

Outport

<S3>/EmptySubsystem

Empty SubSystem

<S4>/Act_Pos1

Inport

<S4>/Act_Pos2

Inport

<S4>/Act_Pos3

Inport

<S4>/Pilot_theta_cmd

Inport

<S4>/Pilot_phi_cmd

Inport

<S4>/Pilot_r_cmd

Inport

<S4>/AHRS1

Inport

<S4>/AHRS2

Inport

<S4>/AHRS3

Inport

<S4>/Actuator1

Outport

<S4>/Actuator2

Outport

<S4>/Actuator3

Outport

<S5>/AHRS1(1).theta

Inport

<S5>/AHRS1(1).phi

Inport

<S5>/AHRS1(1).psi

Inport

<S5>/AHRS1(1).q

Inport

<S5>/AHRS1(1).p

Inport

<S5>/AHRS1(1).r

Inport

<S5>/AHRS1(1).valid

Inport

<S5>/Out

Outport

<S6>/AHRS2(1).theta

Inport

<S6>/AHRS2(1).phi

Inport

<S6>/AHRS2(1).psi

Inport

<S6>/AHRS2(1).q

Inport

<S6>/AHRS2(1).p

Inport

<S6>/AHRS2(1).r

Inport

<S6>/AHRS2(1).valid

Inport

<S6>/Out

Outport

<S7>/AHRS3(1).theta

Inport

<S7>/AHRS3(1).phi

Inport

<S7>/AHRS3(1).psi

Inport

<S7>/AHRS3(1).q

Inport

<S7>/AHRS3(1).p

Inport

<S7>/AHRS3(1).r

Inport

<S7>/AHRS3(1).valid

Inport

<S7>/Out

Outport

Traceable Simulink Blocks / Stateflow Objects / MATLAB Functions

Subsystem: FCC_Sys_New_harness/Size-Type

Object NameCode Location
<S2>/Cast1FCC_Sys_New_harness.c:144, 145, 146, 147, 148, 150, 153, 156, 157, 158, 160, 163, 166
FCC_Sys_New_harness.h:98
<S2>/Cast13FCC_Sys_New_harness.c:313, 315, 316
<S2>/Cast2FCC_Sys_New_harness.c:168, 169, 170, 171, 172, 174, 177, 180, 181, 182, 184, 187, 190
FCC_Sys_New_harness.h:99
<S2>/Cast20FCC_Sys_New_harness.c:344, 346, 347
<S2>/Cast27FCC_Sys_New_harness.c:366, 368, 369
<S2>/Cast3FCC_Sys_New_harness.c:192, 193, 194, 195, 196, 198, 201, 204, 205, 206, 208, 211, 214
FCC_Sys_New_harness.h:100
<S2>/Cast4FCC_Sys_New_harness.c:233, 234, 235, 236, 237, 239, 242, 245, 246, 247, 249, 252, 255
<S2>/Cast5FCC_Sys_New_harness.c:257, 258, 259, 260, 261, 263, 266, 269, 270, 271, 273, 276, 279
<S2>/Cast6FCC_Sys_New_harness.c:281, 282, 283, 284, 285, 287, 290, 293, 294, 295, 297, 300, 303
<S2>/Sync10FCC_Sys_New_harness.c:226, 232, 304, 414, 425
FCC_Sys_New_harness.h:70
<S2>/Sync11FCC_Sys_New_harness.c:306, 307, 415, 426
FCC_Sys_New_harness.h:71
<S2>/Sync12FCC_Sys_New_harness.c:309, 310, 416, 427
FCC_Sys_New_harness.h:72
<S2>/Sync13FCC_Sys_New_harness.c:312, 315, 417, 428
FCC_Sys_New_harness.h:104
<S2>/Sync14FCC_Sys_New_harness.c:227, 232, 326, 431, 439
FCC_Sys_New_harness.h:76
<S2>/Sync15FCC_Sys_New_harness.c:328, 329, 432, 440
FCC_Sys_New_harness.h:77
<S2>/Sync16FCC_Sys_New_harness.c:331, 332, 433, 441
FCC_Sys_New_harness.h:78
<S2>/Sync17FCC_Sys_New_harness.c:334, 335, 434, 442
FCC_Sys_New_harness.h:79
<S2>/Sync18FCC_Sys_New_harness.c:337, 338, 435, 443
FCC_Sys_New_harness.h:80
<S2>/Sync19FCC_Sys_New_harness.c:340, 341, 436, 444
FCC_Sys_New_harness.h:81
<S2>/Sync20FCC_Sys_New_harness.c:343, 346, 437, 445
FCC_Sys_New_harness.h:105
<S2>/Sync21FCC_Sys_New_harness.c:228, 232, 348, 448, 456
FCC_Sys_New_harness.h:82
<S2>/Sync22FCC_Sys_New_harness.c:350, 351, 449, 457
FCC_Sys_New_harness.h:83
<S2>/Sync23FCC_Sys_New_harness.c:353, 354, 450, 458
FCC_Sys_New_harness.h:84
<S2>/Sync24FCC_Sys_New_harness.c:356, 357, 451, 459
FCC_Sys_New_harness.h:85
<S2>/Sync25FCC_Sys_New_harness.c:359, 360, 452, 460
FCC_Sys_New_harness.h:86
<S2>/Sync26FCC_Sys_New_harness.c:362, 363, 453, 461
FCC_Sys_New_harness.h:87
<S2>/Sync27FCC_Sys_New_harness.c:365, 368, 454, 462
FCC_Sys_New_harness.h:106
<S2>/Sync4FCC_Sys_New_harness.c:225, 232, 247, 249, 252, 372, 404, 405
FCC_Sys_New_harness.h:101
<S2>/Sync5FCC_Sys_New_harness.c:229, 232, 271, 273, 276, 407, 408
FCC_Sys_New_harness.h:102
<S2>/Sync6FCC_Sys_New_harness.c:230, 232, 295, 297, 300, 410, 411
FCC_Sys_New_harness.h:103
<S2>/Sync7FCC_Sys_New_harness.c:318, 319, 418, 422
FCC_Sys_New_harness.h:73
<S2>/Sync8FCC_Sys_New_harness.c:321, 322, 419, 423
FCC_Sys_New_harness.h:74
<S2>/Sync9FCC_Sys_New_harness.c:324, 325, 420, 424
FCC_Sys_New_harness.h:75

Subsystem: FCC_Sys_New_harness/Test Case Explanation

No traceable objects in this Subsystem.

\ No newline at end of file diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_traceInfo.js b/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_traceInfo.js deleted file mode 100644 index ff13667ee09e9f24b9fb11fbbd6183d70ed19ad4..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/FCC_Sys_New_harness_traceInfo.js +++ /dev/null @@ -1,363 +0,0 @@ -function RTW_rtwnameSIDMap() { - this.rtwnameHashMap = new Array(); - this.sidHashMap = new Array(); - this.rtwnameHashMap[""] = {sid: "FCC_Sys_New_harness"}; - this.sidHashMap["FCC_Sys_New_harness"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "FCC_Sys_New_harness:75"}; - this.sidHashMap["FCC_Sys_New_harness:75"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "FCC_Sys_New_harness:105"}; - this.sidHashMap["FCC_Sys_New_harness:105"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "FCC_Sys_New_harness:229"}; - this.sidHashMap["FCC_Sys_New_harness:229"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "FCC_Sys_New_harness:74"}; - this.sidHashMap["FCC_Sys_New_harness:74"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "FCC_Sys_New_harness:151"}; - this.sidHashMap["FCC_Sys_New_harness:151"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "FCC_Sys_New_harness:183"}; - this.sidHashMap["FCC_Sys_New_harness:183"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "FCC_Sys_New_harness:215"}; - this.sidHashMap["FCC_Sys_New_harness:215"] = {rtwname: ""}; - this.rtwnameHashMap["/Inputs"] = {sid: "FCC_Sys_New_harness:75"}; - this.sidHashMap["FCC_Sys_New_harness:75"] = {rtwname: "/Inputs"}; - this.rtwnameHashMap["/Size-Type"] = {sid: "FCC_Sys_New_harness:105"}; - this.sidHashMap["FCC_Sys_New_harness:105"] = {rtwname: "/Size-Type"}; - this.rtwnameHashMap["/Test Case Explanation"] = {sid: "FCC_Sys_New_harness:229"}; - this.sidHashMap["FCC_Sys_New_harness:229"] = {rtwname: "/Test Case Explanation"}; - this.rtwnameHashMap["/Test Unit (copied from FCC_Sys_New)"] = {sid: "FCC_Sys_New_harness:74"}; - this.sidHashMap["FCC_Sys_New_harness:74"] = {rtwname: "/Test Unit (copied from FCC_Sys_New)"}; - this.rtwnameHashMap["/Actuator1"] = {sid: "FCC_Sys_New_harness:226"}; - this.sidHashMap["FCC_Sys_New_harness:226"] = {rtwname: "/Actuator1"}; - this.rtwnameHashMap["/Actuator2"] = {sid: "FCC_Sys_New_harness:227"}; - this.sidHashMap["FCC_Sys_New_harness:227"] = {rtwname: "/Actuator2"}; - this.rtwnameHashMap["/Actuator3"] = {sid: "FCC_Sys_New_harness:228"}; - this.sidHashMap["FCC_Sys_New_harness:228"] = {rtwname: "/Actuator3"}; - this.rtwnameHashMap["/Demux"] = {sid: "FCC_Sys_New_harness:77"}; - this.sidHashMap["FCC_Sys_New_harness:77"] = {rtwname: "/Demux"}; - this.rtwnameHashMap["/FromWs"] = {sid: "FCC_Sys_New_harness:76"}; - this.sidHashMap["FCC_Sys_New_harness:76"] = {rtwname: "/FromWs"}; - this.rtwnameHashMap["/Act_Pos1"] = {sid: "FCC_Sys_New_harness:78"}; - this.sidHashMap["FCC_Sys_New_harness:78"] = {rtwname: "/Act_Pos1"}; - this.rtwnameHashMap["/Act_Pos2"] = {sid: "FCC_Sys_New_harness:79"}; - this.sidHashMap["FCC_Sys_New_harness:79"] = {rtwname: "/Act_Pos2"}; - this.rtwnameHashMap["/Act_Pos3"] = {sid: "FCC_Sys_New_harness:80"}; - this.sidHashMap["FCC_Sys_New_harness:80"] = {rtwname: "/Act_Pos3"}; - this.rtwnameHashMap["/Pilot_theta_cmd"] = {sid: "FCC_Sys_New_harness:81"}; - this.sidHashMap["FCC_Sys_New_harness:81"] = {rtwname: "/Pilot_theta_cmd"}; - this.rtwnameHashMap["/Pilot_phi_cmd"] = {sid: "FCC_Sys_New_harness:82"}; - this.sidHashMap["FCC_Sys_New_harness:82"] = {rtwname: "/Pilot_phi_cmd"}; - this.rtwnameHashMap["/Pilot_r_cmd"] = {sid: "FCC_Sys_New_harness:83"}; - this.sidHashMap["FCC_Sys_New_harness:83"] = {rtwname: "/Pilot_r_cmd"}; - this.rtwnameHashMap["/AHRS1.theta"] = {sid: "FCC_Sys_New_harness:84"}; - this.sidHashMap["FCC_Sys_New_harness:84"] = {rtwname: "/AHRS1.theta"}; - this.rtwnameHashMap["/AHRS1.phi"] = {sid: "FCC_Sys_New_harness:85"}; - this.sidHashMap["FCC_Sys_New_harness:85"] = {rtwname: "/AHRS1.phi"}; - this.rtwnameHashMap["/AHRS1.psi"] = {sid: "FCC_Sys_New_harness:86"}; - this.sidHashMap["FCC_Sys_New_harness:86"] = {rtwname: "/AHRS1.psi"}; - this.rtwnameHashMap["/AHRS1.q"] = {sid: "FCC_Sys_New_harness:87"}; - this.sidHashMap["FCC_Sys_New_harness:87"] = {rtwname: "/AHRS1.q"}; - this.rtwnameHashMap["/AHRS1.p"] = {sid: "FCC_Sys_New_harness:88"}; - this.sidHashMap["FCC_Sys_New_harness:88"] = {rtwname: "/AHRS1.p"}; - this.rtwnameHashMap["/AHRS1.r"] = {sid: "FCC_Sys_New_harness:89"}; - this.sidHashMap["FCC_Sys_New_harness:89"] = {rtwname: "/AHRS1.r"}; - this.rtwnameHashMap["/AHRS1.valid"] = {sid: "FCC_Sys_New_harness:90"}; - this.sidHashMap["FCC_Sys_New_harness:90"] = {rtwname: "/AHRS1.valid"}; - this.rtwnameHashMap["/AHRS2.theta"] = {sid: "FCC_Sys_New_harness:91"}; - this.sidHashMap["FCC_Sys_New_harness:91"] = {rtwname: "/AHRS2.theta"}; - this.rtwnameHashMap["/AHRS2.phi"] = {sid: "FCC_Sys_New_harness:92"}; - this.sidHashMap["FCC_Sys_New_harness:92"] = {rtwname: "/AHRS2.phi"}; - this.rtwnameHashMap["/AHRS2.psi"] = {sid: "FCC_Sys_New_harness:93"}; - this.sidHashMap["FCC_Sys_New_harness:93"] = {rtwname: "/AHRS2.psi"}; - this.rtwnameHashMap["/AHRS2.q"] = {sid: "FCC_Sys_New_harness:94"}; - this.sidHashMap["FCC_Sys_New_harness:94"] = {rtwname: "/AHRS2.q"}; - this.rtwnameHashMap["/AHRS2.p"] = {sid: "FCC_Sys_New_harness:95"}; - this.sidHashMap["FCC_Sys_New_harness:95"] = {rtwname: "/AHRS2.p"}; - this.rtwnameHashMap["/AHRS2.r"] = {sid: "FCC_Sys_New_harness:96"}; - this.sidHashMap["FCC_Sys_New_harness:96"] = {rtwname: "/AHRS2.r"}; - this.rtwnameHashMap["/AHRS2.valid"] = {sid: "FCC_Sys_New_harness:97"}; - this.sidHashMap["FCC_Sys_New_harness:97"] = {rtwname: "/AHRS2.valid"}; - this.rtwnameHashMap["/AHRS3.theta"] = {sid: "FCC_Sys_New_harness:98"}; - this.sidHashMap["FCC_Sys_New_harness:98"] = {rtwname: "/AHRS3.theta"}; - this.rtwnameHashMap["/AHRS3.phi"] = {sid: "FCC_Sys_New_harness:99"}; - this.sidHashMap["FCC_Sys_New_harness:99"] = {rtwname: "/AHRS3.phi"}; - this.rtwnameHashMap["/AHRS3.psi"] = {sid: "FCC_Sys_New_harness:100"}; - this.sidHashMap["FCC_Sys_New_harness:100"] = {rtwname: "/AHRS3.psi"}; - this.rtwnameHashMap["/AHRS3.q"] = {sid: "FCC_Sys_New_harness:101"}; - this.sidHashMap["FCC_Sys_New_harness:101"] = {rtwname: "/AHRS3.q"}; - this.rtwnameHashMap["/AHRS3.p"] = {sid: "FCC_Sys_New_harness:102"}; - this.sidHashMap["FCC_Sys_New_harness:102"] = {rtwname: "/AHRS3.p"}; - this.rtwnameHashMap["/AHRS3.r"] = {sid: "FCC_Sys_New_harness:103"}; - this.sidHashMap["FCC_Sys_New_harness:103"] = {rtwname: "/AHRS3.r"}; - this.rtwnameHashMap["/AHRS3.valid"] = {sid: "FCC_Sys_New_harness:104"}; - this.sidHashMap["FCC_Sys_New_harness:104"] = {rtwname: "/AHRS3.valid"}; - this.rtwnameHashMap["/In1"] = {sid: "FCC_Sys_New_harness:106"}; - this.sidHashMap["FCC_Sys_New_harness:106"] = {rtwname: "/In1"}; - this.rtwnameHashMap["/In2"] = {sid: "FCC_Sys_New_harness:110"}; - this.sidHashMap["FCC_Sys_New_harness:110"] = {rtwname: "/In2"}; - this.rtwnameHashMap["/In3"] = {sid: "FCC_Sys_New_harness:114"}; - this.sidHashMap["FCC_Sys_New_harness:114"] = {rtwname: "/In3"}; - this.rtwnameHashMap["/In4"] = {sid: "FCC_Sys_New_harness:118"}; - this.sidHashMap["FCC_Sys_New_harness:118"] = {rtwname: "/In4"}; - this.rtwnameHashMap["/In5"] = {sid: "FCC_Sys_New_harness:122"}; - this.sidHashMap["FCC_Sys_New_harness:122"] = {rtwname: "/In5"}; - this.rtwnameHashMap["/In6"] = {sid: "FCC_Sys_New_harness:126"}; - this.sidHashMap["FCC_Sys_New_harness:126"] = {rtwname: "/In6"}; - this.rtwnameHashMap["/In7"] = {sid: "FCC_Sys_New_harness:130"}; - this.sidHashMap["FCC_Sys_New_harness:130"] = {rtwname: "/In7"}; - this.rtwnameHashMap["/In8"] = {sid: "FCC_Sys_New_harness:133"}; - this.sidHashMap["FCC_Sys_New_harness:133"] = {rtwname: "/In8"}; - this.rtwnameHashMap["/In9"] = {sid: "FCC_Sys_New_harness:136"}; - this.sidHashMap["FCC_Sys_New_harness:136"] = {rtwname: "/In9"}; - this.rtwnameHashMap["/In10"] = {sid: "FCC_Sys_New_harness:139"}; - this.sidHashMap["FCC_Sys_New_harness:139"] = {rtwname: "/In10"}; - this.rtwnameHashMap["/In11"] = {sid: "FCC_Sys_New_harness:142"}; - this.sidHashMap["FCC_Sys_New_harness:142"] = {rtwname: "/In11"}; - this.rtwnameHashMap["/In12"] = {sid: "FCC_Sys_New_harness:145"}; - this.sidHashMap["FCC_Sys_New_harness:145"] = {rtwname: "/In12"}; - this.rtwnameHashMap["/In13"] = {sid: "FCC_Sys_New_harness:148"}; - this.sidHashMap["FCC_Sys_New_harness:148"] = {rtwname: "/In13"}; - this.rtwnameHashMap["/In14"] = {sid: "FCC_Sys_New_harness:162"}; - this.sidHashMap["FCC_Sys_New_harness:162"] = {rtwname: "/In14"}; - this.rtwnameHashMap["/In15"] = {sid: "FCC_Sys_New_harness:165"}; - this.sidHashMap["FCC_Sys_New_harness:165"] = {rtwname: "/In15"}; - this.rtwnameHashMap["/In16"] = {sid: "FCC_Sys_New_harness:168"}; - this.sidHashMap["FCC_Sys_New_harness:168"] = {rtwname: "/In16"}; - this.rtwnameHashMap["/In17"] = {sid: "FCC_Sys_New_harness:171"}; - this.sidHashMap["FCC_Sys_New_harness:171"] = {rtwname: "/In17"}; - this.rtwnameHashMap["/In18"] = {sid: "FCC_Sys_New_harness:174"}; - this.sidHashMap["FCC_Sys_New_harness:174"] = {rtwname: "/In18"}; - this.rtwnameHashMap["/In19"] = {sid: "FCC_Sys_New_harness:177"}; - this.sidHashMap["FCC_Sys_New_harness:177"] = {rtwname: "/In19"}; - this.rtwnameHashMap["/In20"] = {sid: "FCC_Sys_New_harness:180"}; - this.sidHashMap["FCC_Sys_New_harness:180"] = {rtwname: "/In20"}; - this.rtwnameHashMap["/In21"] = {sid: "FCC_Sys_New_harness:194"}; - this.sidHashMap["FCC_Sys_New_harness:194"] = {rtwname: "/In21"}; - this.rtwnameHashMap["/In22"] = {sid: "FCC_Sys_New_harness:197"}; - this.sidHashMap["FCC_Sys_New_harness:197"] = {rtwname: "/In22"}; - this.rtwnameHashMap["/In23"] = {sid: "FCC_Sys_New_harness:200"}; - this.sidHashMap["FCC_Sys_New_harness:200"] = {rtwname: "/In23"}; - this.rtwnameHashMap["/In24"] = {sid: "FCC_Sys_New_harness:203"}; - this.sidHashMap["FCC_Sys_New_harness:203"] = {rtwname: "/In24"}; - this.rtwnameHashMap["/In25"] = {sid: "FCC_Sys_New_harness:206"}; - this.sidHashMap["FCC_Sys_New_harness:206"] = {rtwname: "/In25"}; - this.rtwnameHashMap["/In26"] = {sid: "FCC_Sys_New_harness:209"}; - this.sidHashMap["FCC_Sys_New_harness:209"] = {rtwname: "/In26"}; - this.rtwnameHashMap["/In27"] = {sid: "FCC_Sys_New_harness:212"}; - this.sidHashMap["FCC_Sys_New_harness:212"] = {rtwname: "/In27"}; - this.rtwnameHashMap["/Bus7"] = {sid: "FCC_Sys_New_harness:151"}; - this.sidHashMap["FCC_Sys_New_harness:151"] = {rtwname: "/Bus7"}; - this.rtwnameHashMap["/Bus8"] = {sid: "FCC_Sys_New_harness:183"}; - this.sidHashMap["FCC_Sys_New_harness:183"] = {rtwname: "/Bus8"}; - this.rtwnameHashMap["/Bus9"] = {sid: "FCC_Sys_New_harness:215"}; - this.sidHashMap["FCC_Sys_New_harness:215"] = {rtwname: "/Bus9"}; - this.rtwnameHashMap["/Cast1"] = {sid: "FCC_Sys_New_harness:107"}; - this.sidHashMap["FCC_Sys_New_harness:107"] = {rtwname: "/Cast1"}; - this.rtwnameHashMap["/Cast10"] = {sid: "FCC_Sys_New_harness:140"}; - this.sidHashMap["FCC_Sys_New_harness:140"] = {rtwname: "/Cast10"}; - this.rtwnameHashMap["/Cast11"] = {sid: "FCC_Sys_New_harness:143"}; - this.sidHashMap["FCC_Sys_New_harness:143"] = {rtwname: "/Cast11"}; - this.rtwnameHashMap["/Cast12"] = {sid: "FCC_Sys_New_harness:146"}; - this.sidHashMap["FCC_Sys_New_harness:146"] = {rtwname: "/Cast12"}; - this.rtwnameHashMap["/Cast13"] = {sid: "FCC_Sys_New_harness:149"}; - this.sidHashMap["FCC_Sys_New_harness:149"] = {rtwname: "/Cast13"}; - this.rtwnameHashMap["/Cast14"] = {sid: "FCC_Sys_New_harness:163"}; - this.sidHashMap["FCC_Sys_New_harness:163"] = {rtwname: "/Cast14"}; - this.rtwnameHashMap["/Cast15"] = {sid: "FCC_Sys_New_harness:166"}; - this.sidHashMap["FCC_Sys_New_harness:166"] = {rtwname: "/Cast15"}; - this.rtwnameHashMap["/Cast16"] = {sid: "FCC_Sys_New_harness:169"}; - this.sidHashMap["FCC_Sys_New_harness:169"] = {rtwname: "/Cast16"}; - this.rtwnameHashMap["/Cast17"] = {sid: "FCC_Sys_New_harness:172"}; - this.sidHashMap["FCC_Sys_New_harness:172"] = {rtwname: "/Cast17"}; - this.rtwnameHashMap["/Cast18"] = {sid: "FCC_Sys_New_harness:175"}; - this.sidHashMap["FCC_Sys_New_harness:175"] = {rtwname: "/Cast18"}; - this.rtwnameHashMap["/Cast19"] = {sid: "FCC_Sys_New_harness:178"}; - this.sidHashMap["FCC_Sys_New_harness:178"] = {rtwname: "/Cast19"}; - this.rtwnameHashMap["/Cast2"] = {sid: "FCC_Sys_New_harness:111"}; - this.sidHashMap["FCC_Sys_New_harness:111"] = {rtwname: "/Cast2"}; - this.rtwnameHashMap["/Cast20"] = {sid: "FCC_Sys_New_harness:181"}; - this.sidHashMap["FCC_Sys_New_harness:181"] = {rtwname: "/Cast20"}; - this.rtwnameHashMap["/Cast21"] = {sid: "FCC_Sys_New_harness:195"}; - this.sidHashMap["FCC_Sys_New_harness:195"] = {rtwname: "/Cast21"}; - this.rtwnameHashMap["/Cast22"] = {sid: "FCC_Sys_New_harness:198"}; - this.sidHashMap["FCC_Sys_New_harness:198"] = {rtwname: "/Cast22"}; - this.rtwnameHashMap["/Cast23"] = {sid: "FCC_Sys_New_harness:201"}; - this.sidHashMap["FCC_Sys_New_harness:201"] = {rtwname: "/Cast23"}; - this.rtwnameHashMap["/Cast24"] = {sid: "FCC_Sys_New_harness:204"}; - this.sidHashMap["FCC_Sys_New_harness:204"] = {rtwname: "/Cast24"}; - this.rtwnameHashMap["/Cast25"] = {sid: "FCC_Sys_New_harness:207"}; - this.sidHashMap["FCC_Sys_New_harness:207"] = {rtwname: "/Cast25"}; - this.rtwnameHashMap["/Cast26"] = {sid: "FCC_Sys_New_harness:210"}; - this.sidHashMap["FCC_Sys_New_harness:210"] = {rtwname: "/Cast26"}; - this.rtwnameHashMap["/Cast27"] = {sid: "FCC_Sys_New_harness:213"}; - this.sidHashMap["FCC_Sys_New_harness:213"] = {rtwname: "/Cast27"}; - this.rtwnameHashMap["/Cast3"] = {sid: "FCC_Sys_New_harness:115"}; - this.sidHashMap["FCC_Sys_New_harness:115"] = {rtwname: "/Cast3"}; - this.rtwnameHashMap["/Cast4"] = {sid: "FCC_Sys_New_harness:119"}; - this.sidHashMap["FCC_Sys_New_harness:119"] = {rtwname: "/Cast4"}; - this.rtwnameHashMap["/Cast5"] = {sid: "FCC_Sys_New_harness:123"}; - this.sidHashMap["FCC_Sys_New_harness:123"] = {rtwname: "/Cast5"}; - this.rtwnameHashMap["/Cast6"] = {sid: "FCC_Sys_New_harness:127"}; - this.sidHashMap["FCC_Sys_New_harness:127"] = {rtwname: "/Cast6"}; - this.rtwnameHashMap["/Cast7"] = {sid: "FCC_Sys_New_harness:131"}; - this.sidHashMap["FCC_Sys_New_harness:131"] = {rtwname: "/Cast7"}; - this.rtwnameHashMap["/Cast8"] = {sid: "FCC_Sys_New_harness:134"}; - this.sidHashMap["FCC_Sys_New_harness:134"] = {rtwname: "/Cast8"}; - this.rtwnameHashMap["/Cast9"] = {sid: "FCC_Sys_New_harness:137"}; - this.sidHashMap["FCC_Sys_New_harness:137"] = {rtwname: "/Cast9"}; - this.rtwnameHashMap["/Sync1"] = {sid: "FCC_Sys_New_harness:108"}; - this.sidHashMap["FCC_Sys_New_harness:108"] = {rtwname: "/Sync1"}; - this.rtwnameHashMap["/Sync10"] = {sid: "FCC_Sys_New_harness:141"}; - this.sidHashMap["FCC_Sys_New_harness:141"] = {rtwname: "/Sync10"}; - this.rtwnameHashMap["/Sync11"] = {sid: "FCC_Sys_New_harness:144"}; - this.sidHashMap["FCC_Sys_New_harness:144"] = {rtwname: "/Sync11"}; - this.rtwnameHashMap["/Sync12"] = {sid: "FCC_Sys_New_harness:147"}; - this.sidHashMap["FCC_Sys_New_harness:147"] = {rtwname: "/Sync12"}; - this.rtwnameHashMap["/Sync13"] = {sid: "FCC_Sys_New_harness:150"}; - this.sidHashMap["FCC_Sys_New_harness:150"] = {rtwname: "/Sync13"}; - this.rtwnameHashMap["/Sync14"] = {sid: "FCC_Sys_New_harness:164"}; - this.sidHashMap["FCC_Sys_New_harness:164"] = {rtwname: "/Sync14"}; - this.rtwnameHashMap["/Sync15"] = {sid: "FCC_Sys_New_harness:167"}; - this.sidHashMap["FCC_Sys_New_harness:167"] = {rtwname: "/Sync15"}; - this.rtwnameHashMap["/Sync16"] = {sid: "FCC_Sys_New_harness:170"}; - this.sidHashMap["FCC_Sys_New_harness:170"] = {rtwname: "/Sync16"}; - this.rtwnameHashMap["/Sync17"] = {sid: "FCC_Sys_New_harness:173"}; - this.sidHashMap["FCC_Sys_New_harness:173"] = {rtwname: "/Sync17"}; - this.rtwnameHashMap["/Sync18"] = {sid: "FCC_Sys_New_harness:176"}; - this.sidHashMap["FCC_Sys_New_harness:176"] = {rtwname: "/Sync18"}; - this.rtwnameHashMap["/Sync19"] = {sid: "FCC_Sys_New_harness:179"}; - this.sidHashMap["FCC_Sys_New_harness:179"] = {rtwname: "/Sync19"}; - this.rtwnameHashMap["/Sync2"] = {sid: "FCC_Sys_New_harness:112"}; - this.sidHashMap["FCC_Sys_New_harness:112"] = {rtwname: "/Sync2"}; - this.rtwnameHashMap["/Sync20"] = {sid: "FCC_Sys_New_harness:182"}; - this.sidHashMap["FCC_Sys_New_harness:182"] = {rtwname: "/Sync20"}; - this.rtwnameHashMap["/Sync21"] = {sid: "FCC_Sys_New_harness:196"}; - this.sidHashMap["FCC_Sys_New_harness:196"] = {rtwname: "/Sync21"}; - this.rtwnameHashMap["/Sync22"] = {sid: "FCC_Sys_New_harness:199"}; - this.sidHashMap["FCC_Sys_New_harness:199"] = {rtwname: "/Sync22"}; - this.rtwnameHashMap["/Sync23"] = {sid: "FCC_Sys_New_harness:202"}; - this.sidHashMap["FCC_Sys_New_harness:202"] = {rtwname: "/Sync23"}; - this.rtwnameHashMap["/Sync24"] = {sid: "FCC_Sys_New_harness:205"}; - this.sidHashMap["FCC_Sys_New_harness:205"] = {rtwname: "/Sync24"}; - this.rtwnameHashMap["/Sync25"] = {sid: "FCC_Sys_New_harness:208"}; - this.sidHashMap["FCC_Sys_New_harness:208"] = {rtwname: "/Sync25"}; - this.rtwnameHashMap["/Sync26"] = {sid: "FCC_Sys_New_harness:211"}; - this.sidHashMap["FCC_Sys_New_harness:211"] = {rtwname: "/Sync26"}; - this.rtwnameHashMap["/Sync27"] = {sid: "FCC_Sys_New_harness:214"}; - this.sidHashMap["FCC_Sys_New_harness:214"] = {rtwname: "/Sync27"}; - this.rtwnameHashMap["/Sync3"] = {sid: "FCC_Sys_New_harness:116"}; - this.sidHashMap["FCC_Sys_New_harness:116"] = {rtwname: "/Sync3"}; - this.rtwnameHashMap["/Sync4"] = {sid: "FCC_Sys_New_harness:120"}; - this.sidHashMap["FCC_Sys_New_harness:120"] = {rtwname: "/Sync4"}; - this.rtwnameHashMap["/Sync5"] = {sid: "FCC_Sys_New_harness:124"}; - this.sidHashMap["FCC_Sys_New_harness:124"] = {rtwname: "/Sync5"}; - this.rtwnameHashMap["/Sync6"] = {sid: "FCC_Sys_New_harness:128"}; - this.sidHashMap["FCC_Sys_New_harness:128"] = {rtwname: "/Sync6"}; - this.rtwnameHashMap["/Sync7"] = {sid: "FCC_Sys_New_harness:132"}; - this.sidHashMap["FCC_Sys_New_harness:132"] = {rtwname: "/Sync7"}; - this.rtwnameHashMap["/Sync8"] = {sid: "FCC_Sys_New_harness:135"}; - this.sidHashMap["FCC_Sys_New_harness:135"] = {rtwname: "/Sync8"}; - this.rtwnameHashMap["/Sync9"] = {sid: "FCC_Sys_New_harness:138"}; - this.sidHashMap["FCC_Sys_New_harness:138"] = {rtwname: "/Sync9"}; - this.rtwnameHashMap["/Out1"] = {sid: "FCC_Sys_New_harness:109"}; - this.sidHashMap["FCC_Sys_New_harness:109"] = {rtwname: "/Out1"}; - this.rtwnameHashMap["/Out2"] = {sid: "FCC_Sys_New_harness:113"}; - this.sidHashMap["FCC_Sys_New_harness:113"] = {rtwname: "/Out2"}; - this.rtwnameHashMap["/Out3"] = {sid: "FCC_Sys_New_harness:117"}; - this.sidHashMap["FCC_Sys_New_harness:117"] = {rtwname: "/Out3"}; - this.rtwnameHashMap["/Out4"] = {sid: "FCC_Sys_New_harness:121"}; - this.sidHashMap["FCC_Sys_New_harness:121"] = {rtwname: "/Out4"}; - this.rtwnameHashMap["/Out5"] = {sid: "FCC_Sys_New_harness:125"}; - this.sidHashMap["FCC_Sys_New_harness:125"] = {rtwname: "/Out5"}; - this.rtwnameHashMap["/Out6"] = {sid: "FCC_Sys_New_harness:129"}; - this.sidHashMap["FCC_Sys_New_harness:129"] = {rtwname: "/Out6"}; - this.rtwnameHashMap["/Out7"] = {sid: "FCC_Sys_New_harness:161"}; - this.sidHashMap["FCC_Sys_New_harness:161"] = {rtwname: "/Out7"}; - this.rtwnameHashMap["/Out8"] = {sid: "FCC_Sys_New_harness:193"}; - this.sidHashMap["FCC_Sys_New_harness:193"] = {rtwname: "/Out8"}; - this.rtwnameHashMap["/Out9"] = {sid: "FCC_Sys_New_harness:225"}; - this.sidHashMap["FCC_Sys_New_harness:225"] = {rtwname: "/Out9"}; - this.rtwnameHashMap["/EmptySubsystem"] = {sid: "FCC_Sys_New_harness:229:134"}; - this.sidHashMap["FCC_Sys_New_harness:229:134"] = {rtwname: "/EmptySubsystem"}; - this.rtwnameHashMap["/Act_Pos1"] = {sid: "FCC_Sys_New_harness:62"}; - this.sidHashMap["FCC_Sys_New_harness:62"] = {rtwname: "/Act_Pos1"}; - this.rtwnameHashMap["/Act_Pos2"] = {sid: "FCC_Sys_New_harness:63"}; - this.sidHashMap["FCC_Sys_New_harness:63"] = {rtwname: "/Act_Pos2"}; - this.rtwnameHashMap["/Act_Pos3"] = {sid: "FCC_Sys_New_harness:64"}; - this.sidHashMap["FCC_Sys_New_harness:64"] = {rtwname: "/Act_Pos3"}; - this.rtwnameHashMap["/Pilot_theta_cmd"] = {sid: "FCC_Sys_New_harness:65"}; - this.sidHashMap["FCC_Sys_New_harness:65"] = {rtwname: "/Pilot_theta_cmd"}; - this.rtwnameHashMap["/Pilot_phi_cmd"] = {sid: "FCC_Sys_New_harness:66"}; - this.sidHashMap["FCC_Sys_New_harness:66"] = {rtwname: "/Pilot_phi_cmd"}; - this.rtwnameHashMap["/Pilot_r_cmd"] = {sid: "FCC_Sys_New_harness:67"}; - this.sidHashMap["FCC_Sys_New_harness:67"] = {rtwname: "/Pilot_r_cmd"}; - this.rtwnameHashMap["/AHRS1"] = {sid: "FCC_Sys_New_harness:68"}; - this.sidHashMap["FCC_Sys_New_harness:68"] = {rtwname: "/AHRS1"}; - this.rtwnameHashMap["/AHRS2"] = {sid: "FCC_Sys_New_harness:69"}; - this.sidHashMap["FCC_Sys_New_harness:69"] = {rtwname: "/AHRS2"}; - this.rtwnameHashMap["/AHRS3"] = {sid: "FCC_Sys_New_harness:70"}; - this.sidHashMap["FCC_Sys_New_harness:70"] = {rtwname: "/AHRS3"}; - this.rtwnameHashMap["/FCC_New"] = {sid: "FCC_Sys_New_harness:61"}; - this.sidHashMap["FCC_Sys_New_harness:61"] = {rtwname: "/FCC_New"}; - this.rtwnameHashMap["/Actuator1"] = {sid: "FCC_Sys_New_harness:71"}; - this.sidHashMap["FCC_Sys_New_harness:71"] = {rtwname: "/Actuator1"}; - this.rtwnameHashMap["/Actuator2"] = {sid: "FCC_Sys_New_harness:72"}; - this.sidHashMap["FCC_Sys_New_harness:72"] = {rtwname: "/Actuator2"}; - this.rtwnameHashMap["/Actuator3"] = {sid: "FCC_Sys_New_harness:73"}; - this.sidHashMap["FCC_Sys_New_harness:73"] = {rtwname: "/Actuator3"}; - this.rtwnameHashMap["/AHRS1(1).theta"] = {sid: "FCC_Sys_New_harness:152"}; - this.sidHashMap["FCC_Sys_New_harness:152"] = {rtwname: "/AHRS1(1).theta"}; - this.rtwnameHashMap["/AHRS1(1).phi"] = {sid: "FCC_Sys_New_harness:153"}; - this.sidHashMap["FCC_Sys_New_harness:153"] = {rtwname: "/AHRS1(1).phi"}; - this.rtwnameHashMap["/AHRS1(1).psi"] = {sid: "FCC_Sys_New_harness:154"}; - this.sidHashMap["FCC_Sys_New_harness:154"] = {rtwname: "/AHRS1(1).psi"}; - this.rtwnameHashMap["/AHRS1(1).q"] = {sid: "FCC_Sys_New_harness:155"}; - this.sidHashMap["FCC_Sys_New_harness:155"] = {rtwname: "/AHRS1(1).q"}; - this.rtwnameHashMap["/AHRS1(1).p"] = {sid: "FCC_Sys_New_harness:156"}; - this.sidHashMap["FCC_Sys_New_harness:156"] = {rtwname: "/AHRS1(1).p"}; - this.rtwnameHashMap["/AHRS1(1).r"] = {sid: "FCC_Sys_New_harness:157"}; - this.sidHashMap["FCC_Sys_New_harness:157"] = {rtwname: "/AHRS1(1).r"}; - this.rtwnameHashMap["/AHRS1(1).valid"] = {sid: "FCC_Sys_New_harness:158"}; - this.sidHashMap["FCC_Sys_New_harness:158"] = {rtwname: "/AHRS1(1).valid"}; - this.rtwnameHashMap["/AHRS1(1)"] = {sid: "FCC_Sys_New_harness:159"}; - this.sidHashMap["FCC_Sys_New_harness:159"] = {rtwname: "/AHRS1(1)"}; - this.rtwnameHashMap["/Out"] = {sid: "FCC_Sys_New_harness:160"}; - this.sidHashMap["FCC_Sys_New_harness:160"] = {rtwname: "/Out"}; - this.rtwnameHashMap["/AHRS2(1).theta"] = {sid: "FCC_Sys_New_harness:184"}; - this.sidHashMap["FCC_Sys_New_harness:184"] = {rtwname: "/AHRS2(1).theta"}; - this.rtwnameHashMap["/AHRS2(1).phi"] = {sid: "FCC_Sys_New_harness:185"}; - this.sidHashMap["FCC_Sys_New_harness:185"] = {rtwname: "/AHRS2(1).phi"}; - this.rtwnameHashMap["/AHRS2(1).psi"] = {sid: "FCC_Sys_New_harness:186"}; - this.sidHashMap["FCC_Sys_New_harness:186"] = {rtwname: "/AHRS2(1).psi"}; - this.rtwnameHashMap["/AHRS2(1).q"] = {sid: "FCC_Sys_New_harness:187"}; - this.sidHashMap["FCC_Sys_New_harness:187"] = {rtwname: "/AHRS2(1).q"}; - this.rtwnameHashMap["/AHRS2(1).p"] = {sid: "FCC_Sys_New_harness:188"}; - this.sidHashMap["FCC_Sys_New_harness:188"] = {rtwname: "/AHRS2(1).p"}; - this.rtwnameHashMap["/AHRS2(1).r"] = {sid: "FCC_Sys_New_harness:189"}; - this.sidHashMap["FCC_Sys_New_harness:189"] = {rtwname: "/AHRS2(1).r"}; - this.rtwnameHashMap["/AHRS2(1).valid"] = {sid: "FCC_Sys_New_harness:190"}; - this.sidHashMap["FCC_Sys_New_harness:190"] = {rtwname: "/AHRS2(1).valid"}; - this.rtwnameHashMap["/AHRS2(1)"] = {sid: "FCC_Sys_New_harness:191"}; - this.sidHashMap["FCC_Sys_New_harness:191"] = {rtwname: "/AHRS2(1)"}; - this.rtwnameHashMap["/Out"] = {sid: "FCC_Sys_New_harness:192"}; - this.sidHashMap["FCC_Sys_New_harness:192"] = {rtwname: "/Out"}; - this.rtwnameHashMap["/AHRS3(1).theta"] = {sid: "FCC_Sys_New_harness:216"}; - this.sidHashMap["FCC_Sys_New_harness:216"] = {rtwname: "/AHRS3(1).theta"}; - this.rtwnameHashMap["/AHRS3(1).phi"] = {sid: "FCC_Sys_New_harness:217"}; - this.sidHashMap["FCC_Sys_New_harness:217"] = {rtwname: "/AHRS3(1).phi"}; - this.rtwnameHashMap["/AHRS3(1).psi"] = {sid: "FCC_Sys_New_harness:218"}; - this.sidHashMap["FCC_Sys_New_harness:218"] = {rtwname: "/AHRS3(1).psi"}; - this.rtwnameHashMap["/AHRS3(1).q"] = {sid: "FCC_Sys_New_harness:219"}; - this.sidHashMap["FCC_Sys_New_harness:219"] = {rtwname: "/AHRS3(1).q"}; - this.rtwnameHashMap["/AHRS3(1).p"] = {sid: "FCC_Sys_New_harness:220"}; - this.sidHashMap["FCC_Sys_New_harness:220"] = {rtwname: "/AHRS3(1).p"}; - this.rtwnameHashMap["/AHRS3(1).r"] = {sid: "FCC_Sys_New_harness:221"}; - this.sidHashMap["FCC_Sys_New_harness:221"] = {rtwname: "/AHRS3(1).r"}; - this.rtwnameHashMap["/AHRS3(1).valid"] = {sid: "FCC_Sys_New_harness:222"}; - this.sidHashMap["FCC_Sys_New_harness:222"] = {rtwname: "/AHRS3(1).valid"}; - this.rtwnameHashMap["/AHRS3(1)"] = {sid: "FCC_Sys_New_harness:223"}; - this.sidHashMap["FCC_Sys_New_harness:223"] = {rtwname: "/AHRS3(1)"}; - this.rtwnameHashMap["/Out"] = {sid: "FCC_Sys_New_harness:224"}; - this.sidHashMap["FCC_Sys_New_harness:224"] = {rtwname: "/Out"}; - this.getSID = function(rtwname) { return this.rtwnameHashMap[rtwname];} - this.getRtwname = function(sid) { return this.sidHashMap[sid];} -} -RTW_rtwnameSIDMap.instance = new RTW_rtwnameSIDMap(); diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/XILTgtAppSvc_CInterface_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/XILTgtAppSvc_CInterface_h.html deleted file mode 100644 index 28bc98ff83c15729c7d490c33a3afec33f71a631..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/XILTgtAppSvc_CInterface_h.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2013-2015 The MathWorks, Inc. */
2
3#ifndef XILTgtAppSvc_CInterface_h
4#define XILTgtAppSvc_CInterface_h
5
6#include "XILTgtAppSvc.h"
7
8XILTGTAPPSVC_API_EXTERN_C uint8_T xilTgtAppSvcCreate(void);
9
10XILTGTAPPSVC_API_EXTERN_C void xilTgtAppSvcDestroy(void);
11
12XILTGTAPPSVC_API_EXTERN_C uint8_T* xilTgtAppSvcGetReceivedData(uint16_T* size);
13
14XILTGTAPPSVC_API_EXTERN_C void xilTgtAppSvcFreeLastReceivedData(void);
15
16XILTGTAPPSVC_API_EXTERN_C uint8_T xilTgtAppSvcAllocBuffer(void** ppBuf,
17 const uint16_T size);
18
19XILTGTAPPSVC_API_EXTERN_C IOUnit_T* xilTgtAppSvcGetBufferDataPtr(void* pBufVoid);
20
21XILTGTAPPSVC_API_EXTERN_C uint8_T xilTgtAppSvcSend(void* pBufVoid,
22 const uint16_T payloadSize);
23
24XILTGTAPPSVC_API_EXTERN_C uint16_T xilTgtAppSvcGetMaxPayloadCapacity(void);
25
26#endif
27
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/XILTgtAppSvc_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/XILTgtAppSvc_h.html deleted file mode 100644 index f92120bc9f38654097133683db2745f0532b7d02..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/XILTgtAppSvc_h.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2013-2015 The MathWorks, Inc. */
2
3#ifndef XILTgtAppSvc_h
4#define XILTgtAppSvc_h
5
6#include "XILTgtAppSvc_spec.h"
7#include "rtwtypes.h"
8
9#if defined (USING_CS_API) || defined(BUILDING_LIBMWCODER_XILTGTAPPSVC)
10
11 typedef uint8_T IOUnit_T;
12#else
13
14 #include "xilcomms_rtiostream.h"
15#endif
16
17static const boolean_T XILTGTAPPSVC_ERROR = 0;
18static const boolean_T XILTGTAPPSVC_SUCCESS = 1;
19
20#define XIL_RTIOSTREAM_BASED_SERVICE_ID 1
21typedef enum {XIL_COMMAND_NOT_COMPLETE=0,
22 XIL_COMMAND_COMPLETE,
23 XIL_STEP_COMPLETE} XILCommandResponseType;
24
25#endif
26
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/codeinstr_data_stream_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/codeinstr_data_stream_c.html deleted file mode 100644 index 9d1ad2c8a806469e6bb821cb3c3602f673497f36..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/codeinstr_data_stream_c.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2007-2015 The MathWorks, Inc. */
2
3#include "codeinstr_data_stream.h"
4#include "xil_interface_lib.h"
5#include "CodeInstrTgtAppSvc_CInterface.h"
6
7#ifdef USING_CS_API
8 #define CODE_INSTR_TX_BUFFER_MEMUNIT_SIZE codeInstrTgtAppSvcGetMaxPayloadCapacity()
9 #define BUFFER_HEADER_SIZE 0
10#else
11 #include "rx_tx_buffer_sizes.h"
12#endif
13
14#define COMMAND_COMPLETE_SIZE (sizeof(MemUnit_T))
15#define COMMAND_COMPLETE_IDX 0
16#define WRITE_DATA_BUFFER_IDX (COMMAND_COMPLETE_IDX + COMMAND_COMPLETE_SIZE)
17#define USED_WRITE_BUFFER_SIZE (COMMAND_COMPLETE_SIZE + codeInstrWriteDataAvail)
18#define WRITE_BUFFER_SIZE (CODE_INSTR_TX_BUFFER_MEMUNIT_SIZE - COMMAND_COMPLETE_SIZE - BUFFER_HEADER_SIZE)
19
20static void* pBuffer;
21static IOUnit_T* codeInstrWriteBuffer;
22static IOUnit_T* codeInstrWriteDataPtr;
23static uint16_T codeInstrWriteDataAvail;
24static MemUnit_T* commandComplete;
25
26/* reset the write buffer */
27static XIL_INTERFACE_LIB_ERROR_CODE resetCodeInstrWriteBuffer(void) {
28
29 /* Ask the CS to allocate a buffer that the CodeInstr app service will
30 * use for transmission
31 */
32 if (!codeInstrTgtAppSvcAllocBuffer(&pBuffer, CODE_INSTR_TX_BUFFER_MEMUNIT_SIZE)) {
33 return XIL_INTERFACE_LIB_ERROR;
34 }
35 codeInstrWriteBuffer = codeInstrTgtAppSvcGetBufferDataPtr(pBuffer);
36
37 /* set commandComplete and codeInstrWriteDataPtr pointer */
38 commandComplete = (MemUnit_T *) &codeInstrWriteBuffer[COMMAND_COMPLETE_IDX];
39 codeInstrWriteDataPtr = &codeInstrWriteBuffer[WRITE_DATA_BUFFER_IDX];
40
41 /* ready for next command */
42 codeInstrWriteDataAvail = 0;
43 *commandComplete = 0;
44
45 return XIL_INTERFACE_LIB_SUCCESS;
46}
47
48XIL_INTERFACE_LIB_ERROR_CODE codeInstrInit(void) {
49 /* Create code instrumentation app service */
50 if (codeInstrTgtAppSvcCreate() != CODEINSTRTGTAPPSVC_SUCCESS) {
51 return XIL_INTERFACE_LIB_ERROR;
52 }
53
54 /* Reset write buffer */
55 return resetCodeInstrWriteBuffer();
56}
57
58void codeInstrTerminate(void) {
59 codeInstrTgtAppSvcDestroy();
60}
61
62/* send pending writes */
63static XIL_DATA_STREAM_ERROR_CODE sendWriteBuffer(void) {
64 /* send */
65 if (codeInstrTgtAppSvcSend(pBuffer, USED_WRITE_BUFFER_SIZE) == CODEINSTRTGTAPPSVC_ERROR) {
66 return XIL_DATA_FLUSH_ERROR;
67 }
68
69 /* reset */
70 if (resetCodeInstrWriteBuffer()!= XIL_INTERFACE_LIB_SUCCESS) {
71 return XIL_DATA_FLUSH_ERROR;
72 }
73
74 return XIL_DATA_STREAM_SUCCESS;
75}
76
77
78XIL_DATA_STREAM_ERROR_CODE codeInstrWriteData(const MemUnit_T * src, uint32_T size) {
79 XIL_DATA_STREAM_ERROR_CODE errorCode = XIL_DATA_STREAM_SUCCESS;
80 const IOUnit_T * srcPtr = (const IOUnit_T *) src;
81 size_t transferAmount;
82 uint16_T bufferAvail;
83
84 /* block until all data is processed */
85 while (size > 0) {
86 /* send if we have a full message worth of data */
87 if (codeInstrWriteDataAvail == WRITE_BUFFER_SIZE) {
88 errorCode = sendWriteBuffer();
89 if (errorCode != XIL_DATA_STREAM_SUCCESS) {
90 return errorCode;
91 }
92 }
93 bufferAvail = WRITE_BUFFER_SIZE - codeInstrWriteDataAvail;
94 transferAmount = (uint16_T) MIN(bufferAvail, size);
95 /* copy data into write buffer */
96 memcpy((void *) codeInstrWriteDataPtr, srcPtr, transferAmount);
97 size -= (uint32_T) transferAmount;
98 codeInstrWriteDataAvail += (uint16_T) transferAmount;
99 srcPtr += transferAmount;
100 codeInstrWriteDataPtr += transferAmount;
101 }
102 return errorCode;
103}
104
105
106XIL_DATA_STREAM_ERROR_CODE codeInstrDataFlush(void) {
107
108 /* final part of command */
109 *commandComplete = 1;
110
111 /* send the write buffer */
112 if (sendWriteBuffer() == XIL_DATA_FLUSH_ERROR){
113 return XIL_DATA_FLUSH_ERROR;
114 }
115
116 return XIL_DATA_STREAM_SUCCESS;
117
118}
119
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/codeinstr_data_stream_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/codeinstr_data_stream_h.html deleted file mode 100644 index 3a7bbddd6f34052df1caae2ac302f8bcd77d2672..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/codeinstr_data_stream_h.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2013-2015 The MathWorks, Inc. */
2
3/*
4 * File: codeInstr_data_stream.h
5 *
6 */
7
8/* need error codes */
9#include "xil_interface_lib.h"
10
11/* initialize code instrumentation service */
12extern XIL_INTERFACE_LIB_ERROR_CODE codeInstrInit(void);
13/* terminate code instrumentation service */
14extern void codeInstrTerminate(void);
15/* copy specified amount of data from the address specified to the output stream */
16extern XIL_DATA_STREAM_ERROR_CODE codeInstrWriteData(const MemUnit_T *, uint32_T);
17/* flush any buffered writes */
18extern XIL_DATA_STREAM_ERROR_CODE codeInstrDataFlush(void);
19
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/codeinstr_rtiostream_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/codeinstr_rtiostream_c.html deleted file mode 100644 index 769372768fe3139b7421ab4aba70dc6d666462ca..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/codeinstr_rtiostream_c.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2013-2015 The MathWorks, Inc. */
2
3#include "rx_tx_buffer_sizes.h"
4#include "xil_common.h"
5#include "CodeInstrTgtAppSvc_CInterface.h"
6
7/* code instrumentation buffer is statically allocated for rtiostream-based implementation */
8static IOUnit_T codeInstrWriteBuffer[CODE_INSTR_TX_BUFFER_MEMUNIT_SIZE];
9
10extern uint8_T codeInstrTgtAppSvcCreate(void) {
11 return CODEINSTRTGTAPPSVC_SUCCESS;
12}
13
14extern void codeInstrTgtAppSvcDestroy(void) {
15}
16
17/* Allocation method simply returns the statically allocated buffer */
18extern uint8_T codeInstrTgtAppSvcAllocBuffer(
19 void** ppBuf,
20 const uint16_T dataSize) {
21
22 /* buffer is already statically allocated */
23 *ppBuf = &codeInstrWriteBuffer[APPLICATION_ID_IDX];
24
25 UNUSED_PARAMETER(dataSize);
26
27 /* nothing to do as buffer is already statically allocated */
28 return CODEINSTRTGTAPPSVC_SUCCESS;
29}
30
31/* return pointer to the code instrumentation buffer data */
32extern IOUnit_T * codeInstrTgtAppSvcGetBufferDataPtr(
33 void* const pBuf) {
34
35 /* buffer is already statically allocated */
36 UNUSED_PARAMETER(pBuf);
37
38 return &codeInstrWriteBuffer[PAYLOAD_IDX];
39}
40
41/* send data over rtiostream */
42extern uint8_T codeInstrTgtAppSvcSend(
43 void* const pBuf,
44 const uint16_T dataSize) {
45
46 return (uint8_T)commsEnqueueBuffer(pBuf, CODEINSTR_RTIOSTREAM_BASED_SERVICE_ID, dataSize);
47}
48
49
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_app_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_app_c.html deleted file mode 100644 index e87ea055ea277b2279d91148babfa10c926cd2a2..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_app_c.html +++ /dev/null @@ -1,784 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2015-2019 The MathWorks, Inc. */
2
3#include "coder_assumptions_app.h"
4#include "coder_assumptions_data_stream.h"
5#include "xil_interface_lib.h"
6
7/*
8 * Include coder_assumptions.h for Hardware Implementation setting
9 * preprocessor validation checks.
10 * These checks verify fundamental data types that the comms
11 * stack relies on, e.g. uint8_T, uint16_T, uint32_T.
12 *
13 * Also access the global results variables and the entry point
14 * function for running coder assumptions tests.
15 */
16#include "coder_assumptions.h"
17
18/* combine arguments (after expanding arguments) */
19#define CA_EXP_CONCAT(a,b) CA_CONCAT(a,b)
20#define CA_CONCAT(a,b) a ## b
21
22/* Compile time static assert for checking fundamental assumptions such
23 * as sizeof values for specific data types. */
24#define CA_STATIC_ASSERT(expr, msg) typedef char CA_EXP_CONCAT(assert_failed__, msg) [(expr) ? (+1) : (-1)]
25
26#define CA_RETURN_IF_ERROR(errCode) if((errCode) != XIL_DATA_STREAM_SUCCESS) return (errCode)
27
28#include "coder_assumptions_hwimpl.h"
29
30#ifdef HOST_WORD_ADDRESSABLE_TESTING
31 /* MemUnit_T can be any of uint8_T, uint16_T, uint32_T
32 * Just check it is consistent with MEM_UNIT_BYTES */
33 CA_STATIC_ASSERT(sizeof(MemUnit_T) == MEM_UNIT_BYTES, INVALID_MEMUNIT_T);
34#else
35 /* Verify MemUnit_T: sizeof must be 1 */
36 CA_STATIC_ASSERT(sizeof(MemUnit_T) == 1, MEMUNIT_T_NOT_SIZEOF_1);
37 /* Verify MEM_UNIT_BYTES: must match the size of the largest integer that has sizeof == 1
38 * Only word addressable targets up to 32-bits are supported. */
39 CA_STATIC_ASSERT((sizeof(uint32_T) == 1) ? MEM_UNIT_BYTES == 4 :
40 (sizeof(uint16_T) == 1) ? MEM_UNIT_BYTES == 2 :
41 (sizeof(uint8_T) == 1) ? MEM_UNIT_BYTES == 1 : 0, INVALID_MEM_UNIT_BYTES);
42#endif
43
44#include "coder_assumptions_shared_enums.h"
45
46static MemUnit_T pwsEnabled;
47
48
49static XIL_DATA_STREAM_ERROR_CODE sendResult(const CA_TestResult result,
50 const MemUnit_T resultType,
51 const MemUnit_T actual,
52 const MemUnit_T assumed) {
53 XIL_DATA_STREAM_ERROR_CODE errorCode;
54 MemUnit_T tmp;
55 /* send result type */
56 errorCode = coderAssumptionsWriteData(&resultType, sizeof(MemUnit_T));
57 CA_RETURN_IF_ERROR(errorCode);
58
59 /* send result status */
60 tmp = (MemUnit_T) result.status;
61 errorCode = coderAssumptionsWriteData(&tmp, sizeof(MemUnit_T));
62 CA_RETURN_IF_ERROR(errorCode);
63
64 /* send result msg id */
65 tmp = (MemUnit_T) result.msg;
66 errorCode = coderAssumptionsWriteData(&tmp, sizeof(MemUnit_T));
67 CA_RETURN_IF_ERROR(errorCode);
68
69 /* send actual */
70 errorCode = coderAssumptionsWriteData(&actual, sizeof(MemUnit_T));
71 CA_RETURN_IF_ERROR(errorCode);
72
73 /* send assumed */
74 errorCode = coderAssumptionsWriteData(&assumed, sizeof(MemUnit_T));
75 CA_RETURN_IF_ERROR(errorCode);
76
77 /* final return */
78 return errorCode;
79}
80
81static XIL_DATA_STREAM_ERROR_CODE transmitMemUnitBytes(void) {
82 XIL_DATA_STREAM_ERROR_CODE errorCode;
83 const MemUnit_T memUnitBytes = MEM_UNIT_BYTES;
84
85 /* send memUnitBytes */
86 errorCode = coderAssumptionsWriteData(&memUnitBytes, sizeof(MemUnit_T));
87 CA_RETURN_IF_ERROR(errorCode);
88
89 errorCode = coderAssumptionsSendWriteBuffer();
90 CA_RETURN_IF_ERROR(errorCode);
91
92 return errorCode;
93}
94
95/* portable word sizes specified checks */
96static XIL_DATA_STREAM_ERROR_CODE sendPWS(void) {
97 XIL_DATA_STREAM_ERROR_CODE errorCode;
98 MemUnit_T commandId;
99
100 /* send CA_PWS */
101 commandId = CA_PWS;
102 errorCode = coderAssumptionsWriteData(&commandId, sizeof(MemUnit_T));
103 CA_RETURN_IF_ERROR(errorCode);
104
105 /* PWS enabled in build */
106 commandId = CA_PWS_ENABLED;
107 errorCode = coderAssumptionsWriteData(&commandId, sizeof(MemUnit_T));
108 CA_RETURN_IF_ERROR(errorCode);
109
110 pwsEnabled = (MemUnit_T) CA_Actual_HWImpl.portableWordSizes;
111 errorCode = coderAssumptionsWriteData(&pwsEnabled, sizeof(MemUnit_T));
112 CA_RETURN_IF_ERROR(errorCode);
113
114 /* extended PWS checks */
115 if (pwsEnabled) {
116 /* config setting mismatch */
117 errorCode = sendResult(CA_PortableWordSizes_Results.configSetting,
118 (MemUnit_T) CA_PWS_CONFIG_SETTING,
119 (MemUnit_T) CA_Actual_HWImpl.portableWordSizes,
120 (MemUnit_T) CA_Expected_HWImpl.portableWordSizes);
121 CA_RETURN_IF_ERROR(errorCode);
122 }
123
124
125 errorCode = coderAssumptionsSendWriteBuffer();
126 CA_RETURN_IF_ERROR(errorCode);
127
128 return errorCode;
129}
130
131/* hardware implementation checks message 1 */
132static XIL_DATA_STREAM_ERROR_CODE sendHWImpl1(void) {
133 XIL_DATA_STREAM_ERROR_CODE errorCode = XIL_DATA_STREAM_SUCCESS;
134 MemUnit_T commandId;
135
136 /* send CA_HW_IMPL_SIZES_1 */
137 commandId = CA_HW_IMPL_SIZES_1;
138 errorCode = coderAssumptionsWriteData(&commandId, sizeof(MemUnit_T));
139 CA_RETURN_IF_ERROR(errorCode);
140
141 /* bit per char */
142 errorCode = sendResult(CA_HWImpl_Results.bitsPerChar,
143 (MemUnit_T) CA_HW_IMPL_BIT_CHAR,
144 (MemUnit_T) CA_Actual_HWImpl.bitsPerChar,
145 (MemUnit_T) CA_Expected_HWImpl.bitsPerChar);
146 CA_RETURN_IF_ERROR(errorCode);
147
148 /* bit per short */
149 errorCode = sendResult(CA_HWImpl_Results.bitsPerShort,
150 (MemUnit_T) CA_HW_IMPL_BIT_SHORT,
151 (MemUnit_T) CA_Actual_HWImpl.bitsPerShort,
152 (MemUnit_T) CA_Expected_HWImpl.bitsPerShort);
153 CA_RETURN_IF_ERROR(errorCode);
154
155 /* bit per int */
156 errorCode = sendResult(CA_HWImpl_Results.bitsPerInt,
157 (MemUnit_T) CA_HW_IMPL_BIT_INT,
158 (MemUnit_T) CA_Actual_HWImpl.bitsPerInt,
159 (MemUnit_T) CA_Expected_HWImpl.bitsPerInt);
160 CA_RETURN_IF_ERROR(errorCode);
161
162 /* bit per long */
163 errorCode = sendResult(CA_HWImpl_Results.bitsPerLong,
164 (MemUnit_T) CA_HW_IMPL_BIT_LONG,
165 (MemUnit_T) CA_Actual_HWImpl.bitsPerLong,
166 (MemUnit_T) CA_Expected_HWImpl.bitsPerLong);
167 CA_RETURN_IF_ERROR(errorCode);
168
169 /* transmit message */
170 errorCode = coderAssumptionsSendWriteBuffer();
171 CA_RETURN_IF_ERROR(errorCode);
172
173 return errorCode;
174}
175
176/* hardware implementation checks message 2 */
177static XIL_DATA_STREAM_ERROR_CODE sendHWImpl2(void) {
178 XIL_DATA_STREAM_ERROR_CODE errorCode = XIL_DATA_STREAM_SUCCESS;
179 MemUnit_T commandId;
180
181 /* send CA_HW_IMPL_SIZES_2 */
182 commandId = CA_HW_IMPL_SIZES_2;
183 errorCode = coderAssumptionsWriteData(&commandId, sizeof(MemUnit_T));
184 CA_RETURN_IF_ERROR(errorCode);
185
186 /* support long long */
187 errorCode = sendResult(CA_HWImpl_Results.supportLongLong,
188 (MemUnit_T) CA_HW_IMPL_SUPPORT_LONGLONG,
189 (MemUnit_T) CA_Actual_HWImpl.supportLongLong,
190 (MemUnit_T) CA_Expected_HWImpl.supportLongLong);
191 CA_RETURN_IF_ERROR(errorCode);
192
193 /* bit per long long */
194 errorCode = sendResult(CA_HWImpl_Results.bitsPerLongLong,
195 (MemUnit_T) CA_HW_IMPL_BIT_LONGLONG,
196 (MemUnit_T) CA_Actual_HWImpl.bitsPerLongLong,
197 (MemUnit_T) CA_Expected_HWImpl.bitsPerLongLong);
198 CA_RETURN_IF_ERROR(errorCode);
199
200 /* bit per float */
201 errorCode = sendResult(CA_HWImpl_Results.bitsPerFloat,
202 (MemUnit_T) CA_HW_IMPL_BIT_FLOAT,
203 (MemUnit_T) CA_Actual_HWImpl.bitsPerFloat,
204 (MemUnit_T) CA_Expected_HWImpl.bitsPerFloat);
205 CA_RETURN_IF_ERROR(errorCode);
206
207 /* bit per double */
208 errorCode = sendResult(CA_HWImpl_Results.bitsPerDouble,
209 (MemUnit_T) CA_HW_IMPL_BIT_DOUBLE,
210 (MemUnit_T) CA_Actual_HWImpl.bitsPerDouble,
211 (MemUnit_T) CA_Expected_HWImpl.bitsPerDouble);
212 CA_RETURN_IF_ERROR(errorCode);
213
214 /* transmit message */
215 errorCode = coderAssumptionsSendWriteBuffer();
216 CA_RETURN_IF_ERROR(errorCode);
217
218 return errorCode;
219}
220
221/* hardware implementation checks message 3 */
222static XIL_DATA_STREAM_ERROR_CODE sendHWImpl3(void) {
223 XIL_DATA_STREAM_ERROR_CODE errorCode = XIL_DATA_STREAM_SUCCESS;
224 MemUnit_T commandId;
225
226 /* send CA_HW_IMPL_SIZES_3 */
227 commandId = CA_HW_IMPL_SIZES_3;
228 errorCode = coderAssumptionsWriteData(&commandId, sizeof(MemUnit_T));
229 CA_RETURN_IF_ERROR(errorCode);
230
231 /* bit per pointer */
232 errorCode = sendResult(CA_HWImpl_Results.bitsPerPointer,
233 (MemUnit_T) CA_HW_IMPL_BIT_POINTER,
234 (MemUnit_T) CA_Actual_HWImpl.bitsPerPointer,
235 (MemUnit_T) CA_Expected_HWImpl.bitsPerPointer);
236 CA_RETURN_IF_ERROR(errorCode);
237
238 /* bit per size_t */
239 errorCode = sendResult(CA_HWImpl_Results.bitsPerSizeT,
240 (MemUnit_T) CA_HW_IMPL_BIT_SIZE_T,
241 (MemUnit_T) CA_Actual_HWImpl.bitsPerSizeT,
242 (MemUnit_T) CA_Expected_HWImpl.bitsPerSizeT);
243 CA_RETURN_IF_ERROR(errorCode);
244
245 /* bit per ptrdiff_t */
246 errorCode = sendResult(CA_HWImpl_Results.bitsPerPtrDiffT,
247 (MemUnit_T) CA_HW_IMPL_BIT_PTRDIFF_T,
248 (MemUnit_T) CA_Actual_HWImpl.bitsPerPtrDiffT,
249 (MemUnit_T) CA_Expected_HWImpl.bitsPerPtrDiffT);
250 CA_RETURN_IF_ERROR(errorCode);
251
252 /* transmit message */
253 errorCode = coderAssumptionsSendWriteBuffer();
254 CA_RETURN_IF_ERROR(errorCode);
255
256 return errorCode;
257}
258
259
260/* hardware implementation checks message 4 */
261static XIL_DATA_STREAM_ERROR_CODE sendHWImpl4(void) {
262 XIL_DATA_STREAM_ERROR_CODE errorCode = XIL_DATA_STREAM_SUCCESS;
263 MemUnit_T commandId;
264
265 /* send CA_HW_IMPL_SIZES_4 */
266 commandId = CA_HW_IMPL_SIZES_4;
267 errorCode = coderAssumptionsWriteData(&commandId, sizeof(MemUnit_T));
268 CA_RETURN_IF_ERROR(errorCode);
269
270 /* byte order */
271 errorCode = sendResult(CA_HWImpl_Results.byteOrder,
272 (MemUnit_T) CA_HW_IMPL_BYTE_ORDER,
273 (MemUnit_T) CA_Actual_HWImpl.byteOrder,
274 (MemUnit_T) CA_Expected_HWImpl.byteOrder);
275 CA_RETURN_IF_ERROR(errorCode);
276
277 /* integer division rounding */
278 errorCode = sendResult(CA_HWImpl_Results.intDivRoundTo,
279 (MemUnit_T) CA_HW_IMPL_INT_DIV_ROUND,
280 (MemUnit_T) CA_Actual_HWImpl.intDivRoundTo,
281 (MemUnit_T) CA_Expected_HWImpl.intDivRoundTo);
282 CA_RETURN_IF_ERROR(errorCode);
283
284 /* shift right on a signed integer */
285 errorCode = sendResult(CA_HWImpl_Results.shiftRightBehavior,
286 (MemUnit_T) CA_HW_IMPL_SHIFT_RIGHT,
287 (MemUnit_T) CA_Actual_HWImpl.shiftRightBehavior,
288 (MemUnit_T) CA_Expected_HWImpl.shiftRightBehavior);
289 CA_RETURN_IF_ERROR(errorCode);
290
291 /* transmit message */
292 errorCode = coderAssumptionsSendWriteBuffer();
293 CA_RETURN_IF_ERROR(errorCode);
294
295 return errorCode;
296}
297
298/* hardware implementation, checks unrelated to sizes */
299static XIL_DATA_STREAM_ERROR_CODE sendHardwareChecks(void){
300 XIL_DATA_STREAM_ERROR_CODE errorCode = XIL_DATA_STREAM_SUCCESS;
301 MemUnit_T commandId;
302
303 commandId = CA_CHECKS_1;
304 errorCode = coderAssumptionsWriteData(&commandId, sizeof(MemUnit_T));
305 CA_RETURN_IF_ERROR(errorCode);
306
307 /* memory at startup */
308 errorCode = sendResult(CA_HWImpl_Results.memoryAtStartup,
309 (MemUnit_T) CA_HW_IMPL_MEMORY_STARTUP,
310 (MemUnit_T) CA_Actual_HWImpl.memoryAtStartup,
311 (MemUnit_T) CA_Expected_HWImpl.memoryAtStartup);
312 CA_RETURN_IF_ERROR(errorCode);
313
314 /* denormal flush to zero */
315 errorCode = sendResult(CA_HWImpl_Results.denormalFlushToZero,
316 (MemUnit_T) CA_HW_IMPL_DENORMAL_FTZ,
317 (MemUnit_T) CA_Actual_HWImpl.denormalFlushToZero,
318 (MemUnit_T) CA_Expected_HWImpl.denormalFlushToZero);
319 CA_RETURN_IF_ERROR(errorCode);
320
321 /* denormal as zero */
322 errorCode = sendResult(CA_HWImpl_Results.denormalAsZero,
323 (MemUnit_T) CA_HW_IMPL_DENORMAL_DAZ,
324 (MemUnit_T) CA_Actual_HWImpl.denormalAsZero,
325 (MemUnit_T) CA_Expected_HWImpl.denormalAsZero);
326 CA_RETURN_IF_ERROR(errorCode);
327
328 /* transmit message */
329 errorCode = coderAssumptionsSendWriteBuffer();
330 CA_RETURN_IF_ERROR(errorCode);
331
332 return errorCode;
333}
334
335static XIL_DATA_STREAM_ERROR_CODE runChecks(void) {
336 XIL_DATA_STREAM_ERROR_CODE errorCode;
337 MemUnit_T endTransmission = CA_END_TRANSMIT;
338
339 /* first, run the coder assumptions checks */
340 CA_Run_Tests();
341
342 /* now send the results to the host */
343 errorCode = transmitMemUnitBytes();
344 CA_RETURN_IF_ERROR(errorCode);
345
346 errorCode = sendPWS();
347 CA_RETURN_IF_ERROR(errorCode);
348
349 errorCode = sendHWImpl1();
350 CA_RETURN_IF_ERROR(errorCode);
351 errorCode = sendHWImpl2();
352 CA_RETURN_IF_ERROR(errorCode);
353 errorCode = sendHWImpl3();
354 CA_RETURN_IF_ERROR(errorCode);
355 errorCode = sendHWImpl4();
356 CA_RETURN_IF_ERROR(errorCode);
357
358 /* send results of miscellaneous checks */
359 errorCode = sendHardwareChecks();
360 CA_RETURN_IF_ERROR(errorCode);
361
362 /* let host know all tests have completed */
363 errorCode = coderAssumptionsWriteData(&endTransmission, sizeof(MemUnit_T));
364 CA_RETURN_IF_ERROR(errorCode);
365 errorCode = coderAssumptionsSendWriteBuffer();
366
367 /* final return */
368 return errorCode;
369}
370
371
372/*
373 * XIL interface entry points
374 *
375 */
376XIL_INTERFACE_LIB_ERROR_CODE coderAssumptionsRun(void) {
377 if (runChecks() != XIL_DATA_STREAM_SUCCESS) {
378 return XIL_INTERFACE_LIB_ERROR;
379 }
380 else {
381 return XIL_INTERFACE_LIB_SUCCESS;
382 }
383}
384
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_app_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_app_h.html deleted file mode 100644 index 7631d64be4c671569a6c0d44bd2531fe30b82ea2..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_app_h.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2015 The MathWorks, Inc. */
2
3/*
4 * File: coder_assumptions_app.h
5 *
6 */
7
8#include "xil_error_codes.h"
9
10extern XIL_INTERFACE_LIB_ERROR_CODE coderAssumptionsRun(void);
11
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_data_stream_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_data_stream_c.html deleted file mode 100644 index 075f142e4ad6fb9ed18cb1cb4fbd0efe0a44a32a..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_data_stream_c.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2015-2017 The MathWorks, Inc. */
2
3#include "coder_assumptions_data_stream.h"
4#include "xil_interface_lib.h"
5#include "CoderAssumpTgtAppSvc_CInterface.h"
6
7#ifdef USING_CS_API
8 #define CA_TX_BUFFER_MEMUNIT_SIZE coderAssumpTgtAppSvcGetMaxPayloadCapacity()
9 #define BUFFER_HEADER_SIZE 0
10#else
11 #include "rx_tx_buffer_sizes.h"
12#endif
13
14static void* pBuffer;
15static IOUnit_T* coderAssumptionsWriteDataPtr;
16static uint16_T coderAssumptionsWriteDataAvail;
17
18XIL_DATA_STREAM_ERROR_CODE coderAssumptionsWriteData(const void * src, const size_t size) {
19 XIL_DATA_STREAM_ERROR_CODE errorCode = XIL_DATA_STREAM_SUCCESS;
20
21 const size_t WRITE_BUFFER_SIZE = CA_TX_BUFFER_MEMUNIT_SIZE - BUFFER_HEADER_SIZE;
22 size_t sizeToTransfer = size;
23
24 /* check to see if buffer will overflow */
25 if ((coderAssumptionsWriteDataAvail + sizeToTransfer) > WRITE_BUFFER_SIZE) {
26 errorCode = XIL_WRITE_DATA_ERROR;
27 return errorCode;
28 }
29
30 /* copy data into write buffer */
31 memcpy((void *) coderAssumptionsWriteDataPtr, src, sizeToTransfer);
32 coderAssumptionsWriteDataAvail += (uint16_T) sizeToTransfer;
33 coderAssumptionsWriteDataPtr += sizeToTransfer;
34
35 return errorCode;
36}
37
38
39/* reset the write buffer */
40XIL_INTERFACE_LIB_ERROR_CODE resetCoderAssumptionsWriteBuffer(void) {
41
42 /* Ask the CS to allocate a buffer that the app will
43 * use for transmission
44 */
45 if (!coderAssumpTgtAppSvcAllocBuffer(&pBuffer, CA_TX_BUFFER_MEMUNIT_SIZE)) {
46 return XIL_INTERFACE_LIB_ERROR;
47 }
48
49 /* set coderAssumptionsWriteDataPtr pointer */
50 coderAssumptionsWriteDataPtr = coderAssumpTgtAppSvcGetBufferDataPtr(pBuffer);
51
52 /* ready for next command */
53 coderAssumptionsWriteDataAvail = 0;
54
55 return XIL_INTERFACE_LIB_SUCCESS;
56}
57
58/* send pending writes */
59XIL_DATA_STREAM_ERROR_CODE coderAssumptionsSendWriteBuffer(void) {
60 /* send */
61 if (coderAssumpTgtAppSvcSend(pBuffer, coderAssumptionsWriteDataAvail) == CODERASSUMPTGTAPPSVC_ERROR) {
62 return XIL_WRITE_DATA_ERROR;
63 }
64
65 /* reset */
66 if (resetCoderAssumptionsWriteBuffer()!= XIL_INTERFACE_LIB_SUCCESS) {
67 return XIL_WRITE_DATA_ERROR;
68 }
69
70 return XIL_DATA_STREAM_SUCCESS;
71}
72
73XIL_INTERFACE_LIB_ERROR_CODE coderAssumptionsInit(void) {
74 /* Create coder assumptions app service */
75 if (coderAssumpTgtAppSvcCreate() != CODERASSUMPTGTAPPSVC_SUCCESS) {
76 return XIL_INTERFACE_LIB_ERROR;
77 }
78
79 /* Reset write buffer */
80 return resetCoderAssumptionsWriteBuffer();
81}
82
83void coderAssumptionsTerminate(void) {
84 coderAssumpTgtAppSvcDestroy();
85}
86
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_data_stream_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_data_stream_h.html deleted file mode 100644 index 09b2a7127467f8ebd0fecbc62b0a87956cf8f734..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_data_stream_h.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2015-2017 The MathWorks, Inc. */
2
3/*
4 * File: coder_assumptions_data_stream.h
5 *
6 */
7
8#include "xil_error_codes.h"
9#include <stddef.h>
10
11extern XIL_DATA_STREAM_ERROR_CODE coderAssumptionsWriteData(const void * src, const size_t size);
12extern XIL_DATA_STREAM_ERROR_CODE coderAssumptionsSendWriteBuffer(void);
13extern XIL_INTERFACE_LIB_ERROR_CODE resetCoderAssumptionsWriteBuffer(void);
14extern XIL_INTERFACE_LIB_ERROR_CODE coderAssumptionsInit(void);
15extern void coderAssumptionsTerminate(void);
16
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_rtiostream_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_rtiostream_c.html deleted file mode 100644 index 8c22e9aa9ee15dfc4f91ec42d4e71dd6ae4a85df..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_rtiostream_c.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2013-2015 The MathWorks, Inc. */
2
3#include "rx_tx_buffer_sizes.h"
4#include "xil_common.h"
5#include "CoderAssumpTgtAppSvc_CInterface.h"
6
7/* coder assumptions buffer is statically allocated for rtiostream-based implementation */
8static IOUnit_T coderAssumpWriteBuffer[CA_TX_BUFFER_MEMUNIT_SIZE];
9
10extern uint8_T coderAssumpTgtAppSvcCreate(void) {
11 return CODERASSUMPTGTAPPSVC_SUCCESS;
12}
13
14extern void coderAssumpTgtAppSvcDestroy(void) {
15}
16
17/* Allocation method simply returns the statically allocated buffer */
18extern uint8_T coderAssumpTgtAppSvcAllocBuffer(
19 void** ppBuf,
20 const uint16_T dataSize) {
21
22 /* buffer is already statically allocated */
23 *ppBuf = &coderAssumpWriteBuffer[APPLICATION_ID_IDX];
24
25 UNUSED_PARAMETER(dataSize);
26
27 /* nothing to do as buffer is already statically allocated */
28 return CODERASSUMPTGTAPPSVC_SUCCESS;
29}
30
31/* return pointer to the coder assumptions buffer data */
32extern IOUnit_T * coderAssumpTgtAppSvcGetBufferDataPtr(
33 void* const pBuf) {
34
35 /* buffer is already statically allocated */
36 UNUSED_PARAMETER(pBuf);
37
38 return &coderAssumpWriteBuffer[PAYLOAD_IDX];
39}
40
41/* send data over rtiostream */
42extern uint8_T coderAssumpTgtAppSvcSend(
43 void* const pBuf,
44 const uint16_T dataSize) {
45
46 return (uint8_T)commsEnqueueBuffer(pBuf, CODERASSUMP_RTIOSTREAM_BASED_SERVICE_ID, dataSize);
47}
48
49
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_shared_enums_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_shared_enums_h.html deleted file mode 100644 index 38975dc753a96a1563927bb66799147486ee73b7..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_assumptions_shared_enums_h.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2017 The MathWorks, Inc. */
2
3#ifndef __CODER_ASSUMPTIONS_SHARED_ENUMS_H__
4#define __CODER_ASSUMPTIONS_SHARED_ENUMS_H__
5
6typedef enum {
7 CA_LITTLE_ENDIAN = 0,
8 CA_BIG_ENDIAN,
9 CA_UNSPECIFIED,
10 CA_UNABLE_TO_DETERMINE_ON_TARGET
11} CA_EndianessValue;
12
13typedef enum {
14 CA_FLOOR = 0,
15 CA_ZERO,
16 CA_UNDEFINED
17} CA_IntDivRoundToValue;
18
19typedef enum {
20 CA_NOT_RUN = 0,
21 CA_FAIL,
22 CA_PASS,
23 CA_WARN,
24 CA_INFO,
25 CA_SKIP
26} CA_TestResultStatus;
27
28typedef enum {
29 CA_NO_MSG = 0,
30 CA_WARN_INT_DIV_UNDEFINED,
31 CA_WARN_BYTE_ORDER_UNSPECIFIED,
32 CA_ERROR_PWS_CONFIG_SETTING
33} CA_TestResultMsgId;
34
35typedef enum {
36 CA_HW_IMPL_SIZES_1=0,
37 CA_HW_IMPL_SIZES_2,
38 CA_HW_IMPL_SIZES_3,
39 CA_HW_IMPL_SIZES_4,
40 CA_CHECKS_1, /* Results of checks unrelated to hardware sizes. */
41 CA_PWS,
42 CA_END_TRANSMIT /* Sent when CA transmissions have finished. */
43} CODERASSUMPTIONS_COMMAND;
44
45typedef enum {
46 CA_HW_IMPL_BIT_CHAR = 0,
47 CA_HW_IMPL_BIT_SHORT,
48 CA_HW_IMPL_BIT_INT,
49 CA_HW_IMPL_BIT_LONG,
50 CA_HW_IMPL_BIT_LONGLONG,
51 CA_HW_IMPL_BIT_FLOAT,
52 CA_HW_IMPL_BIT_DOUBLE,
53 CA_HW_IMPL_BIT_POINTER,
54 CA_HW_IMPL_BIT_SIZE_T,
55 CA_HW_IMPL_BIT_PTRDIFF_T,
56 CA_HW_IMPL_SUPPORT_LONGLONG,
57 CA_HW_IMPL_SHIFT_RIGHT,
58 CA_HW_IMPL_INT_DIV_ROUND,
59 CA_HW_IMPL_BYTE_ORDER,
60 CA_HW_IMPL_MEMORY_STARTUP,
61 CA_HW_IMPL_DENORMAL_FTZ,
62 CA_HW_IMPL_DENORMAL_DAZ
63} CA_HW_IMPL_RESULT;
64
65typedef enum {
66 CA_PWS_ENABLED = 0,
67 CA_PWS_CONFIG_SETTING
68} CA_PWS_RESULT;
69
70#endif
71
72
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_profile_code_icon.png b/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_profile_code_icon.png deleted file mode 100644 index 62ad9f56baac851aae23368cbc0e63f85dba6822..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/html/coder_profile_code_icon.png and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/comms_interface_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/comms_interface_h.html deleted file mode 100644 index 182c54158b101137cb11917a8a2a48b076223313..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/comms_interface_h.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2015 The MathWorks, Inc. */
2#ifndef comms_interface_h
3#define comms_interface_h
4
5/* error codes */
6static const int COMMS_ERROR = 0;
7static const int COMMS_SUCCESS = 1;
8
9/* initialize comm service */
10extern int commsInit(const int argc, void * argv[]);
11
12/* terminate comm service */
13extern int commsTerminate(void);
14
15#endif
16
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/css/coder_app.css b/src/validation/FCC_Sys_New_harness_ert_rtw/html/css/coder_app.css deleted file mode 100644 index d47cf0edddb4a21ffda06a2cbf05275f7fa4747d..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/css/coder_app.css +++ /dev/null @@ -1,184 +0,0 @@ -/* Copyright 2013-2018 The MathWorks, Inc. */ -pre#code { - font-family: Consolas, Courier; - font-size: small; -} - -.ct { - font-style: italic; - color: #117755 -} /* comment */ -.pp { - font-weight:bold; - color: #992211 -} /* preprocessor */ -.kw, .br { - font-weight:bold; - color: #112266 -} /* keyword or brace */ -.dt { - font-weight:bold; - color: #112266 -} /* data type */ -.tk { - font-style: normal; - color: #112266 -} /* regular token */ -pre#code a.req { - text-decoration: none; - color: #112266 -} -pre#code a.req_active { - cursor: pointer; - text-decoration: underline; -} -pre#code a.req_active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} -pre#code a.blk { - text-decoration: none; -} -pre#code a.blk_active { - cursor: pointer; - text-decoration: underline; -} -pre#code a.blk_active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} -a.hilite { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); -} /* highlight token */ -tr.hilite { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); -} /* highlight row */ -a.hiliteToken, tr.hiliteToken, td.hiliteToken { - background-color: #ffff99; -} -.hiliteCurrentLine, tr.hiliteCurrentLine > td { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); - box-shadow: inset 0 1px 0 0 rgba(150, 12, 116, 0.25), inset 0 -1px 0 0 rgba(150, 12, 116, 0.25); -} -span.hiliteTotalLine { - font-style: normal; - color: #aff; -} -a.tk { - text-decoration: none; -} -a.tk:hover { - text-decoration: none; -} -a.active { - text-decoration: underline; -} -a.active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} /* hyperlink */ -table.code { - border: 0px -} -table.code td { - vertical-align: top; -} -table.code td.highlightedCurrent { - background-color: rgba(150, 12, 116, 0.1); -} -table.code > tr:first { - text-align: right; -} /* hyperlink */ - -ul.popup_attrib_list { - list-style-type:none; - display: block; - margin: 0; - padding: 0; -} -ul.popup_attrib_list li { - list-style-type:none; - display: inline; - margin: 0 18px 0 0; - padding: 0; -} -.highlighted { - background-color:yellow; -} -a:class1 { - color: -webkit-link; - text-decoration: underline; - cursor: hand; -} -.scroll -{ - height:80px; - overflow:scroll; - overflow-x:hidden; -} -div#popup_window { - position: absolute; - background-color: rgb(203,203,255); - border: solid 3px #ECECEC; - border-radius: 5px; - /* shadow box around the window*/ - -moz-box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - -webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - padding: 2px; -} -div#popup_window a { - text-decoration: none; - color: green; -} -div#popup_window a:hover { - cursor: pointer; - text-decoration: underline; - color: blue; -} -div#popup_window tr.selected { - background-color: #ffff99; -} -div#token_usage_nav { - border-bottom: 1px solid gray; -} -table#token_usage_details { - cellpadding: 100px; - table-layout:fixed; - border: 0px; -} -.token_usage_details_tabrow { - width: 40px; -} -table#token_usage_details td { - padding-right: 5em; - padding-left: 1em; -} -.token_usage_details_tabrow:hover { - background-color: gray; -} -.nav_table td.hidden { - display: none; -} -table#codeTbl tr td { - color: #112266 -} -table#codeTbl tr td { - padding-left: 10px; -} -table#codeTbl tr td:first-child { - font-style: italic; - color: #888888; - text-align: right; - padding-left:0px; -} - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/define.js b/src/validation/FCC_Sys_New_harness_ert_rtw/html/define.js deleted file mode 100644 index bb1094876634f558da64afd4c658935a024c79b9..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/define.js +++ /dev/null @@ -1,408 +0,0 @@ -function CodeDefine() { -this.def = new Array(); -this.def["rt_OneStep"] = {file: "ert_main_c.html",line:40,type:"fcn"}; -this.def["main"] = {file: "ert_main_c.html",line:131,type:"fcn"}; -this.def["FCC_Sys_New_harness_TimingBrdg"] = {file: "FCC_Sys_New_harness_c.html",line:46,type:"var"}; -this.def["FCC_Sys_New_harness_DW"] = {file: "FCC_Sys_New_harness_c.html",line:49,type:"var"}; -this.def["FCC_Sys_New_harness_Y"] = {file: "FCC_Sys_New_harness_c.html",line:52,type:"var"}; -this.def["FCC_Sys_New_harness_M_"] = {file: "FCC_Sys_New_harness_c.html",line:55,type:"var"}; -this.def["FCC_Sys_New_harness_M"] = {file: "FCC_Sys_New_harness_c.html",line:56,type:"var"}; -this.def["FCC_Sys_New_harness_step0"] = {file: "FCC_Sys_New_harness_c.html",line:60,type:"fcn"}; -this.def["FCC_Sys_New_harness_step2"] = {file: "FCC_Sys_New_harness_c.html",line:394,type:"fcn"}; -this.def["FCC_Sys_New_harness_initialize"] = {file: "FCC_Sys_New_harness_c.html",line:474,type:"fcn"}; -this.def["RT_MODEL_FCC_Sys_New_harness_T"] = {file: "FCC_Sys_New_harness_h.html",line:65,type:"type"}; -this.def["DW_FCC_Sys_New_harness_T"] = {file: "FCC_Sys_New_harness_h.html",line:107,type:"type"}; -this.def["ExtY_FCC_Sys_New_harness_T"] = {file: "FCC_Sys_New_harness_h.html",line:114,type:"type"}; -this.def["AHRS_Bus"] = {file: "../../slprj/ert/_sharedutils/html/AHRS_Bus_h.html",line:38,type:"type"}; -this.def["rtTimingBridge"] = {file: "../../slprj/ert/_sharedutils/html/model_reference_types_h.html",line:28,type:"type"}; -this.def["rtCtrlRateMdlRefTiming"] = {file: "../../slprj/ert/_sharedutils/html/model_reference_types_h.html",line:43,type:"type"}; -this.def["int8_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:55,type:"type"}; -this.def["uint8_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:56,type:"type"}; -this.def["int16_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:57,type:"type"}; -this.def["uint16_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:58,type:"type"}; -this.def["int32_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:59,type:"type"}; -this.def["uint32_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:60,type:"type"}; -this.def["real32_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:61,type:"type"}; -this.def["real64_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:62,type:"type"}; -this.def["real_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:68,type:"type"}; -this.def["time_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:69,type:"type"}; -this.def["boolean_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:70,type:"type"}; -this.def["int_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:71,type:"type"}; -this.def["uint_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:72,type:"type"}; -this.def["ulong_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:73,type:"type"}; -this.def["ulonglong_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:74,type:"type"}; -this.def["char_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:75,type:"type"}; -this.def["uchar_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:76,type:"type"}; -this.def["byte_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:77,type:"type"}; -this.def["int64_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:78,type:"type"}; -this.def["uint64_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:79,type:"type"}; -this.def["int8_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:89,type:"type"}; -this.def["uint8_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:90,type:"type"}; -this.def["int16_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:91,type:"type"}; -this.def["uint16_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:92,type:"type"}; -this.def["int32_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:93,type:"type"}; -this.def["uint32_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:94,type:"type"}; -this.def["int64_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:95,type:"type"}; -this.def["uint64_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:96,type:"type"}; -this.def["real32_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:97,type:"type"}; -this.def["real64_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:98,type:"type"}; -this.def["real_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:104,type:"type"}; -this.def["time_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:105,type:"type"}; -this.def["boolean_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:106,type:"type"}; -this.def["int_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:107,type:"type"}; -this.def["uint_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:108,type:"type"}; -this.def["ulong_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:109,type:"type"}; -this.def["ulonglong_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:110,type:"type"}; -this.def["char_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:111,type:"type"}; -this.def["uchar_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:112,type:"type"}; -this.def["byte_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:113,type:"type"}; -this.def["pointer_T"] = {file: "../../slprj/ert/_sharedutils/html/rtwtypes_h.html",line:136,type:"type"}; -this.def["IOUnit_T"] = {file: "CodeInstrTgtAppSvc_h.html",line:11,type:"type"}; -this.def["CodeInstrTgtAppSvc.h:CODEINSTRTGTAPPSVC_ERROR"] = {file: "CodeInstrTgtAppSvc_h.html",line:17,type:"var"}; -this.def["CodeInstrTgtAppSvc.h:CODEINSTRTGTAPPSVC_SUCCESS"] = {file: "CodeInstrTgtAppSvc_h.html",line:18,type:"var"}; -this.def["IOUnit_T"] = {file: "CoderAssumpTgtAppSvc_CInterface_h.html",line:10,type:"type"}; -this.def["CoderAssumpTgtAppSvc_CInterface.h:CODERASSUMPTGTAPPSVC_ERROR"] = {file: "CoderAssumpTgtAppSvc_CInterface_h.html",line:17,type:"var"}; -this.def["CoderAssumpTgtAppSvc_CInterface.h:CODERASSUMPTGTAPPSVC_SUCCESS"] = {file: "CoderAssumpTgtAppSvc_CInterface_h.html",line:18,type:"var"}; -this.def["targetIOFd_T"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:49,type:"type"}; -this.def["XIL_COMMAND_TYPE_ENUM"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:67,type:"type"}; -this.def["FCC_Sys_New_harness_sbs.c:growTargetIOFd"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:74,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:closeAndFreeTargetIOFd"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:88,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:recvData"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:112,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:sendData"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:132,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:commandDispatch"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:147,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:commandResponse"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:166,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:copyIOData"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:200,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:copyStringIOData"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:208,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:codeInstrServiceData"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:222,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:callStopHookAndFreeSFcnMemory"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:246,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:processResponseError"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:344,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:processResponsePrintf"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:362,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:processResponseFopen"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:421,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:processResponseFprintf"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:503,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:processResponseSignalRaised"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:587,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:processErrorAndTargetIOResponseCases"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:607,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:getBusElementDimension"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:650,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:processParams"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:667,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:startAndSetupApplication"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:796,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:sendInitializeCommand"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:1199,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlCheckParameters"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:1396,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlInitializeSizes"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:1402,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlSetInputPortSampleTime"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:1620,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlSetOutputPortSampleTime"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:1631,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlInitializeSampleTimes"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:1639,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlSetupRuntimeResources"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:1655,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlSimStatusChange"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:1777,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlStart"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:1923,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:XILoutputTID01"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:1964,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:XILoutputTID02"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:2205,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlProcessParameters"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:2374,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlInitializeConditions"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:2388,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlSetWorkWidths"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:2411,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlOutputs"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:2417,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlUpdate"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:2439,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlTerminate"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:2445,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlCleanupRuntimeResources"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:2646,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlEnable"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:2686,type:"fcn"}; -this.def["FCC_Sys_New_harness_sbs.c:mdlDisable"] = {file: "FCC_Sys_New_harness_sbs_c.html",line:2706,type:"fcn"}; -this.def["IOUnit_T"] = {file: "XILTgtAppSvc_h.html",line:11,type:"type"}; -this.def["XILTgtAppSvc.h:XILTGTAPPSVC_ERROR"] = {file: "XILTgtAppSvc_h.html",line:17,type:"var"}; -this.def["XILTgtAppSvc.h:XILTGTAPPSVC_SUCCESS"] = {file: "XILTgtAppSvc_h.html",line:18,type:"var"}; -this.def["XILCommandResponseType"] = {file: "XILTgtAppSvc_h.html",line:23,type:"type"}; -this.def["codeinstr_data_stream.c:pBuffer"] = {file: "codeinstr_data_stream_c.html",line:20,type:"var"}; -this.def["codeinstr_data_stream.c:codeInstrWriteBuffer"] = {file: "codeinstr_data_stream_c.html",line:21,type:"var"}; -this.def["codeinstr_data_stream.c:codeInstrWriteDataPtr"] = {file: "codeinstr_data_stream_c.html",line:22,type:"var"}; -this.def["codeinstr_data_stream.c:codeInstrWriteDataAvail"] = {file: "codeinstr_data_stream_c.html",line:23,type:"var"}; -this.def["codeinstr_data_stream.c:commandComplete"] = {file: "codeinstr_data_stream_c.html",line:24,type:"var"}; -this.def["codeinstr_data_stream.c:resetCodeInstrWriteBuffer"] = {file: "codeinstr_data_stream_c.html",line:27,type:"fcn"}; -this.def["codeInstrInit"] = {file: "codeinstr_data_stream_c.html",line:48,type:"fcn"}; -this.def["codeInstrTerminate"] = {file: "codeinstr_data_stream_c.html",line:58,type:"fcn"}; -this.def["codeinstr_data_stream.c:sendWriteBuffer"] = {file: "codeinstr_data_stream_c.html",line:63,type:"fcn"}; -this.def["codeInstrWriteData"] = {file: "codeinstr_data_stream_c.html",line:78,type:"fcn"}; -this.def["codeInstrDataFlush"] = {file: "codeinstr_data_stream_c.html",line:106,type:"fcn"}; -this.def["codeinstr_rtiostream.c:CODE_INSTR_TX_BUFFER_MEMUNIT_SIZE"] = {file: "codeinstr_rtiostream_c.html",line:8,type:"var"}; -this.def["PAYLOAD_IDX"] = {file: "codeinstr_rtiostream_c.html",line:38,type:"var"}; -this.def["coder_assumptions_app.c:pwsEnabled"] = {file: "coder_assumptions_app_c.html",line:46,type:"var"}; -this.def["coder_assumptions_app.c:sendResult"] = {file: "coder_assumptions_app_c.html",line:49,type:"fcn"}; -this.def["coder_assumptions_app.c:transmitMemUnitBytes"] = {file: "coder_assumptions_app_c.html",line:81,type:"fcn"}; -this.def["coder_assumptions_app.c:sendPWS"] = {file: "coder_assumptions_app_c.html",line:96,type:"fcn"}; -this.def["coder_assumptions_app.c:sendHWImpl1"] = {file: "coder_assumptions_app_c.html",line:132,type:"fcn"}; -this.def["coder_assumptions_app.c:sendHWImpl2"] = {file: "coder_assumptions_app_c.html",line:177,type:"fcn"}; -this.def["coder_assumptions_app.c:sendHWImpl3"] = {file: "coder_assumptions_app_c.html",line:222,type:"fcn"}; -this.def["coder_assumptions_app.c:sendHWImpl4"] = {file: "coder_assumptions_app_c.html",line:261,type:"fcn"}; -this.def["coder_assumptions_app.c:sendHardwareChecks"] = {file: "coder_assumptions_app_c.html",line:299,type:"fcn"}; -this.def["coder_assumptions_app.c:runChecks"] = {file: "coder_assumptions_app_c.html",line:335,type:"fcn"}; -this.def["coderAssumptionsRun"] = {file: "coder_assumptions_app_c.html",line:376,type:"fcn"}; -this.def["coder_assumptions_data_stream.c:pBuffer"] = {file: "coder_assumptions_data_stream_c.html",line:14,type:"var"}; -this.def["coder_assumptions_data_stream.c:coderAssumptionsWriteDataPtr"] = {file: "coder_assumptions_data_stream_c.html",line:15,type:"var"}; -this.def["coder_assumptions_data_stream.c:coderAssumptionsWriteDataAvail"] = {file: "coder_assumptions_data_stream_c.html",line:16,type:"var"}; -this.def["coderAssumptionsWriteData"] = {file: "coder_assumptions_data_stream_c.html",line:18,type:"fcn"}; -this.def["resetCoderAssumptionsWriteBuffer"] = {file: "coder_assumptions_data_stream_c.html",line:40,type:"fcn"}; -this.def["coderAssumptionsSendWriteBuffer"] = {file: "coder_assumptions_data_stream_c.html",line:59,type:"fcn"}; -this.def["coderAssumptionsInit"] = {file: "coder_assumptions_data_stream_c.html",line:73,type:"fcn"}; -this.def["coderAssumptionsTerminate"] = {file: "coder_assumptions_data_stream_c.html",line:83,type:"fcn"}; -this.def["coder_assumptions_rtiostream.c:CA_TX_BUFFER_MEMUNIT_SIZE"] = {file: "coder_assumptions_rtiostream_c.html",line:8,type:"var"}; -this.def["PAYLOAD_IDX"] = {file: "coder_assumptions_rtiostream_c.html",line:38,type:"var"}; -this.def["CA_EndianessValue"] = {file: "coder_assumptions_shared_enums_h.html",line:11,type:"type"}; -this.def["CA_IntDivRoundToValue"] = {file: "coder_assumptions_shared_enums_h.html",line:17,type:"type"}; -this.def["CA_TestResultStatus"] = {file: "coder_assumptions_shared_enums_h.html",line:26,type:"type"}; -this.def["CA_TestResultMsgId"] = {file: "coder_assumptions_shared_enums_h.html",line:33,type:"type"}; -this.def["CODERASSUMPTIONS_COMMAND"] = {file: "coder_assumptions_shared_enums_h.html",line:43,type:"type"}; -this.def["CA_HW_IMPL_RESULT"] = {file: "coder_assumptions_shared_enums_h.html",line:63,type:"type"}; -this.def["CA_PWS_RESULT"] = {file: "coder_assumptions_shared_enums_h.html",line:68,type:"type"}; -this.def["comms_interface.h:COMMS_ERROR"] = {file: "comms_interface_h.html",line:6,type:"var"}; -this.def["comms_interface.h:COMMS_SUCCESS"] = {file: "comms_interface_h.html",line:7,type:"var"}; -this.def["timestamp_x86"] = {file: "host_timer_x86_c.html",line:17,type:"fcn"}; -this.def["uint64_T"] = {file: "host_timer_x86_h.html",line:27,type:"type"}; -this.def["VerbosityLevel"] = {file: "rtiostream_tcpip_c.html",line:150,type:"type"}; -this.def["SOCKET"] = {file: "rtiostream_tcpip_c.html",line:193,type:"type"}; -this.def["send_buffer_t"] = {file: "rtiostream_tcpip_c.html",line:201,type:"type"}; -this.def["send_buffer_t"] = {file: "rtiostream_tcpip_c.html",line:203,type:"type"}; -this.def["send_buffer_t"] = {file: "rtiostream_tcpip_c.html",line:205,type:"type"}; -this.def["rtiostream_socklen_t"] = {file: "rtiostream_tcpip_c.html",line:217,type:"type"}; -this.def["rtiostream_socklen_t"] = {file: "rtiostream_tcpip_c.html",line:219,type:"type"}; -this.def["ServerData"] = {file: "rtiostream_tcpip_c.html",line:228,type:"type"}; -this.def["UDPPacketBuffer"] = {file: "rtiostream_tcpip_c.html",line:235,type:"type"}; -this.def["udpSeqNum_T"] = {file: "rtiostream_tcpip_c.html",line:238,type:"type"}; -this.def["UDPData"] = {file: "rtiostream_tcpip_c.html",line:254,type:"type"}; -this.def["CommsProtocol"] = {file: "rtiostream_tcpip_c.html",line:257,type:"type"}; -this.def["ConnectionData"] = {file: "rtiostream_tcpip_c.html",line:292,type:"type"}; -this.def["rtiostream_tcpip.c:MAX_NUM_CONNECTIONS"] = {file: "rtiostream_tcpip_c.html",line:309,type:"var"}; -this.def["rtiostream_tcpip.c:initConnectionData"] = {file: "rtiostream_tcpip_c.html",line:406,type:"fcn"}; -this.def["rtiostream_tcpip.c:getConnectionData"] = {file: "rtiostream_tcpip_c.html",line:562,type:"fcn"}; -this.def["rtiostream_tcpip.c:getConnectionID"] = {file: "rtiostream_tcpip_c.html",line:581,type:"fcn"}; -this.def["rtiostream_tcpip.c:freeConnectionData"] = {file: "rtiostream_tcpip_c.html",line:604,type:"fcn"}; -this.def["rtiostream_tcpip.c:createUDPPacketBuffer"] = {file: "rtiostream_tcpip_c.html",line:629,type:"fcn"}; -this.def["rtiostream_tcpip.c:freeUDPPacketBuffer"] = {file: "rtiostream_tcpip_c.html",line:653,type:"fcn"}; -this.def["rtiostream_tcpip.c:resetUDPPacketBuffer"] = {file: "rtiostream_tcpip_c.html",line:668,type:"fcn"}; -this.def["rtiostream_tcpip.c:socketDataPending"] = {file: "rtiostream_tcpip_c.html",line:680,type:"fcn"}; -this.def["rtiostream_tcpip.c:initialUDPServerRecvfrom"] = {file: "rtiostream_tcpip_c.html",line:807,type:"fcn"}; -this.def["rtiostream_tcpip.c:processUDPRecvSeqNum"] = {file: "rtiostream_tcpip_c.html",line:844,type:"fcn"}; -this.def["rtiostream_tcpip.c:socketDataGet"] = {file: "rtiostream_tcpip_c.html",line:899,type:"fcn"}; -this.def["rtiostream_tcpip.c:socketDataSet"] = {file: "rtiostream_tcpip_c.html",line:967,type:"fcn"}; -this.def["rtiostream_tcpip.c:serverStreamRecv"] = {file: "rtiostream_tcpip_c.html",line:1043,type:"fcn"}; -this.def["rtiostream_tcpip.c:serverOpenSocket"] = {file: "rtiostream_tcpip_c.html",line:1106,type:"fcn"}; -this.def["rtiostream_tcpip.c:serverAcceptSocket"] = {file: "rtiostream_tcpip_c.html",line:1276,type:"fcn"}; -this.def["rtiostream_tcpip.c:nameLookup"] = {file: "rtiostream_tcpip_c.html",line:1358,type:"fcn"}; -this.def["rtiostream_tcpip.c:processArgs"] = {file: "rtiostream_tcpip_c.html",line:1407,type:"fcn"}; -this.def["rtiostream_tcpip.c:clientOpenSocket"] = {file: "rtiostream_tcpip_c.html",line:1595,type:"fcn"}; -this.def["rtiostream_tcpip.c:waitForClientClose"] = {file: "rtiostream_tcpip_c.html",line:1687,type:"fcn"}; -this.def["rtIOStreamOpen"] = {file: "rtiostream_tcpip_c.html",line:1711,type:"fcn"}; -this.def["rtIOStreamSend"] = {file: "rtiostream_tcpip_c.html",line:1851,type:"fcn"}; -this.def["rtIOStreamRecv"] = {file: "rtiostream_tcpip_c.html",line:1910,type:"fcn"}; -this.def["rtIOStreamClose"] = {file: "rtiostream_tcpip_c.html",line:1968,type:"fcn"}; -this.def["IOUnit_T"] = {file: "rtiostream_utils_c.html",line:24,type:"type"}; -this.def["IOUnit_T"] = {file: "rtiostream_utils_c.html",line:32,type:"type"}; -this.def["IOUnit_T"] = {file: "rtiostream_utils_c.html",line:35,type:"type"}; -this.def["rtIOStreamBlockingSend"] = {file: "rtiostream_utils_c.html",line:40,type:"fcn"}; -this.def["rtIOStreamBlockingRecv"] = {file: "rtiostream_utils_c.html",line:72,type:"fcn"}; -this.def["main"] = {file: "sil_main_c.html",line:11,type:"fcn"}; -this.def["TARGET_IO_ERROR_ID"] = {file: "target_io_c.html",line:36,type:"type"}; -this.def["target_io.c:TARGET_IO_BUFFER_SIZE"] = {file: "target_io_c.html",line:38,type:"var"}; -this.def["target_io.c:TARGET_IO_BUFFER_SIZE"] = {file: "target_io_c.html",line:40,type:"var"}; -this.def["target_io.c:fid"] = {file: "target_io_c.html",line:44,type:"var"}; -this.def["targetWriteDataWithErrorCheck"] = {file: "target_io_c.html",line:52,type:"fcn"}; -this.def["target_io.c:targetWriteDataWithCharToMemUnitWidening"] = {file: "target_io_c.html",line:61,type:"fcn"}; -this.def["targetPrintf"] = {file: "target_io_c.html",line:75,type:"fcn"}; -this.def["targetFopen"] = {file: "target_io_c.html",line:123,type:"fcn"}; -this.def["targetFprintf"] = {file: "target_io_c.html",line:168,type:"fcn"}; -this.def["xil_data_stream.c:pBuffer"] = {file: "xil_data_stream_c.html",line:25,type:"var"}; -this.def["xil_data_stream.c:xilWriteBuffer"] = {file: "xil_data_stream_c.html",line:26,type:"var"}; -this.def["xil_data_stream.c:xilWriteDataPtr"] = {file: "xil_data_stream_c.html",line:27,type:"var"}; -this.def["xil_data_stream.c:xilWriteDataAvail"] = {file: "xil_data_stream_c.html",line:28,type:"var"}; -this.def["xil_data_stream.c:commandResponseType"] = {file: "xil_data_stream_c.html",line:29,type:"var"}; -this.def["resetXILWriteBuffer"] = {file: "xil_data_stream_c.html",line:32,type:"fcn"}; -this.def["silpilInit"] = {file: "xil_data_stream_c.html",line:53,type:"fcn"}; -this.def["xil_data_stream.c:sendWriteBuffer"] = {file: "xil_data_stream_c.html",line:65,type:"fcn"}; -this.def["xilWriteData"] = {file: "xil_data_stream_c.html",line:79,type:"fcn"}; -this.def["xilReadData"] = {file: "xil_data_stream_c.html",line:106,type:"fcn"}; -this.def["xilDataFlush"] = {file: "xil_data_stream_c.html",line:178,type:"fcn"}; -this.def["silpilTerminate"] = {file: "xil_data_stream_c.html",line:196,type:"fcn"}; -this.def["xil_instrumentation.c:xsd_xil_timer_corrected"] = {file: "xil_instrumentation_c.html",line:30,type:"var"}; -this.def["xil_instrumentation.c:xsd_xil_timer_unfreeze"] = {file: "xil_instrumentation_c.html",line:31,type:"var"}; -this.def["xil_instrumentation.c:xsd_xil_freezing_busy"] = {file: "xil_instrumentation_c.html",line:32,type:"var"}; -this.def["xilUploadProfilingData"] = {file: "xil_instrumentation_c.html",line:33,type:"fcn"}; -this.def["xilProfilingTimerFreezeInternal"] = {file: "xil_instrumentation_c.html",line:40,type:"fcn"}; -this.def["xilProfilingTimerUnFreezeInternal"] = {file: "xil_instrumentation_c.html",line:51,type:"fcn"}; -this.def["xilProfilingTimerFreeze"] = {file: "xil_instrumentation_c.html",line:56,type:"fcn"}; -this.def["xilProfilingTimerUnFreeze"] = {file: "xil_instrumentation_c.html",line:63,type:"fcn"}; -this.def["taskTimeStart"] = {file: "xil_instrumentation_c.html",line:70,type:"fcn"}; -this.def["taskTimeEnd"] = {file: "xil_instrumentation_c.html",line:77,type:"fcn"}; -this.def["profileStart"] = {file: "xil_instrumentation_c.html",line:86,type:"fcn"}; -this.def["profileEnd"] = {file: "xil_instrumentation_c.html",line:95,type:"fcn"}; -this.def["profileStart_F_02840e440c240744"] = {file: "xil_instrumentation_c.html",line:106,type:"fcn"}; -this.def["profileEnd_FCC_Sys_New_harness"] = {file: "xil_instrumentation_c.html",line:111,type:"fcn"}; -this.def["taskTimeStart_0c6401e40e940cc4"] = {file: "xil_instrumentation_c.html",line:117,type:"fcn"}; -this.def["taskTimeEnd_FCC_Sys_New_harness"] = {file: "xil_instrumentation_c.html",line:122,type:"fcn"}; -this.def["xil_interface.c:xil_fcnid0_task1_y"] = {file: "xil_interface_c.html",line:26,type:"var"}; -this.def["xil_interface.c:xil_fcnid0_init_y"] = {file: "xil_interface_c.html",line:27,type:"var"}; -this.def["xilProcessParams"] = {file: "xil_interface_c.html",line:30,type:"fcn"}; -this.def["xilUploadCodeInstrData"] = {file: "xil_interface_c.html",line:40,type:"fcn"}; -this.def["xilGetDataTypeInfo"] = {file: "xil_interface_c.html",line:60,type:"fcn"}; -this.def["xilInitialize"] = {file: "xil_interface_c.html",line:65,type:"fcn"}; -this.def["xilPause"] = {file: "xil_interface_c.html",line:82,type:"fcn"}; -this.def["xilSystemInitialize"] = {file: "xil_interface_c.html",line:94,type:"fcn"}; -this.def["xilSystemReset"] = {file: "xil_interface_c.html",line:108,type:"fcn"}; -this.def["xilGetHostToTargetData"] = {file: "xil_interface_c.html",line:122,type:"fcn"}; -this.def["xilGetTargetToHostPreData"] = {file: "xil_interface_c.html",line:141,type:"fcn"}; -this.def["xilOutput"] = {file: "xil_interface_c.html",line:160,type:"fcn"}; -this.def["xilUpdate"] = {file: "xil_interface_c.html",line:187,type:"fcn"}; -this.def["xilGetTargetToHostData"] = {file: "xil_interface_c.html",line:199,type:"fcn"}; -this.def["xilTerminate"] = {file: "xil_interface_c.html",line:325,type:"fcn"}; -this.def["xilEnable"] = {file: "xil_interface_c.html",line:336,type:"fcn"}; -this.def["xilDisable"] = {file: "xil_interface_c.html",line:349,type:"fcn"}; -this.def["XIL_INTERFACE_ERROR_CODE"] = {file: "xil_interface_common_h.html",line:20,type:"type"}; -this.def["XIL_COMMAND_TYPE_ENUM"] = {file: "xil_interface_common_h.html",line:35,type:"type"}; -this.def["XIL_RESPONSE_ID"] = {file: "xil_interface_common_h.html",line:47,type:"type"}; -this.def["XIL_HANDLE_RECV_STATE"] = {file: "xil_interface_common_h.html",line:58,type:"type"}; -this.def["XIL_PROCESS_MSG_CONTEXT_SWITCH"] = {file: "xil_interface_common_h.html",line:68,type:"type"}; -this.def["XILIOData"] = {file: "xil_interface_common_h.html",line:75,type:"type"}; -this.def["xil_interface_lib.c:xilIODataPtr"] = {file: "xil_interface_lib_c.html",line:34,type:"var"}; -this.def["xil_interface_lib.c:isShutdownCommand"] = {file: "xil_interface_lib_c.html",line:35,type:"var"}; -this.def["xil_interface_lib.c:processMsgSuccess"] = {file: "xil_interface_lib_c.html",line:36,type:"var"}; -this.def["xil_interface_lib.c:cc"] = {file: "xil_interface_lib_c.html",line:39,type:"var"}; -this.def["xil_interface_lib.c:restoreProcessMsgContext"] = {file: "xil_interface_lib_c.html",line:42,type:"fcn"}; -this.def["xil_interface_lib.c:getNextXILIOData"] = {file: "xil_interface_lib_c.html",line:49,type:"fcn"}; -this.def["xil_interface_lib.c:processHostToTargetData"] = {file: "xil_interface_lib_c.html",line:56,type:"fcn"}; -this.def["xil_interface_lib.c:processTargetToHostData"] = {file: "xil_interface_lib_c.html",line:102,type:"fcn"}; -this.def["xil_interface_lib.c:processTargetToHostPreData"] = {file: "xil_interface_lib_c.html",line:129,type:"fcn"}; -this.def["xil_interface_lib.c:finalizeCommandResponse"] = {file: "xil_interface_lib_c.html",line:156,type:"fcn"}; -this.def["xil_interface_lib.c:computeNextState"] = {file: "xil_interface_lib_c.html",line:188,type:"fcn"}; -this.def["xil_interface_lib.c:xilReadCommandCode"] = {file: "xil_interface_lib_c.html",line:344,type:"fcn"}; -this.def["xilProcessMsg"] = {file: "xil_interface_lib_c.html",line:371,type:"fcn"}; -this.def["xilRun"] = {file: "xil_interface_lib_c.html",line:619,type:"fcn"}; -this.def["xilCommandDispatchAndResponse"] = {file: "xil_interface_lib_c.html",line:639,type:"fcn"}; -this.def["xilGetCurrentProcessMsgContext"] = {file: "xil_interface_lib_c.html",line:688,type:"fcn"}; -this.def["swapBytes"] = {file: "xil_interface_lib_c.html",line:696,type:"fcn"}; -this.def["xil_interface_lib.c:xilReadDataAndSwapBytes"] = {file: "xil_interface_lib_c.html",line:711,type:"fcn"}; -this.def["XIL_IO_TYPE"] = {file: "xil_interface_lib_private_h.html",line:15,type:"type"}; -this.def["XIL_PROCESSDATA_ERROR_CODE"] = {file: "xil_interface_lib_private_h.html",line:20,type:"type"}; -this.def["XIL_RESPONSE_ERROR_ID"] = {file: "xil_interface_lib_private_h.html",line:34,type:"type"}; -this.def["xil_rtiostream.c:XIL_TX_BUFFER_MEMUNIT_SIZE"] = {file: "xil_rtiostream_c.html",line:8,type:"var"}; -this.def["PAYLOAD_IDX"] = {file: "xil_rtiostream_c.html",line:38,type:"var"}; -this.def["XIL_SIGNAL_RAISED"] = {file: "xil_services_c.html",line:41,type:"type"}; -this.def["xil_services.c:XILSigHandler"] = {file: "xil_services_c.html",line:43,type:"fcn"}; -this.def["xilInit"] = {file: "xil_services_c.html",line:100,type:"fcn"}; -this.def["xilTerminateComms"] = {file: "xil_services_c.html",line:141,type:"fcn"}; -this.def["xilcomms_rtiostream.c:streamID"] = {file: "xilcomms_rtiostream_c.html",line:22,type:"var"}; -this.def["xilcomms_rtiostream.c:RTIOSTREAM_RX_BUFFER_SIZE"] = {file: "xilcomms_rtiostream_c.html",line:25,type:"var"}; -this.def["commsInit"] = {file: "xilcomms_rtiostream_c.html",line:29,type:"fcn"}; -this.def["commsTerminate"] = {file: "xilcomms_rtiostream_c.html",line:39,type:"fcn"}; -this.def["commsEnqueueBuffer"] = {file: "xilcomms_rtiostream_c.html",line:48,type:"fcn"}; -this.def["rtiostreamReadMessage"] = {file: "xilcomms_rtiostream_c.html",line:110,type:"fcn"}; -} -CodeDefine.instance = new CodeDefine(); -var testHarnessInfo = {OwnerFileName: "", HarnessOwner: "", HarnessName: "", IsTestHarness: "0"}; -var relPathToBuildDir = "../ert_main.c"; -var fileSep = "\\"; -var isPC = true; -function Html2SrcLink() { - this.html2SrcPath = new Array; - this.html2Root = new Array; - this.html2SrcPath["ert_main_c.html"] = "../ert_main.c"; - this.html2Root["ert_main_c.html"] = "ert_main_c.html"; - this.html2SrcPath["FCC_Sys_New_harness_c.html"] = "../FCC_Sys_New_harness.c"; - this.html2Root["FCC_Sys_New_harness_c.html"] = "FCC_Sys_New_harness_c.html"; - this.html2SrcPath["FCC_Sys_New_harness_h.html"] = "../FCC_Sys_New_harness.h"; - this.html2Root["FCC_Sys_New_harness_h.html"] = "FCC_Sys_New_harness_h.html"; - this.html2SrcPath["AHRS_Bus_h.html"] = "../AHRS_Bus.h"; - this.html2Root["AHRS_Bus_h.html"] = "../../slprj/ert/_sharedutils/html/AHRS_Bus_h.html"; - this.html2SrcPath["model_reference_types_h.html"] = "../model_reference_types.h"; - this.html2Root["model_reference_types_h.html"] = "../../slprj/ert/_sharedutils/html/model_reference_types_h.html"; - this.html2SrcPath["rtwtypes_h.html"] = "../rtwtypes.h"; - this.html2Root["rtwtypes_h.html"] = "../../slprj/ert/_sharedutils/html/rtwtypes_h.html"; - this.html2SrcPath["CodeInstrTgtAppSvc_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/extern/include/coder/connectivity/CodeInstrTgtAppSvc/CodeInstrTgtAppSvc.h"; - this.html2Root["CodeInstrTgtAppSvc_h.html"] = "CodeInstrTgtAppSvc_h.html"; - this.html2SrcPath["CodeInstrTgtAppSvc_CInterface_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/extern/include/coder/connectivity/CodeInstrTgtAppSvc/CodeInstrTgtAppSvc_CInterface.h"; - this.html2Root["CodeInstrTgtAppSvc_CInterface_h.html"] = "CodeInstrTgtAppSvc_CInterface_h.html"; - this.html2SrcPath["CoderAssumpTgtAppSvc_CInterface_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/extern/include/coder/connectivity/CoderAssumpTgtAppSvc/CoderAssumpTgtAppSvc_CInterface.h"; - this.html2Root["CoderAssumpTgtAppSvc_CInterface_h.html"] = "CoderAssumpTgtAppSvc_CInterface_h.html"; - this.html2SrcPath["FCC_Sys_New_harness_sbs_c.html"] = "../sil/FCC_Sys_New_harness_sbs.c"; - this.html2Root["FCC_Sys_New_harness_sbs_c.html"] = "FCC_Sys_New_harness_sbs_c.html"; - this.html2SrcPath["XILTgtAppSvc_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/extern/include/coder/connectivity/XILTgtAppSvc/XILTgtAppSvc.h"; - this.html2Root["XILTgtAppSvc_h.html"] = "XILTgtAppSvc_h.html"; - this.html2SrcPath["XILTgtAppSvc_CInterface_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/extern/include/coder/connectivity/XILTgtAppSvc/XILTgtAppSvc_CInterface.h"; - this.html2Root["XILTgtAppSvc_CInterface_h.html"] = "XILTgtAppSvc_CInterface_h.html"; - this.html2SrcPath["codeinstr_data_stream_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/codeinstr_data_stream.c"; - this.html2Root["codeinstr_data_stream_c.html"] = "codeinstr_data_stream_c.html"; - this.html2SrcPath["codeinstr_data_stream_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/codeinstr_data_stream.h"; - this.html2Root["codeinstr_data_stream_h.html"] = "codeinstr_data_stream_h.html"; - this.html2SrcPath["codeinstr_rtiostream_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/codeinstr_rtiostream.c"; - this.html2Root["codeinstr_rtiostream_c.html"] = "codeinstr_rtiostream_c.html"; - this.html2SrcPath["coder_assumptions_app_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/coder_assumptions_app.c"; - this.html2Root["coder_assumptions_app_c.html"] = "coder_assumptions_app_c.html"; - this.html2SrcPath["coder_assumptions_app_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/coder_assumptions_app.h"; - this.html2Root["coder_assumptions_app_h.html"] = "coder_assumptions_app_h.html"; - this.html2SrcPath["coder_assumptions_data_stream_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/coder_assumptions_data_stream.c"; - this.html2Root["coder_assumptions_data_stream_c.html"] = "coder_assumptions_data_stream_c.html"; - this.html2SrcPath["coder_assumptions_data_stream_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/coder_assumptions_data_stream.h"; - this.html2Root["coder_assumptions_data_stream_h.html"] = "coder_assumptions_data_stream_h.html"; - this.html2SrcPath["coder_assumptions_rtiostream_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/coder_assumptions_rtiostream.c"; - this.html2Root["coder_assumptions_rtiostream_c.html"] = "coder_assumptions_rtiostream_c.html"; - this.html2SrcPath["coder_assumptions_shared_enums_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/coder_assumptions_shared_enums.h"; - this.html2Root["coder_assumptions_shared_enums_h.html"] = "coder_assumptions_shared_enums_h.html"; - this.html2SrcPath["comms_interface_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/comms_interface.h"; - this.html2Root["comms_interface_h.html"] = "comms_interface_h.html"; - this.html2SrcPath["host_timer_x86_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/coder/profile/src/host_timer_x86.c"; - this.html2Root["host_timer_x86_c.html"] = "host_timer_x86_c.html"; - this.html2SrcPath["host_timer_x86_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/coder/profile/src/host_timer_x86.h"; - this.html2Root["host_timer_x86_h.html"] = "host_timer_x86_h.html"; - this.html2SrcPath["rtiostream_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/coder/rtiostream/src/rtiostream.h"; - this.html2Root["rtiostream_h.html"] = "rtiostream_h.html"; - this.html2SrcPath["rtiostream_tcpip_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/coder/rtiostream/src/rtiostreamtcpip/rtiostream_tcpip.c"; - this.html2Root["rtiostream_tcpip_c.html"] = "rtiostream_tcpip_c.html"; - this.html2SrcPath["rtiostream_utils_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/coder/rtiostream/src/utils/rtiostream_utils.c"; - this.html2Root["rtiostream_utils_c.html"] = "rtiostream_utils_c.html"; - this.html2SrcPath["rtiostream_utils_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/coder/rtiostream/src/utils/rtiostream_utils.h"; - this.html2Root["rtiostream_utils_h.html"] = "rtiostream_utils_h.html"; - this.html2SrcPath["rx_tx_buffer_sizes_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/rx_tx_buffer_sizes.h"; - this.html2Root["rx_tx_buffer_sizes_h.html"] = "rx_tx_buffer_sizes_h.html"; - this.html2SrcPath["sil_main_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/sil_main.c"; - this.html2Root["sil_main_c.html"] = "sil_main_c.html"; - this.html2SrcPath["target_io_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/target_io.c"; - this.html2Root["target_io_c.html"] = "target_io_c.html"; - this.html2SrcPath["target_io_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/target_io.h"; - this.html2Root["target_io_h.html"] = "target_io_h.html"; - this.html2SrcPath["xil_common_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/xil_common.h"; - this.html2Root["xil_common_h.html"] = "xil_common_h.html"; - this.html2SrcPath["xil_data_stream_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/xil_data_stream.c"; - this.html2Root["xil_data_stream_c.html"] = "xil_data_stream_c.html"; - this.html2SrcPath["xil_data_stream_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/xil_data_stream.h"; - this.html2Root["xil_data_stream_h.html"] = "xil_data_stream_h.html"; - this.html2SrcPath["xil_instrumentation_c.html"] = "../sil/xil_instrumentation.c"; - this.html2Root["xil_instrumentation_c.html"] = "xil_instrumentation_c.html"; - this.html2SrcPath["xil_instrumentation_h.html"] = "../sil/xil_instrumentation.h"; - this.html2Root["xil_instrumentation_h.html"] = "xil_instrumentation_h.html"; - this.html2SrcPath["xil_interface_c.html"] = "../sil/xil_interface.c"; - this.html2Root["xil_interface_c.html"] = "xil_interface_c.html"; - this.html2SrcPath["xil_interface_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/xil_interface.h"; - this.html2Root["xil_interface_h.html"] = "xil_interface_h.html"; - this.html2SrcPath["xil_interface_common_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/xil_interface_common.h"; - this.html2Root["xil_interface_common_h.html"] = "xil_interface_common_h.html"; - this.html2SrcPath["xil_interface_lib_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/xil_interface_lib.c"; - this.html2Root["xil_interface_lib_c.html"] = "xil_interface_lib_c.html"; - this.html2SrcPath["xil_interface_lib_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/xil_interface_lib.h"; - this.html2Root["xil_interface_lib_h.html"] = "xil_interface_lib_h.html"; - this.html2SrcPath["xil_interface_lib_private_h.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/xil_interface_lib_private.h"; - this.html2Root["xil_interface_lib_private_h.html"] = "xil_interface_lib_private_h.html"; - this.html2SrcPath["xil_rtiostream_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/xil_rtiostream.c"; - this.html2Root["xil_rtiostream_c.html"] = "xil_rtiostream_c.html"; - this.html2SrcPath["xil_services_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/xil_services.c"; - this.html2Root["xil_services_c.html"] = "xil_services_c.html"; - this.html2SrcPath["xilcomms_rtiostream_c.html"] = "../../../../../../../../Program Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c/xilcomms_rtiostream.c"; - this.html2Root["xilcomms_rtiostream_c.html"] = "xilcomms_rtiostream_c.html"; - this.getLink2Src = function (htmlFileName) { - if (this.html2SrcPath[htmlFileName]) - return this.html2SrcPath[htmlFileName]; - else - return null; - } - this.getLinkFromRoot = function (htmlFileName) { - if (this.html2Root[htmlFileName]) - return this.html2Root[htmlFileName]; - else - return null; - } -} -Html2SrcLink.instance = new Html2SrcLink(); -var fileList = [ -"ert_main_c.html","FCC_Sys_New_harness_c.html","FCC_Sys_New_harness_h.html","AHRS_Bus_h.html","model_reference_types_h.html","rtwtypes_h.html","CodeInstrTgtAppSvc_h.html","CodeInstrTgtAppSvc_CInterface_h.html","CoderAssumpTgtAppSvc_CInterface_h.html","FCC_Sys_New_harness_sbs_c.html","XILTgtAppSvc_h.html","XILTgtAppSvc_CInterface_h.html","codeinstr_data_stream_c.html","codeinstr_data_stream_h.html","codeinstr_rtiostream_c.html","coder_assumptions_app_c.html","coder_assumptions_app_h.html","coder_assumptions_data_stream_c.html","coder_assumptions_data_stream_h.html","coder_assumptions_rtiostream_c.html","coder_assumptions_shared_enums_h.html","comms_interface_h.html","host_timer_x86_c.html","host_timer_x86_h.html","rtiostream_h.html","rtiostream_tcpip_c.html","rtiostream_utils_c.html","rtiostream_utils_h.html","rx_tx_buffer_sizes_h.html","sil_main_c.html","target_io_c.html","target_io_h.html","xil_common_h.html","xil_data_stream_c.html","xil_data_stream_h.html","xil_instrumentation_c.html","xil_instrumentation_h.html","xil_interface_c.html","xil_interface_h.html","xil_interface_common_h.html","xil_interface_lib_c.html","xil_interface_lib_h.html","xil_interface_lib_private_h.html","xil_rtiostream_c.html","xil_services_c.html","xilcomms_rtiostream_c.html"]; diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/ert_main_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/ert_main_c.html deleted file mode 100644 index a07c5d1e7a3337f54188256ef0e086732066373f..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/ert_main_c.html +++ /dev/null @@ -1,342 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/*
2 * Academic License - for use in teaching, academic research, and meeting
3 * course requirements at degree granting institutions only. Not for
4 * government, commercial, or other organizational use.
5 *
6 * File: ert_main.c
7 *
8 * Code generated for Simulink model 'FCC_Sys_New_harness'.
9 *
10 * Model version : 1.91
11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
12 * C/C++ source code generated on : Thu Jul 16 18:51:26 2020
13 *
14 * Target selection: ert.tlc
15 * Embedded hardware selection: Intel->x86-32 (Windows32)
16 * Code generation objectives:
17 * 1. Execution efficiency
18 * 2. RAM efficiency
19 * Validation result: Not run
20 */
21
22#include <stddef.h>
23#include <stdio.h> /* This ert_main.c example uses printf/fflush */
24#include "FCC_Sys_New_harness.h" /* Model's header file */
25#include "rtwtypes.h"
26#include "model_reference_types.h"
27
28/*
29 * Associating rt_OneStep with a real-time clock or interrupt service routine
30 * is what makes the generated code "real-time". The function rt_OneStep is
31 * always associated with the base rate of the model. Subrates are managed
32 * by the base rate from inside the generated code. Enabling/disabling
33 * interrupts and floating point context switches are target specific. This
34 * example code indicates where these should take place relative to executing
35 * the generated code step function. Overrun behavior should be tailored to
36 * your application needs. This example simply sets an error status in the
37 * real-time model and returns from rt_OneStep.
38 */
39void rt_OneStep(void);
40void rt_OneStep(void)
41{
42 static boolean_T OverrunFlags[3] = { 0, 0, 0 };
43
44 static boolean_T eventFlags[3] = { 0, 0, 0 };/* Model has 3 rates */
45
46 static int_T taskCounter[3] = { 0, 0, 0 };
47
48 /* Disable interrupts here */
49
50 /* Check base rate for overrun */
51 if (OverrunFlags[0]) {
52 rtmSetErrorStatus(FCC_Sys_New_harness_M, "Overrun");
53 return;
54 }
55
56 OverrunFlags[0] = true;
57
58 /* Save FPU context here (if necessary) */
59 /* Re-enable timer or interrupt here */
60
61 /*
62 * For a bare-board target (i.e., no operating system), the
63 * following code checks whether any subrate overruns,
64 * and also sets the rates that need to run this time step.
65 */
66 if (taskCounter[2] == 0) {
67 if (eventFlags[2]) {
68 OverrunFlags[0] = false;
69 OverrunFlags[2] = true;
70
71 /* Sampling too fast */
72 rtmSetErrorStatus(FCC_Sys_New_harness_M, "Overrun");
73 return;
74 }
75
76 eventFlags[2] = true;
77 }
78
79 taskCounter[1]++;
80 if (taskCounter[1] == 1) {
81 taskCounter[1]= 0;
82 }
83
84 taskCounter[2]++;
85 if (taskCounter[2] == 10) {
86 taskCounter[2]= 0;
87 }
88
89 /* Set model inputs associated with base rate here */
90
91 /* Step the model for base rate */
92 FCC_Sys_New_harness_step0();
93
94 /* Get model outputs here */
95
96 /* Indicate task for base rate complete */
97 OverrunFlags[0] = false;
98
99 /* If task 1 is running, don't run any lower priority task */
100 if (OverrunFlags[1]) {
101 return;
102 }
103
104 /* Step the model for subrate */
105 if (eventFlags[2]) {
106 OverrunFlags[2] = true;
107
108 /* Set model inputs associated with subrates here */
109
110 /* Step the model for subrate 2 */
111 FCC_Sys_New_harness_step2();
112
113 /* Get model outputs here */
114
115 /* Indicate task complete for subrate */
116 OverrunFlags[2] = false;
117 eventFlags[2] = false;
118 }
119
120 /* Disable interrupts here */
121 /* Restore FPU context here (if necessary) */
122 /* Enable interrupts here */
123}
124
125/*
126 * The example "main" function illustrates what is required by your
127 * application code to initialize, execute, and terminate the generated code.
128 * Attaching rt_OneStep to a real-time clock is target specific. This example
129 * illustrates how you do this relative to initializing the model.
130 */
131int_T main(int_T argc, const char *argv[])
132{
133 /* Unused arguments */
134 (void)(argc);
135 (void)(argv);
136
137 /* Initialize model */
138 FCC_Sys_New_harness_initialize();
139
140 /* Attach rt_OneStep to a timer or interrupt service routine with
141 * period 0.001 seconds (the model's base sample time) here. The
142 * call syntax for rt_OneStep is
143 *
144 * rt_OneStep();
145 */
146 printf("Warning: The simulation will run forever. "
147 "Generated ERT main won't simulate model step behavior. "
148 "To change this behavior select the 'MAT-file logging' option.\n");
149 fflush((NULL));
150 while (rtmGetErrorStatus(FCC_Sys_New_harness_M) == (NULL)) {
151 /* Perform other application tasks here */
152 }
153
154 /* Disable rt_OneStep() here */
155 return 0;
156}
157
158/*
159 * File trailer for generated code.
160 *
161 * [EOF]
162 */
163
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/hilite_warning.png b/src/validation/FCC_Sys_New_harness_ert_rtw/html/hilite_warning.png deleted file mode 100644 index f013f815ae58acfcb9112170c871851d666b820f..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/html/hilite_warning.png and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/histogram_16.png b/src/validation/FCC_Sys_New_harness_ert_rtw/html/histogram_16.png deleted file mode 100644 index 74c0636dabedd30ad52ae91a0e9149ed2dffd506..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/html/histogram_16.png and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/host_timer_x86_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/host_timer_x86_c.html deleted file mode 100644 index 4d955f15f4f03316ed328daea96821ba1bdbf845..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/host_timer_x86_c.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2009-2018 The MathWorks, Inc. */
2
3#include "host_timer_x86.h"
4
5#if defined(__APPLE__)
6#include <mach/mach_time.h>
7#endif
8
9/* Use the rdtsc instruction to access the time stamp counter (all x86
10 * processors). This instruction moves the contents of the 64-bit timer to
11 * e.g. the %eax, %edx registers. For functions returning a 32-bit type,
12 * only the contents of the %eax register are used. For functions returning
13 * a 64-bit type, the content of both %eax and %edx registers is used.
14 */
15
16/* Function returning a 64-bit timer value */
17uint64_T timestamp_x86(void)
18{
19
20#if defined(__GNUC__ )
21# ifndef __x86_64
22# error For gcc, the assembler is valid for only for 64-bit architectures.
23# endif
24 union {
25 uint64_T big;
26 struct {
27 uint32_T lo;
28 uint32_T hi;
29 } small;
30 } ret;
31 __asm__ volatile ("rdtsc"
32 : "=a"(ret.small.lo), "=d"(ret.small.hi) /* Specify registers
33 * that contain the
34 * captured value of the
35 * timestamp counter */
36 );
37 return ret.big;
38
39#elif defined(_MSC_VER)
40
41# if _MSC_VER <= 1200 /* MSVC 6.0 or lower */
42 __asm rdtsc
43# else
44 return (uint64_T) __rdtsc();
45# endif
46
47#elif defined(__LCC64__)
48
49 volatile uint64_T ret = 0;
50
51 _asm("rdtsc");
52 _asm("movl %edx, -4(%rbp)");
53 _asm("movl %eax, -8(%rbp)");
54
55 return ret;
56
57#elif defined(__APPLE__)
58
59 return mach_absolute_time();
60
61#else
62
63# error("Unsupported compiler")
64
65#endif
66
67}
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/host_timer_x86_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/host_timer_x86_h.html deleted file mode 100644 index 46d3b6d82c0e50bd2d65c0979e661c4496628381..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/host_timer_x86_h.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2012 The MathWorks, Inc. */
2
3#ifndef _HOST_TIMER_X86_H_
4#define _HOST_TIMER_X86_H_
5
6#include "rtwtypes.h"
7
8/* rtwtypes.h may not provide a typedef for uint64_T. We must detect this case
9 * and provide the typedef. */
10#if defined(PROFILING_DEFINE_UINT64_TIMER_TYPE) && !defined(MAX_uint64_T)
11# if defined(__x86_64__) || defined(__LP64__)
12/* use long long to support MinGW on Win64
13 * long long is also 64-bit on Linux / Mac */
14# define UINT64_T unsigned long long
15# elif defined(_MSC_VER) || (defined(__BORLANDC__) && __BORLANDC__ >= 0x530) \
16 || (defined(__WATCOMC__) && __WATCOMC__ >= 1100) \
17 || defined(__int64)
18# define UINT64_T unsigned __int64
19# else
20# error There is no 64-bit unsigned type available for this platform.
21# endif
22
23# if defined(__GNUC__) && \
24 ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >=9)))
25 __extension__
26# endif
27 typedef UINT64_T uint64_T;
28#endif
29
30
31
32uint64_T timestamp_x86(void);
33
34#endif /* _HOST_TIMER_X86_H_ */
35
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/inspect.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/inspect.html deleted file mode 100644 index b628c7a9b9bb6b35d1d71511d01fcff40959fe1b..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/inspect.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - -
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/js/coder_app.js b/src/validation/FCC_Sys_New_harness_ert_rtw/html/js/coder_app.js deleted file mode 100644 index 3c34823e1b5445bb6421e4f73479ca3bc4f50299..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/js/coder_app.js +++ /dev/null @@ -1,525 +0,0 @@ -/* Copyright 2013-2018 The MathWorks, Inc. */ -function queryByClassName(className, elem) { - if (!elem) elem = document.body; - if (typeof elem.querySelectorAll === "function") { - return elem.querySelectorAll("."+className); - } else { - return elem.getElementsByClass(className); - } -} - -function nav_token_usage_details(direction) { - var els = queryByClassName("token_usage_details_tabrow"); - var selectedIdx = 0; - var selectedClassName = "selected"; - for (selectedIdx; selectedIdx < els.length; selectedIdx++) { - if (els[selectedIdx].classList.contains(selectedClassName)) { - break; - } - } - var nextIdx = selectedIdx; - if (direction === -1 && selectedIdx > 0) { - nextIdx = selectedIdx-1; - } else if (direction === 1 && selectedIdx < els.length - 1) { - nextIdx = selectedIdx + 1; - } - if (nextIdx !== selectedIdx) { - els[selectedIdx].classList.remove(selectedClassName); - els[nextIdx].classList.add(selectedClassName); - els[nextIdx].scrollIntoView(alignWithTop=false); - } - return false; -} - -function tabrowClicked(event) { -} - -function popupOnload() { - var els = queryByClassName("token_usage_details_tabrow"); - for (var i=0; i" + - top.rtwGetFileName(link2Src) + ""; - var bodyNode = document.body; - bodyNode.insertBefore(link, bodyNode.firstElementChild); - } - top.updateHyperlinks(); - // update fileSelector frame - if (top.fileSelector) { - var o = top.fileSelector.document.getElementById('fileSelector'); - if (o) { - o.value = filename; - } - } - // add links to line numbers - var hasLineFlag = null; - if (top.TraceInfoLineFlag && top.TraceInfoLineFlag.instance) { - hasLineFlag = true; - } else { - hasLineFlag = false; - } - - if(hasLineFlag) { - var lines = queryByClassName("ln", codeElement); - var lineTraceFlag = top.TraceInfoLineFlag.instance.lineTraceFlag; - var lineNo = null; - for (var i=0; i= 0; --i) { - var childNode = trNode.childNodes[i]; - if (childNode.tagName.toUpperCase() === "TD") { - return childNode.childNodes; - } - } - return null; -} - -// see g1225075 -function fixBoxStyleFnHeaderLineWidths() { - // Match strings like "/**********/" which is the top line of - // a box-style function comment header - var reBoxHeader = /\/\*+\//; - - // Match strings like "' */" which is the contents of the text - // element originally generated in the report to pad the width of - // the line. - var rePadding = /'\s*\*\//; - - // All block identifier elements in the report page - blkLineElts = queryByClassName("blk"); - for (var i = 0; i < blkLineElts.length; ++i) { - var origPadding = blkLineElts[i].nextSibling; - if (origPadding.textContent.match(rePadding)) { - var spanElt = findParent(blkLineElts[i], { tagName: "span", className: "ct" }); - if (!spanElt) { - continue; - } - - // The numbered line in the report containing block identifier "i" - var tableRowElt = findParent(spanElt, { tagName: "tr" }); - if (!tableRowElt) { - continue; - } - - // Loop backward through table rows (i.e., report lines) looking - // for the "/***************/" start of the header. When found save - // its pixel width. Not actually the width of the itself but - // the span inside its last . This is will determine the real - // padding that is needed for proper alignment regardless of font - // or CKJ characters. - var targetWidth = 0; - var sanity = Number.MAX_VALUE; - var node = tableRowElt.previousSibling; - while (node && (sanity-- > 0)) { - var lastCellContents = getLastTableCellContents(node); - if (lastCellContents) { - if (lastCellContents.length === 0) { - break; - } - if (lastCellContents[0].textContent.match(reBoxHeader)) { - targetWidth = lastCellContents[0].offsetWidth; - break; - } - } - node = node.previousSibling; - } - - // If applying a new padding (i.e., targetWidth > 0), replace - // the original padding "' */' (a single text element) with - // two text elements and a span in between. The span will be the - // new pixel-accurate padding. - if (targetWidth > 0) { - var singleQuoteNode = document.createTextNode("'"); - var spacerNode = document.createElement('span'); - origPadding.textContent = "*/"; - origPadding.parentNode.insertBefore(spacerNode, origPadding); - origPadding.parentNode.insertBefore(singleQuoteNode, spacerNode); - - var padWidth = targetWidth - spanElt.offsetWidth; - spacerNode.style.display = 'inline-block'; - spacerNode.style.width = String(padWidth) + "px"; - spacerNode.style.height = '1em'; // cursor won't work w/o some height - spacerNode.style.cursor = 'text'; - } - } - } -} - -// the onload function for source file -function srcFileOnload() { - var codeElement = document.getElementById("codeTbl"); - var insertFunction = getInsertFunction(codeElement); - try { - var els = codeElement.getElementsByTagName("tr"); - for (var i = 0; i < els.length; i++) { - registerDelayedOnMouseOver(els[i], lineOnMouseIn, lineOnMouseOut); - } - updateToken(codeElement); - } catch (err) {}; - insertFunction(); - // add code to model hyperlinks for all tokens - var filename = location.pathname.split(/\//); - filename = filename[filename.length-1]; - // highlight the filename in the TOC frame - if (top.rtwreport_contents_frame && top.hiliteByFileName(top.rtwreport_document_frame.document.location.href)) { - // remove the highlights in the TOC frame if filename is hilite successfully - top.removeHiliteTOC(top.rtwreport_contents_frame); - } - - // annotate code with code coverage data - if (typeof rtwannotate === 'function') { - rtwannotate(filename.replace(/.html$/,"_cov.xml")); - } - - fixBoxStyleFnHeaderLineWidths(); - - // highlight token and row - if (top.RTW_TraceInfo.instance && top.RTW_TraceArgs.instance) { - var i; - // find the highlight file name - var fileIdx = top.RTW_TraceArgs.instance.getFileIdx(filename); - var ids=[], rows=[]; - if (typeof fileIdx !== "undefined") { - ids = top.RTW_TraceArgs.instance.getIDs(fileIdx); - rows = top.RTW_TraceArgs.instance.getRows(fileIdx); - // highlight rows in file - for (i=0; i 0) - top.RTW_TraceInfo.instance.setInitLocation(filename,rows[0]); - else { - top.toggleNavSideBar("off"); - return; - } - } - - // display navigation side bar - if (top.rtwreport_nav_frame) top.rtwreport_nav_frame.location.reload(); - if (rows.length>0) { - top.toggleNavSideBar("on"); - top.toggleNavToolBar("on"); - } else { - top.toggleNavSideBar("off"); - } - } - top.scrollToLineBasedOnHash(document.location.hash); - function getHash() { - var loc; - var aHash=""; - var topDocObj = top.window.document; - // get the hash value from location. - loc = topDocObj.location; - loc = loc.search || loc.hash; - aHash = loc.substring(1); - aHash = decodeURI(aHash); - return aHash; - } -} - -function createPopup(filename, evt) { - var anchorObj = evt.currentTarget; - if (anchorObj.children.length > 0) - return; - var filename = location.pathname.split(/\//); - filename = filename[filename.length-1]; - var windowObj = top.getInspectWindow(); - var propObj = top.getInspectData(filename, anchorObj); - var navObj = top.getInspectLink(filename, location.pathname, anchorObj); - if (propObj) { - windowObj.appendChild(propObj); - windowObj.style.left = "0px"; - if (anchorObj.parentElement.nodeName === "TD" && - anchorObj.parentElement.parentElement.nodeName === "TR") { - anchorObj.parentElement.parentElement.lastChild.insertBefore(windowObj, - anchorObj.parentElement.parentElement.lastChild.lastChild.nextSibling); - var left = Math.min(evt.clientX , window.innerWidth - windowObj.scrollWidth - 30); - left = Math.max(0, left); - windowObj.style.left = "" + left + "px"; - } - } -}; - -function destroyPopup(anchorObj) { - var popWindow = document.getElementById("popup_window"); - if (popWindow) { - popWindow.parentElement.removeChild(popWindow); - } -}; diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/membrane_16.png b/src/validation/FCC_Sys_New_harness_ert_rtw/html/membrane_16.png deleted file mode 100644 index 6c73d8d2332e8b1055265c94ccd7cbc5e80abced..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/html/membrane_16.png and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/nav.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/nav.html deleted file mode 100644 index 64f68dbc1980c5d6eaedcb14230e0eff7a1e2ee2..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/nav.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/navToolbar.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/navToolbar.html deleted file mode 100644 index d07c72e0a8141cd7e044a11304c611d8c30999fc..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/navToolbar.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtiostream_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtiostream_h.html deleted file mode 100644 index 73925f3f733e7b2e96b85296b781a7ee73386bc6..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtiostream_h.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/*
2 * Copyright 2007-2012 The MathWorks, Inc.
3 *
4 * File: rtiostream.h
5 *
6 * Abstract:
7 * Function prototypes and defines for rtIOStream API.
8 */
9
10#ifndef RTIOSTREAM_H
11#define RTIOSTREAM_H
12
13#include <stddef.h>
14
15#define RTIOSTREAM_ERROR (-1)
16#define RTIOSTREAM_NO_ERROR (0)
17
18/* Note: if the functions declared in this file should be compiled into a shared
19 * library (e.g. a .dll file on Windows), you must ensure that the functions are
20 * externally visible. The procedure to achieve this depends on the compiler and
21 * linker you are using. For example, on Windows, you may need to provide an
22 * exports definition .def file that lists all of the functions to be
23 * exported; see ./rtiostream/rtiostream_pc.def for a suitable .def file.
24 */
25
26#ifndef RTIOSTREAMAPI
27#define RTIOSTREAMAPI
28#endif
29
30RTIOSTREAMAPI int rtIOStreamOpen(
31 int argc,
32 void * argv[]
33);
34
35RTIOSTREAMAPI int rtIOStreamSend(
36 int streamID,
37 const void * src,
38 size_t size,
39 size_t * sizeSent
40 );
41
42RTIOSTREAMAPI int rtIOStreamRecv(
43 int streamID,
44 void * dst,
45 size_t size,
46 size_t * sizeRecvd
47 );
48
49RTIOSTREAMAPI int rtIOStreamClose(
50 int streamID
51 );
52
53
54#endif /* #ifndef RTIOSTREAM_H */
55
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtiostream_tcpip_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtiostream_tcpip_c.html deleted file mode 100644 index 956adf2edbc91812006348cc5da1b91e05cfbf2e..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtiostream_tcpip_c.html +++ /dev/null @@ -1,4038 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/*
2 * Copyright 1994-2019 The MathWorks, Inc.
3 *
4 * File: rtiostream_tcpip.c
5 *
6 * Abstract: This source file implements both client-side and server-side TCP/IP
7 * and UDP/IP communication. Typically, this driver is used to support host-target
8 * communication where the client-side device driver runs on the host and the
9 * server-side driver runs on the target. For this implementation, both
10 * client-side and server-side driver code has been combined into a single
11 * file.
12 *
13 * If you are using this code as a starting point to implement a TCP/IP or
14 * UDP/IP driver for a custom target it is only necessary to include code
15 * for the server side of the connection.
16 */
17
18#ifndef _WIN32
19/* Required BSD Unix extensions are not available by default on certain Unix
20 * distributions */
21#define _DEFAULT_SOURCE /* _DEFAULT_SOURCE must be defined to avoid
22 _BSD_SOURCE deprecation warning
23 for glibc >= 2.20 */
24#define _BSD_SOURCE /* Required to support glibc <= 2.19 */
25#endif
26
27#include <stdio.h>
28#include <stdlib.h>
29#include <ctype.h>
30#include <string.h>
31#include <limits.h>
32#include "rtiostream.h"
33#include "tmwtypes.h"
34
35#ifdef _WIN32
36 /* WINDOWS */
37
38#if defined(_MSC_VER)
39 /* temporarily disable warning triggered
40 * by windows.h */
41 #pragma warning(push)
42 #pragma warning(disable: 4255)
43#endif
44
45#include <windows.h>
46
47#if defined(_MSC_VER)
48 /* restore warning */
49 #pragma warning(pop)
50#endif
51
52# ifdef __LCC__
53# ifndef __LCC64__
54# include <winsock2.h>
55# endif
56# include <errno.h>
57# endif
58
59#define RTIOSTREAM_ECONNRESET WSAECONNRESET
60
61#elif defined(VXWORKS)
62 /*VxWorks headers*/
63# include <selectLib.h>
64# include <sockLib.h>
65# include <inetLib.h>
66# include <ioLib.h>
67# include <taskLib.h>
68# include <netinet/tcp.h>
69
70#define RTIOSTREAM_ECONNRESET ECONNRESET
71
72#else
73 /* UNIX */
74# include <signal.h>
75# include <sys/time.h> /* Linux */
76# include <sys/types.h> /* Linux */
77# include <sys/socket.h>
78# include <sys/poll.h>
79# include <netinet/in.h> /* Linux */
80# include <netinet/tcp.h> /* Linux */
81# include <arpa/inet.h> /* Linux */
82# include <netdb.h>
83# include <errno.h>
84# include <fcntl.h>
85# include <unistd.h>
86
87#define RTIOSTREAM_ECONNRESET ECONNRESET
88#endif
89
90#if defined(_WIN32) || defined(VXWORKS)
91#define USE_SELECT
92#endif
93
94#ifdef USE_MEXPRINTF
95#include "mex.h"
96#define printf mexPrintf
97#define SERVER_PORT_PRINTF(FORMAT, ARG1) mexPrintf(FORMAT, ARG1)
98#else
99/* If stdout is redirected to file, it is essential that the port number is
100 * available immediately in the output file. With LCC, printf does not flush
101 * correctly to the redirected output file - use fprintf & fflush instead. */
102#define SERVER_PORT_PRINTF(FORMAT, ARG1) fprintf(stdout, FORMAT, ARG1); \
103 fflush(stdout)
104#endif
105
106/***************** DEFINES ****************************************************/
107#define HOSTNAME_MAXLEN (64U)
108
109#define SERVER_PORT_NUM (17725U) /* sqrt(pi)*10000 */
110
111/*
112 * EXT_BLOCKING
113 *
114 * Depending on the implementation of the main program (e.g., grt_main.c,
115 * rt_main.c), the EXT_BLOCKING flag must be set to either 0 or 1.
116 *
117 * rt_main.c (tornado/vxworks): rt_main.c is a real-time, multi-tasking target.
118 * The upload and packet servers are called via background (low priority) tasks.
119 * In this case, it is o.k. for the transport function to block as the blocked
120 * tasks will simply be pre-empted in order to enable the model to run. It is
121 * desirable to block instead of to poll to free up the cpu for any other
122 * potential work.
123 */
124#ifdef VXWORKS
125# define EXT_BLOCKING (1)
126#else
127# define EXT_BLOCKING (0)
128#endif
129
130/* timeout of 0 means to return immediately */
131#define BLOCKING_RECV_TIMEOUT_NOWAIT (0)
132/* timeout of -1 means to wait indefinitely */
133#define BLOCKING_RECV_TIMEOUT_NEVER (-1)
134/* rogue value for blocking receive timeout */
135#define DEFAULT_BLOCKING_RECV_TIMEOUT (-2)
136/* timeout of -3 means to wait for 10 ms to avoid high CPU load */
137#define BLOCKING_RECV_TIMEOUT_10MS (-3)
138/* wake up from blocking every second */
139#define DEFAULT_BLOCKING_RECV_TIMEOUT_SECS_CLIENT (1)
140/* only wake up from blocking when data arrives */
141#define DEFAULT_BLOCKING_RECV_TIMEOUT_SECS_SERVER (BLOCKING_RECV_TIMEOUT_NEVER)
142/* server wait time for client to close its socket */
143#define BLOCKING_RECV_TIMEOUT_SOCK_SHUTDOWN (60)
144
145/* define a set of verbosity levels:
146 *
147 * 0: no verbose output
148 * 1: verbose output with data
149 * 2: extra verbose output including when data size is zero*/
150typedef enum {VERBOSITY_LEVEL_0=0, VERBOSITY_LEVEL_1, VERBOSITY_LEVEL_2} VerbosityLevel;
151/* default verbosity value */
152#define DEFAULT_VERBOSITY VERBOSITY_LEVEL_0
153
154/* default protocol value */
155#define DEFAULT_PROTOCOL TCP_PROTOCOL
156/* allowed -protocol strings */
157#define TCP_PROTOCOL_STRING "TCP"
158#define UDP_PROTOCOL_STRING "UDP"
159#define UDP_PACKET_LOSS_DETECTON_PROTOCOL_STRING "UDP_PACKET_LOSS_DETECTION"
160
161/* default UDP max packet size
162 *
163 * The maximum size of UDP packets that are transmitted / received must be
164 * consistent on the host and target otherwise receive errors will occur at
165 * the side with the smaller buffer size specified.
166 *
167 * Use the "-maxudppacketsize SIZE" argument to specify a different packet size.
168 * This option is particularly useful when using a custom server implementation
169 * that uses a different max packet size to the default.
170 *
171 * The maximum UDP payload is 65507 bytes, which can be achieved for localhost
172 * based communications on Linux and Windows, but Mac has a lower size of
173 * 9216.
174 */
175#define UDP_MAX_PACKET_SIZE 9216
176#define DEFAULT_MAX_UDP_PACKET_SIZE UDP_MAX_PACKET_SIZE
177/* increase the UDP socket receive size to decrease the
178 * possibility of buffer overflow */
179#define DEFAULT_UDP_SOCKET_RECEIVE_SIZE_REQUEST (512 * 1024)
180#define DEFAULT_UDP_SOCKET_SEND_SIZE_REQUEST (512 * 1024)
181
182#define DEFAULT_IS_USING_SEQ_NUM 1
183
184#ifdef WIN32
185 /* WINDOWS */
186# define close closesocket
187# define SOCK_ERR SOCKET_ERROR
188#else
189 /* UNIX, VXWORKS */
190# define INVALID_SOCKET (-1)
191# define SOCK_ERR (-1)
192
193 typedef int SOCKET;
194#endif
195
196/*
197 * send prototype differs on different platforms. The following typedefs
198 * suppress compiler warnings.
199 */
200#if defined(WIN32)
201typedef const char * send_buffer_t;
202#elif defined(VXWORKS)
203typedef char * send_buffer_t;
204#else
205typedef const void * send_buffer_t;
206#endif
207
208/* MIN utility */
209#ifndef MIN
210#define MIN(a,b) ((a) < (b) ? (a) : (b))
211#endif
212
213/***************** TYPEDEFS **************************************************/
214
215#if (defined(_WIN32)) || (defined(VXWORKS))
216 /* socklen_t may not be available */
217 typedef int rtiostream_socklen_t;
218#else
219 typedef socklen_t rtiostream_socklen_t;
220#endif
221
222/* Server specific data structure */
223typedef struct ServerData_tag {
224 int port; /* port number associated with the server socket */
225 SOCKET listenSock; /* listening socket to accept incoming connections */
226 char *serverInfoFile; /* the filename that is used to write the server
227 port number when dynamic port allocation is used */
228} ServerData;
229
230/* UDP send / receive buffer data structure */
231typedef struct UDPPacketBuffer_tag {
232 char * buffer; /* pointer to the buffer */
233 char * dataPtr; /* pointer to the current position in the buffer */
234 int dataAvail; /* amount of data in the buffer */
235} UDPPacketBuffer;
236
237/* Type for the optional UDP sequence number */
238typedef uint32_T udpSeqNum_T;
239/* byte size of the UDP sequence number */
240#define UDP_SEQ_NUM_SIZE ((int) sizeof(udpSeqNum_T))
241
242/* UDP specific data structure */
243typedef struct UDPData_tag {
244 int isUsingSeqNum; /* is this connection using sequence numbers */
245 int maxPacketSize; /* max packet size (buffer size) */
246 UDPPacketBuffer * recvBuffer; /* buffer for an incoming datagram */
247 UDPPacketBuffer * sendBuffer; /* buffer for an outgoing datagram */
248 udpSeqNum_T sendSeqNum; /* sequence number to add to outgoing datagrams */
249 udpSeqNum_T expectedRecvSeqNum; /* expected sequence number in incoming
250 datagrams */
251 int resetExpectedRecvSeqNum; /* flags whether to reset expectedRecvSeqNum
252 to the sequence number of the next incoming
253 datagram */
254} UDPData;
255
256/* enum of supported communications protocols */
257typedef enum {TCP_PROTOCOL, UDP_PROTOCOL} CommsProtocol;
258
259/* Data encapsulating a single client / server connection */
260typedef struct ConnectionData_tag {
261 int isInUse; /* is this ConnectionData instance currently in use? */
262 int isServer; /* is this ConnectionData instance a Server (or client)? */
263 int blockingRecvTimeout; /* Timeout value in seconds. rtIOStreamRecv
264 blocks until at least some of the requested
265 data is available or the timeout expires.
266 If a timeout occurs the receiveSize will be 0.
267
268 A value of BLOCKING_RECV_TIMEOUT_NOWAIT (0)
269 means to block for 0 seconds (polling mode).
270 rtIOStreamRecv processes
271 any pending data or, if no data is available,
272 returns immediately with a receiveSize of 0.
273
274 A value of BLOCKING_RECV_TIMEOUT_NEVER (-1)
275 means to block indefinitely (full blocking
276 mode). rtIOStreamRecv blocks
277 until at least some of the requested data is
278 available. receiveSize should always be
279 greater than 0.
280
281 A value of BLOCKING_RECV_TIMEOUT_10MS (-3)
282 means to block for up to 10 ms to avoid high CPU
283 load.
284 */
285 VerbosityLevel verbosity; /* enum indicating the level of verbosity to be displayed on the output */
286 CommsProtocol protocol; /* TCP or UDP protocol */
287 SOCKET sock; /* socket to send/receive packets */
288 ServerData * serverData; /* Server specific data - NULL for clients */
289 UDPData * udpData; /* UDP specific data - NULL for TCP */
290 int udpSendBufSize;
291 int udpRecvBufSize;
292} ConnectionData;
293
294/**************** LOCAL DATA *************************************************/
295
296/* All local data resides in the per client /
297 * server instance ConnectionData structures to make sure each connection is
298 * completely independent.
299 *
300 * Each ConnectionData does not use much memory; any optionally required
301 * send / recv buffers are dynamically allocated and freed when the ConnectionData
302 * actually becomes in use.
303 *
304 * The static array will be deallocated when the shared library is unloaded.
305 *
306 * Using an array rather than a linked list allows us to have fast direct lookup
307 * of ConnectionData from connectionID during calls to rtIOStreamSend/Recv */
308#define MAX_NUM_CONNECTIONS (50)
309static ConnectionData connectionDataArray[MAX_NUM_CONNECTIONS];
310
311/************** LOCAL FUNCTION PROTOTYPES ************************************/
312
313static int initConnectionData(int connectionID,
314 int isServer,
315 CommsProtocol protocol,
316 SOCKET sock,
317 int blockingRecvTimeout,
318 int maxPacketSize,
319 int serverPort,
320 char * serverInfoFile,
321 VerbosityLevel verbosity,
322 int isUsingSeqNum,
323 int udpSendBufSize,
324 int udpRecvBufSize);
325
326static int getConnectionID(void);
327
328static ConnectionData * getConnectionData(int connectionID);
329
330static void freeConnectionData(ConnectionData * connection);
331
332static UDPPacketBuffer * createUDPPacketBuffer(int maxPacketSize);
333
334static void freeUDPPacketBuffer(UDPPacketBuffer ** udpPacketBuffer);
335
336static void resetUDPPacketBuffer(UDPPacketBuffer * udpPacketBuffer);
337
338static int processUDPRecvSeqNum(ConnectionData * connection);
339
340static int initialUDPServerRecvfrom(ConnectionData * connection,
341 struct sockaddr * clientSA,
342 rtiostream_socklen_t * clientSALen);
343
344static int waitForClientClose(ConnectionData * connection);
345
346static int socketDataSet(
347 ConnectionData * connection,
348 const void *src,
349 const size_t size,
350 size_t *sizeSent);
351
352static int socketDataGet(
353 ConnectionData * connection,
354 char *dst,
355 const size_t size,
356 size_t *sizeRecvd);
357
358static int socketDataPending(
359 const SOCKET sock,
360 ConnectionData * connection,
361 int *outPending,
362 int timeoutSecs);
363
364static int serverStreamRecv(
365 ConnectionData * connection,
366 void * dst,
367 size_t size,
368 size_t * sizeRecvd);
369
370static SOCKET serverOpenSocket(int port, char * serverInfoFile, CommsProtocol protocol,int udpSendBufSize, int udpRecvBufSize);
371
372#if (!defined(VXWORKS))
373static SOCKET clientOpenSocket(char * hostName, unsigned int portNum, CommsProtocol protocol, int udpSendBufSize, int udpRecvBufSize);
374#endif
375
376static void serverAcceptSocket(ConnectionData * connection);
377
378static int processArgs(
379 const int argc,
380 void * argv[],
381 char ** hostName,
382 unsigned int * portNum,
383 unsigned int * isClient,
384 int * isBlocking,
385 int * recvTimeout,
386 char ** serverInfoFile,
387 CommsProtocol * protocol,
388 int * maxPacketSize,
389 VerbosityLevel * verbosity,
390 int * isUsingSeqNum,
391 int * udpSendBufSize,
392 int * udpRecvBufSize);
393
394#if (!defined(VXWORKS))
395static unsigned long nameLookup(char * hostName);
396#endif
397
398/*************** LOCAL FUNCTIONS **********************************************/
399
400/* Function: initConnectionData =================================================
401 * Abstract:
402 * Initializes a client / server ConnectionData for the specified protocol.
403 *
404 * A return value of RTIOSTREAM_ERROR indicates an error.
405 */
406static int initConnectionData(int connectionID,
407 int isServer,
408 CommsProtocol protocol,
409 SOCKET sock,
410 int blockingRecvTimeout,
411 int maxPacketSize,
412 int serverPort,
413 char * serverInfoFile,
414 VerbosityLevel verbosity,
415 int isUsingSeqNum,
416 int udpSendBufSize,
417 int udpRecvBufSize) {
418 int retVal = RTIOSTREAM_NO_ERROR;
419 ConnectionData * connection = &connectionDataArray[connectionID];
420
421 /* initialize the new ConnectionData */
422 connection->isInUse = 1;
423 connection->isServer = isServer;
424 connection->blockingRecvTimeout = blockingRecvTimeout;
425 connection->protocol = protocol;
426 connection->verbosity = verbosity;
427 connection->udpSendBufSize = udpSendBufSize;
428 connection->udpRecvBufSize = udpRecvBufSize;
429 /* initialize to NULL early so that calls to
430 * freeConnectionData on error will succeed */
431 connection->udpData = NULL;
432 connection->serverData = NULL;
433
434 if (connection->protocol == UDP_PROTOCOL) {
435 /* initialize the UDP data */
436 connection->udpData = (UDPData *) malloc(sizeof(UDPData));
437 if (connection->udpData == NULL) {
438 printf("initConnectionData:UDPData malloc failed.\n");
439 freeConnectionData(connection);
440 retVal = RTIOSTREAM_ERROR;
441 return retVal;
442 }
443 /* initialize to NULL */
444 connection->udpData->recvBuffer = NULL;
445 connection->udpData->sendBuffer = NULL;
446 connection->udpData->isUsingSeqNum = isUsingSeqNum;
447 connection->udpData->maxPacketSize = maxPacketSize;
448 /* send sequence numbers always start from 0 */
449 connection->udpData->sendSeqNum = 0;
450 /* initially, seed the expectedRecvSeqNum from the first
451 * received packet */
452 connection->udpData->resetExpectedRecvSeqNum = 1;
453 connection->udpData->recvBuffer = createUDPPacketBuffer(maxPacketSize);
454 if (connection->udpData->recvBuffer == NULL) {
455 printf("initConnectionData:createUDPPacketBuffer failed.\n");
456 freeConnectionData(connection);
457 retVal = RTIOSTREAM_ERROR;
458 return retVal;
459 }
460 if (maxPacketSize > UDP_MAX_PACKET_SIZE) {
461 /* packet size cannot exceed the maximum
462 * UDP packet size */
463 printf("initConnectionData: udpmaxpacketsize must be less than %d\n", UDP_MAX_PACKET_SIZE);
464 freeConnectionData(connection);
465 retVal = RTIOSTREAM_ERROR;
466 return retVal;
467 }
468 if (connection->udpData->isUsingSeqNum) {
469 /* packet size must be larger than the size
470 * of the sequence number */
471 if (maxPacketSize <= UDP_SEQ_NUM_SIZE) {
472 printf("initConnectionData: udpmaxpacketsize must be larger than %d\n", UDP_SEQ_NUM_SIZE);
473 freeConnectionData(connection);
474 retVal = RTIOSTREAM_ERROR;
475 return retVal;
476 }
477 /* send buffer will be required in order to add the sequence
478 * number to the outgoing data */
479 connection->udpData->sendBuffer = createUDPPacketBuffer(maxPacketSize);
480 if (connection->udpData->sendBuffer == NULL) {
481 printf("initConnectionData:createUDPPacketBuffer failed.\n");
482 freeConnectionData(connection);
483 retVal = RTIOSTREAM_ERROR;
484 return retVal;
485 }
486 }
487 }
488
489 if (isServer) {
490 /* initialize server data */
491 connection->serverData = (ServerData *) malloc(sizeof(ServerData));
492 if (connection->serverData == NULL) {
493 printf("initConnectionData:ServerData malloc failed.\n");
494 freeConnectionData(connection);
495 retVal = RTIOSTREAM_ERROR;
496 return retVal;
497 }
498 connection->serverData->port = serverPort;
499 connection->serverData->serverInfoFile = serverInfoFile;
500 /* provided sock is the listening sock */
501 connection->serverData->listenSock = sock;
502 /* later call to serverAcceptSocket will set sock */
503 connection->sock = INVALID_SOCKET;
504 }
505 else {
506 /* store the provided socket */
507 connection->sock = sock;
508 }
509
510 if (verbosity) {
511 if (connection->protocol == TCP_PROTOCOL) {
512 printf("Connection id %d, protocol: TCP/IP\n", connectionID);
513 }
514 else if (connection->protocol == UDP_PROTOCOL) {
515 printf("Connection id %d, protocol: UDP/IP\n", connectionID);
516 printf("Connection id %d, maxPacketSize: %d\n", connectionID,
517 connection->udpData->maxPacketSize);
518 printf("Connection id %d, isUsingSeqNum: %d\n", connectionID,
519 connection->udpData->isUsingSeqNum);
520 }
521 else {
522 printf("initConnectionData:invalid protocol.\n");
523 freeConnectionData(connection);
524 retVal = RTIOSTREAM_ERROR;
525 return retVal;
526 }
527 {
528 /* display the size of the socket receive buffer */
529 rtiostream_socklen_t optionLen = sizeof(int);
530 int optionValue;
531 getsockopt(sock, SOL_SOCKET, SO_SNDBUF, (char *) &optionValue, &optionLen);
532 printf("Connection id %d, udpSendBufSize: %d\n", connectionID, optionValue);
533 getsockopt(sock, SOL_SOCKET, SO_RCVBUF, (char *) &optionValue, &optionLen);
534 printf("Connection id %d, udpRecvBufSize: %d\n", connectionID, optionValue);
535 }
536 printf("Connection id %d, blockingRecvTimeout: %d\n", connectionID,
537 connection->blockingRecvTimeout);
538 if ((connection->isServer) && (connection->serverData != NULL)) {
539 printf("Connection id %d, type: server\n", connectionID);
540 if (connection->serverData->serverInfoFile != NULL) {
541 printf("Connection id %d, server info file: %s\n", connectionID,
542 connection->serverData->serverInfoFile);
543 }
544 }
545 else {
546 printf("Connection id %d, type: client\n", connectionID);
547 }
548 printf("Connection id %d, socket id %d\n", connectionID, (int) sock);
549 /* relevant to both clients and servers */
550 printf("Connection id %d, server port: %d\n", connectionID, serverPort);
551 }
552 return retVal;
553}
554
555/* Function: getConnectionData =================================================
556 * Abstract:
557 * Retrieves a ConnectionData instance given its connectionID
558 * (as returned by initConnectionData)
559 *
560 * NOTE: An invalid connectionID will lead to a NULL pointer being returned
561 */
562static ConnectionData * getConnectionData(int connectionID) {
563 /* return NULL for invalid or uninitialized connectionIDs */
564 ConnectionData * connection = NULL;
565 if ((connectionID >= 0) && (connectionID < MAX_NUM_CONNECTIONS)) {
566 if (connectionDataArray[connectionID].isInUse) {
567 connection = &connectionDataArray[connectionID];
568 }
569 }
570 return connection;
571}
572
573/* Function: getConnectionID =================================================
574 * Abstract:
575 * Returns a connectionID corresponding to a ConnectionData that is not
576 * already in use.
577 *
578 * Returns RTIOSTREAM_ERROR if all available ConnectionData instances are
579 * already in use.
580 */
581static int getConnectionID(void) {
582 int connectionID;
583 int foundUnusedConnectionData = 0;
584 /* linear search for an unused ConnectionData */
585 for (connectionID = 0; connectionID < MAX_NUM_CONNECTIONS; connectionID++) {
586 if (!connectionDataArray[connectionID].isInUse) {
587 foundUnusedConnectionData = 1;
588 break;
589 }
590 }
591 if (!foundUnusedConnectionData) {
592 /* all ConnectionData's are in use */
593 printf("getConnectionID: All %d available connections are in use.\n", MAX_NUM_CONNECTIONS);
594 connectionID = RTIOSTREAM_ERROR;
595 }
596 return connectionID;
597}
598
599/* Function: freeConnectionData =================================================
600 * Abstract:
601 * Frees memory associated with the ConnectionData referenced by connectionID.
602 * Marks the ConnectionData instance as no longer in use.
603 */
604static void freeConnectionData(ConnectionData * connection) {
605 /* mark the ConnectionData as not in use */
606 connection->isInUse = 0;
607 /* free dynamic memory */
608 if (connection->protocol == UDP_PROTOCOL) {
609 freeUDPPacketBuffer(&connection->udpData->recvBuffer);
610 /* freeConnectionData is called if connection->udpData did not allocate */
611 if (connection->udpData != NULL) {
612 if (connection->udpData->isUsingSeqNum) {
613 freeUDPPacketBuffer(&connection->udpData->sendBuffer);
614 }
615 }
616 free(connection->udpData);
617 connection->udpData = NULL;
618 }
619 if (connection->isServer) {
620 free(connection->serverData);
621 connection->serverData = NULL;
622 }
623}
624
625/* Function: createUDPPacketBuffer =================================================
626 * Abstract:
627 * Allocates storage for and initializes a UDPPacketBuffer
628 */
629static UDPPacketBuffer * createUDPPacketBuffer(int maxPacketSize) {
630 /* initialize the UDP packet buffer */
631 UDPPacketBuffer * udpPacketBuffer = (UDPPacketBuffer *) malloc(sizeof(UDPPacketBuffer));
632 if (udpPacketBuffer == NULL) {
633 printf("createUDPPacketBuffer:UDPPacketBuffer malloc failed.\n");
634 return udpPacketBuffer;
635 }
636 /* allocate the buffer */
637 udpPacketBuffer->buffer = (char *) calloc((size_t)maxPacketSize, sizeof(char));
638 if (udpPacketBuffer->buffer == NULL) {
639 printf("createUDPPacketBuffer:UDPPacketBuffer buffer malloc failed.\n");
640 /* free everything we allocated */
641 free(udpPacketBuffer);
642 udpPacketBuffer = NULL;
643 return udpPacketBuffer;
644 }
645 resetUDPPacketBuffer(udpPacketBuffer);
646 return udpPacketBuffer;
647}
648
649/* Function: freeUDPPacketBuffer =================================================
650 * Abstract:
651 * Frees memory associated with the referenced UDPPacketBuffer
652 */
653static void freeUDPPacketBuffer(UDPPacketBuffer ** udpPacketBuffer) {
654 if (*udpPacketBuffer != NULL) {
655 /* free the buffer */
656 free((*udpPacketBuffer)->buffer);
657 (*udpPacketBuffer)->buffer = NULL;
658 /* free the container */
659 free(*udpPacketBuffer);
660 *udpPacketBuffer = NULL;
661 }
662}
663
664/* Function: resetUDPPacketBuffer =================================================
665 * Abstract:
666 * Resets the referenced UDP Packet Buffer so that it is ready to receive fresh data
667 */
668static void resetUDPPacketBuffer(UDPPacketBuffer * udpPacketBuffer) {
669 udpPacketBuffer->dataPtr = udpPacketBuffer->buffer;
670 udpPacketBuffer->dataAvail = 0;
671}
672
673/* Function: socketDataPending =================================================
674 * Abstract:
675 * Returns true, via the 'pending' arg, if data is pending on the comm line.
676 * Returns false otherwise.
677 *
678 * RTIOSTREAM_NO_ERROR is returned on success, RTIOSTREAM_ERROR on failure.
679 */
680static int socketDataPending(
681 const SOCKET sock,
682 ConnectionData * connection,
683 int *outPending,
684 int timeoutSecs)
685{
686 int retVal = RTIOSTREAM_NO_ERROR;
687 int pending;
688
689 #ifdef USE_SELECT
690 /* Variables used with select() on Win32 & VXWorks */
691 struct timeval tval;
692 struct timeval * tvalPtr;
693 fd_set ReadFds;
694 #else
695 /* Variables used with poll() on Linux */
696 struct pollfd PollReadFd[1];
697 int tvalPoll;
698 #endif
699
700
701 if (connection->protocol == UDP_PROTOCOL) {
702 /* first check the UDP buffer */
703 UDPPacketBuffer * udpPacketBuffer = connection->udpData->recvBuffer;
704 if (udpPacketBuffer->dataAvail) {
705 *outPending = 1;
706 return retVal;
707 }
708 }
709
710 #ifdef USE_SELECT /* Beginning of block for using select */
711 FD_ZERO(&ReadFds);
712
713 #if defined(_WIN32) && defined(_MSC_VER)
714 /*temporarily disable warning C4127 caused by using FD_SET*/
715 #pragma warning(push)
716 #pragma warning(disable: 4127)
717 #endif
718
719 /* Using fd_set structure ReadFds on Win32/VXWorks */
720 FD_SET(sock, &ReadFds);
721
722 #if defined(_WIN32) && defined(_MSC_VER)
723 /*enable the warning C4127*/
724 #pragma warning(pop)
725 #endif
726
727 /* Select() uses a timeval structure for specifying timeout */
728 switch (timeoutSecs) {
729 case BLOCKING_RECV_TIMEOUT_NEVER:
730 /* specify null pointer for blocking */
731 tvalPtr = NULL;
732 break;
733 case BLOCKING_RECV_TIMEOUT_10MS:
734 /* set up the 10ms time-val */
735 tval.tv_sec = 0;
736 tval.tv_usec = 10000;
737 tvalPtr = &tval;
738 break;
739 default:
740 /* set up the time-val */
741 tval.tv_sec = timeoutSecs;
742 tval.tv_usec = 0;
743 tvalPtr = &tval;
744 break;
745 }
746 #else /* Else block for using select */
747 /* Poll() uses an int specifying timeout in milliseconds */
748 switch (timeoutSecs) {
749 case BLOCKING_RECV_TIMEOUT_NEVER:
750 /* specify negative value for blocking */
751 tvalPoll = -1;
752 break;
753 case BLOCKING_RECV_TIMEOUT_10MS:
754 /* set up the 10ms time-val */
755 tvalPoll = 10;
756 break;
757 default:
758 /* set up the time-val */
759 tvalPoll = timeoutSecs*1000;
760 break;
761 }
762 #endif /* End of block for using select */
763
764
765 #ifdef USE_SELECT
766 /* Use select() on Win32 and VxWorks */
767 /*
768 * Casting the first arg to int removes warnings on windows 64-bit
769 * platform. It is safe to cast a SOCKET to an int here because on
770 * Linux SOCKET is typedef'd to int and on windows the first argument
771 * to select is ignored (so it doesn't matter what the value is).
772 */
773 pending = select((int)(sock + 1), &ReadFds, NULL, NULL, tvalPtr);
774 #else
775 /* Use poll() on Linux and Mac to avoid issues with sockets >= FD_SETSIZE */
776 PollReadFd[0].fd = sock;
777 PollReadFd[0].events = POLLIN;
778 pending = poll( PollReadFd, 1, tvalPoll);
779 #endif
780
781 #ifdef USE_SELECT
782 if (pending == SOCK_ERR)
783 #else
784 /* On Linux an extra check of POLLERR flag is needed to detect and report
785 an error if the other end suddenly crashes. The same flag doesn't seem to be
786 activated on Mac */
787 if ((pending == SOCK_ERR) ||
788 (PollReadFd[0].revents & POLLERR))
789 #endif
790 {
791 retVal = RTIOSTREAM_ERROR;
792 }
793
794 *outPending = (pending==1) && (retVal == RTIOSTREAM_NO_ERROR);
795 return(retVal);
796
797} /* end socketDataPending */
798
799/* Function: initialUDPServerRecvfrom =====================================================
800 * Abstract:
801 * Reads data from the client via "recvfrom" into the UDP packet buffer.
802 * The client sockaddr is returned via clientSA and clientSALen.
803 *
804 * RTIOSTREAM_NO_ERROR is returned on success, RTIOSTREAM_ERROR is returned on
805 * failure.
806 */
807static int initialUDPServerRecvfrom(ConnectionData * connection,
808 struct sockaddr * clientSA,
809 rtiostream_socklen_t * clientSALen) {
810 int nRead;
811 int retVal;
812 UDPPacketBuffer * udpPacketBuffer = connection->udpData->recvBuffer;
813 /* reset */
814 resetUDPPacketBuffer(udpPacketBuffer);
815 /* initialize ahead of call to recvfrom */
816 *clientSALen = sizeof(*clientSA);
817 /* read into UDP buffer from the listenSock
818 * and get sockaddr of the client */
819 nRead = recvfrom(connection->serverData->listenSock,
820 udpPacketBuffer->dataPtr,
821 (size_t)connection->udpData->maxPacketSize,
822 0U,
823 clientSA,
824 clientSALen);
825
826 if (nRead == SOCK_ERR) {
827 retVal = RTIOSTREAM_ERROR;
828 } else {
829 /* set dataAvail */
830 udpPacketBuffer->dataAvail = nRead;
831 /* handle optional sequence number */
832 retVal = processUDPRecvSeqNum(connection);
833 }
834 return retVal;
835}
836
837/* Function: processUDPRecvSeqNum =====================================================
838 * Abstract:
839 * Processes sequence numbers in received UDP datagrams.
840 *
841 * RTIOSTREAM_NO_ERROR is returned on success, RTIOSTREAM_ERROR is returned on
842 * failure.
843 */
844static int processUDPRecvSeqNum(ConnectionData * connection) {
845 int retVal = RTIOSTREAM_NO_ERROR;
846 if (connection->udpData->isUsingSeqNum) {
847 UDPPacketBuffer * udpPacketBuffer = connection->udpData->recvBuffer;
848 /* process sequence number */
849 udpSeqNum_T recvSeqNum;
850 if (udpPacketBuffer->dataAvail < UDP_SEQ_NUM_SIZE) {
851 printf("No receive sequence number found.\n");
852 retVal = RTIOSTREAM_ERROR;
853 return retVal;
854 }
855 /* read sequence number from the buffer
856 *
857 * sequence number is always transmitted / received in
858 * host Endian */
859 memcpy(&recvSeqNum,
860 udpPacketBuffer->dataPtr,
861 UDP_SEQ_NUM_SIZE);
862 udpPacketBuffer->dataPtr += UDP_SEQ_NUM_SIZE;
863 udpPacketBuffer->dataAvail -= UDP_SEQ_NUM_SIZE;
864 if (connection->verbosity) {
865 printf("Received UDP packet with sequence number: %u\n", recvSeqNum);
866 }
867 if (connection->udpData->resetExpectedRecvSeqNum) {
868 /* reset the expected sequence number */
869 connection->udpData->expectedRecvSeqNum = recvSeqNum + 1;
870 connection->udpData->resetExpectedRecvSeqNum = 0;
871 }
872 else {
873 /* compare with expected receive seq num */
874 if (recvSeqNum != connection->udpData->expectedRecvSeqNum) {
875 printf("UDP packet sequence number mismatch. Expected #: %u, Actual #: %u\n",
876 connection->udpData->expectedRecvSeqNum, recvSeqNum);
877 retVal = RTIOSTREAM_ERROR;
878 }
879 else {
880 /* increment expected receive seq num */
881 connection->udpData->expectedRecvSeqNum++;
882 }
883 }
884 }
885 return retVal;
886}
887
888/* Function: socketDataGet =====================================================
889 * Abstract:
890 * Attempts to gets the specified number of bytes from the specified socket.
891 * The number of bytes read is returned via the 'sizeRecvd' parameter.
892 * RTIOSTREAM_NO_ERROR is returned on success, RTIOSTREAM_ERROR is returned on
893 * failure.
894 *
895 * NOTES:
896 * o it is not an error for 'sizeRecvd' to be returned as 0
897 * o this function blocks if no data is available
898 */
899static int socketDataGet(ConnectionData * connection,
900 char *dst,
901 const size_t size,
902 size_t *sizeRecvd)
903{
904 int nRead = 0;
905 int retVal = RTIOSTREAM_NO_ERROR;
906 /* Ensure size is not out of range for socket API recv function */
907 int sizeLim = (int) MIN(size, INT_MAX);
908
909 if (connection->protocol == TCP_PROTOCOL) {
910 nRead = recv(connection->sock, dst, (size_t)sizeLim, 0U);
911 if (nRead == SOCK_ERR) {
912 retVal = RTIOSTREAM_ERROR;
913 } else {
914 retVal = RTIOSTREAM_NO_ERROR;
915 }
916 }
917 else {
918 UDPPacketBuffer * udpPacketBuffer = connection->udpData->recvBuffer;
919 /* receive more data in to the buffer if required */
920 if (udpPacketBuffer->dataAvail == 0) {
921 /* reset */
922 resetUDPPacketBuffer(udpPacketBuffer);
923 /* read into buffer */
924 nRead = recv(connection->sock,
925 udpPacketBuffer->dataPtr,
926 (size_t)connection->udpData->maxPacketSize,
927 0U);
928
929 if (nRead == SOCK_ERR) {
930 retVal = RTIOSTREAM_ERROR;
931 } else {
932 udpPacketBuffer->dataAvail = nRead;
933 /* handle optional sequence number */
934 retVal = processUDPRecvSeqNum(connection);
935 if (retVal == RTIOSTREAM_ERROR) {
936 return retVal;
937 }
938 }
939 }
940 /* get data from the buffer */
941 /* for the special case where we request a */
942 /* size of 0 bytes, return the whole buffer */
943 if (udpPacketBuffer->dataAvail) {
944 if (size == 0) {
945 nRead = udpPacketBuffer->dataAvail;
946 } else {
947 nRead = MIN(udpPacketBuffer->dataAvail, sizeLim);
948 }
949 memcpy(dst, (void *) udpPacketBuffer->dataPtr, (size_t)nRead);
950 udpPacketBuffer->dataAvail -= nRead;
951 udpPacketBuffer->dataPtr += nRead;
952 }
953 }
954
955 if (retVal!=RTIOSTREAM_ERROR) {
956 *sizeRecvd = (size_t) nRead;
957 }
958
959 return retVal;
960} /* end socketDataGet */
961
962
963/* Function: socketDataSet =====================================================
964 * Abstract:
965 * Utility function to send data via the specified socket
966 */
967static int socketDataSet(
968 ConnectionData * connection,
969 const void *src,
970 const size_t size,
971 size_t *sizeSent)
972{
973 int nSent;
974 int retVal = RTIOSTREAM_NO_ERROR;
975 const void *sendSrc = src;
976
977 /* Ensure size is not out of range for socket API send function */
978 int sizeLim = (int) MIN(size, INT_MAX);
979
980 if (connection->protocol == UDP_PROTOCOL) {
981 /* limit sends according to max packet size */
982 int maxPacketSize = connection->udpData->maxPacketSize;
983 if (connection->udpData->isUsingSeqNum) {
984 int transferAmount;
985 UDPPacketBuffer * udpPacketBuffer = connection->udpData->sendBuffer;
986 /* need to apply sequence number and then increment it */
987 resetUDPPacketBuffer(udpPacketBuffer);
988 /* set data src */
989 sendSrc = udpPacketBuffer->dataPtr;
990 /* add sequence number to the buffer
991 *
992 * sequence number is always transmitted / received in
993 * host Endian */
994 memcpy(udpPacketBuffer->dataPtr,
995 &connection->udpData->sendSeqNum,
996 UDP_SEQ_NUM_SIZE);
997 udpPacketBuffer->dataPtr += UDP_SEQ_NUM_SIZE;
998 udpPacketBuffer->dataAvail += UDP_SEQ_NUM_SIZE;
999 /* copy the data - don't overflow the packet buffer */
1000 transferAmount = MIN(sizeLim, maxPacketSize - udpPacketBuffer->dataAvail);
1001 memcpy(udpPacketBuffer->dataPtr,
1002 src,
1003 (size_t)transferAmount);
1004 udpPacketBuffer->dataAvail += transferAmount;
1005 sizeLim = udpPacketBuffer->dataAvail;
1006 }
1007 else {
1008 sizeLim = MIN(maxPacketSize, sizeLim);
1009 }
1010 }
1011
1012 nSent = send(connection->sock, (send_buffer_t)sendSrc, (size_t)sizeLim, 0);
1013 if (nSent == SOCK_ERR) {
1014 retVal = RTIOSTREAM_ERROR;
1015 } else {
1016 if ((connection->protocol == UDP_PROTOCOL) &&
1017 (connection->udpData->isUsingSeqNum) &&
1018 (nSent > 0)) {
1019 if (nSent < (int) UDP_SEQ_NUM_SIZE) {
1020 /* expected the sequence number to have transmitted */
1021 retVal = RTIOSTREAM_ERROR;
1022 return retVal;
1023 }
1024 else {
1025 if (connection->verbosity) {
1026 printf("Sent UDP packet with sequence number: %u\n", connection->udpData->sendSeqNum);
1027 }
1028 /* increment sequence number */
1029 connection->udpData->sendSeqNum++;
1030 nSent -= UDP_SEQ_NUM_SIZE;
1031 }
1032 }
1033 *sizeSent = (size_t)nSent;
1034 }
1035
1036 return retVal;
1037}
1038
1039/* Function: serverStreamRecv =================================================
1040 * Abstract:
1041 * Send data from the server-side
1042 */
1043static int serverStreamRecv(
1044 ConnectionData * connection,
1045 void * dst,
1046 size_t size,
1047 size_t * sizeRecvd)
1048{
1049 int retVal = RTIOSTREAM_NO_ERROR;
1050 *sizeRecvd = 0;
1051
1052 if (connection->sock == INVALID_SOCKET) {
1053 /* Attempt to open connection */
1054 serverAcceptSocket(connection);
1055 }
1056
1057 if (connection->sock != INVALID_SOCKET) {
1058 int pending;
1059 if (connection->blockingRecvTimeout != BLOCKING_RECV_TIMEOUT_NEVER) {
1060 /* only call costly "select" if necessary */
1061 retVal = socketDataPending(connection->sock,
1062 connection,
1063 &pending,
1064 connection->blockingRecvTimeout);
1065 }
1066 else {
1067 /* block in "recv" if necessary */
1068 pending = 1;
1069 }
1070
1071 if ( (pending !=0) && (retVal==RTIOSTREAM_NO_ERROR) && (size>0) ) {
1072
1073 retVal = socketDataGet(connection, (char *)dst, size, sizeRecvd);
1074
1075 if (*sizeRecvd == 0) {
1076
1077 if (errno == RTIOSTREAM_ECONNRESET) {
1078 /* If we are closing the connection and we received this
1079 * error, it means the other side of the connection was
1080 * already closed. Since we are expecting this, we can
1081 * ignore this particular error.
1082 */
1083 retVal = RTIOSTREAM_NO_ERROR;
1084 } else {
1085 /* Connection closed gracefully by client */
1086 }
1087
1088 close(connection->sock);
1089 connection->sock = INVALID_SOCKET;
1090 }
1091 }
1092
1093 if ( retVal == RTIOSTREAM_ERROR ) {
1094 close(connection->sock);
1095 connection->sock = INVALID_SOCKET;
1096 }
1097 }
1098
1099 return retVal;
1100}
1101
1102/* Function: serverOpenSocket =================================================
1103 * Abstract:
1104 * Opens the listening socket to be used for accepting an incoming connection.
1105 */
1106static SOCKET serverOpenSocket(int port, char * serverInfoFile, CommsProtocol protocol, int udpSendBufSize, int udpRecvBufSize)
1107{
1108
1109 struct sockaddr_in serverAddr;
1110 int sockStatus;
1111 rtiostream_socklen_t sFdAddSize = (rtiostream_socklen_t) sizeof(struct sockaddr_in);
1112 SOCKET lFd;
1113 int option;
1114
1115 /*
1116 * Create a TCP or UDP based socket.
1117 */
1118 memset((void *) &serverAddr,0,(size_t)sFdAddSize);
1119 serverAddr.sin_family = AF_INET;
1120 serverAddr.sin_port = htons((unsigned short int) port);
1121 serverAddr.sin_addr.s_addr = htonl(INADDR_ANY);
1122
1123 if (protocol == TCP_PROTOCOL) {
1124 lFd = socket(AF_INET, SOCK_STREAM, 0);
1125 }
1126 else {
1127 lFd = socket(AF_INET, SOCK_DGRAM, 0);
1128 }
1129
1130 if (lFd == INVALID_SOCKET) {
1131 printf("socket() call failed.\n");
1132 } else {
1133 /*
1134 * Listening socket should always use the SO_REUSEADDR option
1135 * ("Unix Network Programming - Networking APIs:Sockets and XTI",
1136 * Volume 1, 2nd edition, by W. Richard Stevens).
1137 */
1138 option = 1;
1139 sockStatus =
1140 setsockopt(lFd,SOL_SOCKET,SO_REUSEADDR,(char*)&option,sizeof(option));
1141 if (sockStatus == SOCK_ERR) {
1142 printf("setsocketopt() call failed.\n");
1143 close(lFd);
1144 lFd = INVALID_SOCKET;
1145 }
1146 if (protocol == TCP_PROTOCOL)
1147 {
1148 if (lFd != INVALID_SOCKET)
1149 {
1150 /* Disable Nagle's Algorithm*/
1151 option = 1;
1152 sockStatus =
1153 setsockopt(lFd,IPPROTO_TCP,TCP_NODELAY,(char*)&option,sizeof(option));
1154 if (sockStatus == SOCK_ERR) {
1155 printf("setsocketopt() TCP_NODELAY call failed.\n");
1156 close(lFd);
1157 lFd = INVALID_SOCKET;
1158 }
1159 }
1160 }
1161 if (protocol == UDP_PROTOCOL)
1162 {
1163 if (lFd != INVALID_SOCKET)
1164 {
1165
1166 /* increase the UDP socket send size to increase the
1167 * transfer rate */
1168 sockStatus =
1169 setsockopt(lFd, SOL_SOCKET, SO_SNDBUF,(char*)&udpSendBufSize, sizeof(int));
1170 if (sockStatus == SOCK_ERR) {
1171 printf("setsocketopt() SO_SNDBUF call failed.\n");
1172 close(lFd);
1173 lFd = INVALID_SOCKET;
1174 }
1175 }
1176
1177 if (lFd != INVALID_SOCKET)
1178 {
1179 /* increase the UDP socket receive size to decrease the
1180 * possibility of buffer overflow */
1181 sockStatus =
1182 setsockopt(lFd, SOL_SOCKET, SO_RCVBUF,(char*)&udpRecvBufSize, sizeof(int));
1183 if (sockStatus == SOCK_ERR) {
1184 printf("setsocketopt() SO_RCVBUF call failed.\n");
1185 close(lFd);
1186 lFd = INVALID_SOCKET;
1187 }
1188 }
1189 }
1190 }
1191
1192 if (lFd != INVALID_SOCKET) {
1193 sockStatus = bind(lFd, (struct sockaddr *) &serverAddr, sFdAddSize);
1194 if (sockStatus == SOCK_ERR) {
1195 printf("bind() call failed: %s\n", strerror(errno));
1196 close(lFd);
1197 lFd = INVALID_SOCKET;
1198 }
1199 }
1200
1201 if (lFd != INVALID_SOCKET) {
1202 if (port == 0) {
1203 /* port 0 specifies dynamic free port allocation
1204 * reuse serverAddr to store the actual address / port */
1205 sockStatus = getsockname(lFd, (struct sockaddr *) &serverAddr, &sFdAddSize);
1206 if (sockStatus == SOCK_ERR) {
1207 fprintf(stderr,"getsockname() call failed: %s\n", strerror(errno));
1208 close(lFd);
1209 lFd = INVALID_SOCKET;
1210 } else {
1211 if(serverInfoFile != NULL) {
1212 FILE* fh;
1213 uint16_T serverPortNo;
1214 int fprintfErr = 0;
1215 int fcloseErr = 0;
1216
1217 /* Open file in append mode to save info already stored in the file*/
1218 fh = fopen(serverInfoFile,"a");
1219#ifdef __LCC64__
1220 /* This is needed due to an issue with LCC64, see the following geck: g919889 */
1221 fseek ( fh, 0 , SEEK_END );
1222#endif
1223 if (fh == NULL) {
1224 fprintf(stderr,"Unable to open output file to write server port number: %s\n", strerror(errno));
1225 lFd = INVALID_SOCKET;
1226 }
1227
1228 serverPortNo = ntohs(serverAddr.sin_port);
1229 fprintfErr = fprintf(fh, "Server Port Number: %d\n", serverPortNo);
1230 if (fprintfErr < 0) {
1231 fprintf(stderr,"Server port number is: %d\nUnable to write server port number to output file: %s\n",
1232 serverPortNo, strerror(errno));
1233 lFd = INVALID_SOCKET;
1234 }
1235
1236 fcloseErr = fclose(fh);
1237 if (fcloseErr == EOF) {
1238 fprintf(stderr,"Server port number is: %d\nUnable to close output file after writing server port number: %s\n",
1239 serverPortNo ,strerror(errno));
1240 lFd = INVALID_SOCKET;
1241 }
1242
1243 } else {
1244 /* write the server port number to stdout */
1245 SERVER_PORT_PRINTF("Server Port Number: %d\n", ntohs(serverAddr.sin_port));
1246 }
1247 }
1248 }
1249 }
1250 if (protocol == TCP_PROTOCOL) {
1251 if (lFd != INVALID_SOCKET) {
1252 sockStatus = listen(lFd, 2);
1253 if (sockStatus == SOCK_ERR) {
1254 printf("listen() call failed.\n");
1255 close(lFd);
1256 lFd = INVALID_SOCKET;
1257 }
1258 }
1259 }
1260 return lFd;
1261}
1262/* Function: serverAcceptSocket =================================================
1263 * Abstract:
1264 * Called when the target is not currently connected to the host, this
1265 * function attempts to open the connection.
1266 *
1267 * In the case of sockets, this is a passive operation in that the host
1268 * initiates contact, the target simply listens for connection requests.
1269 *
1270 * NOTES:
1271
1272 * Blocks according to blockingRecvTimeout. When
1273 * polling, there may be no open requests pending. In this case, this
1274 * function returns without making a connection; this is not an error.
1275 */
1276static void serverAcceptSocket(ConnectionData * connection)
1277{
1278 struct sockaddr_in clientAddr;
1279 rtiostream_socklen_t sFdAddSize = sizeof(struct sockaddr_in);
1280 SOCKET cFd = INVALID_SOCKET;
1281 int error = RTIOSTREAM_NO_ERROR;
1282 int pending;
1283
1284 /* Check that the listening socket is still valid and open a new socket if
1285 * not */
1286 if (connection->serverData->listenSock == INVALID_SOCKET) {
1287 connection->serverData->listenSock = serverOpenSocket(connection->serverData->port,
1288 connection->serverData->serverInfoFile,
1289 connection->protocol,
1290 connection->udpSendBufSize, connection->udpRecvBufSize);
1291 }
1292
1293 /* pass listenSock rather than sock */
1294 error = socketDataPending(connection->serverData->listenSock,
1295 connection,
1296 &pending,
1297 connection->blockingRecvTimeout);
1298
1299 if ( (pending > 0) && (error==RTIOSTREAM_NO_ERROR) ) {
1300 if (connection->protocol == TCP_PROTOCOL) {
1301 /*
1302 * Wait to accept a connection on the comm socket.
1303 */
1304 cFd = accept(connection->serverData->listenSock,
1305 (struct sockaddr *)&clientAddr,
1306 &sFdAddSize);
1307
1308 if (cFd == INVALID_SOCKET) {
1309 printf("accept() for comm socket failed.\n");
1310 error = RTIOSTREAM_ERROR;
1311 }
1312
1313 if (error == RTIOSTREAM_ERROR) {
1314 close(connection->serverData->listenSock);
1315 connection->serverData->listenSock = INVALID_SOCKET;
1316 }
1317 }
1318 else {
1319 /* UDP - data is pending */
1320 struct sockaddr clientSA;
1321 rtiostream_socklen_t clientSALen;
1322 /* new connection, make sure we reset expectedRecvSeqNum,
1323 * if sequence numbers are in use */
1324 connection->udpData->resetExpectedRecvSeqNum = 1;
1325 /* Do the initial UDP server "recvfrom" to get the
1326 * client sockaddr. Data read will be placed
1327 * ready in the UDP packet buffer. */
1328 error = initialUDPServerRecvfrom(connection, &clientSA, &clientSALen);
1329 if (error == RTIOSTREAM_ERROR) {
1330 close(connection->serverData->listenSock);
1331 connection->serverData->listenSock = INVALID_SOCKET;
1332 printf("initialUDPServerRecvfrom() failed.\n");
1333 }
1334 else {
1335 /* connect exclusively to the client so we no longer
1336 * have to use recvfrom / sendto */
1337 if (connect(connection->serverData->listenSock,
1338 &clientSA,
1339 clientSALen) == SOCK_ERR) {
1340 close(connection->serverData->listenSock);
1341 connection->serverData->listenSock = INVALID_SOCKET;
1342 printf("Server connect() failed.\n");
1343 }
1344 }
1345 /* for UDP, the socket and listening socket are the same */
1346 cFd = connection->serverData->listenSock;
1347 }
1348 }
1349 /* set sock */
1350 connection->sock = cFd;
1351}
1352
1353
1354/* Function: nameLookup =======================
1355 * Lookup target network name.
1356 */
1357#if (!defined(VXWORKS))
1358static unsigned long nameLookup(char * hostName) {
1359
1360 struct hostent * hp = NULL;
1361 struct in_addr * iaddr = NULL;
1362 unsigned long addr = INADDR_NONE;
1363
1364 /*
1365 * Default to localhost if hostname not specified.
1366 */
1367 if (hostName == NULL) {
1368 static char localhost[] = "localhost";
1369 hostName = localhost;
1370 }
1371
1372 /*
1373 * See if the address is an IPV4 dot separated address:
1374 */
1375 addr = inet_addr(hostName);
1376
1377 if (addr == INADDR_NONE) {
1378 /* Since the address is not an IPV4 dot separated address,
1379 * do a name lookup to get this:
1380 */
1381 hp = gethostbyname(hostName);
1382 if (hp == NULL) {
1383 printf("gethostbyname() call failed.\n");
1384 addr = INADDR_NONE;
1385 } else {
1386 iaddr = (struct in_addr *) hp->h_addr;
1387 addr = iaddr->s_addr;
1388 }
1389 }
1390 return(addr);
1391}
1392#endif
1393
1394/* Function: processArgs ====================================================
1395 * Abstract:
1396 * Process the arguments specified by the user when opening the rtIOStream.
1397 *
1398 * If any unrecognized options are encountered, ignore them.
1399 *
1400 * Returns zero if successful or RTIOSTREAM_ERROR if
1401 * an error occurred.
1402 *
1403 * o IMPORTANT!!!
1404 * As the arguments are processed, their strings should be NULL'd out in
1405 * the argv array.
1406 */
1407static int processArgs(
1408 const int argc,
1409 void * argv[],
1410 char ** hostName,
1411 unsigned int * portNum,
1412 unsigned int * isClient,
1413 int * isBlocking,
1414 int * recvTimeout,
1415 char ** serverInfoFile,
1416 CommsProtocol * protocol,
1417 int * maxPacketSize,
1418 VerbosityLevel * verbosity,
1419 int * isUsingSeqNum,
1420 int * udpSendBufSize,
1421 int * udpRecvBufSize)
1422{
1423 int retVal = RTIOSTREAM_NO_ERROR;
1424 int count = 0;
1425
1426 while(count < argc) {
1427 const char *option = (char *)argv[count];
1428 count++;
1429
1430 if (option != NULL) {
1431
1432 if ((strcmp(option, "-hostname") == 0) && (count != argc)) {
1433
1434 *hostName = (char *)argv[count];
1435 count++;
1436 argv[count-2] = NULL;
1437 argv[count-1] = NULL;
1438
1439 } else if ((strcmp(option, "-port") == 0) && (count != argc)) {
1440 char tmpstr[2];
1441 int itemsConverted;
1442 const char *portStr = (char *)argv[count];
1443
1444 count++;
1445
1446 itemsConverted = sscanf(portStr,"%d%1s", (int *) portNum, tmpstr);
1447 if ( (itemsConverted != 1) ||
1448 ( ((*portNum != 0) && (*portNum < 255)) || (*portNum > 65535))
1449 ) {
1450
1451 retVal = RTIOSTREAM_ERROR;
1452 } else {
1453
1454 argv[count-2] = NULL;
1455 argv[count-1] = NULL;
1456 }
1457
1458 } else if ((strcmp(option, "-client") == 0) && (count != argc)) {
1459
1460 *isClient = ( strcmp( (char *)argv[count], "1") == 0 );
1461
1462 count++;
1463 argv[count-2] = NULL;
1464 argv[count-1] = NULL;
1465
1466 } else if ((strcmp(option, "-blocking") == 0) && (count != argc)) {
1467
1468 *isBlocking = ( strcmp( (char *)argv[count], "1") == 0 );
1469
1470 count++;
1471 argv[count-2] = NULL;
1472 argv[count-1] = NULL;
1473
1474 } else if ((strcmp(option, "-verbose") == 0) && (count != argc)) {
1475 int verbosityVal;
1476 int itemsConverted;
1477 const char *verbosityStr = (char *)argv[count];
1478 count++;
1479 itemsConverted = sscanf(verbosityStr,"%d", &verbosityVal);
1480
1481 if ((itemsConverted != 1) || (verbosityVal < 0)) {
1482 retVal = RTIOSTREAM_ERROR;
1483 } else {
1484 *verbosity = (VerbosityLevel) verbosityVal;
1485 argv[count-2] = NULL;
1486 argv[count-1] = NULL;
1487 }
1488
1489 } else if ((strcmp(option, "-recv_timeout_secs") == 0) && (count != argc)) {
1490 char tmpstr[2];
1491 int itemsConverted;
1492 const char *timeoutSecsStr = (char *)argv[count];
1493
1494 count++;
1495
1496 itemsConverted = sscanf(timeoutSecsStr,"%d%1s", (int *) recvTimeout, tmpstr);
1497 if ( itemsConverted != 1 ) {
1498 retVal = RTIOSTREAM_ERROR;
1499 } else {
1500
1501 argv[count-2] = NULL;
1502 argv[count-1] = NULL;
1503 }
1504
1505 } else if((strcmp(option, "-server_info_file") == 0) && (count != argc)) {
1506 *serverInfoFile= (char *) argv[count];
1507
1508 count++;
1509 argv[count-2] = NULL;
1510 argv[count-1] = NULL;
1511 } else if ((strcmp(option, "-protocol") == 0) && (count != argc)) {
1512 char * protocolStr = (char *) argv[count];
1513 count++;
1514 argv[count-2] = NULL;
1515 argv[count-1] = NULL;
1516 /* initialize dependent properties */
1517 *isUsingSeqNum = 0;
1518 /* process protocolStr */
1519 if (strcmp(protocolStr, TCP_PROTOCOL_STRING) == 0) {
1520 *protocol = TCP_PROTOCOL;
1521 }
1522 else if (strcmp(protocolStr, UDP_PROTOCOL_STRING) == 0) {
1523 *protocol = UDP_PROTOCOL;
1524 }
1525 else if (strcmp(protocolStr, UDP_PACKET_LOSS_DETECTON_PROTOCOL_STRING) == 0) {
1526 *protocol = UDP_PROTOCOL;
1527 /* enable sequence number protocol */
1528 *isUsingSeqNum = 1;
1529 }
1530 else {
1531 /* unrecognized protocol */
1532 retVal = RTIOSTREAM_ERROR;
1533 }
1534 } else if ((strcmp(option, "-udpmaxpacketsize") == 0) && (count != argc)) {
1535 char tmpstr[2];
1536 int itemsConverted;
1537 const char *maxUPDSizeStr = (char *)argv[count];
1538
1539 count++;
1540
1541 itemsConverted = sscanf(maxUPDSizeStr,"%d%1s", maxPacketSize, tmpstr);
1542 if ( itemsConverted != 1 ) {
1543 retVal = RTIOSTREAM_ERROR;
1544 } else {
1545 argv[count-2] = NULL;
1546 argv[count-1] = NULL;
1547 }
1548 }else if ((strcmp(option, "-udpsendbuffersize") == 0) && (count != argc)) {
1549 char tmpstr[2];
1550 int itemsConverted;
1551 const char *udpSendBufSizeStr = (char *)argv[count];
1552
1553 count++;
1554
1555 itemsConverted = sscanf(udpSendBufSizeStr,"%d%1s", udpSendBufSize, tmpstr);
1556 if ( itemsConverted != 1 ) {
1557 retVal = RTIOSTREAM_ERROR;
1558 } else {
1559 argv[count-2] = NULL;
1560 argv[count-1] = NULL;
1561 }
1562 }else if ((strcmp(option, "-udpreceivebuffersize") == 0) && (count != argc)) {
1563 char tmpstr[2];
1564 int itemsConverted;
1565 const char *udpRecvBufSizeStr = (char *)argv[count];
1566
1567 count++;
1568
1569 itemsConverted = sscanf(udpRecvBufSizeStr,"%d%1s", udpRecvBufSize, tmpstr);
1570 if ( itemsConverted != 1 ) {
1571 retVal = RTIOSTREAM_ERROR;
1572 } else {
1573 argv[count-2] = NULL;
1574 argv[count-1] = NULL;
1575 }
1576 } else {
1577 /* issue a warning for the unexpected argument: exception
1578 * is first argument which might be the executable name (
1579 * SIL/PIL and extmode use-cases). */
1580 if ((count!=1) || (strncmp(option, "-", 1)==0)) {
1581 printf("The argument '%s' passed to rtiostream_tcpip is "
1582 "not valid and will be ignored.\n", option);
1583 }
1584 }
1585 }
1586 }
1587 return retVal;
1588}
1589
1590/* Function: clientOpenSocket =================================================
1591 * Abstract:
1592 * Open a connection as Client
1593 */
1594#if (!defined(VXWORKS))
1595static SOCKET clientOpenSocket(char * hostName, unsigned int portNum, CommsProtocol protocol, int udpSendBufSize, int udpRecvBufSize) {
1596
1597 struct sockaddr_in sa;
1598 unsigned long addr = INADDR_NONE;
1599 int errStatus = RTIOSTREAM_NO_ERROR;
1600 SOCKET cSock = INVALID_SOCKET;
1601
1602 addr = nameLookup(hostName);
1603
1604 if (addr!=INADDR_NONE) {
1605
1606 sa.sin_addr.s_addr = addr;
1607 sa.sin_family = AF_INET; /*hp->h_addrtype;*/
1608 sa.sin_port = htons((unsigned short) portNum);
1609
1610 /*
1611 * Create the sockets & make connections.
1612 */
1613 if (protocol == TCP_PROTOCOL) {
1614 cSock = socket(PF_INET,SOCK_STREAM,0);
1615 }
1616 else {
1617 cSock = socket(PF_INET,SOCK_DGRAM,0);
1618 }
1619
1620 if (cSock == INVALID_SOCKET) {
1621 errStatus = RTIOSTREAM_ERROR;
1622 printf("socket() call failed for comm socket.\n");
1623 }
1624 } else {
1625 errStatus = RTIOSTREAM_ERROR;
1626 }
1627
1628 if (protocol == UDP_PROTOCOL)
1629 {
1630 if (errStatus!=RTIOSTREAM_ERROR)
1631 {
1632 /* increase the UDP socket send size to increase the
1633 * transfer rate */
1634 int sockStatus =
1635 setsockopt(cSock, SOL_SOCKET, SO_SNDBUF,(char*)&udpSendBufSize, sizeof(int));
1636 if (sockStatus == SOCK_ERR) {
1637 printf("setsocketopt() SO_SNDBUF call failed.\n");
1638 cSock = INVALID_SOCKET;
1639 errStatus = RTIOSTREAM_ERROR;
1640 }
1641 }
1642 if (errStatus!=RTIOSTREAM_ERROR)
1643 {
1644 /* increase the UDP socket receive size to decrease the
1645 * possibility of buffer overflow */
1646 int sockStatus =
1647 setsockopt(cSock, SOL_SOCKET, SO_RCVBUF,(char*)&udpRecvBufSize, sizeof(int));
1648 if (sockStatus == SOCK_ERR) {
1649 printf("setsocketopt() SO_RCVBUF call failed.\n");
1650 cSock = INVALID_SOCKET;
1651 errStatus = RTIOSTREAM_ERROR;
1652 }
1653 }
1654 }
1655
1656 if (errStatus!=RTIOSTREAM_ERROR) {
1657 if (connect(cSock, (struct sockaddr *)&sa, sizeof(sa)) == SOCK_ERR) {
1658 char tmp[1024];
1659
1660 sprintf(tmp,
1661 "Attempting to establish connection with hostname '%s' "
1662 "through port %d.\n",
1663 hostName,
1664 ntohs(sa.sin_port));
1665 cSock = INVALID_SOCKET;
1666 printf("%s",tmp);
1667 }
1668 }
1669
1670 return cSock;
1671}
1672#endif
1673
1674/* Function: waitForClientClose =============================================
1675 * Abstract:
1676 *
1677 * Allow the client to close its end of the socket connection before the server
1678 * closes its own socket.
1679 *
1680 * The server will receive any outstanding data on the socket. When the server
1681 * receives 0 bytes, it indicates that it has acknowledged that the client
1682 * is closing its socket (this is essential for the client to complete
1683 * closing its socket without error) or that it timed out waiting for the client to
1684 * close its socket.
1685 *
1686 */
1687static int waitForClientClose(ConnectionData * connection) {
1688 int retVal = RTIOSTREAM_NO_ERROR;
1689#define TMP_BUF_SIZE (40)
1690 char * tmpBuf[TMP_BUF_SIZE];
1691 size_t numRecvd;
1692 /* cache the original blockingRecvTimeout */
1693 int savedBlockingRecvTimeout = connection->blockingRecvTimeout;
1694 /* wait time for client to close its socket */
1695 connection->blockingRecvTimeout = BLOCKING_RECV_TIMEOUT_SOCK_SHUTDOWN;
1696 do {
1697 retVal = serverStreamRecv(connection, (void *) tmpBuf, TMP_BUF_SIZE, &numRecvd);
1698 } while ((numRecvd > 0) && (retVal == RTIOSTREAM_NO_ERROR));
1699 /* restore blockingRecvTimeout */
1700 connection->blockingRecvTimeout = savedBlockingRecvTimeout;
1701#undef TMP_BUF_SIZE
1702 return retVal;
1703}
1704
1705/***************** VISIBLE FUNCTIONS ******************************************/
1706
1707/* Function: rtIOStreamOpen =================================================
1708 * Abstract:
1709 * Open the connection with the target.
1710 */
1711int rtIOStreamOpen(int argc, void * argv[])
1712{
1713 char *xHostName = NULL; /* default */
1714 char *serverInfoFile = NULL; /* default */
1715 unsigned int xPortNum = (SERVER_PORT_NUM); /* default */
1716 unsigned int isClient = 0; /* default */
1717 CommsProtocol protocol = DEFAULT_PROTOCOL;
1718 int isBlockingRecv = EXT_BLOCKING; /* default */
1719 int blockingRecvTimeout = DEFAULT_BLOCKING_RECV_TIMEOUT; /* rogue value */
1720 int maxPacketSize = DEFAULT_MAX_UDP_PACKET_SIZE;
1721 VerbosityLevel verbosity = DEFAULT_VERBOSITY;
1722 int isUsingSeqNum = DEFAULT_IS_USING_SEQ_NUM;
1723 int udpSendBufSize = DEFAULT_UDP_SOCKET_SEND_SIZE_REQUEST;
1724 int udpRecvBufSize = DEFAULT_UDP_SOCKET_RECEIVE_SIZE_REQUEST;
1725 int result = RTIOSTREAM_NO_ERROR;
1726 int streamID;
1727 SOCKET sock = INVALID_SOCKET;
1728
1729 /* determine the streamID for this new connection */
1730 streamID = getConnectionID();
1731 if (streamID == RTIOSTREAM_ERROR) {
1732 result = RTIOSTREAM_ERROR;
1733 return result;
1734 }
1735
1736 result = processArgs(argc, argv,
1737 &xHostName,
1738 &xPortNum,
1739 &isClient,
1740 &isBlockingRecv,
1741 &blockingRecvTimeout,
1742 &serverInfoFile,
1743 &protocol,
1744 &maxPacketSize,
1745 &verbosity,
1746 &isUsingSeqNum,
1747 &udpSendBufSize,
1748 &udpRecvBufSize);
1749
1750 if (result == RTIOSTREAM_ERROR) {
1751 return result;
1752 }
1753
1754 if (verbosity) {
1755 printf("rtIOStreamOpen\n");
1756 }
1757
1758 if (isBlockingRecv) {
1759 /* blocking: if blockingRecvTimeout has not been set, initialize to the client or
1760 * server specific default */
1761 if ((blockingRecvTimeout == DEFAULT_BLOCKING_RECV_TIMEOUT) ||
1762 (blockingRecvTimeout < BLOCKING_RECV_TIMEOUT_10MS)) {
1763 if (isClient) {
1764 blockingRecvTimeout = DEFAULT_BLOCKING_RECV_TIMEOUT_SECS_CLIENT;
1765 }
1766 else {
1767 blockingRecvTimeout = DEFAULT_BLOCKING_RECV_TIMEOUT_SECS_SERVER;
1768 }
1769 }
1770 }
1771 else {
1772 /* not blocking: set the timeout to return immediately */
1773 blockingRecvTimeout = BLOCKING_RECV_TIMEOUT_NOWAIT;
1774 }
1775
1776#ifdef VXWORKS /* UDP is not supported on VxWorks */
1777 if (protocol == UDP_PROTOCOL) {
1778 result = RTIOSTREAM_ERROR;
1779 return result;
1780 }
1781#endif
1782
1783#ifdef _WIN32
1784 {
1785 WSADATA data;
1786 if (WSAStartup((MAKEWORD(1,1)), &data)) {
1787 result = RTIOSTREAM_ERROR;
1788 printf("WSAStartup() call failed.\n");
1789 }
1790 }
1791#endif
1792
1793 if (result != RTIOSTREAM_ERROR) { /* polyspace DEFECT:USELESS_IF [Not a defect:Unset] "Needed for Windows" */
1794 if (isClient == 1) {
1795#if (!defined(VXWORKS)) /* Client side connection not supported on VxWorks */
1796 sock = clientOpenSocket(xHostName, xPortNum, protocol,udpSendBufSize,udpRecvBufSize);
1797 if (sock == INVALID_SOCKET) {
1798 result = RTIOSTREAM_ERROR;
1799 }
1800#endif
1801 } else {
1802 sock = serverOpenSocket((int)xPortNum, serverInfoFile, protocol,udpSendBufSize,udpRecvBufSize);
1803 if (sock == INVALID_SOCKET) {
1804 result = RTIOSTREAM_ERROR;
1805 }
1806 }
1807 }
1808
1809 if (result != RTIOSTREAM_ERROR) {
1810 int isServer;
1811 if (isClient == 1) {
1812 isServer = 0;
1813 }
1814 else {
1815 isServer = 1;
1816 }
1817 result = initConnectionData(streamID,
1818 isServer,
1819 protocol,
1820 sock,
1821 blockingRecvTimeout,
1822 maxPacketSize,
1823 (int)xPortNum,
1824 serverInfoFile,
1825 verbosity,
1826 isUsingSeqNum,
1827 udpSendBufSize,
1828 udpRecvBufSize);
1829 }
1830
1831 if (result != RTIOSTREAM_ERROR) {
1832 result = streamID;
1833 }
1834 else {
1835 if (sock != INVALID_SOCKET) {
1836 /* cleanup */
1837 close(sock);
1838 }
1839 }
1840 return result;
1841}
1842
1843/* Function: rtIOStreamSend =====================================================
1844 * Abstract:
1845 * Sends the specified number of bytes on the comm line. Returns the number of
1846 * bytes sent (if successful) or a negative value if an error occurred. As long
1847 * as an error does not occur, this function is guaranteed to set the requested
1848 * number of bytes; the function blocks if tcpip's send buffer doesn't have
1849 * room for all of the data to be sent
1850 */
1851int rtIOStreamSend(
1852 int streamID,
1853 const void *src,
1854 size_t size,
1855 size_t *sizeSent)
1856{
1857 int retVal = RTIOSTREAM_NO_ERROR;
1858 ConnectionData * connection = getConnectionData(streamID);
1859 *sizeSent = 0;
1860
1861 if (connection == NULL) {
1862 retVal = RTIOSTREAM_ERROR;
1863 return retVal;
1864 }
1865
1866 if (connection->isServer) {
1867 if (connection->sock == INVALID_SOCKET) {
1868 serverAcceptSocket(connection);
1869 }
1870
1871 if (connection->sock != INVALID_SOCKET) {
1872#ifndef VXWORKS
1873 retVal = socketDataSet(connection, src, size, sizeSent);
1874#else
1875 /*
1876 * VXWORKS send prototype does not have src as const. This suppresses
1877 * the compiler warning.
1878 */
1879
1880 retVal = socketDataSet(connection, (char *)src, size, sizeSent);
1881#endif
1882 }
1883 } else { /* Client stream */
1884 retVal = socketDataSet(connection, src, size, sizeSent);
1885 }
1886
1887 if (connection->verbosity) {
1888 if ((*sizeSent > 0) || (connection->verbosity >= VERBOSITY_LEVEL_2)) {
1889 size_t currElement;
1890 printf("rtIOStreamSend (connection id %d): size = %lu, sizeSent = %lu: ",
1891 streamID,
1892 (unsigned long) size,
1893 (unsigned long) *sizeSent);
1894
1895 for (currElement = 0; currElement < *sizeSent; currElement++) {
1896 printf("%02x ", ((const unsigned char *) src)[currElement]);
1897 }
1898 printf("\n");
1899 }
1900 }
1901
1902 return retVal;
1903}
1904
1905
1906/* Function: rtIOStreamRecv ================================================
1907 * Abstract: receive data
1908 *
1909 */
1910int rtIOStreamRecv(
1911 int streamID,
1912 void * dst,
1913 size_t size,
1914 size_t * sizeRecvd)
1915{
1916 int retVal = RTIOSTREAM_NO_ERROR;
1917 ConnectionData * connection = getConnectionData(streamID);
1918
1919 *sizeRecvd = 0;
1920
1921 if (connection == NULL) {
1922 retVal = RTIOSTREAM_ERROR;
1923 return retVal;
1924 }
1925
1926 if (connection->isServer) {
1927 retVal = serverStreamRecv(connection, dst, size, sizeRecvd);
1928 } else { /* Client stream */
1929 int pending;
1930 if (connection->blockingRecvTimeout != BLOCKING_RECV_TIMEOUT_NEVER) {
1931 /* only call costly "select" if necessary */
1932 retVal = socketDataPending(connection->sock,
1933 connection,
1934 &pending,
1935 connection->blockingRecvTimeout);
1936 }
1937 else {
1938 /* block in "recv" if necessary */
1939 pending = 1;
1940 }
1941 if (pending && (size>0)) {
1942 retVal = socketDataGet(connection, (char *)dst, size, sizeRecvd);
1943 }
1944 }
1945
1946 if (connection->verbosity) {
1947 if ((*sizeRecvd > 0 ) || (connection->verbosity >= VERBOSITY_LEVEL_2)) {
1948 size_t currElement;
1949 printf("rtIOStreamRecv (connection id %d): size = %lu, sizeRecvd = %lu: ",
1950 streamID,
1951 (unsigned long) size,
1952 (unsigned long) *sizeRecvd);
1953
1954 for (currElement = 0; currElement < *sizeRecvd; currElement++) {
1955 printf("%02x ", ((const unsigned char *) dst)[currElement]);
1956 }
1957 printf("\n");
1958 }
1959 }
1960
1961 return retVal;
1962}
1963
1964/* Function: rtIOStreamClose ================================================
1965 * Abstract: close the connection.
1966 *
1967 */
1968int rtIOStreamClose(int streamID)
1969{
1970 int retVal = RTIOSTREAM_NO_ERROR;
1971 ConnectionData * connection = getConnectionData(streamID);
1972 if (connection == NULL) {
1973 retVal = RTIOSTREAM_ERROR;
1974 return retVal;
1975 }
1976
1977 if (connection->verbosity) {
1978 printf("rtIOStreamClose (connection id %d)\n", streamID);
1979 }
1980
1981 if (connection->isServer) {
1982 /* Only if the client actually made a connection */
1983 if (connection->sock != INVALID_SOCKET) {
1984 if (connection->protocol == TCP_PROTOCOL) {
1985 /* graceful shutdown */
1986 retVal = waitForClientClose(connection);
1987 }
1988
1989 /* close the socket */
1990 close(connection->sock);
1991 connection->sock = INVALID_SOCKET;
1992 }
1993 if (connection->protocol == TCP_PROTOCOL) {
1994 /* TCP: additionally close the listening socket
1995 *
1996 * for UDP, sock and listenSock are the same
1997 * socket - avoid closing it twice */
1998 close(connection->serverData->listenSock);
1999 }
2000 /* set to INVALID_SOCKET for all protocol types */
2001 connection->serverData->listenSock = INVALID_SOCKET;
2002 } else {
2003 SOCKET cSock = connection->sock;
2004 close(cSock);
2005
2006 }
2007 freeConnectionData(connection);
2008 return retVal;
2009}
2010
2011
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtiostream_utils_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtiostream_utils_c.html deleted file mode 100644 index 4bb2667cfbcc280d47581709c9c7959d0f5b694a..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtiostream_utils_c.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2012-2013 The MathWorks, Inc. */
2
3#include "rtiostream_utils.h"
4
5/* include rtIOStream interface to use */
6#include "rtiostream.h"
7
8/* TARGET_CONNECTIVITY_TESTING might be defined by some MathWorks tests for
9 * testing purposes only. In this case, we force SIZE_MAX to be 4 so we
10 * could test the pointer arithmetic in rtIOStreamBlockingSend and
11 * rtIOStreamBlockingRecv.
12 */
13#ifdef TARGET_CONNECTIVITY_TESTING
14 #define SIZE_MAX 4
15#else
16 /* define SIZE_MAX if not already defined (e.g. by a C99 compiler) */
17 #ifndef SIZE_MAX
18 #define SIZE_MAX ((size_t)-1)
19 #endif
20#endif
21
22#ifndef MemUnit_T
23 /* External Mode */
24 typedef unsigned char IOUnit_T;
25#else
26 /* SIL/PIL */
27 #ifdef HOST_WORD_ADDRESSABLE_TESTING
28 /* rtIOStream will handle data in single byte chunks
29 *
30 * uint8_T can be > 8-bits for certain portable word sizes
31 * cases (e.g. C2000) so use native type instead */
32 typedef unsigned char IOUnit_T;
33 #else
34 /* rtIOStream will handle data in MemUnit_T size chunks */
35 typedef MemUnit_T IOUnit_T;
36 #endif
37#endif
38
39/* Blocks until all requested outgoing data is sent */
40int rtIOStreamBlockingSend(const int streamID,
41 const void * const src,
42 uint32_T size) {
43
44 size_t transferAmount;
45 size_t sizeSent;
46 int errorCode = RTIOSTREAM_NO_ERROR;
47 const IOUnit_T * srcPtr = (const IOUnit_T *) src;
48
49 /* use a variable to avoid SIZE_MAX being treated as a constant
50 * which leads to compiler warnings for "MIN" on platforms where
51 * SIZE_MAX > UINT32_MAX */
52 size_t sizeMax = SIZE_MAX;
53 while (size > 0) {
54 /* support full uint32 size */
55 transferAmount = (size_t) MIN(sizeMax, size);
56 errorCode = rtIOStreamSend(streamID,
57 (const void *) srcPtr,
58 transferAmount,
59 &sizeSent);
60 if (errorCode == RTIOSTREAM_ERROR) {
61 return errorCode;
62 }
63 else {
64 size -= (uint32_T) sizeSent;
65 srcPtr += sizeSent;
66 }
67 }
68 return errorCode;
69}
70
71/* Blocks until all requested incoming data is received */
72int rtIOStreamBlockingRecv(const int streamID,
73 void * const dst,
74 uint32_T size) {
75
76 size_t transferAmount;
77 size_t sizeRecvd;
78 int errorCode = RTIOSTREAM_NO_ERROR;
79 IOUnit_T * dstPtr = (IOUnit_T *) dst;
80
81 /* use a variable to avoid SIZE_MAX being treated as a constant
82 * which leads to compiler warnings for "MIN" on platforms where
83 * SIZE_MAX > UINT32_MAX */
84 size_t sizeMax = SIZE_MAX;
85 while (size > 0) {
86 /* support full uint32 size */
87 transferAmount = (size_t) MIN(sizeMax, size);
88 errorCode = rtIOStreamRecv(streamID,
89 (void *) dstPtr,
90 transferAmount,
91 &sizeRecvd);
92 if (errorCode == RTIOSTREAM_ERROR) {
93 return errorCode;
94 }
95 else {
96 size -= (uint32_T) sizeRecvd;
97 dstPtr += sizeRecvd;
98 }
99 }
100 return errorCode;
101}
102
103
104
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtiostream_utils_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtiostream_utils_h.html deleted file mode 100644 index 01b903afd5502a1d9b609512458d08d492474bdc..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtiostream_utils_h.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1/* Copyright 2012 The MathWorks, Inc. */
2
3#ifndef _RTIOSTREAM_UTILS_H_
4#define _RTIOSTREAM_UTILS_H_
5
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11/* Target-side rtIOStream utility APIs */
12
13#include "rtwtypes.h" /* include definition of uint32_T */
14#include <stddef.h> /* include definition of size_t */
15
16/* MIN utility */
17#ifndef MIN
18#define MIN(a,b) ((a) < (b) ? (a) : (b))
19#endif
20
21/* Blocks until all requested outgoing data is sent. */
22extern int rtIOStreamBlockingSend(const int streamID,
23 const void * const src,
24 uint32_T size);
25
26/* Blocks until all requested incoming data is received. */
27extern int rtIOStreamBlockingRecv(const int streamID,
28 void * const dst,
29 uint32_T size);
30
31#ifdef __cplusplus
32}
33#endif /* __cplusplus */
34
35#endif /* _RTIOSTREAM_UTILS_H_ */
36
-
- - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtwhilite.js b/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtwhilite.js deleted file mode 100644 index bb368a11264d4adae9ce2732cfb978ce099d3d68..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtwhilite.js +++ /dev/null @@ -1,2081 +0,0 @@ -// Copyright 2006-2019 The MathWorks, Inc. - -// Class RTW_Hash ------------------------------------------------------------ -// Internal web browser doesn't change window.location.hash if the link points -// to the same page. -// RTW_Hash remembers the hash value when the page is loaded in the first time -// or a link is clicked. -// removeHiliteByHash cleans the high lighted elements according to the stored -// hash value -function RTW_Hash(aHash) { - if (aHash == null) { - this.fHash = ""; - } else { - this.fHash = aHash; - }; - - this.getHash = function() { - return this.fHash; - } - - this.setHash = function(aHash) { - this.fHash = aHash; - } -} - -RTW_Hash.instance = null; - -// Class RTW_TraceInfo -------------------------------------------------------- -function RTW_TraceInfo(aFileLinks) { - this.fFileLinks = aFileLinks; - this.fLines = new Array(); - this.fTotalLines = 0; // total number of highlighted lines - this.fNumLines = new Array(); - this.fFileIdxCache = new Array(); - this.fDisablePanel = false; - this.fCurrFileIdx = -1; - this.fCurrLineIdx = -1; - this.fCurrCodeNode = null; - this.getHtmlFileName = function(aIndex) { - if (aIndex < this.fFileLinks.length) { - var href = this.fFileLinks[aIndex].href; - return href.substring(href.lastIndexOf('/')+1); - } - } - this.getSrcFileName = function(aIndex) { - var name = this.getHtmlFileName(aIndex); - if (name) - name = RTW_TraceInfo.toSrcFileName(name); - return name; - } - this.getNumFileLinks = function() { - return this.fFileLinks.length; - } - this.setFileLinkColor = function(aIndex, aColor) { - var link = this.fFileLinks[aIndex]; - if (link && link.parentNode && link.parentNode.style) - link.parentNode.style.backgroundColor = aColor; - } - this.highlightFileLink = function(aIndex, aColor) { - for (var i = 0; i < this.fFileLinks.length; ++i) { - this.setFileLinkColor(i, i == aIndex ? aColor : ""); - } - } - this.highlightCurrFileLink = function(aColor) { - this.highlightFileLink(this.fCurrFileIdx); - } - this.highlightLines = function(aCodeNode,aColor) { - this.fCurrCodeNode = aCodeNode; - var lines = this.fLines[this.getHtmlFileName(this.fCurrFileIdx)]; - if (lines && aCodeNode) { - for (var i = 0; i < lines.length; ++i) { - var lineObj = aCodeNode.childNodes[lines[i]-1]; - if (lineObj) - lineObj.style.backgroundColor=aColor; - } - } - } - this.getFileIdx = function(aFile) { - if (this.fFileIdxCache[aFile] != null) - return this.fFileIdxCache[aFile]; - for (var i = 0; i < this.fFileLinks.length; ++i) { - if (this.getHtmlFileName(i) == aFile) { - this.fFileIdxCache[aFile] = i; - return i; - } - } - return null; - } - this.getCurrFileIdx = function() { return this.fCurrFileIdx; } - this.setNumHighlightedLines = function(aFileIdx, aNumLines) { - this.fNumLines[aFileIdx] = aNumLines; - updateNumHighlightedLines(this.fFileLinks[aFileIdx], aNumLines); - } - this.getNumLines = function(aFileIdx) { - return this.fNumLines[aFileIdx] != null ? this.fNumLines[aFileIdx] : 0; - } - this.getNumLinesAll = function() { - var sum = 0; - var len = this.fNumLines.length; - for (var i = 0; i < len; ++i) { - sum += this.getNumLines(i); - } - return sum; - } - this.getPrevButton = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdButtonPrev"); - else - return document.getElementById("rtwIdButtonPrev"); - } - this.getNextButton = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdButtonNext"); - else - return document.getElementById("rtwIdButtonNext"); - } - this.getPanel = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdTracePanel"); - else - return document.getElementById("rtwIdTracePanel"); - } - this.removeHighlighting = function() { - for (var i = 0; i < this.fFileLinks.length; ++i) { - this.setFileLinkColor(i, ""); - this.setNumHighlightedLines(i, 0); - } - // remove highlight and reset current code node - try { - if (this.fCurrCodeNode != null) - this.highlightLines(getCodeNode(),""); - } catch (e) {}; - this.fCurrCodeNode = null; - if (this.getPrevButton()) { this.getPrevButton().disabled = true; } - if (this.getNextButton()) { this.getNextButton().disabled = true; } - if (this.getPanel()) { this.getPanel().style.display = "none"; } - this.fCurrFileIdx = -1; - this.fCurrLineIdx = -1; - } - this.setCurrLineIdx = function(aLineIdx) { - this.fCurrLineIdx = aLineIdx; - } - this.getCurrLineIdx = function() { return this.fCurrLineIdx; } - this.setCurrent = function(aFileIdx, aLineIdx) { - this.fCurrFileIdx = aFileIdx; - var numLines = this.getNumLines(aFileIdx); - if (!numLines || aLineIdx >= numLines) - this.fCurrLineIdx = -1; - else - this.fCurrLineIdx = aLineIdx; - var allNumLines = this.getNumLinesAll(); - if (this.getPrevButton()) { - this.getPrevButton().disabled = (allNumLines <= 1 || !this.hasPrev()); - } - if (this.getNextButton()) { - this.getNextButton().disabled = (allNumLines <= 1 || !this.hasNext()); - } - if (this.getPanel() && !this.fDisablePanel) { - this.getPanel().style.display = 'block'; - } - } - this.setDisablePanel = function(aDisable) { - this.fDisablePanel = aDisable; - } - this.getPrevFileIdx = function() { - if (this.fCurrLineIdx > 0) - return this.fCurrFileIdx; - for (var i = this.fCurrFileIdx - 1; i >= 0; --i) - if (this.fNumLines[i] > 0) - return i; - return null; - } - // update the navigation bar state - this.updateNavState = function() { - if (this.getPrevButton()) - this.getPrevButton().disabled = !this.hasPrev(); - if (this.getNextButton()) - this.getNextButton().disabled = !this.hasNext(); - setTraceNumber(); - } - this.hasPrev = function() { - return this.getPrevFileIdx() != null; - } - this.getFirstFileIdx = function() { - for (var i = 0; i < this.getNumFileLinks(); ++i) - if (this.fNumLines[i] > 0) - return i; - } - this.getLastFileIdx = function() { - for (var i = this.getNumFileLinks(); i >= 0; --i) - if (this.fNumLines[i] > 0) - return i; - } - this.goFirst = function() { - this.fCurrFileIdx = this.getFirstFileIdx(); - this.fCurrLineIdx = 0; - this.updateNavState(); - } - this.goLast = function() { - this.fCurrFileIdx = this.getLastFileIdx();; - this.fCurrLineIdx = this.getNumLines(this.fCurrFileIdx) - 1; - this.updateNavState(); - } - this.goPrev = function() { - var fileIdx = this.getPrevFileIdx(); - if (fileIdx == null) - return; - if (fileIdx == this.fCurrFileIdx) - --this.fCurrLineIdx; - else { - this.fCurrFileIdx = fileIdx; - this.fCurrLineIdx = this.getNumLines(fileIdx) - 1; - } - this.updateNavState(); - } - this.getNextFileIdx = function() { - if (this.fCurrLineIdx < this.getNumLines(this.fCurrFileIdx) - 1 && this.getNumLines(this.fCurrFileIdx) > 0) - return this.fCurrFileIdx; - for (var i = this.fCurrFileIdx + 1; i < this.getNumFileLinks(); ++i) - if (this.fNumLines[i] > 0) - return i; - return null; - } - this.hasNext = function() { - return this.getNextFileIdx() != null; - } - this.goNext = function() { - var fileIdx = this.getNextFileIdx(); - if (fileIdx == null) - return; - if (fileIdx == this.fCurrFileIdx) - ++this.fCurrLineIdx; - else { - this.fCurrFileIdx = fileIdx; - this.fCurrLineIdx = 0; - } - this.updateNavState(); - } - this.setTotalLines = function(num) { - this.fTotalLines = num; - } - this.getTotalLines = function() { return this.fTotalLines;} - this.setLines = function(aFile, aLines) { - this.fLines[aFile] = aLines; - var index = this.getFileIdx(aFile); - if (index != null) - this.setNumHighlightedLines(index,aLines.length); - } - this.getLines = function(aFile) { - return this.fLines[aFile]; - } - // get current on focus line number - this.getCurrLine = function() { - var file = this.getHtmlFileName(this.getCurrFileIdx()); - var lines = this.fLines[file]; - var line = null; - if (lines) { - var line = lines[this.fCurrLineIdx]; - } - return line; - } - this.getHRef = function(aFileIdx, aLineIdx, offset) { - var file = this.getHtmlFileName(aFileIdx); - var lines = this.fLines[file]; - if (lines) { - var line = lines[aLineIdx]; - line = offset_line(line, offset); - file = file+"#"+line; - } - return file; - } - - this.getCurrentHRef = function(offset) { - return this.getHRef(this.fCurrFileIdx, this.fCurrLineIdx, offset); - } - this.setInitLocation = function(aFile, aLine) { - var fileIdx = this.getFileIdx(aFile); - var lineIdx = null; - if (fileIdx != null && aLine) { - var lines = this.getLines(aFile); - for (var i = 0; i < lines.length; ++i) { - if (lines[i] == aLine) { - lineIdx = i; - break; - } - } - } - if (fileIdx == null || lineIdx == null) - this.setCurrent(-1,-1); - else - this.setCurrent(fileIdx,lineIdx); - } -} - -// Static methods in RTW_TraceInfo - -RTW_TraceInfo.getFileLinks = function(docObj) { - var links; - if (docObj && docObj.getElementsByName) - links = docObj.getElementsByName("rtwIdGenFileLinks"); - return links ? links : new Array(); -} - -RTW_TraceInfo.toSrcFileName = function(aHtmlFileName) { - aHtmlFileName = aHtmlFileName.replace(/_c.html$/,".c"); - aHtmlFileName = aHtmlFileName.replace(/_h.html$/,".h"); - aHtmlFileName = aHtmlFileName.replace(/_cpp.html$/,".cpp"); - aHtmlFileName = aHtmlFileName.replace(/_hpp.html$/,".hpp"); - aHtmlFileName = aHtmlFileName.replace(/_cc.html$/,".hpp"); - return aHtmlFileName; -} - -RTW_TraceInfo.instance = null; - -// Class RTW_TraceArgs -------------------------------------------------------- -// file.c:10,20,30&file.h:10,20,30[&color=value] or -// sid=model:1[&color=value] -RTW_TraceArgs = function(aHash) { - this.fColor = null; - this.fFontSize = null; - this.fInitFile = null; - this.fInitLine = null; - this.fSID = null; - this.fFiles = new Array(); - this.fLines = new Array(); - this.fMessage = null; - this.fBlock = null; - this.fNumBlocks = 0; - this.fUseExternalBrowser = true; - this.fInStudio = false; - this.fModel2CodeSrc = null; - this.fInCodeTrace = false; - this.fTraceData = null; - this.fFileIdx = []; // filename to fileId - this.fRows = []; // highlighted rows indexed by fileId - this.fIDs = []; // highlighted IDs indexed by fileId - - this.hasSid = function() { - return !(this.fSID == null); - } - this.parseCommand = function(aHash) { - var args = new Array(); - args = aHash.split('&'); - for (var i = 0; i < args.length; ++i) { - var arg = args[i]; - sep = arg.indexOf('='); - if (sep != -1) { - var cmd = arg.substring(0,sep); - var opt = arg.substring(sep+1); - switch (cmd.toLowerCase()) { - case "color": - this.fColor = opt; - break; - case "fontsize": - this.fFontSize = opt; - break; - case "initfile": - this.fInitFile = RTW_TraceArgs.toHtmlFileName(opt); - break; - case "initline": - this.fInitLine = opt; - break; - case "msg": - this.fMessage = opt; - break; - case "block": - this.fBlock = unescape(opt); - break; - case "numblocks": - this.fNumBlocks = parseInt(opt); - break; - case "sid": - this.fSID = opt; - // convert sid to code location - break; - case "model2code_src": - // model2code_src from model or webview - this.fModel2CodeSrc = opt; - break; - case "useexternalbrowser": - this.fUseExternalBrowser = (opt=="true"); - break; - case "instudio": - this.fInStudio = (opt=="true"); - break; - case "incodetrace": - this.fInCodeTrace = (opt=="true"); - break; - case "tracedata": - this.fTraceData = decodeURI(opt); - break; - } - } - } - } - this.parseUrlHash = function(aHash) { - var rows, sep, assignSep; - if (aHash) { - args = aHash.split('&'); - for (var i = 0; i < args.length; ++i) { - var arg = args[i]; - sep = arg.indexOf(':'); - assignSep = arg.indexOf('='); - if (sep !== -1 && assignSep === -1) { - var fileLines = arg.split(':'); - var htmlFileName = RTW_TraceArgs.toHtmlFileName(fileLines[0]); - this.fFileIdx[htmlFileName] = i; - this.fFiles.push(htmlFileName); - if (fileLines[1]) { - rows = fileLines[1].split(','); - rows = uniqueRows(rows); - this.fLines.push(rows); - this.fRows[i] = rows; - } - } - } - if (this.fInitFile == null && this.fFiles.length > 0) { - this.fInitFile = this.fFiles[0]; - this.fInitLine = (this.fLines[0] == null ? -1 : this.fLines[0][0]); - } - } - } - this.parseUrlHash2 = function(aHash) { - aHash = decodeURI(aHash); - var rows; - var ids; - if (aHash && aHash.length > 0 && aHash[0] === "[") { - var input = eval(aHash); - var i; - var j; - // set highlight files from url - for (i=0; i 0 - && top.rtwreport_document_frame.location.href !== "about:blank" && forceReload !== true) { - updateHyperlinks(); - return; - } - - // modify modelref links - update_modelref_report_link(top.rtwreport_contents_frame.document); - try { - // ignore browser security error - update_modelref_report_link(top.rtwreport_document_frame.document); - } catch(e) {}; - - // redirect the page based on the url - var initPage = null; - if (RTW_TraceArgs.instance.getNumFiles()) { - var fileLinks = RTW_TraceInfo.getFileLinks(tocDocObj); - RTW_TraceInfo.instance = new RTW_TraceInfo(fileLinks); - RTW_TraceInfo.instance.removeHighlighting() - var numFiles = RTW_TraceArgs.instance.getNumFiles(); - var tLines = 0; - for (var i = 0; i < numFiles; ++i) { - RTW_TraceInfo.instance.setLines(RTW_TraceArgs.instance.getFile(i),RTW_TraceArgs.instance.getLines(i)); - tLines += RTW_TraceArgs.instance.getLines(i).length; - } - RTW_TraceInfo.instance.setTotalLines(tLines); - if (aPanel == false) { - RTW_TraceInfo.instance.setDisablePanel(true); - } - var initFile = RTW_TraceArgs.instance.getInitFile(); - RTW_TraceInfo.instance.setInitLocation(initFile,RTW_TraceArgs.instance.getInitLine()); - if (!hasInCodeTrace()) { - initPage = RTW_TraceInfo.instance.getCurrentHRef(); - } else { - initPage = initFile; - } - } else { - // catch error that document frame is in another domain - try { - var fileDocObj = top.rtwreport_document_frame.document; - if (fileDocObj.location && (!fileDocObj.location.href || fileDocObj.location.href == "about:blank")) { - var summaryPage = tocDocObj.getElementById("rtwIdSummaryPage"); - var tracePage = tocDocObj.getElementById("rtwIdTraceability"); - if (summaryPage) { - initPage = summaryPage.href; - } else if (tracePage) { - initPage = tracePage; - } - } - } catch(e) {}; - } - if (RTW_TraceArgs.instance && RTW_TraceArgs.instance.fMessage) { - // display diagnostic message - var linkId = "rtwIdMsgFileLink"; - var msgFile = tocDocObj.getElementById(linkId); - if (msgFile && msgFile.style) { - msgFile.style.display = "block"; - // Highlight the background of msg link - tocHiliteById(linkId); - } - initPage = "rtwmsg.html"; - } - if (initPage) { - var is_same_page = false; - try { - var fileDocObj = top.rtwreport_document_frame.document; - is_same_page = isSamePage(fileDocObj.location.href, initPage); - } catch(e) {}; - if (document.getElementById("rtwreport_document_frame")) { - document.getElementById("rtwreport_document_frame").setAttribute("src", initPage); - } else { - top.rtwreport_document_frame.location.href = initPage; - } - - if (is_same_page) { - // Goto the same page won't trigger onload function. - // Call it manuelly to highligh new code location. - rtwFileOnLoad(top.rtwreport_document_frame.document); - } - } -} - -// Compare if href1(i.e. file:///path/file1.html#222) and href2(i.e.file2.html) are same pages. -// isSamePage return true if file1 == file2. -function isSamePage(href1, href2) { - var page1 = href1.substring(href1.lastIndexOf('/')+1,href1.lastIndexOf('.html')); - var page2 = href2.substring(href2.lastIndexOf('/')+1,href2.lastIndexOf('.html')); - return (page1 == page2); -} - -// Callback for main document loading -function rtwMainOnLoad() { - rtwMainOnLoadFcn(document,null,true, false); - var newUrl; - // modify history state to avoid reload from pressing back - if (RTW_TraceArgs.instance && !RTW_TraceArgs.instance.getUseExternalBrowser() && - typeof window.history.replaceState === "function") { - if (window.location.search.length > 0) { - if (window.location.search.indexOf("loaded=true") === -1) { - newUrl = document.location.pathname + window.location.search + '&loaded=true'; - } else { - newUrl = document.location.pathname + window.location.search; - } - } else { - newUrl = document.location.pathname + window.location.search + '?loaded=true'; - } - window.history.replaceState("","",newUrl); - } -} - -// Helper function for traceability report -function rtwMainReload(location) { - // remove highlight filename and lines before reloading the page - if (RTW_TraceInfo.instance) - RTW_TraceInfo.instance.removeHighlighting(); - rtwMainOnLoadFcn(document,location,true,true); -} - -function rtwMainReloadNoPanel(location) { - rtwMainOnLoadFcn(document,location,false,true); -} - -// Callback for hyperlink "Remove Highlighting" -function rtwRemoveHighlighting() { - if (RTW_TraceInfo.instance) - RTW_TraceInfo.instance.removeHighlighting(); - if (rtwSrcFrame()) { - rtwSrcFrame().focus(); - } - if (hasInCodeTrace()) { - removeInCodeTraceHighlight(); - } -} - -// Display diagnostic message in document frame -function rtwDisplayMessage() { - var docObj = top.rtwreport_document_frame.document; - var msg = docObj.getElementById(RTW_TraceArgs.instance.fMessage); - if (!msg) { - msg = docObj.getElementById("rtwMsg_notTraceable"); - } - if (msg && msg.style) { - msg.style.display = "block"; // make message visible - var msgstr = msg.innerHTML; - // replace '%s' in message with block name - if (top.RTW_TraceArgs.instance) { - var sid = top.RTW_TraceArgs.instance.getBlock(); - if (sid) { - var block = sid; - if (top.RTW_rtwnameSIDMap && top.RTW_rtwnameSIDMap.instance && top.RTW_rtwnameSIDMap.instance.getRtwname(sid)) { - block = top.RTW_rtwnameSIDMap.instance.getRtwname(sid).rtwname; - block = block.replace("<", "<").replace(">", ">"); - } else { - block = sid; - } - if (block) { - msgstr = msgstr.replace("%s", block); - } - } - } - msg.innerHTML = msgstr; - } -} - -function updateHyperlinks() { - docObj = top.rtwreport_document_frame; - if (docObj && docObj.document) { - if (RTW_TraceArgs.instance === null || !RTW_TraceArgs.instance.getUseExternalBrowser()) { - var plain_link = docObj.document.getElementById("linkToText_plain"); - if (plain_link && plain_link.href && plain_link.href.indexOf("matlab:coder.internal.editUrlTextFile") === -1 ) { - plain_link.href = "matlab:coder.internal.editUrlTextFile('" + str2StrVar(plain_link.href) + "')"; - } - var alink = docObj.document.getElementById("linkToCS"); - var linkCmd = "matlab:coder.internal.viewCodeConfigsetFromReport"; - if (alink && alink.href && alink.href.indexOf(linkCmd) === -1) { - alink.href = linkCmd+ "('" + str2StrVar(alink.href) + "');"; - if(alink.style) { - alink.style.display = ""; - hidden_link = docObj.document.getElementById("linkToCS_disabled"); - if (hidden_link) { - hidden_link.style.display = "none"; - } - } - } - } else { - var alink = docObj.document.getElementById("linkToCS"); - if (alink && alink.style) { - alink.style.display = "none"; - hidden_link = docObj.document.getElementById("linkToCS_disabled"); - if (hidden_link) - hidden_link.style.display = ""; - } - if (typeof docObj.document.getElementsByClassName === "function") { - alinks = docObj.document.getElementsByClassName("callMATLAB"); - } else if (typeof docObj.document.getElementsByName === "function") { - alinks = docObj.document.getElementsByName("callMATLAB"); - } else { - alinks = []; - } - alink = docObj.document.getElementById("CodeGenAdvCheck"); - if (alink && alink.href && alink.href.indexOf("externalweb=true")===-1) { - alink.href = alink.href + "?externalweb=true"; - } - - if (typeof docObj.document.getElementsByName === "function") - var objs = docObj.document.getElementsByName("MATLAB_link"); - else - objs = []; - for (var objIndex = 0; objIndex < objs.length; ++objIndex) { - objs[objIndex].style.display = "none"; - } - } - } - updateCode2ModelLinks(docObj.document); - // modify modelref links - update_modelref_report_link(top.rtwreport_contents_frame.document); - try { - // ignore browser security error - update_modelref_report_link(top.rtwreport_document_frame.document); - } catch(e) {}; -} - -function update_modelref_report_link(docObj) { - if (docObj.getElementsByName) { - var arg = ""; - if (RTW_TraceArgs.instance && !RTW_TraceArgs.instance.getUseExternalBrowser()) { - arg = "?useExternalBrowser=false"; - } - if (RTW_TraceArgs && RTW_TraceArgs.instance && RTW_TraceArgs.instance.getModel2CodeSrc() != null) { - if (arg.length > 0) - arg = arg + "&model2code_src=" + RTW_TraceArgs.instance.getModel2CodeSrc(); - else - arg = "?model2code_src=" + RTW_TraceArgs.instance.getModel2CodeSrc(); - } - if (arg.length > 0) { - links = docObj.getElementsByName('external_link'); - for (var link_idx = 0; link_idx < links.length; ++link_idx) { - links[link_idx].href = links[link_idx].href + arg; - } - } - } -} - -function rtwResizeFrame(f) { - if (f) { - f.style.height = f.contentWindow.document.body.scrollHeight + "px"; - } -} - -function rtwPageOnLoad(id) { - // highlight toc entry - tocHiliteById(id); - // restore elements state - if (top && top.restoreState) { - if (top.rtwreport_contents_frame && top.rtwreport_contents_frame.document) - top.restoreState(top.rtwreport_contents_frame.document); - if (top.rtwreport_document_frame && top.rtwreport_document_frame.document) { - top.restoreState(top.rtwreport_document_frame.document); - rtwResizeFrame(top.rtwreport_document_frame.document.getElementById("rtwIdContentsIframe")); - } - } - updateHyperlinks(); -} - -// highlight code after changeSys -function rtwChangeSysCallback(sid) { - if (sid == "" || typeof RTW_Sid2UrlHash == "undefined" || !RTW_Sid2UrlHash.instance) - return false; - urlHash = RTW_Sid2UrlHash.instance.getUrlHash(sid); - if (urlHash != undefined) { - if (RTW_TraceArgs && RTW_TraceArgs.instance && - !RTW_TraceArgs.instance.getUseExternalBrowser()) - urlHash = (urlHash == "")? "?useExternalBrowser=false" : - urlHash+"&useExternalBrowser=false"; - rtwMainReload(urlHash, true); - return true; - } else { - // remove highlighting from traceinfo - rtwRemoveHighlighting(); - return false; - } -} - -function emlFileOnload(docObj) { - var loc = docObj.location; - if (loc.hash) { - var line = loc.hash.substring(1); - hiliteEmlLine(docObj, line); - } -} - -function hiliteEmlLine(docObj, line) { - var bgColor; - if (top.HiliteCodeStatus) - bgColor = "#66CCFF"; - else - bgColor = "#E8D152"; - // unhighlight - if (typeof docObj.HiliteLine != "undefined") { - trObj = docObj.getElementById("LN_"+docObj.HiliteLine); - if (trObj != null) { - trObj.style.backgroundColor = ""; - } - } - // hilighlight - trObj = docObj.getElementById("LN_"+line); - if (trObj != null) { - trObj.style.backgroundColor = bgColor; - docObj.HiliteLine = line; - } -} - -function emlLineOnClick(docObj,sid,line) { - if (top) { - top.HiliteCodeStatus = top.rtwChangeSysCallback(sid); - } - hiliteEmlLine(docObj, line); -} - -function updateCode2ModelLinks(docObj) { - var webviewFrame = top.document.getElementById('rtw_webviewMidFrame'); - var link2model = false; - var isTestHarness = false; - if (top.testHarnessInfo && top.testHarnessInfo.IsTestHarness === "1") { - isTestHarness = true; - } - if (webviewFrame || isTestHarness) { - if (webviewFrame && RTW_TraceArgs.instance && - (RTW_TraceArgs.instance.getModel2CodeSrc() !== "model" || - RTW_TraceArgs.instance.getUseExternalBrowser()) - ) { - hiliteCmd = "javascript:top.rtwHilite("; - } else { - hiliteCmd = "matlab:coder.internal.code2model("; - link2model = true; - } - var objs = docObj.getElementsByName('code2model'); - var o = null; - var str = ''; - var sid = ''; - var pattern = "'code2model',"; - for (var objIndex = 0; objIndex < objs.length; ++objIndex) { - o = objs[objIndex]; - str = o.href.substring(o.href.indexOf('(')+1); - if (str.indexOf(pattern) > -1) { - str = str.substring(str.indexOf(pattern) + pattern.length); - } - o.href = hiliteCmd + str; - if (link2model && isTestHarness) { - sid = str.substring(0, str.indexOf(")")); - o.href = hiliteCmd + sid + ",'" + - top.testHarnessInfo.HarnessName+ "','" + - top.testHarnessInfo.HarnessOwner+ "','" + - top.testHarnessInfo.OwnerFileName + "');"; - } - } - } -} - -function rtwHilite(aBlock,aParentSID) { - if (aBlock.indexOf('-') !== -1) { - // remove sid range: model:sid:2-10 => model:sid - var s; - s = aBlock.split(':'); - if (s.length > 0) { - s = s[s.length-1]; - if (s.indexOf('-') != -1) { - aBlock = aBlock.substring(0, aBlock.lastIndexOf(':')); - } - } - } - if (typeof aParentSID === "undefined") { - if (top.RTW_SidParentMap && top.RTW_SidParentMap.instance) - aParentSID = top.RTW_SidParentMap.instance.getParentSid(aBlock); - else - aParentSID = aBlock; - } - top.HiliteCodeStatus = true; - - // webview 2 defines an interface api, call slwebview. - if (top.slwebview) { - // webview 2.x - if (top.codeToWebView(aBlock, aParentSID) === -1) { - alert("Cannot highlight block in model Web view. It may not be exported."); - } - - } else { - // webview 1.x - if (hiliteBlockForRTWReport(aBlock,aParentSID) === false) { - if (hiliteBlockForRTWReport(aBlock, aBlock) === false) { - rtwHilite(aParentSID); - } - } - } -} - -function str2StrVar(str) { - return str.replace(/'/g,"''"); -} -window.onload=rtwMainOnLoad; - -// handle incode traceability highlighting -function inCodeTraceOnload() { - var tocDocObj = top.rtwreport_contents_frame.document; - if (!top.RTW_TraceArgs.instance) { - var summaryPage = tocDocObj.getElementById("rtwIdSummaryPage"); - top.rtwreport_document_frame.location.href = summaryPage.href; - return; - } - - var files = top.RTW_TraceArgs.instance.getFile(); - if (files.length === 0) { - if (top.RTW_TraceArgs.instance) { - var block = top.RTW_TraceArgs.instance.getBlock(); - block = block.replace("<", "<").replace(">", ">"); - } - top.rtwreport_document_frame.document.write("
No traceability information for block " + block + ".
"); - return; - }; - - var fileLinks = RTW_TraceInfo.getFileLinks(tocDocObj); - RTW_TraceInfo.instance = new RTW_TraceInfo(fileLinks); - - // update filelist with num of highlighted lines - var tocDoc = top.rtwreport_contents_frame.document; - var tLines = 0; - for (var i=0; i 1) { - var spanNodes = parent.getElementsByTagName('span'); - var len = spanNodes.length; - if (len > 0) { - if (aNumLines > 0) { - /* display number of matches */ - spanNodes.item(len-1).innerHTML = " ("+aNumLines+")"; - } else { - /* clear number of matches */ - spanNodes.item(len-1).innerHTML = ""; - } - } - } -} - -function setupInStudio() { - if (top.whole) { - var tmp = top.whole.rows.split(","); - tmp[0] = "35px"; - top.whole.rows = tmp.join(); - } - if (top.main) { - var tmp = top.main.cols.split(","); - tmp[0] = "0"; - top.main.cols = tmp.join(); - } - // add file list to source file - if (top.Html2SrcLink && top.Html2SrcLink.instance && top.fileSelector) { - var myDoc = top.fileSelector.document; - var fileSelector = myDoc.createElement("select"); - fileSelector.id = "fileSelector"; - fileSelector.onchange = top.fileSelectorOnChange; - var filename; - var filelink; - fileSelector.innerHTML += ""; - for (var i=0; i < top.fileList.length; i++) { - filename = top.fileList[i]; - filelink = top.Html2SrcLink.instance.getLink2Src(filename); - fileSelector.innerHTML += ""; - } - var bodyNode = myDoc.body; - bodyNode.insertBefore(fileSelector, bodyNode.firstElementChild); - var textNode = myDoc.createElement("span"); - textNode.innerHTML = "Goto: "; - bodyNode.insertBefore(textNode, fileSelector); - var myCss = myDoc.createElement("link"); - myCss.type = "text/css"; - myCss.rel = "stylesheet"; - myCss.href = "rtwreport.css"; - myDoc.getElementsByTagName("head")[0].appendChild(myCss); - } -} - -function toggleNavSideBar(val) { - if (top.main) { - var tmp = top.main.cols.split(","); - - if (val === "on") { - tmp[tmp.length-1] = "15px"; - } else { - tmp[tmp.length-1] = "0"; - } - top.main.cols = tmp.join(); - if (top.rtwreport_nav_frame) - top.rtwreport_nav_frame.location.href = "nav.html"; - } -}; - -function toggleNavToolBar(val) -{ - var midFrame = rtwMidFrame(); - if (midFrame) { - var tmp1 = midFrame.rows.split(","); - var frameIdx = getNavToolbarFrameIdx(); - if (val === "on") { - tmp1[frameIdx] = "40px"; - } else { - tmp1[frameIdx] = "0"; - } - midFrame.rows = tmp1.join(); - if (top.rtwreport_navToolbar_frame) { - top.rtwreport_navToolbar_frame.location.href = "navToolbar.html"; - } - } -}; - -var GlobalConfig = { - navHiliteColor: "#0000ff", - fileLinkHiliteColor: "#ffff99", - navToolbarBgcolor: "ivory", - offset: 10, - hiliteToken: false -}; -var NavSideBarState = { - calLineHeight: 0, - overLink: false, - linkTarget: null, - lastLinkTarget: null, - linkTargetIdx: 0 -} -function drawNavSideBar() { - var rectHeight = 1; - if (!top || !top.rtwreport_document_frame || !top.rtwreport_nav_frame) return; - - if (!top.RTW_TraceArgs.instance) return; - var fileIdx = top.RTW_TraceArgs.instance.getFileIdx(); - if (fileIdx === undefined) return; - var rows = top.RTW_TraceArgs.instance.getRows(fileIdx); - if (rows.length === 0) return; // no highlighted line - - var codeTbl = top.rtwreport_document_frame.document.getElementById("codeTbl"); - if (!codeTbl) return; // no code table - - var nRows = codeTbl.rows.length + 1; - var canvas = top.rtwreport_nav_frame.document.getElementById("canvas"); - canvas.width = top.rtwreport_nav_frame.innerWidth; - canvas.height = top.rtwreport_nav_frame.innerHeight-2; - NavSideBarState.calLineHeight = canvas.height/nRows; - if (canvas.getContext) { - var ctx = canvas.getContext("2d"); - ctx.clearRect(0, 0, canvas.width, canvas.height); - // fill background - ctx.fillStyle = GlobalConfig.navToolbarBgcolor; - ctx.fillRect(0, 0, canvas.width, canvas.height); - ctx.fillStyle = GlobalConfig.navHiliteColor; - for (var i=0;i" + anchorObj.text + "
  • "+ - size + "
  • "; - } - propObj.appendChild(ulObj); - - return propObj; -} -function getInspectLink(file, pathname, anchorObj) { - var model = top.reportModel; - var tokenId = anchorObj.id; - var navObj = document.createElement("div"); - navObj.id = "token_usage_nav"; - ulObj = document.createElement("ul"); - ulObj.id = "token_nav_links"; - ulObj.className="popup_attrib_list"; - var srcFileName = RTW_TraceInfo.toSrcFileName(file); - var defObj; - if (top.CodeDefine.instance.def[srcFileName + ":" + anchorObj.text]) { - defObj = top.CodeDefine.instance.def[srcFileName + ":" + anchorObj.text]; - } else if (top.CodeDefine.instance.def[anchorObj.text]) { - defObj = top.CodeDefine.instance.def[anchorObj.text]; - } - var line = anchorObj.id.substring(0,anchorObj.id.indexOf("c")); - // link to model - if (top.TraceInfoFlag && top.TraceInfoFlag.instance && - top.TraceInfoFlag.instance.traceFlag[srcFileName+":"+anchorObj.id]) { - return null; - } - // link to def/decl - if (defObj) { - var filename = defObj.file.split(/\//); - filename = filename[filename.length-1]; - ulObj.innerHTML += "
  • " + anchorObj.text + " defined at " + RTW_TraceInfo.toSrcFileName(filename) + " line " + defObj.line + "
  • "; - } - navObj.appendChild(ulObj); - return navObj; -} - -var LastHiliteTokenId = null; -function rmHiliteClickedToken() { - if (LastHiliteTokenId) { - var o = top.rtwreport_document_frame.document.getElementById(LastHiliteTokenId); - if (o) { - o.className = o.className.replace("hiliteToken", ""); - } - } -} -function hiliteClickedToken(elem) { - rmHiliteClickedToken(); - LastHiliteTokenId = elem.id; - elem.className += " hiliteToken"; -} - -var initLine = null; -function scrollToInitLine() { - if (initLine) { - var lineElem = top.rtwreport_document_frame.document.getElementById(initLine); - if (lineElem) { - lineElem.scrollIntoView(); - } - } -} - -function scrollToLineBasedOnHash(hashValue) { - // move to the current highlight line if the hash is not empty - if (hashValue === "") { - if (top.RTW_TraceInfo.instance && top.RTW_TraceInfo.instance.getCurrLine() !== null) { - top.rtwreport_document_frame.document.location.href=top.RTW_TraceInfo.instance.getCurrentHRef(); - top.initLine = top.rtwreport_document_frame.document.location.hash.substr(1); - } - } else { - // scroll and hilite line - hashValue = hashValue.substr(1); - if (isNaN(hashValue)) { - // #fcn_name - var pattern = "+newPage"; - if (hashValue.indexOf(pattern) != -1) { - hashValue = hashValue.replace(pattern, ''); - var lineElem = top.rtwreport_document_frame.document.getElementById(hashValue); - initLine = hashValue; // save initLine in case the dom is updated later by anootation - if (lineElem) { - lineElem.scrollIntoView(); - addTagToCurrentLine(); - } - - } else { - var token = null; - pattern = ["var_", "fcn_", "type_"]; - for (var i =0; i < pattern.length; i++) { - if (hashValue.indexOf(pattern[i]) === 0) { - token = hashValue.substr(pattern[i].length); - break; - } - } - if (token !== null && top.CodeDefine && top.CodeDefine.instance) { - var addr; - var filename = location.pathname.split(/\//); - filename = filename[filename.length-1]; - var srcFileName; - if (top.RTW_TraceInfo) { - srcFileName = top.RTW_TraceInfo.toSrcFileName(filename); - } - if (top.CodeDefine.instance.def[srcFileName + ":" + token]) { - addr = top.CodeDefine.instance.def[srcFileName + ":" + token]; - } else { - addr = top.CodeDefine.instance.def[token]; - } - if (addr) { - hilite_line(addr.line); - } - } else { // token id like #line"c"#col - if (hashValue.indexOf("c") !== -1) { - hilite_line(hashValue.substr(0, hashValue.indexOf("c")), hashValue); - } - } - } - } else { // #line - hilite_line(hashValue); - } - } - return false; - // hilite line number and scroll with an offset - function hilite_line(line, tokenId) { - if (isNaN(line)) return; - if (!tokenId) { - tokenId = line; - } - var elem = top.rtwreport_document_frame.document.getElementById(tokenId); - hiliteClickedToken(elem); - initLine = offset_line(line); - scrollToInitLine(); - } -} - -function tokenLinkOnClick(event) { - var alink = event.currentTarget; - if (alink.pathname === top.rtwreport_document_frame.location.pathname) { - event.preventDefault(); - scrollToLineBasedOnHash(alink.hash); - } - return false; -} -function inspectToken(file, pathname, event) { - var height = "70px"; - // show inspect data - if (top.rtwreport_inspect_frame) { - var windowObj = getInspectWindow(); - var propObj = getInspectData(file, event.currentTarget); - var navObj = getInspectLink(file, pathname, event.currentTarget); - if (navObj === null) { - closeInspectWindow(); - return false; - } - if (propObj === null) { - height = "50px"; - } else { - windowObj.appendChild(propObj); - } - windowObj.appendChild(navObj); - var data = top.rtwreport_inspect_frame.document.getElementById("popup_window"); - if (data) { - data.parentNode.replaceChild(windowObj.cloneNode(true), data); - } - } - var offsetHeight = 0; - var docHeight = 0; - if (typeof(top.rtwInspectFrame().document.body.offsetHeight) === "number") { - offsetHeight = top.rtwInspectFrame().document.body.offsetHeight; - } - if (typeof(top.rtwInspectFrame().document.height) === "number") { - docHeight = top.rtwInspectFrame().document.height; - } - if (offsetHeight > 0) { - height = ""+offsetHeight+"px"; - } else if (docHeight > 0) { - height = ""+docHeight+"px"; - } - setInspectWindow(height); - return false; -} -function setInspectWindow(height) { - // show inspect code frame - var midFrame = rtwMidFrame(); - if (midFrame) { - var tmp = midFrame.rows.split(","); - tmp[getInspectFrameIdx()] = height; - midFrame.rows = tmp.join(); - } -} -function closeInspectWindow() { - setInspectWindow(0); - return false; -} - -// set the trace number in the navigation toolbar -function setTraceNumber() { - if (RTW_TraceInfo.instance) { - var aFrame = rtwNavToolbarFrame(); - if (aFrame) { - var node = aFrame.document.getElementById("rtwIdTraceNumber"); - // calculate current line index over total highlighted lines - var currNum = RTW_TraceInfo.instance.getCurrLineIdx(); - for (var idx=0;idx 0) - line = (line > GlobalConfig.offset ? line - GlobalConfig.offset : 1); - return line; -} - -function load_js(frame, file) { - var h = frame.document.getElementsByTagName("head")[0]; - var o = h.getElementsByTagName('script'); - for (var i=0;iBlock-to-Code Highlighting Message - - - -

    Block-to-Code Highlighting Message

    - - \ No newline at end of file diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtwreport.css b/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtwreport.css deleted file mode 100644 index 54b994a6f2bac912ba0b2173a60c9788d7de7aa2..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtwreport.css +++ /dev/null @@ -1,257 +0,0 @@ -/* Copyright 2011-2016 The MathWorks, Inc. */ -body,p,table {font-family: calibri, verdana, sans-serif;} -button,.buton {font-family: calibri, verdana, sans-serif;} -button,.button {font-size: small;} -.small_font {font-size: small;} -h1 { font-weight: normal; color: #000066; } -td { vertical-align: top } -th { background-color: #eeeeee; text-align: left; } -a:link { color: #0033cc; } -a:visited { color: #666666; } -input { font-family: sans-serif, verdana, calibri; } -table { - background-color: #ffffff; - width: 100%; -} - -table.toc, table.button, table.panel { - border-style: none; -} - -/* LineNumber */ -.LN { - font-style: italic; - color: #888888; -} - -/* Comment */ -.CT { - font-style: italic; - color: #117755; -} - -/* PreProcessor */ -PP { - /* font-weight: bold; */ - color: #992211; -} - -/* Keyword */ -.KW { - /* font-weight: bold; */ - color: #0000FF; -} - -/* Datatype */ -.DT { - /* font-weight: bold; */ - color: #112266 -} - -.highlighted { - background-color: yellow; -} - -.highlightedCurrent { - background-color: rgba(150, 12, 116, 0.1); -} - -input.search { - background-color: #ffffff; -} - -input.failedSearch { - background-color: #F78181; -} - -/* ensure that code2model links are comment green */ -a.code2model:link { - color: #117755; - font-style: italic; -} -a.code2model:visited{ - color: #117755; - font-style: italic; -} - -.toc td, .button td, .panel td { - border-style: none; - padding: 4px; -} - -h1 { font-weight: normal; color: #000066; } -td { vertical-align: top } -th { background-color: #eeeeee; text-align: left; } -a:link { color: #0033cc; } -a:visited { color: #666666; } - -/******* table *******/ -/* default table style */ -table.AltRow { - border-collapse: collapse; border: none; border-spacing: 0pt; - border-top: solid #4F81BD 1.0pt; border-bottom: solid #4F81BD 1.0pt; -} -table.AltRow th, table.AltRow td { padding: 2pt 8pt 2pt 2pt } -/* default alternating row style */ -table.AltRow tr.even td { background-color:#D3DFEE; border:none;} -table.AltRow tr.odd td { background-color:#FFFFFF; border:none;} -/* tr class="heading" */ -table.AltRow tr.heading td, table.AltRow th { - background-color:#FFFFFF; font-weight:bold; border:none; - border-bottom: solid #4F81BD 1.0pt; -} -/* table class="FirstColumn" */ -table.FirstColumn td:first-child { font-weight:bold } -/* table class="TotalRow" */ -table.TotalRow tr:last-child { font-weight:bold } -table.TotalRow tr:last-child td { border-top: solid #4F81BD 1.0pt } - -a.closeButton { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) ); - background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9'); - background-color:#f9f9f9; - -webkit-border-top-left-radius:20px; - -moz-border-radius-topleft:20px; - border-top-left-radius:20px; - -webkit-border-top-right-radius:20px; - -moz-border-radius-topright:20px; - border-top-right-radius:20px; - -webkit-border-bottom-right-radius:20px; - -moz-border-radius-bottomright:20px; - border-bottom-right-radius:20px; - -webkit-border-bottom-left-radius:20px; - -moz-border-radius-bottomleft:20px; - border-bottom-left-radius:20px; - text-indent:0; - border:2px solid #dcdcdc; - display:inline-block; - color:#454143; - font-family:Arial; - font-size:15px; - font-weight:bold; - font-style:normal; - height:20px; - line-height:20px; - width:20px; - text-decoration:none; - text-align:center; - cursor: pointer; -} -a.closeButton:hover { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #e9e9e9), color-stop(1, #f9f9f9) ); - background:-moz-linear-gradient( center top, #e9e9e9 5%, #f9f9f9 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#f9f9f9'); - background-color:#e9e9e9; -} -a.closeButton:active { - position:relative; - top:1px; -} - -.button { - -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; - -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; - box-shadow:inset 0px 1px 0px 0px #ffffff; - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); - background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); - background-color:#ededed; - -webkit-border-top-left-radius:5px; - -moz-border-radius-topleft:5px; - border-top-left-radius:5px; - -webkit-border-top-right-radius:5px; - -moz-border-radius-topright:5px; - border-top-right-radius:5px; - -webkit-border-bottom-right-radius:5px; - -moz-border-radius-bottomright:5px; - border-bottom-right-radius:5px; - -webkit-border-bottom-left-radius:5px; - -moz-border-radius-bottomleft:5px; - border-bottom-left-radius:5px; - text-indent:0px; - border:1px solid #dcdcdc; - display:inline-block; - color:black; - font-family:Arial; - font-size:12px; - font-weight:bold; - font-style:normal; - height:12px; - line-height:12px; - width:45px; - text-decoration:none; - text-align:center; - text-shadow:1px 1px 0px #ffffff; -} -.button:hover { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) ); - background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed'); - background-color:#dfdfdf; -}.button:active { - position:relative; - top:1px; -}.button:disabled { - color:#777777; -} - -ul.nav_list { - list-style-type:none; - display: block; - margin: 0; - padding: 0; -} -ul.nav_list li { - list-style-type:none; - display: inline; - margin: 0 18px 0 0; - padding: 0; -} - -.nav_toolbar { - background-color: ivory; - margin-top: 0; -} - -.inspect_body { - margin: 0; - margin-bottom: 0; - display: inline; - vertical-align:middle; -} - -table.nav_table { - background-color: ivory; - border: none; - width: 100%; - display: inline; - vertical-align:middle; -} - -table#rtwIdTracePanel > tr > td { - white-space: nowrap; - table-layout:fixed; - vertical-align:middle; -} - -table.nav_table > button { - height: 20px; -} -select#fileSelector { - padding: 5px; - font-size: 16px; - line-height: 1; - border-radius: 0; - height: 34px; -} - -.treeTable table{ - table-layout: fixed; -} -.treeTable td:first-child > span{ - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - width: 100%; -} diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtwreport_utils.js b/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtwreport_utils.js deleted file mode 100644 index f58fb496cf4f81b357b1ab8f7fab93e17954488b..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtwreport_utils.js +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright 2011-2013 The MathWorks, Inc. - - -function local_onload() { - if (typeof top.rtwreport_document_frame !== "undefined") { - var docObj = window.document; - var alink = docObj.getElementById("linkToText_plain"); - if (alink) { - alink.href = "matlab:coder.internal.editUrlTextFile('" + alink.href + "')"; - } - alink = docObj.getElementById("linkToCS"); - if (alink) { - alink.href = "matlab:coder.internal.viewCodeConfigsetFromReport('" + alink.href + "');"; - } - } -} - -var utils = (function() { - - // Load via Microsoft.XMLDOM--for older versions of IE - function loadXML_MSXMLDOM(filename, callback, async) { - if (navigator.appName == "Microsoft Internet Explorer") { - // Internet Explorer 5/6 - try { - var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); - xmlDoc.async = async; - xmlDoc.onreadystatechange = function() { - if (xmlDoc.readyState == 4) { - callback(xmlDoc); - } - } - xmlDoc.load(filename); - return true; - } catch(e) { - } - } - return false; - } - - // Load via XMLHttpRequest - function loadXML_XHR(filename, callback, async) { - if (window.XMLHttpRequest) { - try { - var xhr = new XMLHttpRequest(); - xhr.onreadystatechange = function() { - if (this.readyState == 4) { - callback(this.responseXML); - } - } - xhr.open("GET", filename, async); - xhr.send(""); - return true; - } catch(e) { - if (navigator.appName === "Netscape" && e.code === 1012) { - // file not found: ignore - return true; - } - } - } - return false; - } - - return { - trimText: function(s) { - // In IE9, String.trim not present - if (s && s.trim) { - return s.trim(); - } - else { - return s; - } - }, - getText: function(elt) { - // In IE9, use 'text' property rather than 'textContent' - return elt.textContent ? elt.textContent : elt.text; - }, - loadXML: function(filename, callback, options) { - var async = !!options && typeof(options["async"]) !== "undefined" ? options.async : true; - if (!loadXML_XHR(filename, callback, async)) { - if (!loadXML_MSXMLDOM(filename, callback, async)) { - return false; - } - } - return true; - } - }; -})(); - -function code2model(sid) { - utils.loadXML("http://localhost:31415/matlab/feval/coder.internal.code2model?arguments=[\"" + sid + "\"]", function() {}); - //window.location.href = "matlab:coder.internal.code2model('" + sid + "')"; -} diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtwshrink.js b/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtwshrink.js deleted file mode 100644 index 8e2affbfbd2119cffdbdbb58eeaf5670e7b04da2..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rtwshrink.js +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright 2011-2017 The MathWorks, Inc. - -function RTW_STRUCT(prop, value) { - this.prop = prop; - if (typeof(value) == 'undefined') { - this.value = ""; - } else { - this.value = value; - } -} - -// initialize the cache when code generation report is first loaded -function RTW_BOOK() { - this.length = 0; - this.rtw_pages = new Array(); - this.getPage = function(file) { - return this.rtw_pages[file]; - }; - this.addPage = function(file) { - var page; - if (this.hasPage(file)) { - page = this.rtw_pages[file]; - } else { - page = new RTW_PAGE(file); - this.rtw_pages[file] = page; - } - return page; - }; - this.hasPage = function(file) { - return typeof(this.rtw_pages[file]) != 'undefined'; - }; - this.removePage = function(file) { - var tmp; - if (typeof(this.rtw_pages[file]) != 'undefined') { - tmp = this.rtw_pages[file]; - delete this.rtw_pages[file]; - this.length--; - } - return tmp; - }; -} - -if (!RTW_BOOK.instance) { - RTW_BOOK.instance = new RTW_BOOK(); -} - -function RTW_PAGE() { - this.length = 0; - this.items = new Array(); - this.pagename = ''; - if (arguments.length > 0 && typeof(arguments[1]) != 'undefined') { - this.pagename = arguments[1]; - } - - this.getItem = function(id) { - return this.items[id]; - }; - this.getItems = function() { - return this.items; - }; - this.addItem = function(id, value) { - var tmp; - if (typeof(value) != 'undefined') { - if (typeof(this.items[id]) != 'undefined') { - this.length++; - } else { - tmp = this.items[id]; - } - this.items[id] = value; - this.length++; - } - return tmp; - }; - this.hasItem = function(id) { - return typeof(this.items[id]) != 'undefined'; - }; - this.removeItem = function(id) { - var tmp; - if (typeof(this.items[id]) != 'undefined') { - tmp = this.items[id]; - delete this.items[id]; - this.length--; - } - return tmp; - }; -} - -function rtwTableShrink(doc, obj, id, isSymbol) { - var hide, hide_text, show, show_text; - if (isSymbol) { - hide = "[-]"; - hide_text = hide; - show = "[+]"; - show_text = show; - } else { - hide = "[hide]"; - hide_text = "[hide]"; - show = "[show]"; - show_text = "[show]"; - } - hide = "" + hide + ""; - show = "" + show + ""; - if (doc.getElementsByName) { - var o = doc.getElementsByName(id); - for (var oid = 0; oid < o.length; ++oid) { - if (o[oid].style.display === "none") { - o[oid].style.display = ""; - } else { - o[oid].style.display = "none"; - } - } - if (o.length >= 0 && addToPage) { - addToPage(doc, o[0], 'display'); - } - } - - // IE supports innerText while other browsers support textContent - if (obj.textContent) { - var objText = obj.textContent; - } else { - var objText = obj.innerText; - } - - if (objText.toLowerCase() === show_text.toLowerCase()) { - obj.innerHTML = hide; - } else { - obj.innerHTML = show; - } - - if (addToPage) { - addToPage(doc, obj, 'innerHTML'); - } -} - -function rtwTableExpand(doc, controlObj, id) { - if (doc.getElementById) { - var obj = doc.getElementById(id); - if (obj && obj.style.display === "none") { - rtwTableShrink(doc, controlObj, id, false); - } - } -} - -function restoreState(docObj) { - var filename = docObj.location.href; - if (RTW_BOOK.instance && RTW_BOOK.instance.hasPage(filename)) { - var page = RTW_BOOK.instance.getPage(filename); - var items = page.getItems(); - var elem; - if (docObj.getElementsByName) { - for (var i in items) { - var o = docObj.getElementsByName(i); - for (var oid = 0; oid < o.length; ++oid) { - elem = o[oid]; - if (items[i].prop === 'display') { - if (elem.style.display === 'none') { - elem.style.display = ''; - } else { - elem.style.display = 'none'; - } - } else if (items[i].prop === 'innerHTML') { - elem.innerHTML = items[i].value; - } - } - } - } - } -} - -function addToPage(docObj, obj, prop) { - var filename = docObj.location.href; - if (RTW_BOOK.instance) { - var page; - if (RTW_BOOK.instance.hasPage(filename)) { - page = RTW_BOOK.instance.getPage(filename); - } else { - page = RTW_BOOK.instance.addPage(filename); - } - if (page.hasItem(obj.id)) { - page.removeItem(obj.id); - } else { - var my_struct; - if (prop === "display") { - my_struct = new RTW_STRUCT(prop, obj.style.display); - } else { - my_struct = new RTW_STRUCT(prop, obj.innerHTML); - } - page.addItem(obj.id, my_struct); - } - } -} - -function rtwSwitchView(doc, obj1, obj2) { - if (doc.getElementsByName) { - var o = doc.getElementsByName(obj1); - for (var oid = 0; oid < o.length; ++oid) { - o[oid].style.display = "none"; - } - if (o.length >= 0 && addToPage) { - addToPage(doc, o[0], 'display'); - } - var o = doc.getElementsByName(obj2); - for (var oid = 0; oid < o.length; ++oid) { - o[oid].style.display = ""; - } - if (o.length >= 0 && addToPage) { - addToPage(doc, o[0], 'display'); - } - } -} diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rx_tx_buffer_sizes_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/rx_tx_buffer_sizes_h.html deleted file mode 100644 index 493e8c346b0806f1f8038016c61275f6a2404297..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/rx_tx_buffer_sizes_h.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2013-2016 The MathWorks, Inc. */
    2
    3/*
    4 * File: rx_tx_buffer_sizes.h
    5 *
    6 * Defines the buffer sizes for the various XIL services.
    7 * Make sure we are backwards compatible with PIL implementations that
    8 * define RTIOSTREAM_TX_BUFFER_BYTE_SIZE and RTIOSTREAM_RX_BUFFER_BYTE_SIZE
    9 * in their connectivity config. We will use these preprocessor defines to
    10 * derive both the RX and TX buffer sizes for the various XIL services and
    11 * make sure we don't incur more memory requirements.
    12 */
    13
    14#ifndef __RX_TX_BUFFER_SIZES_H__
    15#define __RX_TX_BUFFER_SIZES_H__
    16
    17#include "rtwtypes.h"
    18
    19/* transmit buffer size in mem units - no need to worry about fractions
    20 * as division in C always floors the result.
    21 */
    22#define RTIOSTREAM_TX_BUFFER_MEMUNIT_SIZE (RTIOSTREAM_TX_BUFFER_BYTE_SIZE / MEM_UNIT_BYTES)
    23
    24/* Receive buffer size */
    25#ifdef HOST_WORD_ADDRESSABLE_TESTING
    26#define RTIOSTREAM_RX_BUFFER_SIZE (RTIOSTREAM_RX_BUFFER_BYTE_SIZE)
    27#else
    28#define RTIOSTREAM_RX_BUFFER_SIZE (RTIOSTREAM_RX_BUFFER_BYTE_SIZE / MEM_UNIT_BYTES)
    29#endif
    30
    31/* # app services sharing the TX buffer allocation */
    32#ifdef CODE_INSTRUMENTATION_ENABLED
    33 #define NUM_APPS_SHARING_TX 2
    34#else
    35 /* XIL */
    36 #define NUM_APPS_SHARING_TX 1
    37#endif
    38
    39/* send buffer sizes for applications */
    40#ifdef HOST_WORD_ADDRESSABLE_TESTING
    41 /* buffer is actually defined in terms of "byte" IOUnits
    42 * so use BYTE_SIZE to make sure we have the same effective
    43 * buffer size during PWS */
    44 #define XIL_TX_BUFFER_MEMUNIT_SIZE (RTIOSTREAM_TX_BUFFER_BYTE_SIZE / NUM_APPS_SHARING_TX)
    45#else
    46 #define XIL_TX_BUFFER_MEMUNIT_SIZE (RTIOSTREAM_TX_BUFFER_MEMUNIT_SIZE / NUM_APPS_SHARING_TX)
    47#endif
    48
    49#if CODE_INSTRUMENTATION_ENABLED
    50 #define CODE_INSTR_TX_BUFFER_MEMUNIT_SIZE XIL_TX_BUFFER_MEMUNIT_SIZE
    51#endif
    52
    53#if CODER_ASSUMPTIONS_ENABLED == 1
    54/* buffer includes space for BUFFER_HEADER_SIZE */
    55#ifdef HOST_WORD_ADDRESSABLE_TESTING
    56 /* buffer is actually defined in terms of "byte" IOUnits
    57 * so multiply up to make sure we have the same effective
    58 * buffer size during PWS */
    59 #define CA_TX_BUFFER_MEMUNIT_SIZE (32 * MEM_UNIT_BYTES)
    60 #if CA_TX_BUFFER_MEMUNIT_SIZE > RTIOSTREAM_TX_BUFFER_BYTE_SIZE
    61 #error "Coder assumptions transmit buffer size must be less than or equal to the overall rtiostream transmit buffer size. Increase RTIOSTREAM_TX_BUFFER_BYTE_SIZE accordingly."
    62 #endif
    63#else
    64 /* simply reserve a 32 memunit buffer */
    65 #define CA_TX_BUFFER_MEMUNIT_SIZE 32
    66 #if CA_TX_BUFFER_MEMUNIT_SIZE > RTIOSTREAM_TX_BUFFER_MEMUNIT_SIZE
    67 #error "Coder assumptions transmit buffer size must be less than or equal to the overall rtiostream transmit buffer size. Increase RTIOSTREAM_TX_BUFFER_BYTE_SIZE accordingly."
    68 #endif
    69#endif
    70
    71#endif
    72
    73#define APPLICATION_ID_SIZE (sizeof(MemUnit_T))
    74#define WRITE_DATA_AVAIL_SIZE (sizeof(uint32_T))
    75#define BUFFER_HEADER_SIZE (APPLICATION_ID_SIZE + WRITE_DATA_AVAIL_SIZE)
    76#define APPLICATION_ID_IDX 0
    77#define PAYLOAD_SIZE_IDX (APPLICATION_ID_IDX + APPLICATION_ID_SIZE)
    78#define PAYLOAD_IDX (PAYLOAD_SIZE_IDX + WRITE_DATA_AVAIL_SIZE)
    79
    80#endif /*__RX_TX_BUFFER_SIZES_H__ */
    81
    82
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/search.js b/src/validation/FCC_Sys_New_harness_ert_rtw/html/search.js deleted file mode 100644 index 816380f81409e4e52d0992bb3e317d0e25fd465a..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/search.js +++ /dev/null @@ -1,559 +0,0 @@ -// Copyright 2007-2012 The MathWorks, Inc. - -function createHighlightSpanStart(num) -{ - return ""; -} - -var str2pos; // This is a map between a tag stripped string and the original string. -function getTagStrippedStringAndMap(aString) -{ - var tagStrippedString = new String(); - - str2pos = new Array(); - - var inTag = false; - var inScript = false; - - for (var strPos = 0; strPos < aString.length; strPos++) { - if (inTag && aString.charAt(strPos) == '>') { - inTag = false; - if (inScript && (strPos > 8) && (aString.slice(strPos, strPos - 8) == '/script>')) { - inScript = false; - } - continue; - } else if (!inTag && aString.charAt(strPos) == '<') { - inTag = true; - if (!inScript && aString.slice(strPos, strPos + 7) == ' str2posprev+1) // we have jumped some text, so there must be a tag - { - // insert end tag - newText += highlightEndTag; - - // insert intermediate body text tags - newText += bodyText.slice(str2posprev+1, str2pos[cnt]); - - // insert start tag - newText += highlightStartTag; - } - newText += bodyText.charAt(str2pos[cnt]); - str2posprev=str2pos[cnt]; - } - - // insert end - newText += highlightEndTag; - return newText; - -} - -// check to see if the sequence at position 'i' in taglessString is actually in -// the middle of an escape sequence. We assume escape sequences follow the pattern -// &;. We check for  , <, > and & -function isInEscapedSequence(i, taglessString, searchTerm) -{ - var escapeSeq = / |<|>|&/gi; - var maxEscapeSeqLength = 6; - var startPos = 0; - var endPos = 0; - - // exit if the search term has an escape sequence inside it - if (escapeSeq.test(searchTerm)) { - return false; - } - - // reset the escape sequence - escapeSeq = / |<|>|&/gi; - - // go back in the string until we find an ampersand or we hit maxEscapeSeqLength characters - tempI = i; - var bFound = false; - while (tempI >= 0 && tempI > (i-maxEscapeSeqLength)) { - if (taglessString.charAt(tempI) == "&") { - startPos = tempI; - bFound = true; - break; - } - tempI = tempI-1; - - // if we hit a ';' in any position other than the first while searching - // for an ampersand, then we cannot be inside an escape sequence - if (tempI >= 0 && taglessString.charAt(tempI) == ";") { - return false; - } - } - if (!bFound) { - return false; - } - // reset the escape sequence - escapeSeq = / |<|>|&/gi; - - var subString = taglessString.substring(startPos, startPos + maxEscapeSeqLength); - return escapeSeq.test(subString); -} - -// Adds highlighting to bodyText around searchTerm. Case sensitivity is optional. -// hitCount is used to a) count the number of search matches and b) Generate unique -// name strings for each highlighting SPAN element. -function addHighlight(bodyText, searchTerm, caseSensitive, hitCount) -{ - var highlightStartTag = ""; - var highlightEndTag = ""; - - var newText = ""; - var i = 0; - var previ = 0; - var bodyTextUC = bodyText.toUpperCase(); - - if (caseSensitive) { - var taglessString = getTagStrippedStringAndMap(bodyText); - } else { - var taglessString = getTagStrippedStringAndMap(bodyTextUC); - } - - // escape the search term in case the user input '<' or '>' etc - searchTerm = escapeSpecialChars(searchTerm); - - if (!caseSensitive) { - var searchTermUC = searchTerm.toUpperCase(); - } - - // search for subsequent matches - while (true) { - if (caseSensitive) { - i = taglessString.indexOf(searchTerm, i); - } else { - i = taglessString.indexOf(searchTermUC, i); - } - if (i < 0) break; - - // we have a match! - - // make sure that the match is not inside an escaped sequence of text - // such as   - if (isInEscapedSequence(i, taglessString, searchTerm)) { - i=i+1; - continue; - } - - // insert highlight tags that cross tag boundaries - highlightStartTag = createHighlightSpanStart(hitCount); - hitCount = hitCount+1; - newText += insertHighlighting(bodyText, previ, i, searchTerm.length, highlightStartTag, highlightEndTag); - previ = str2pos[i+searchTerm.length-1]+1; - - i = i + searchTerm.length; - } - - newText += bodyText.slice(previ, bodyText.length); - return [newText, hitCount]; -} - -function removeHighlight(bodyText) -{ - // We use regular expressions here rather than a straight text search because - // some browsers actually insert double quotes and capitalize. Also, each highlight - // name is uniquely numbered in order of discovery - var highlightStartTag = //i; - var highlightEndTag = /<\/span>/i; - - var newText = ""; - - var startPatternFirstIndex = -1; - var startPatternLastIndex = -1; - - var endPatternFirstIndex = -1; - var endPatternLastIndex = -1; - - while (highlightStartTag.test(bodyText) === true) { - startPatternFirstIndex = bodyText.search(highlightStartTag); - newText += bodyText.substring(0, startPatternFirstIndex); - startPatternLastIndex = bodyText.indexOf('>', startPatternFirstIndex+1); - - bodyText = bodyText.substr(startPatternLastIndex+1); - endPatternFirstIndex = bodyText.search(highlightEndTag); - newText += bodyText.substring(0, endPatternFirstIndex); - endPatternLastIndex = endPatternFirstIndex+7; - - bodyText = bodyText.substr(endPatternLastIndex); - } - if (startPatternFirstIndex < 0) { - return bodyText; - } else { - return newText+bodyText; - } -} - -function removeHighlightInAllDocs() -{ - if (top) { - for (var i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var currentDoc = top.frames[i].document; - if (typeof currentDoc.body !== "undefined" && currentDoc.body !== null) - currentDoc.body.innerHTML=removeHighlight(currentDoc.body.innerHTML); - } - } - } -} - -function findInDoc(searchStringFromSubmitBox, doc, caseSensitive, hitCount) -{ - var searchBody = doc.body.innerHTML; - // if the document is empty, or the documents is invalid, return - if (!doc.body || typeof(searchBody) === "undefined") { - return [false, hitCount]; - } - - // inject highlighting code into html - var result = addHighlight(searchBody, searchStringFromSubmitBox, caseSensitive, hitCount); - doc.body.innerHTML = result[0]; - - return [true, result[1]]; -} - -var currentlyHighlightedHit; - -function getSpansByName(name) -{ - var allSpans = []; - for (i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var currentDoc = top.frames[i].document; - var highlightedSpans = currentDoc.getElementsByName(name); - if (highlightedSpans && highlightedSpans.length && highlightedSpans.length > 0) { - for (j = 0; j < highlightedSpans.length; j++) { - allSpans = allSpans.concat(highlightedSpans[j]); - } - } - } - } - return allSpans; -} - -function isVisibleElement(elementID) -{ - if (elementID) - return elementID.offsetWidth > 0 || elementID.offsetHeight > 0; - else - return false; -} - -function areAllSpansVisible(spans) -{ - isVisible = true; - for (i = 0; i < highlightedSpans.length; i++) { - isVisible = isVisible && isVisibleElement(highlightedSpans[i]); - } - return isVisible; -} - -function getNextVisible() -{ - var isVisible = false; - var foundVisible = false; - while (!isVisible) { - currentlyHighlightedHit = currentlyHighlightedHit + 1; - highlightedSpans = setCurrentSearchMatchIfVisible(currentlyHighlightedHit); - if (highlightedSpans && highlightedSpans.length > 0) { - isVisible = true; - } else if (currentlyHighlightedHit < totalHits) { - continue; - } else { - // we have reached the end - isVisible = false; - currentlyHighlightedHit = 0; - highlightedSpans = null; - break; - } - } - - return highlightedSpans; -} - -function clearCurrentSearchMatch() -{ - // clear prior highlighting - spanName = "highlight" + currentlyHighlightedHit; - highlightedSpans = getSpansByName(spanName); - if (highlightedSpans && highlightedSpans.length) { - for (i = 0; i < highlightedSpans.length; i++) { - if (highlightedSpans[i]) { - highlightedSpans[i].setAttribute("class", "highlighted"); - } - } - } -} - -function setCurrentSearchMatchIfVisible(hitNum){ - currentlyHighlightedHit = hitNum; - var spanName = "highlight" + currentlyHighlightedHit; - var highlightedSpans = getSpansByName(spanName); - if (highlightedSpans && highlightedSpans.length) { - for (i = 0; i < highlightedSpans.length; i++) { - if (!isVisibleElement(highlightedSpans[i])) { - highlightedSpans = null; - break; - } - } - } - return highlightedSpans; -} - -// this takes in an option integer 'hitNum'. If not specified, it scrolls -// to the next hit -function scrollToNextHit(hitNum) -{ - var i = 0; - var found = false; - var spanName = ""; - var highlightedSpans; - var searchBox = findElement('searchTxtBox'); - - clearCurrentSearchMatch(); - - if (hitNum) { - // if a number is provided, use it - highlightedSpans = setCurrentSearchMatchIfVisible(hitNum); - } else { - // start working on next element to highlight - highlightedSpans = getNextVisible(); - } - - // we found the current - if (highlightedSpans && highlightedSpans.length > 0) { - highlightedSpans[0].scrollIntoView(); - for (i = 0; i < highlightedSpans.length; i++) { - highlightedSpans[i].setAttribute("class", "highlightedCurrent"); - } - searchBox.setAttribute("class", "search"); - - // if highlightedSpans is invalid, then we did not find any valid, visible subsequent matches - // wrap to beginning or indicate no matches - } else { - // Element not found. Scroll to first visible element - currentlyHighlightedHit = 0; - var highlightedSpans = getNextVisible(currentlyHighlightedHit); - if (highlightedSpans && highlightedSpans.length > 0) { - highlightedSpans[0].scrollIntoView(); - for (i = 0; i < highlightedSpans.length; i++) { - highlightedSpans[i].setAttribute("class", "highlightedCurrent"); - } - searchBox.setAttribute("class", "search"); - } else { - // there aren't any matches - searchBox.setAttribute("class", "failedSearch"); - } - } -} - -// find search box -function findElement(element) -{ - var i = 0; - for (i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var elem = top.frames[i].document.getElementById(element); - if (elem) { - return elem; - } - } - } -} - -// Restore search term once form is submitted -function initSearchBox(strInitValue) -{ - var txtBox = findElement('searchTxtBox'); - if (txtBox) { - txtBox.value = strInitValue; - } -} - -// Sets focus back on to the text box -function setFocusOnTxtBox() -{ - var txtBox = findElement('searchTxtBox'); - if (txtBox) { - txtBox.focus(); - txtBox.select(); - } - return txtBox; -} - -var previousSearchString; -var totalHits; -function findInAllDocs(searchStringFromSubmitBox, caseSensitive) -{ - if (previousSearchString != searchStringFromSubmitBox) { - // If the search string has changed or a new page has been loaded, do a new search - var hitCount = 1; - var i = 0; - var success = false; - previousSearchString = searchStringFromSubmitBox; - - // start by removing traceinfo highlighting - rtwRemoveHighlighting(); - - // remove all previous search highlighting - removeHighlightInAllDocs(); - - // 1. Iterate through all frames in window and search - for (i = 0; i < top.frames.length; i++) { - var currentDoc = top.frames[i].document; - - // if we have no search term, restore - if (searchStringFromSubmitBox !== "") { - // search and highlight in all frames - var srchResult = findInDoc(searchStringFromSubmitBox, currentDoc, caseSensitive, hitCount); - hitCount = srchResult[1]; - totalHits = srchResult[1]; - } - } - - // 2. Restore search term once form is submitted and text highlighted - if (searchStringFromSubmitBox != "") { - strInitValue = searchStringFromSubmitBox; - } - initSearchBox(strInitValue); - - // 3. Scroll to the first hit encountered - scrollToNextHit(1); - - // 4. Set focus back to text box and select text - var txtBox = setFocusOnTxtBox(); - if (txtBox) { - txtBox.select(); - } - - } else { - // If the search string is the same, then scroll to the next - // hit if the hit is valid. Else wrap back. - scrollToNextHit(); - } - return false; -} - -// if the search box is empty, clear highlighting -function clearIfEmpty() -{ - txtBox = findElement('searchTxtBox'); - if (txtBox.value == "") { - txtBox.setAttribute("class", "search"); - removeHighlightInAllDocs(); - previousSearchString=""; - setFocusOnTxtBox(); - } -} - -function keyPressSwitchyard(keyPressEvent) -{ - var kc; - keyPressEvent = (keyPressEvent == null ? window.keyPressEvent : keyPressEvent); - - // typically IE does not support this - if (!keyPressEvent || (typeof keyPressEvent == "undefined")) { - return; - } - - if (keyPressEvent.keyCode) { - kc=keyPressEvent.keyCode; - } else if (keyPressEvent.which) { - kc=keyPressEvent.which; - } else { - return; - } - - // we do not care about the browser find appearing. If it does appear, then - // we are running an external browser and that is okay. - - // handle Ctrl-Key combinations - if (keyPressEvent.ctrlKey) { - switch (kc) { - case 70: // Ctrl-F - { - setFocusOnTxtBox(); - break; - } - - default: break; - } - } -} - -function installDocumentKeyPressHandler() -{ - var i = 0; - for (i = 0; i < top.frames.length; i++) { - var currentDoc = top.frames[i].document; - currentDoc.onkeydown = keyPressSwitchyard; - } - top.document.onkeydown = keyPressSwitchyard; - - // This also clears search related highlighting - removeHighlightInAllDocs(); - currentlyHighlightedHit = 0; - if (previousSearchString) initSearchBox(previousSearchString); - previousSearchString = ""; -} - -// This function is a onresize callback for the rtwreport_contents_frame -// It is used to dynamically resize the searchbox based on the size of the frame. -function setWidthDynamic(frameID, elementID, extraSpace, minSize) -{ - var frame = document.getElementById(frameID); - - // sanity check input args - if (frame && extraSpace > 0 && minSize > 0) { - var frameWidth = frame.scrollWidth; - var newSize = extraSpace + minSize + 40; // 40 is the extra whitespace - var element = findElement(elementID); - if (element) - { - if (frameWidth < newSize) { - element.style.width = minSize; - } else { - element.style.width = frameWidth - extraSpace - 40; - } - } - } -} diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/sil_main_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/sil_main_c.html deleted file mode 100644 index 7b8a3d46ceb84e5ed46fa0553e35a0017121b84a..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/sil_main_c.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2006-2019 The MathWorks, Inc. */
    2
    3/*
    4 * File: sil_main.c
    5 *
    6 * SIL main
    7 *
    8 */
    9#include "xil_interface_lib.h"
    10
    11int main(const int argc, char * argv[]) {
    12 XIL_INTERFACE_LIB_ERROR_CODE errorCode = XIL_INTERFACE_LIB_SUCCESS;
    13 /* avoid warnings about infinite loops */
    14 volatile int loop = 1;
    15
    16 /* XIL initialization */
    17 errorCode = xilInit(argc, (void **) argv);
    18 if (errorCode != XIL_INTERFACE_LIB_SUCCESS) {
    19 /* terminate application */
    20 return errorCode;
    21 }
    22 /* main XIL loop */
    23 while(loop) {
    24 errorCode = xilRun();
    25 if (errorCode != XIL_INTERFACE_LIB_SUCCESS) {
    26 if (errorCode == XIL_INTERFACE_LIB_TERMINATE) {
    27 XIL_INTERFACE_LIB_ERROR_CODE exitCode;
    28 /* orderly shutdown of rtiostream */
    29 exitCode = xilTerminateComms();
    30 if (exitCode == XIL_INTERFACE_LIB_SUCCESS) {
    31 exitCode = 0;
    32 }
    33 /* terminate */
    34 return exitCode;
    35 } else {
    36 /* terminate with error code */
    37 return errorCode;
    38 }
    39 }
    40 }
    41 return errorCode;
    42}
    43
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/spinner.gif b/src/validation/FCC_Sys_New_harness_ert_rtw/html/spinner.gif deleted file mode 100644 index e4ab78302c5d6ff92def7688c291999a4fcbd70d..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/html/spinner.gif and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/target_io_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/target_io_c.html deleted file mode 100644 index 9e9a31de621bbdab8f8733344ed571e193ca9169..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/target_io_c.html +++ /dev/null @@ -1,460 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2011-2013 The MathWorks, Inc. */
    2#include <stdio.h> /* sprintf */
    3#include <stdarg.h> /* variable argument lists */
    4#include "xil_interface_common.h"
    5#include "xil_data_stream.h"
    6#include "xil_common.h"
    7#include "target_io.h"
    8#include "rtwtypes.h"
    9
    10/* test for ISO C99 or greater, which supports vsnprintf
    11 *
    12 * WARNING: if the compiler is ANSI C90 then we use vsprintf instead.
    13 * Therefore, it is possible to overrun the buffer so the
    14 * caller must take care not to exceed the buffer size!
    15 */
    16#if __STDC_VERSION__ >= 199901L
    17#define VSNPRINTF_AVAILABLE
    18#endif
    19
    20#ifndef TARGET_IO_BUFFER_SIZE
    21/* default buffer size is large enough for most use cases */
    22#define TARGET_IO_BUFFER_SIZE 64
    23#endif
    24
    25#ifndef TARGET_IO_MAX_FILE_ID
    26/* -1 avoids warning about the comparison that is done
    27 * in targetFopen
    28 *
    29 * note that MAX_uint16_T will be limited to uint16 max
    30 * even when portable word sizes maps uint16 to a larger
    31 * type such as uint32 on the SHARC */
    32#define TARGET_IO_MAX_FILE_ID ((uint16_T)(65535U - 1))
    33#endif
    34
    35typedef enum {TARGET_IO_SUCCESS=0,
    36 TARGET_IO_BUFFER_TRUNC } TARGET_IO_ERROR_ID;
    37
    38static char targetStdioBuffer[TARGET_IO_BUFFER_SIZE];
    39#ifdef HOST_WORD_ADDRESSABLE_TESTING
    40static MemUnit_T hostWordStdioBuffer[TARGET_IO_BUFFER_SIZE];
    41#endif
    42
    43/* fid is the file id on target and is limited to TARGET_IO_MAX_FILE_ID */
    44static uint16_T fid = 0;
    45
    46/* call xilWriteData and check for errors */
    47static void targetWriteDataWithErrorCheck(const MemUnit_T *, uint32_T);
    48#ifdef HOST_WORD_ADDRESSABLE_TESTING
    49static void targetWriteDataWithCharToMemUnitWidening(const char *, MemUnit_T *, uint16_T);
    50#endif /* HOST_WORD_ADDRESSABLE_TESTING */
    51
    52void targetWriteDataWithErrorCheck(const MemUnit_T * data, uint32_T size) {
    53 if (xilWriteData(data, size) != XIL_DATA_STREAM_SUCCESS) {
    54 for (;;) {
    55 /* fatal comms error */
    56 }
    57 }
    58}
    59
    60#ifdef HOST_WORD_ADDRESSABLE_TESTING
    61static void targetWriteDataWithCharToMemUnitWidening(const char *pCharBuff, MemUnit_T *pMemUnitBuff, uint16_T buffSize) {
    62 uint16_T i;
    63 for(i=0;i<buffSize;i++) {
    64 pMemUnitBuff[i] = (MemUnit_T) pCharBuff[i];
    65 }
    66 targetWriteDataWithErrorCheck(pMemUnitBuff, buffSize * sizeof(MemUnit_T));
    67}
    68#endif
    69
    70/* Forward a printf back to the host machine
    71 *
    72 * Printf size must not exceed the TARGET_IO_BUFFER_SIZE
    73 * otherwise overflow will occur.
    74 */
    75void targetPrintf(const char * fmt, ...) {
    76 va_list argptr;
    77 uint16_T printSize;
    78 int vsPrintSize;
    79 MemUnit_T responseId = XIL_RESPONSE_PRINTF;
    80 MemUnit_T errorId = TARGET_IO_SUCCESS;
    81
    82 va_start(argptr, fmt);
    83#ifdef VSNPRINTF_AVAILABLE
    84 /* size arg includes '\0', return value does not */
    85 vsPrintSize = vsnprintf(&targetStdioBuffer[0], TARGET_IO_BUFFER_SIZE, fmt, argptr);
    86#else
    87 vsPrintSize = vsprintf(&targetStdioBuffer[0], fmt, argptr);
    88#endif
    89 if ((vsPrintSize < 0) || (vsPrintSize >= TARGET_IO_BUFFER_SIZE)) {
    90 /* set error id if error or buffer overruns */
    91 errorId = TARGET_IO_BUFFER_TRUNC;
    92 /* do not send any data */
    93 printSize = 0;
    94 } else {
    95 /* add one for the terminating null character */
    96 printSize = (uint16_T) vsPrintSize + 1;
    97 }
    98 va_end(argptr);
    99
    100 /* send response id */
    101 targetWriteDataWithErrorCheck(&responseId, sizeof(responseId));
    102 /* send error id */
    103 targetWriteDataWithErrorCheck(&errorId, sizeof(errorId));
    104 /* send printSize */
    105 targetWriteDataWithErrorCheck((MemUnit_T *) &printSize, sizeof(printSize));
    106 /* send data */
    107 if (printSize > 0) {
    108#ifdef HOST_WORD_ADDRESSABLE_TESTING
    109 targetWriteDataWithCharToMemUnitWidening(&targetStdioBuffer[0], &hostWordStdioBuffer[0], printSize);
    110#else
    111 targetWriteDataWithErrorCheck((MemUnit_T *)&targetStdioBuffer[0], printSize);
    112#endif
    113 }
    114 return;
    115}
    116
    117
    118/* Forward a fopen back to the host.
    119 *
    120 * fid is used on target to act as a valid
    121 * "file descriptor".
    122 */
    123unsigned short targetFopen(const char * fileName) {
    124 uint16_T fileNameSize;
    125 MemUnit_T responseId = XIL_RESPONSE_FOPEN;
    126
    127 /* size of file name string */
    128 fileNameSize = (uint16_T) strlen(fileName);
    129
    130 /* add one for the terminating null character */
    131 fileNameSize++;
    132
    133 /* check bounds and reset to 0 if necessary which will trigger an error
    134 * on the host */
    135 if(fid > TARGET_IO_MAX_FILE_ID) {
    136 fid = 0;
    137 }
    138 /* send response id */
    139 targetWriteDataWithErrorCheck(&responseId, sizeof(responseId));
    140 /* send file id */
    141 targetWriteDataWithErrorCheck((MemUnit_T *)&fid, sizeof(fid));
    142 /* send size of file name string */
    143 targetWriteDataWithErrorCheck((MemUnit_T *)&fileNameSize, sizeof(fileNameSize));
    144#ifdef HOST_WORD_ADDRESSABLE_TESTING
    145 /* in case the total size is bigger than the hostWordStdioBuffer, send in
    146 * multiple chunks */
    147 {
    148 while (fileNameSize > 0) {
    149 uint16_T transferSize = MIN(fileNameSize, TARGET_IO_BUFFER_SIZE);
    150 /* send file name string */
    151 targetWriteDataWithCharToMemUnitWidening(fileName, &hostWordStdioBuffer[0], transferSize);
    152 fileNameSize -= transferSize;
    153 fileName += transferSize;
    154 }
    155 }
    156#else
    157 /* send file name string */
    158 targetWriteDataWithErrorCheck((const MemUnit_T *)fileName, fileNameSize);
    159#endif
    160
    161 /* return fid, THEN increment it */
    162 return (unsigned short) (fid++); /* unsigned short is at least 16-bits
    163 * wide. See header file for more
    164 * information on why this cast is
    165 * required. */
    166}
    167
    168void targetFprintf(unsigned short targetFid, const char * fmt, ...) {
    169 va_list argptr;
    170 uint16_T fprintSize;
    171 int vsFprintSize;
    172 MemUnit_T responseId = XIL_RESPONSE_FPRINTF;
    173 MemUnit_T errorId = TARGET_IO_SUCCESS;
    174 const uint16_T targetFid16 = (uint16_T) targetFid; /* We only use the
    175 * lowermost 16 bits of
    176 * targetFid. unsigned
    177 * int is guaranteed to
    178 * be at least 16 bits
    179 * wide. See header file
    180 * for more information
    181 * on why this cast is
    182 * required. */
    183
    184 va_start(argptr, fmt);
    185#ifdef VSNPRINTF_AVAILABLE
    186 /* size arg includes '\0', return value does not */
    187 vsFprintSize = vsnprintf(&targetStdioBuffer[0], TARGET_IO_BUFFER_SIZE, fmt, argptr);
    188#else
    189 vsFprintSize = vsprintf(&targetStdioBuffer[0], fmt, argptr);
    190#endif
    191 if ((vsFprintSize < 0) || (vsFprintSize >= TARGET_IO_BUFFER_SIZE)) {
    192 /* set error id if error or buffer overruns */
    193 errorId = TARGET_IO_BUFFER_TRUNC;
    194 /* do not send any data */
    195 fprintSize = 0;
    196 } else {
    197 /* add one for the terminating null character */
    198 fprintSize = (uint16_T) vsFprintSize + 1;
    199 }
    200 va_end(argptr);
    201
    202 /* send response id */
    203 targetWriteDataWithErrorCheck(&responseId, sizeof(responseId));
    204 /* send error id */
    205 targetWriteDataWithErrorCheck(&errorId, sizeof(errorId));
    206 /* send file id*/
    207 targetWriteDataWithErrorCheck((const MemUnit_T *)&targetFid16,
    208 sizeof(targetFid16));
    209 /* send fprintSize */
    210 targetWriteDataWithErrorCheck((MemUnit_T *)&fprintSize, sizeof(fprintSize));
    211 if (fprintSize > 0) {
    212#ifdef HOST_WORD_ADDRESSABLE_TESTING
    213 /* send data */
    214 targetWriteDataWithCharToMemUnitWidening(&targetStdioBuffer[0], &hostWordStdioBuffer[0], fprintSize);
    215#else
    216 /* send data */
    217 targetWriteDataWithErrorCheck((MemUnit_T *)&targetStdioBuffer[0], fprintSize);
    218#endif
    219 }
    220 return;
    221}
    222
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/target_io_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/target_io_h.html deleted file mode 100644 index ba7c920646736269dc68388d473531ced593689f..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/target_io_h.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2011-2013 The MathWorks, Inc. */
    2#ifndef __TARGET_STDIO_H__
    3#define __TARGET_STDIO_H__
    4
    5#ifdef __cplusplus
    6extern "C" {
    7#endif
    8/*
    9 * The default buffer size is 64 bytes with
    10 * 1 bytes reserved for null terminator at the end.
    11 *
    12 * For LDRA I/O forward support, by default configuration, a minimal
    13 * of 25 bytes buffer is enough. LDRA users can change the column
    14 * width of output data format, which may exceed this 25 bytes
    15 * boundary value. However, the 64 bytes buffer will provide a safer
    16 * limit.
    17 *
    18 */
    19
    20
    21/*
    22 * For compatibility with third party code coverage tools, this header must not
    23 * include rtwtypes.h. In particular, we must not use uint16_T in this header
    24 * file. Note that unsigned short is guaranteed to be at least 16 bits wide on
    25 * any platform; see implementation of targetFopen, targetFprintf for casts that
    26 * rely on this guarantee.
    27 */
    28extern void targetPrintf(const char * fmt, ...);
    29extern unsigned short targetFopen(const char * fileName);
    30extern void targetFprintf(unsigned short targetFid, const char * fmt, ...);
    31
    32#ifdef __cplusplus
    33}
    34#endif /* __cplusplus */
    35
    36#endif /* __TARGET_STDIO_H__ */
    37
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/traceInfo.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/html/traceInfo.mat deleted file mode 100644 index ad2b573d90ece41e8f6b00834bfa7f613b14fd6c..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/html/traceInfo.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/traceInfo_flag.js b/src/validation/FCC_Sys_New_harness_ert_rtw/html/traceInfo_flag.js deleted file mode 100644 index 98ce98611028bad3ff0d64119972bf35b9b868ce..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/traceInfo_flag.js +++ /dev/null @@ -1,222 +0,0 @@ -function TraceInfoFlag() { - this.traceFlag = new Array(); - this.traceFlag["FCC_Sys_New_harness.c:146c9"]=1; - this.traceFlag["FCC_Sys_New_harness.c:147c11"]=1; - this.traceFlag["FCC_Sys_New_harness.c:148c50"]=1; - this.traceFlag["FCC_Sys_New_harness.c:156c9"]=1; - this.traceFlag["FCC_Sys_New_harness.c:157c11"]=1; - this.traceFlag["FCC_Sys_New_harness.c:157c14"]=1; - this.traceFlag["FCC_Sys_New_harness.c:170c9"]=1; - this.traceFlag["FCC_Sys_New_harness.c:171c11"]=1; - this.traceFlag["FCC_Sys_New_harness.c:172c50"]=1; - this.traceFlag["FCC_Sys_New_harness.c:180c9"]=1; - this.traceFlag["FCC_Sys_New_harness.c:181c11"]=1; - this.traceFlag["FCC_Sys_New_harness.c:181c14"]=1; - this.traceFlag["FCC_Sys_New_harness.c:194c9"]=1; - this.traceFlag["FCC_Sys_New_harness.c:195c11"]=1; - this.traceFlag["FCC_Sys_New_harness.c:196c50"]=1; - this.traceFlag["FCC_Sys_New_harness.c:204c9"]=1; - this.traceFlag["FCC_Sys_New_harness.c:205c11"]=1; - this.traceFlag["FCC_Sys_New_harness.c:205c14"]=1; - this.traceFlag["FCC_Sys_New_harness.c:221c15"]=1; - this.traceFlag["FCC_Sys_New_harness.c:221c46"]=1; - this.traceFlag["FCC_Sys_New_harness.c:222c15"]=1; - this.traceFlag["FCC_Sys_New_harness.c:222c46"]=1; - this.traceFlag["FCC_Sys_New_harness.c:223c15"]=1; - this.traceFlag["FCC_Sys_New_harness.c:223c49"]=1; - this.traceFlag["FCC_Sys_New_harness.c:232c60"]=1; - this.traceFlag["FCC_Sys_New_harness.c:235c11"]=1; - this.traceFlag["FCC_Sys_New_harness.c:236c13"]=1; - this.traceFlag["FCC_Sys_New_harness.c:237c52"]=1; - this.traceFlag["FCC_Sys_New_harness.c:245c11"]=1; - this.traceFlag["FCC_Sys_New_harness.c:246c13"]=1; - this.traceFlag["FCC_Sys_New_harness.c:246c16"]=1; - this.traceFlag["FCC_Sys_New_harness.c:259c11"]=1; - this.traceFlag["FCC_Sys_New_harness.c:260c13"]=1; - this.traceFlag["FCC_Sys_New_harness.c:261c52"]=1; - this.traceFlag["FCC_Sys_New_harness.c:269c11"]=1; - this.traceFlag["FCC_Sys_New_harness.c:270c13"]=1; - this.traceFlag["FCC_Sys_New_harness.c:270c16"]=1; - this.traceFlag["FCC_Sys_New_harness.c:283c11"]=1; - this.traceFlag["FCC_Sys_New_harness.c:284c13"]=1; - this.traceFlag["FCC_Sys_New_harness.c:285c52"]=1; - this.traceFlag["FCC_Sys_New_harness.c:293c11"]=1; - this.traceFlag["FCC_Sys_New_harness.c:294c13"]=1; - this.traceFlag["FCC_Sys_New_harness.c:294c16"]=1; - this.traceFlag["FCC_Sys_New_harness.c:315c79"]=1; - this.traceFlag["FCC_Sys_New_harness.c:346c79"]=1; - this.traceFlag["FCC_Sys_New_harness.c:368c79"]=1; - this.traceFlag["FCC_Sys_New_harness.c:469c15"]=1; - this.traceFlag["FCC_Sys_New_harness.c:469c27"]=1; - this.traceFlag["FCC_Sys_New_harness.c:469c39"]=1; - this.traceFlag["FCC_Sys_New_harness.c:469c51"]=1; - this.traceFlag["FCC_Sys_New_harness.c:469c64"]=1; - this.traceFlag["FCC_Sys_New_harness.c:470c15"]=1; - this.traceFlag["FCC_Sys_New_harness.h:93c10"]=1; - this.traceFlag["FCC_Sys_New_harness.h:94c10"]=1; - this.traceFlag["FCC_Sys_New_harness.h:95c10"]=1; -} -top.TraceInfoFlag.instance = new TraceInfoFlag(); -function TraceInfoLineFlag() { - this.lineTraceFlag = new Array(); - this.lineTraceFlag["FCC_Sys_New_harness.c:145"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:146"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:147"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:148"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:150"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:153"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:156"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:157"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:158"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:160"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:163"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:169"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:170"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:171"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:172"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:174"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:177"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:180"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:181"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:182"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:184"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:187"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:193"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:194"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:195"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:196"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:198"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:201"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:204"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:205"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:206"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:208"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:211"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:221"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:222"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:223"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:232"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:234"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:235"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:236"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:237"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:239"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:242"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:245"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:246"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:247"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:249"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:252"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:258"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:259"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:260"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:261"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:263"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:266"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:269"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:270"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:271"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:273"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:276"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:282"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:283"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:284"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:285"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:287"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:290"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:293"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:294"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:295"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:297"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:300"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:304"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:307"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:310"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:315"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:316"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:319"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:322"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:325"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:326"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:329"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:332"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:335"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:338"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:341"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:346"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:347"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:348"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:351"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:354"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:357"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:360"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:363"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:368"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:369"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:405"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:408"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:411"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:422"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:423"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:424"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:425"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:426"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:427"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:428"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:439"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:440"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:441"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:442"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:443"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:444"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:445"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:456"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:457"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:458"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:459"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:460"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:461"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:462"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:469"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.c:470"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:69"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:70"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:71"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:72"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:73"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:74"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:75"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:76"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:77"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:78"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:79"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:80"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:81"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:82"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:83"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:84"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:85"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:86"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:87"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:88"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:89"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:90"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:92"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:93"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:94"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:95"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:96"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:98"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:99"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:100"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:101"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:102"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:103"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:104"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:105"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:106"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:111"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:112"]=1; - this.lineTraceFlag["FCC_Sys_New_harness.h:113"]=1; -} -top.TraceInfoLineFlag.instance = new TraceInfoLineFlag(); diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_common_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_common_h.html deleted file mode 100644 index 5e2530a4f3f0ab23615c7b28904077993a208e50..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_common_h.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2011-2013 The MathWorks, Inc. */
    2
    3/*
    4 * File: xil_common.h
    5 *
    6 * SIL/PIL common definitions
    7 */
    8
    9#ifndef __XIL_COMMON_H__
    10#define __XIL_COMMON_H__
    11
    12#include "rtwtypes.h"
    13#include <string.h> /* include definition of size_t */
    14
    15/*
    16 * UNUSED_PARAMETER(x)
    17 * Used to specify that a function parameter (argument) is required but not
    18 * accessed by the function body.
    19 */
    20#ifndef UNUSED_PARAMETER
    21# if defined(__LCC__)
    22# define UNUSED_PARAMETER(x) /* do nothing */
    23# else
    24
    25/*
    26 * This is the semi-ANSI standard way of indicating that an
    27 * unused function parameter is required.
    28 */
    29# define UNUSED_PARAMETER(x) (void) (x)
    30# endif
    31#endif
    32
    33/* MIN is typically used in data stream implementations */
    34#ifndef MIN
    35#define MIN(a,b) ((a) < (b) ? (a) : (b))
    36#endif
    37
    38#endif
    39
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_data_stream_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_data_stream_c.html deleted file mode 100644 index d95b489934bec9e1228d3369632a45a81a6e7084..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_data_stream_c.html +++ /dev/null @@ -1,418 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2007-2016 The MathWorks, Inc. */
    2#include "comms_interface.h"
    3#ifndef USING_CS_API
    4#include "rtiostream.h"
    5#include "rtiostream_utils.h"
    6#endif
    7#include "xil_data_stream.h"
    8#include "xil_interface_lib.h"
    9#include "XILTgtAppSvc_CInterface.h"
    10
    11#ifdef USING_CS_API
    12 #define XIL_TX_BUFFER_MEMUNIT_SIZE xilTgtAppSvcGetMaxPayloadCapacity()
    13 #define BUFFER_HEADER_SIZE 0
    14#else
    15 #include "rx_tx_buffer_sizes.h"
    16#endif
    17
    18#define COMMAND_COMPLETE_SIZE (sizeof(MemUnit_T))
    19#define COMMAND_COMPLETE_IDX 0
    20#define WRITE_DATA_BUFFER_IDX (COMMAND_COMPLETE_IDX + COMMAND_COMPLETE_SIZE)
    21#define USED_WRITE_BUFFER_SIZE (COMMAND_COMPLETE_SIZE + xilWriteDataAvail)
    22#define WRITE_BUFFER_SIZE (XIL_TX_BUFFER_MEMUNIT_SIZE - COMMAND_COMPLETE_SIZE - BUFFER_HEADER_SIZE)
    23
    24
    25static void* pBuffer;
    26static IOUnit_T* xilWriteBuffer;
    27static IOUnit_T* xilWriteDataPtr;
    28static uint16_T xilWriteDataAvail;
    29static MemUnit_T* commandResponseType;
    30
    31/* reset the write buffer */
    32XIL_INTERFACE_LIB_ERROR_CODE resetXILWriteBuffer(void) {
    33
    34 /* Ask the CS to allocate a buffer that the XIL app service will use for
    35 * transmission
    36 */
    37 if (!xilTgtAppSvcAllocBuffer(&pBuffer, XIL_TX_BUFFER_MEMUNIT_SIZE)) {
    38 return XIL_INTERFACE_LIB_ERROR;
    39 }
    40 xilWriteBuffer = xilTgtAppSvcGetBufferDataPtr(pBuffer);
    41
    42 /* set commandResponseType and xilWriteDataPtr pointer */
    43 commandResponseType = (MemUnit_T *) &xilWriteBuffer[COMMAND_COMPLETE_IDX];
    44 xilWriteDataPtr = &xilWriteBuffer[WRITE_DATA_BUFFER_IDX];
    45
    46 /* ready for next command */
    47 xilWriteDataAvail = 0;
    48 *commandResponseType = XIL_COMMAND_NOT_COMPLETE;
    49
    50 return XIL_INTERFACE_LIB_SUCCESS;
    51}
    52
    53XIL_INTERFACE_LIB_ERROR_CODE silpilInit(void) {
    54
    55 /* Create XIL service */
    56 if (xilTgtAppSvcCreate() != XILTGTAPPSVC_SUCCESS) {
    57 return XIL_INTERFACE_LIB_ERROR;
    58 }
    59
    60 /* Reset write buffer */
    61 return resetXILWriteBuffer();
    62}
    63
    64/* send pending writes */
    65static XIL_DATA_STREAM_ERROR_CODE sendWriteBuffer(void) {
    66
    67 if (xilTgtAppSvcSend(pBuffer, USED_WRITE_BUFFER_SIZE) == XILTGTAPPSVC_ERROR) {
    68 return XIL_DATA_FLUSH_ERROR;
    69 }
    70
    71 /* reset */
    72 if (resetXILWriteBuffer()!= XIL_INTERFACE_LIB_SUCCESS) {
    73 return XIL_DATA_FLUSH_ERROR;
    74 }
    75
    76 return XIL_DATA_STREAM_SUCCESS;
    77}
    78
    79XIL_DATA_STREAM_ERROR_CODE xilWriteData(const MemUnit_T * src, uint32_T size) {
    80 XIL_DATA_STREAM_ERROR_CODE errorCode = XIL_DATA_STREAM_SUCCESS;
    81 const IOUnit_T * srcPtr = (const IOUnit_T *) src;
    82 size_t transferAmount;
    83 uint16_T bufferAvail;
    84
    85 /* block until all data is processed */
    86 while (size > 0) {
    87 /* send if we have a full message worth of data */
    88 if (xilWriteDataAvail == WRITE_BUFFER_SIZE) {
    89 errorCode = sendWriteBuffer();
    90 if (errorCode != XIL_DATA_STREAM_SUCCESS) {
    91 return errorCode;
    92 }
    93 }
    94 bufferAvail = WRITE_BUFFER_SIZE - xilWriteDataAvail;
    95 transferAmount = (uint16_T) MIN(bufferAvail, size);
    96 /* copy data into write buffer */
    97 memcpy((void *) xilWriteDataPtr, srcPtr, transferAmount);
    98 size -= (uint32_T) transferAmount;
    99 xilWriteDataAvail += (uint16_T) transferAmount;
    100 srcPtr += transferAmount;
    101 xilWriteDataPtr += transferAmount;
    102 }
    103 return errorCode;
    104}
    105
    106XIL_DATA_STREAM_ERROR_CODE xilReadData(MemUnit_T * dst, uint32_T size) {
    107
    108 XIL_DATA_STREAM_ERROR_CODE errorCode = XIL_DATA_STREAM_SUCCESS;
    109
    110 static IOUnit_T* currentBufferPosition = NULL;
    111 static uint16_T currentBufSize = 0;
    112 uint16_T readAmount;
    113 int32_T index = 0;
    114 int rtIOStreamErrorStatus;
    115 IOUnit_T * dstPtr = (IOUnit_T *) dst;
    116
    117 while (size > 0)
    118 {
    119 if (currentBufSize > 0) {
    120
    121 readAmount = (uint16_T) MIN(currentBufSize, size);
    122 memcpy(dstPtr+index, currentBufferPosition, (size_t)readAmount);
    123
    124 currentBufSize -= readAmount;
    125 currentBufferPosition +=readAmount;
    126 size -= (uint32_T)readAmount;
    127
    128 if (size == 0) {
    129 /* If we've satisfied the data request we're done, return */
    130 return errorCode;
    131 }
    132
    133 /*Buffer empty and more data needed get new data*/
    134 index += (int32_T)readAmount;
    135 }
    136
    137 /* Get NEW DATA */
    138#ifdef USING_CS_API
    139 {
    140 uint16_T tmpSize = 0;
    141 static uint8_T * tmpData;
    142 static boolean_T firstTime = true;
    143
    144 /*If we've previously read a message free it before getting the next*/
    145 if (!firstTime)
    146 {
    147 xilTgtAppSvcFreeLastReceivedData();
    148 }
    149
    150 /*Block until a message has been received*/
    151 while (tmpSize == 0)
    152 {
    153 tmpData = xilTgtAppSvcGetReceivedData(&tmpSize);
    154 }
    155
    156 /*Update first time flag*/
    157 firstTime = false;
    158
    159 /*Setup buffer position and size from message data*/
    160 currentBufSize = tmpSize;
    161 currentBufferPosition = (IOUnit_T *)tmpData;
    162 }
    163#else
    164 rtIOStreamErrorStatus = rtiostreamReadMessage(&currentBufferPosition, &currentBufSize);
    165
    166 if (rtIOStreamErrorStatus == RTIOSTREAM_ERROR)
    167 return XIL_READ_DATA_ERROR;
    168
    169
    170#endif
    171 }
    172
    173 return errorCode;
    174}
    175
    176
    177
    178XIL_DATA_STREAM_ERROR_CODE xilDataFlush(MemUnit_T isEndOfXILStep) {
    179
    180 /* final part of command */
    181 if (isEndOfXILStep) {
    182 *commandResponseType = XIL_STEP_COMPLETE;
    183 } else {
    184 *commandResponseType = XIL_COMMAND_COMPLETE;
    185 }
    186
    187 /* send the write buffer */
    188 if (sendWriteBuffer() == XIL_DATA_FLUSH_ERROR){
    189 return XIL_DATA_FLUSH_ERROR;
    190 }
    191
    192 return XIL_DATA_STREAM_SUCCESS;
    193
    194}
    195
    196void silpilTerminate(void) {
    197 xilTgtAppSvcDestroy();
    198}
    199
    200
    201
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_data_stream_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_data_stream_h.html deleted file mode 100644 index 28e4b25ab29db56082381b9c633f53f39b01860b..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_data_stream_h.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2007-2016 The MathWorks, Inc. */
    2
    3/*
    4 * File: xil_data_stream.h
    5 */
    6
    7#ifndef XIL_DATA_STREAM_H
    8#define XIL_DATA_STREAM_H
    9
    10#include "xil_common.h"
    11#include "xil_error_codes.h"
    12
    13#ifdef __cplusplus
    14extern "C" {
    15#endif
    16
    17/* reset the write buffer */
    18XIL_INTERFACE_LIB_ERROR_CODE resetXILWriteBuffer(void);
    19/* copy specified amount of data from the address specified to the output stream */
    20XIL_DATA_STREAM_ERROR_CODE xilWriteData(const MemUnit_T *, uint32_T);
    21/* copy specified amount of data from the input stream to address specified */
    22XIL_DATA_STREAM_ERROR_CODE xilReadData(MemUnit_T *, uint32_T );
    23/* flush any buffered writes */
    24XIL_DATA_STREAM_ERROR_CODE xilDataFlush(MemUnit_T isEndOfXILStep);
    25/* initialize SIL/PIL service */
    26XIL_INTERFACE_LIB_ERROR_CODE silpilInit(void);
    27/* terminate SIL/PIL service */
    28void silpilTerminate(void);
    29
    30#ifdef __cplusplus
    31}
    32#endif
    33
    34#endif
    35
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_instrumentation_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_instrumentation_c.html deleted file mode 100644 index 61c11f9975dc25ffc33f1f1801338faf63ff049b..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_instrumentation_c.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * File: xil_instrumentation.c
    3 *
    4 * Code generated for instrumentation.
    5 *
    6 */
    7
    8#include "xil_instrumentation.h"
    9
    10/* Code instrumentation offset(s) for model FCC_Sys_New_harness */
    11#define profileStart_F_02840e440c240744_offset 3
    12#define profileEnd_FCC_Sys_New_harness_offset 3
    13
    14/* Code instrumentation offset(s) for model FCC_Sys_New_harness */
    15#define taskTimeStart_0c6401e40e940cc4_offset 0
    16#define taskTimeEnd_FCC_Sys_New_harness_offset 0
    17
    18/* A function parameter may be intentionally unused */
    19#ifndef UNUSED_PARAMETER
    20# if defined(__LCC__)
    21# define UNUSED_PARAMETER(x)
    22# else
    23# define UNUSED_PARAMETER(x) (void) (x)
    24# endif
    25#endif
    26
    27#define SIZEOF_SECTION_ID_CONTAINER sizeof(uint64_T)
    28#define SIZEOF_TIMER_TYPE sizeof(uint64_T)
    29
    30static uint64_T xsd_xil_timer_corrected = 0;
    31static uint64_T xsd_xil_timer_unfreeze = 0;
    32static uint32_T xsd_xil_freezing_busy = 0;
    33void xilUploadProfilingData(uint32_T sectionId)
    34{
    35 xilUploadCodeInstrData((void *)(&xsd_xil_timer_corrected), (uint32_T)
    36 (SIZEOF_TIMER_TYPE), sectionId);
    37}
    38
    39/* The internal freeze and unfreeze methods cannot be nested. The customer-visible implementation avoids nesting problems */
    40void xilProfilingTimerFreezeInternal(void)
    41{
    42 /* Update the value of the corrected timer to exclude time spent in the
    43 * instrumentation code.
    44 *
    45 * Using a timer that increments on each tick.
    46 */
    47 xsd_xil_timer_corrected = xsd_xil_timer_corrected + (((uint64_T)(timestamp_x86
    48 ())) - xsd_xil_timer_unfreeze);
    49}
    50
    51void xilProfilingTimerUnFreezeInternal(void)
    52{
    53 xsd_xil_timer_unfreeze = ( uint64_T ) (timestamp_x86());
    54}
    55
    56void xilProfilingTimerFreeze(void)
    57{
    58 if (xsd_xil_freezing_busy == 0) {
    59 xilProfilingTimerFreezeInternal();
    60 } /* if */
    61}
    62
    63void xilProfilingTimerUnFreeze(void)
    64{
    65 if (xsd_xil_freezing_busy == 0) {
    66 xilProfilingTimerUnFreezeInternal();
    67 } /* if */
    68}
    69
    70void taskTimeStart(uint32_T sectionId)
    71{
    72 /* Send execution profiling data to host */
    73 xilUploadProfilingData(sectionId);
    74 xilProfilingTimerUnFreezeInternal();
    75}
    76
    77void taskTimeEnd(uint32_T sectionId)
    78{
    79 uint32_T sectionIdNeg = ~sectionId;
    80 xilProfilingTimerFreezeInternal();
    81
    82 /* Send execution profiling data to host */
    83 xilUploadProfilingData(sectionIdNeg);
    84}
    85
    86void profileStart(uint32_T sectionId)
    87{
    88 xilProfilingTimerFreezeInternal();
    89
    90 /* Send execution profiling data to host */
    91 xilUploadProfilingData(sectionId);
    92 xilProfilingTimerUnFreezeInternal();
    93}
    94
    95void profileEnd(uint32_T sectionId)
    96{
    97 uint32_T sectionIdNeg = ~sectionId;
    98 xilProfilingTimerFreezeInternal();
    99
    100 /* Send execution profiling data to host */
    101 xilUploadProfilingData(sectionIdNeg);
    102 xilProfilingTimerUnFreezeInternal();
    103}
    104
    105/* Code instrumentation method(s) for model FCC_Sys_New_harness */
    106void profileStart_F_02840e440c240744(uint32_T sectionId)
    107{
    108 profileStart(profileStart_F_02840e440c240744_offset + sectionId);
    109}
    110
    111void profileEnd_FCC_Sys_New_harness(uint32_T sectionId)
    112{
    113 profileEnd(profileEnd_FCC_Sys_New_harness_offset + sectionId);
    114}
    115
    116/* Code instrumentation method(s) for model FCC_Sys_New_harness */
    117void taskTimeStart_0c6401e40e940cc4(uint32_T sectionId)
    118{
    119 taskTimeStart(taskTimeStart_0c6401e40e940cc4_offset + sectionId);
    120}
    121
    122void taskTimeEnd_FCC_Sys_New_harness(uint32_T sectionId)
    123{
    124 taskTimeEnd(taskTimeEnd_FCC_Sys_New_harness_offset + sectionId);
    125}
    126
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_instrumentation_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_instrumentation_h.html deleted file mode 100644 index cce113c2f6cdeebede0002da47e4e3cb57234bcf..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_instrumentation_h.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * File: xil_instrumentation.h
    3 *
    4 * Code generated for instrumentation.
    5 *
    6 */
    7
    8/* Functions with a C call interface */
    9#ifdef __cplusplus
    10
    11extern "C" {
    12
    13#endif
    14
    15#include "host_timer_x86.h"
    16#ifdef __cplusplus
    17
    18}
    19#endif
    20
    21#include "rtwtypes.h"
    22
    23/* Upload code instrumentation data point */
    24void xilUploadCodeInstrData(
    25 void* pData, uint32_T numMemUnits, uint32_T sectionId);
    26
    27/* Called before starting a profiled section of code */
    28void taskTimeStart(uint32_T);
    29
    30/* Called on finishing a profiled section of code */
    31void taskTimeEnd(uint32_T);
    32
    33/* Uploads data */
    34void xilUploadProfilingData(uint32_T sectionId);
    35
    36/* Pause the timer while running code associated with storing and uploading the data. */
    37void xilProfilingTimerFreeze(void);
    38
    39/* Restart the timer after a pause */
    40void xilProfilingTimerUnFreeze(void);
    41
    42/* Called before starting a profiled section of code */
    43void profileStart(uint32_T);
    44
    45/* Called on finishing a profiled section of code */
    46void profileEnd(uint32_T);
    47
    48/* Code instrumentation method(s) for model FCC_Sys_New_harness */
    49void profileStart_F_02840e440c240744(uint32_T sectionId);
    50void profileEnd_FCC_Sys_New_harness(uint32_T sectionId);
    51
    52/* Code instrumentation method(s) for model FCC_Sys_New_harness */
    53void taskTimeStart_0c6401e40e940cc4(uint32_T sectionId);
    54void taskTimeEnd_FCC_Sys_New_harness(uint32_T sectionId);
    55
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_c.html deleted file mode 100644 index 2e197cf9b78cf91a0baaeac2d62ae968bb4ebec4..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_c.html +++ /dev/null @@ -1,738 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * File: xil_interface.c
    3 *
    4 * SIL generated interface for code: "FCC_Sys_New_harness"
    5 *
    6 */
    7
    8#include "FCC_Sys_New_harness.h"
    9#include "xil_interface.h"
    10#include "xil_instrumentation.h"
    11
    12/* Functions with a C call interface */
    13#ifdef __cplusplus
    14
    15extern "C" {
    16
    17#endif
    18
    19#include "xil_data_stream.h"
    20#include "codeinstr_data_stream.h"
    21#ifdef __cplusplus
    22
    23}
    24#endif
    25
    26static XILIOData xil_fcnid0_task1_y[4];
    27static XILIOData xil_fcnid0_init_y[4];
    28
    29/* In-the-Loop Interface functions - see xil_interface.h */
    30XIL_INTERFACE_ERROR_CODE xilProcessParams(uint32_T xilFcnId)
    31{
    32 /* Single In-the-Loop Component */
    33 if (xilFcnId != 0) {
    34 return XIL_INTERFACE_UNKNOWN_FCNID;
    35 }
    36
    37 return XIL_INTERFACE_SUCCESS;
    38}
    39
    40void xilUploadCodeInstrData(void * pData, uint32_T numMemUnits, uint32_T
    41 sectionId)
    42{
    43 /* Send code instrumentation data to host */
    44 if (codeInstrWriteData((MemUnit_T *) &numMemUnits, sizeof(numMemUnits)) !=
    45 XIL_DATA_STREAM_SUCCESS) {
    46 for (;;) ;
    47 }
    48
    49 if (codeInstrWriteData((MemUnit_T *) &sectionId, sizeof(uint32_T)) !=
    50 XIL_DATA_STREAM_SUCCESS) {
    51 for (;;) ;
    52 }
    53
    54 if (codeInstrWriteData((MemUnit_T *) pData, numMemUnits) !=
    55 XIL_DATA_STREAM_SUCCESS) {
    56 for (;;) ;
    57 }
    58}
    59
    60XIL_INTERFACE_ERROR_CODE xilGetDataTypeInfo(void)
    61{
    62 return XIL_INTERFACE_SUCCESS;
    63}
    64
    65XIL_INTERFACE_ERROR_CODE xilInitialize(uint32_T xilFcnId)
    66{
    67 XIL_INTERFACE_ERROR_CODE errorCode = XIL_INTERFACE_SUCCESS;
    68
    69 /* initialize output storage owned by In-the-Loop */
    70 /* Single In-the-Loop Component */
    71 if (xilFcnId == 0) {
    72 taskTimeStart_0c6401e40e940cc4(1U);
    73 FCC_Sys_New_harness_initialize();
    74 taskTimeEnd_FCC_Sys_New_harness(1U);
    75 } else {
    76 errorCode = XIL_INTERFACE_UNKNOWN_FCNID;
    77 }
    78
    79 return errorCode;
    80}
    81
    82XIL_INTERFACE_ERROR_CODE xilPause(uint32_T xilFcnId)
    83{
    84 XIL_INTERFACE_ERROR_CODE errorCode = XIL_INTERFACE_SUCCESS;
    85 if (xilFcnId == 0) {
    86 /* Nothing to do */
    87 } else {
    88 errorCode = XIL_INTERFACE_UNKNOWN_FCNID;
    89 } /* if */
    90
    91 return errorCode;
    92}
    93
    94XIL_INTERFACE_ERROR_CODE xilSystemInitialize(uint32_T xilFcnId)
    95{
    96 XIL_INTERFACE_ERROR_CODE errorCode = XIL_INTERFACE_SUCCESS;
    97
    98 /* Single In-the-Loop Component */
    99 if (xilFcnId == 0) {
    100 /* No Function to Call */
    101 } else {
    102 errorCode = XIL_INTERFACE_UNKNOWN_FCNID;
    103 }
    104
    105 return errorCode;
    106}
    107
    108XIL_INTERFACE_ERROR_CODE xilSystemReset(uint32_T xilFcnId)
    109{
    110 XIL_INTERFACE_ERROR_CODE errorCode = XIL_INTERFACE_SUCCESS;
    111
    112 /* Single In-the-Loop Component */
    113 if (xilFcnId == 0) {
    114 /* No Function to Call */
    115 } else {
    116 errorCode = XIL_INTERFACE_UNKNOWN_FCNID;
    117 }
    118
    119 return errorCode;
    120}
    121
    122XIL_INTERFACE_ERROR_CODE xilGetHostToTargetData(uint32_T xilFcnId,
    123 XIL_COMMAND_TYPE_ENUM xilCommandType, uint32_T xilCommandIdx, XILIOData
    124 ** xilIOData)
    125{
    126 XIL_INTERFACE_ERROR_CODE errorCode = XIL_INTERFACE_SUCCESS;
    127 *xilIOData = 0;
    128
    129 /* Single In-the-Loop Component */
    130 if (xilFcnId != 0) {
    131 errorCode = XIL_INTERFACE_UNKNOWN_FCNID;
    132 return errorCode;
    133 }
    134
    135 errorCode = XIL_INTERFACE_UNKNOWN_TID;
    136 UNUSED_PARAMETER(xilCommandType);
    137 UNUSED_PARAMETER(xilCommandIdx);
    138 return errorCode;
    139}
    140
    141XIL_INTERFACE_ERROR_CODE xilGetTargetToHostPreData(uint32_T xilFcnId,
    142 XIL_COMMAND_TYPE_ENUM xilCommandType, uint32_T xilCommandIdx, XILIOData
    143 ** xilIOData, MemUnit_T responseId, uint32_T serverFcnId)
    144{
    145 XIL_INTERFACE_ERROR_CODE errorCode = XIL_INTERFACE_SUCCESS;
    146 *xilIOData = 0;
    147 if (xilFcnId != 0) {
    148 errorCode = XIL_INTERFACE_UNKNOWN_FCNID;
    149 return errorCode;
    150 } /* if */
    151
    152 errorCode = XIL_INTERFACE_UNKNOWN_TID;
    153 UNUSED_PARAMETER(xilCommandType);
    154 UNUSED_PARAMETER(xilCommandIdx);
    155 UNUSED_PARAMETER(responseId);
    156 UNUSED_PARAMETER(serverFcnId);
    157 return errorCode;
    158}
    159
    160XIL_INTERFACE_ERROR_CODE xilOutput(uint32_T xilFcnId, uint32_T xilTID)
    161{
    162 /* Single In-the-Loop Component */
    163 if (xilFcnId != 0) {
    164 return XIL_INTERFACE_UNKNOWN_FCNID;
    165 }
    166
    167 switch (xilTID) {
    168 case 1:
    169 taskTimeStart_0c6401e40e940cc4(2U);
    170 FCC_Sys_New_harness_step0();
    171 taskTimeEnd_FCC_Sys_New_harness(2U);
    172 break;
    173
    174 case 2:
    175 taskTimeStart_0c6401e40e940cc4(3U);
    176 FCC_Sys_New_harness_step2();
    177 taskTimeEnd_FCC_Sys_New_harness(3U);
    178 break;
    179
    180 default:
    181 return XIL_INTERFACE_UNKNOWN_TID;
    182 }
    183
    184 return XIL_INTERFACE_SUCCESS;
    185}
    186
    187XIL_INTERFACE_ERROR_CODE xilUpdate(uint32_T xilFcnId, uint32_T xilTID)
    188{
    189 /* Single In-the-Loop Component */
    190 if (xilFcnId != 0) {
    191 return XIL_INTERFACE_UNKNOWN_FCNID;
    192 }
    193
    194 /* No Update Function */
    195 UNUSED_PARAMETER(xilTID);
    196 return XIL_INTERFACE_SUCCESS;
    197}
    198
    199XIL_INTERFACE_ERROR_CODE xilGetTargetToHostData(uint32_T xilFcnId,
    200 XIL_COMMAND_TYPE_ENUM xilCommandType, uint32_T xilCommandIdx, XILIOData
    201 ** xilIOData, MemUnit_T responseId, uint32_T serverFcnId)
    202{
    203 XIL_INTERFACE_ERROR_CODE errorCode = XIL_INTERFACE_SUCCESS;
    204
    205 /* Single In-the-Loop Component */
    206 *xilIOData = 0;
    207 if (xilFcnId != 0) {
    208 errorCode = XIL_INTERFACE_UNKNOWN_FCNID;
    209 return errorCode;
    210 }
    211
    212 switch (xilCommandType) {
    213 case XIL_INITIALIZE_COMMAND:
    214 {
    215 static int initComplete = 0;
    216 if (!initComplete) {
    217 uint32_T tableIdx = 0;
    218
    219 {
    220 void * dataAddress = (void *) &(FCC_Sys_New_harness_Y.Actuator1);
    221 xil_fcnid0_init_y[tableIdx].memUnitLength = 1 * sizeof(int16_T);
    222 xil_fcnid0_init_y[tableIdx++].address = (MemUnit_T *) dataAddress;
    223 }
    224
    225 {
    226 void * dataAddress = (void *) &(FCC_Sys_New_harness_Y.Actuator2);
    227 xil_fcnid0_init_y[tableIdx].memUnitLength = 1 * sizeof(int16_T);
    228 xil_fcnid0_init_y[tableIdx++].address = (MemUnit_T *) dataAddress;
    229 }
    230
    231 {
    232 void * dataAddress = (void *) &(FCC_Sys_New_harness_Y.Actuator3);
    233 xil_fcnid0_init_y[tableIdx].memUnitLength = 1 * sizeof(int16_T);
    234 xil_fcnid0_init_y[tableIdx++].address = (MemUnit_T *) dataAddress;
    235 }
    236
    237 xil_fcnid0_init_y[tableIdx].memUnitLength = 0;
    238 xil_fcnid0_init_y[tableIdx++].address = (MemUnit_T *) 0;
    239 initComplete = 1;
    240 } /* if */
    241
    242 {
    243 if (xilWriteData(&responseId, sizeof(responseId)) !=
    244 XIL_DATA_STREAM_SUCCESS) {
    245 return XIL_INTERFACE_COMMS_FAILURE;
    246 } /* if */
    247
    248 if (responseId == XIL_RESPONSE_CS_REQUEST_SERVICE) {
    249 if (xilWriteData((MemUnit_T *) &serverFcnId, sizeof(serverFcnId)) !=
    250 XIL_DATA_STREAM_SUCCESS) {
    251 return XIL_INTERFACE_COMMS_FAILURE;
    252 } /* if */
    253 } /* if */
    254 }
    255
    256 *xilIOData = &xil_fcnid0_init_y[0];
    257 break;
    258 }
    259
    260 case XIL_OUTPUT_COMMAND:
    261 {
    262 switch (xilCommandIdx) {
    263 case 1:
    264 {
    265 static int initComplete = 0;
    266 if (!initComplete) {
    267 uint32_T tableIdx = 0;
    268
    269 {
    270 void * dataAddress = (void *) &(FCC_Sys_New_harness_Y.Actuator1);
    271 xil_fcnid0_task1_y[tableIdx].memUnitLength = 1 * sizeof(int16_T);
    272 xil_fcnid0_task1_y[tableIdx++].address = (MemUnit_T *) dataAddress;
    273 }
    274
    275 {
    276 void * dataAddress = (void *) &(FCC_Sys_New_harness_Y.Actuator2);
    277 xil_fcnid0_task1_y[tableIdx].memUnitLength = 1 * sizeof(int16_T);
    278 xil_fcnid0_task1_y[tableIdx++].address = (MemUnit_T *) dataAddress;
    279 }
    280
    281 {
    282 void * dataAddress = (void *) &(FCC_Sys_New_harness_Y.Actuator3);
    283 xil_fcnid0_task1_y[tableIdx].memUnitLength = 1 * sizeof(int16_T);
    284 xil_fcnid0_task1_y[tableIdx++].address = (MemUnit_T *) dataAddress;
    285 }
    286
    287 xil_fcnid0_task1_y[tableIdx].memUnitLength = 0;
    288 xil_fcnid0_task1_y[tableIdx++].address = (MemUnit_T *) 0;
    289 initComplete = 1;
    290 } /* if */
    291
    292 {
    293 if (xilWriteData(&responseId, sizeof(responseId)) !=
    294 XIL_DATA_STREAM_SUCCESS) {
    295 return XIL_INTERFACE_COMMS_FAILURE;
    296 } /* if */
    297
    298 if (responseId == XIL_RESPONSE_CS_REQUEST_SERVICE) {
    299 if (xilWriteData((MemUnit_T *) &serverFcnId, sizeof(serverFcnId))
    300 != XIL_DATA_STREAM_SUCCESS) {
    301 return XIL_INTERFACE_COMMS_FAILURE;
    302 } /* if */
    303 } /* if */
    304 }
    305
    306 *xilIOData = &xil_fcnid0_task1_y[0];
    307 break;
    308 }
    309
    310 default:
    311 errorCode = XIL_INTERFACE_UNKNOWN_TID;
    312 break;
    313 }
    314 break;
    315 }
    316
    317 default:
    318 errorCode = XIL_INTERFACE_UNKNOWN_TID;
    319 break;
    320 }
    321
    322 return errorCode;
    323}
    324
    325XIL_INTERFACE_ERROR_CODE xilTerminate(uint32_T xilFcnId)
    326{
    327 if (xilFcnId != 0) {
    328 return XIL_INTERFACE_UNKNOWN_FCNID;
    329 } /* if */
    330
    331 /* Invoke any terminate Function */
    332 /* No Function to Call */
    333 return XIL_INTERFACE_SUCCESS;
    334}
    335
    336XIL_INTERFACE_ERROR_CODE xilEnable(uint32_T xilFcnId, uint32_T xilTID)
    337{
    338 /* Single In-the-Loop Component */
    339 if (xilFcnId != 0) {
    340 return XIL_INTERFACE_UNKNOWN_FCNID;
    341 }
    342
    343 UNUSED_PARAMETER(xilTID);
    344
    345 /* No Enable Function - this function should never be called */
    346 return XIL_INTERFACE_UNKNOWN_TID;
    347}
    348
    349XIL_INTERFACE_ERROR_CODE xilDisable(uint32_T xilFcnId, uint32_T xilTID)
    350{
    351 /* Single In-the-Loop Component */
    352 if (xilFcnId != 0) {
    353 return XIL_INTERFACE_UNKNOWN_FCNID;
    354 }
    355
    356 UNUSED_PARAMETER(xilTID);
    357
    358 /* No Disable Function - this function should never be called */
    359 return XIL_INTERFACE_UNKNOWN_TID;
    360}
    361
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_common_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_common_h.html deleted file mode 100644 index b5b0fb38c8656d499de115cf330bda608b8c1fc0..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_common_h.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2006-2019 The MathWorks, Inc. */
    2
    3/*
    4 * File: xil_interface_common.h
    5 *
    6 * SIL/PIL common definitions
    7 */
    8
    9#ifndef __XIL_INTERFACE_COMMON_H__
    10#define __XIL_INTERFACE_COMMON_H__
    11
    12#include "xil_common.h"
    13
    14/* define some error codes */
    15typedef enum {XIL_INTERFACE_SUCCESS=0,
    16 XIL_INTERFACE_UNKNOWN_TID,
    17 XIL_INTERFACE_UNKNOWN_FCNID,
    18 XIL_INTERFACE_COMMS_FAILURE,
    19 XIL_INTERFACE_MEMORY_ALLOCATION_ERROR,
    20 XIL_INTERFACE_OFFLOADED_PROCESSING} XIL_INTERFACE_ERROR_CODE;
    21
    22typedef enum {XIL_INIT_COMMAND = 0,
    23 XIL_INITIALIZE_COMMAND,
    24 XIL_SYSTEM_INITIALIZE_COMMAND,
    25 XIL_OUTPUT_COMMAND,
    26 XIL_TERMINATE_COMMAND,
    27 XIL_ENABLE_COMMAND,
    28 XIL_DISABLE_COMMAND,
    29 XIL_CONST_OUTPUT_COMMAND,
    30 XIL_PROCESS_PARAMS_COMMAND,
    31 XIL_CLIENT_SERVER_COMMAND,
    32 XIL_SHUTDOWN_COMMAND,
    33 XIL_UPDATE_COMMAND,
    34 XIL_SYSTEM_RESET_COMMAND,
    35 XIL_PAUSE_COMMAND} XIL_COMMAND_TYPE_ENUM;
    36
    37/* define response ids */
    38typedef enum {XIL_RESPONSE_ERROR=0,
    39 XIL_RESPONSE_OUTPUT_PRE_DATA,
    40 XIL_RESPONSE_OUTPUT_DATA,
    41 XIL_RESPONSE_PRINTF,
    42 XIL_RESPONSE_FOPEN,
    43 XIL_RESPONSE_FPRINTF,
    44 XIL_RESPONSE_SIGNAL_RAISED,
    45 XIL_RESPONSE_TYPE_SIZE,
    46 XIL_RESPONSE_CS_REQUEST_SERVICE
    47 } XIL_RESPONSE_ID;
    48
    49/* define receive states */
    50typedef enum {XIL_INVALID_STATE=-1,
    51 XIL_READ_COMMAND_CODE,
    52 XIL_READ_FCNID,
    53 XIL_READ_XILTID,
    54 XIL_PROCESS_TARGET_TO_HOST_PRE_DATA,
    55 XIL_PROCESS_HOST_TO_TARGET_DATA,
    56 XIL_CALL_XILINTERFACE,
    57 XIL_PROCESS_TARGET_TO_HOST_DATA,
    58 XIL_COMPLETE} XIL_HANDLE_RECV_STATE;
    59
    60/* Defines what states we need to save to make xilProcessMsg re-entrant.
    61 * This is used by client/server commands which could happen in the middle
    62 * of a step */
    63typedef struct xilProcessMsgContextSwitch {
    64 XIL_HANDLE_RECV_STATE state;
    65 XIL_COMMAND_TYPE_ENUM command;
    66 uint32_T commandIdx;
    67 uint32_T fcnId;
    68} XIL_PROCESS_MSG_CONTEXT_SWITCH;
    69
    70/* XILIOData is defined as a start address
    71 * and length in MemUnits */
    72typedef struct xilIOData {
    73 uint32_T memUnitLength;
    74 MemUnit_T * address;
    75} XILIOData;
    76
    77#endif
    78
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_h.html deleted file mode 100644 index 55c418f820d7a4c63fd6b16ada2bd32ac82dd8d9..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_h.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2006-2019 The MathWorks, Inc. */
    2
    3/*
    4 * File: xil_interface.h
    5 *
    6 * SIL/PIL interface functions
    7 */
    8
    9#ifndef __XIL_INTERFACE_H__
    10#define __XIL_INTERFACE_H__
    11
    12/* include rtwtypes.h & XILIOData */
    13#include "xil_interface_common.h"
    14
    15/* Generated xil_interface.c may use xilCommandDispatchAndResponse for client/server */
    16#include "xil_interface_lib.h"
    17
    18/* xil_interface.c|cpp always presents a C
    19 * function-call interface for xil_interface_lib.c */
    20#ifdef __cplusplus
    21extern "C" { /* sbcheck:ok:extern_c needed to ensure correct linking*/
    22#endif
    23
    24/* Get data type information - called from mdlStart */
    25extern XIL_INTERFACE_ERROR_CODE xilGetDataTypeInfo(void);
    26
    27/* Process Parameters - called from mdlProcessParameters / mdlStart */
    28extern XIL_INTERFACE_ERROR_CODE xilProcessParams(uint32_T);
    29
    30/* Initialize - called from mdlStart */
    31extern XIL_INTERFACE_ERROR_CODE xilInitialize(uint32_T);
    32
    33/* System Initialize - called from mdlSystemInitialize (or mdlInitializeConditions) */
    34extern XIL_INTERFACE_ERROR_CODE xilSystemInitialize(uint32_T);
    35
    36/* System Reset - called from mdlSystemReset */
    37extern XIL_INTERFACE_ERROR_CODE xilSystemReset(uint32_T);
    38
    39/* Initialize input XILIOData pointer */
    40extern XIL_INTERFACE_ERROR_CODE xilGetHostToTargetData(uint32_T, XIL_COMMAND_TYPE_ENUM, uint32_T, XILIOData **);
    41
    42/* Output - called from mdlOutputs */
    43extern XIL_INTERFACE_ERROR_CODE xilOutput(uint32_T, uint32_T);
    44
    45/* Update - called from mdlOutputs (not mdlUpdate) */
    46extern XIL_INTERFACE_ERROR_CODE xilUpdate(uint32_T, uint32_T);
    47
    48/* Initialize output XILIOData pointer */
    49extern XIL_INTERFACE_ERROR_CODE xilGetTargetToHostData(uint32_T, XIL_COMMAND_TYPE_ENUM, uint32_T, XILIOData **, MemUnit_T responseId, uint32_T serverFcnId);
    50
    51/* Initialize state output XILIOData pointer */
    52extern XIL_INTERFACE_ERROR_CODE xilGetTargetToHostPreData(uint32_T, XIL_COMMAND_TYPE_ENUM, uint32_T, XILIOData **, MemUnit_T responseId, uint32_T serverFcnId);
    53
    54/* Terminate - called from mdlTerminate */
    55extern XIL_INTERFACE_ERROR_CODE xilTerminate(uint32_T);
    56
    57/* Enable - called from mdlEnable */
    58extern XIL_INTERFACE_ERROR_CODE xilEnable(uint32_T, uint32_T);
    59
    60/* Disable - called from mdlDisable */
    61extern XIL_INTERFACE_ERROR_CODE xilDisable(uint32_T, uint32_T);
    62
    63/* Pause - called from mdlSimStatusChange */
    64extern XIL_INTERFACE_ERROR_CODE xilPause(uint32_T);
    65
    66#ifdef __cplusplus
    67}
    68#endif
    69
    70#endif
    71
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_lib_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_lib_c.html deleted file mode 100644 index 0515658f251b070ce35aea126125019d9c391f1a..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_lib_c.html +++ /dev/null @@ -1,1458 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2006-2019 The MathWorks, Inc. */
    2
    3/*
    4 * File: xil_interface_lib.c
    5 *
    6 * SIL/PIL support library
    7 *
    8 */
    9
    10#include "xil_interface_lib.h"
    11#include "xil_interface_lib_private.h"
    12#include "xil_data_stream.h"
    13#include "codeinstr_data_stream.h"
    14#include "xil_interface.h"
    15#include "coder_assumptions_app.h"
    16#include "XILTgtAppSvc_CInterface.h"
    17
    18#ifdef LDRA_ENABLED
    19#include "code_coverage_utils.h"
    20#endif /* LDRA_ENABLED */
    21
    22#ifdef HOST_BIG_ENDIAN_PROTOCOL_TESTING
    23 void swapBytes(MemUnit_T * const buffer, uint32_T size);
    24 static XIL_DATA_STREAM_ERROR_CODE xilReadDataAndSwapBytes(MemUnit_T * dst, uint32_T size);
    25#endif /* HOST_BIG_ENDIAN_PROTOCOL_TESTING */
    26
    27/* Internal state variable holding information about the
    28 * XILIOData currently being processed.
    29 *
    30 * Note: this variable is shared by UDATA processing code
    31 * and YDATA processing code and used for all IO.
    32 *
    33 */
    34static XILIOData * xilIODataPtr;
    35static int isShutdownCommand = 0;
    36static int processMsgSuccess = 1;
    37
    38/* xilProcessMsg current context (cc)*/
    39static XIL_PROCESS_MSG_CONTEXT_SWITCH cc = {XIL_READ_COMMAND_CODE, XIL_INIT_COMMAND, 0, 0};
    40
    41/* static functions */
    42static void restoreProcessMsgContext(XIL_PROCESS_MSG_CONTEXT_SWITCH cachedCtx) {
    43 cc.state = cachedCtx.state;
    44 cc.command = cachedCtx.command;
    45 cc.commandIdx = cachedCtx.commandIdx;
    46 cc.fcnId = cachedCtx.fcnId;
    47}
    48
    49static void getNextXILIOData(void) {
    50 /* increment xilIOData ptr if we have not reached the end */
    51 if (xilIODataPtr->memUnitLength!=0) {
    52 xilIODataPtr++;
    53 }
    54}
    55
    56static XIL_PROCESSDATA_ERROR_CODE processHostToTargetData(uint32_T fcnId,
    57 XIL_COMMAND_TYPE_ENUM command,
    58 uint32_T commandIdx) {
    59
    60 /* this function receives some arbitrary data size that needs to be
    61 * into the appropriate memory addresses. Since it is not guaranteed
    62 * that we will copy all the required data in one go, we need to keep
    63 * track of which address (and size) in xilIODataPtr we last copied
    64 * to so we can continue copying the remaining data the next time we
    65 * receive them.
    66 */
    67 static MemUnit_T * uDataAddress = NULL;
    68 static uint32_T uDataLength = 0;
    69 int processingComplete = 0;
    70
    71 /* initialize uDataAddress and uDataLength if necessary*/
    72 if (uDataAddress == NULL) {
    73 /* initialise xilIODataPtr before beginning to process data */
    74 if (xilGetHostToTargetData(fcnId, command, commandIdx, &xilIODataPtr)) {
    75 /* no udata processing to be done - we're complete */
    76 processingComplete = 1;
    77 return XIL_PROCESSDATA_SUCCESS;
    78 }
    79
    80 uDataAddress = xilIODataPtr->address;
    81 uDataLength = xilIODataPtr->memUnitLength;
    82 }
    83
    84 while(!(processingComplete)) {
    85 xilReadData(uDataAddress, uDataLength);
    86 getNextXILIOData();
    87
    88 if (xilIODataPtr->memUnitLength == 0) {
    89 /* done processing all xilIOData */
    90 processingComplete = 1;
    91 uDataAddress = NULL;
    92 } else {
    93 /* reset our pointer to next xilIOData */
    94 uDataAddress = xilIODataPtr->address;
    95 uDataLength = xilIODataPtr->memUnitLength;
    96 }
    97 }
    98
    99 return XIL_PROCESSDATA_SUCCESS;
    100}
    101
    102static XIL_PROCESSDATA_ERROR_CODE processTargetToHostData(uint32_T fcnId,
    103 MemUnit_T responseId,
    104 XIL_COMMAND_TYPE_ENUM command,
    105 uint32_T commandIdx,
    106 uint32_T serverFcnId) {
    107
    108 int moreXILData = 1;
    109
    110 /* initialise before beginning to process data */
    111 if (xilGetTargetToHostData(fcnId, command, commandIdx, &xilIODataPtr, responseId, serverFcnId)) {
    112 /* no ydata processing to be done - we're complete */
    113 return XIL_PROCESSDATA_SUCCESS;
    114 }
    115
    116 while(moreXILData) {
    117 if (xilWriteData(xilIODataPtr->address, xilIODataPtr->memUnitLength) != XIL_DATA_STREAM_SUCCESS) {
    118 return XIL_PROCESSDATA_DATA_STREAM_ERROR;
    119 }
    120 /* get next xilIOData */
    121 getNextXILIOData();
    122 if (xilIODataPtr->memUnitLength == 0) {
    123 moreXILData = 0;
    124 }
    125 }
    126 return XIL_PROCESSDATA_SUCCESS;
    127}
    128
    129static XIL_PROCESSDATA_ERROR_CODE processTargetToHostPreData(uint32_T fcnId,
    130 MemUnit_T responseId,
    131 XIL_COMMAND_TYPE_ENUM command,
    132 uint32_T commandIdx) {
    133
    134 int moreXILData = 1;
    135 uint32_T serverFcnId = 0; /*Default server function ID*/
    136
    137 /* initialise before beginning to process data */
    138 if (xilGetTargetToHostPreData(fcnId, command, commandIdx, &xilIODataPtr, responseId, serverFcnId)) {
    139 /* no ydata processing to be done - we're complete */
    140 return XIL_PROCESSDATA_SUCCESS;
    141 }
    142
    143 while(moreXILData) {
    144 if (xilWriteData(xilIODataPtr->address, xilIODataPtr->memUnitLength) != XIL_DATA_STREAM_SUCCESS) {
    145 return XIL_PROCESSDATA_DATA_STREAM_ERROR;
    146 }
    147 /* get next xilIOData */
    148 getNextXILIOData();
    149 if (xilIODataPtr->memUnitLength == 0) {
    150 moreXILData = 0;
    151 }
    152 }
    153 return XIL_PROCESSDATA_SUCCESS;
    154}
    155
    156static XIL_INTERFACE_LIB_ERROR_CODE finalizeCommandResponse(XIL_RESPONSE_ERROR_ID errorId, MemUnit_T isEndOfXILStep) {
    157
    158#ifdef CODE_INSTRUMENTATION_ENABLED
    159 /* flush the output stream
    160 * before beginning next command */
    161 if (codeInstrDataFlush() != XIL_DATA_STREAM_SUCCESS) {
    162 return XIL_INTERFACE_LIB_ERROR;
    163 }
    164#endif
    165
    166 /* only send the error id if necessary */
    167 if (errorId != XIL_RESPONSE_ERROR_SUCCESS) {
    168 /* send response id code */
    169 MemUnit_T memUnitData = XIL_RESPONSE_ERROR;
    170 if (xilWriteData(&memUnitData, sizeof(memUnitData)) != XIL_DATA_STREAM_SUCCESS) {
    171 return XIL_INTERFACE_LIB_ERROR;
    172 }
    173 /* send error id */
    174 memUnitData = (MemUnit_T) errorId;
    175 if (xilWriteData(&memUnitData, sizeof(memUnitData)) != XIL_DATA_STREAM_SUCCESS) {
    176 return XIL_INTERFACE_LIB_ERROR;
    177 }
    178 }
    179 /* flush the output stream
    180 * before beginning next command */
    181 if (xilDataFlush(isEndOfXILStep) != XIL_DATA_STREAM_SUCCESS) {
    182 return XIL_INTERFACE_LIB_ERROR;
    183 }
    184 return XIL_INTERFACE_LIB_SUCCESS;
    185}
    186
    187/* Given current state and command, compute the next state for handleReceive */
    188static XIL_HANDLE_RECV_STATE computeNextState(XIL_HANDLE_RECV_STATE state, XIL_COMMAND_TYPE_ENUM command) {
    189
    190 XIL_HANDLE_RECV_STATE nextState;
    191
    192 switch(state) {
    193 case XIL_READ_COMMAND_CODE:
    194 switch(command) {
    195 case XIL_INIT_COMMAND:
    196 case XIL_CONST_OUTPUT_COMMAND:
    197 case XIL_INITIALIZE_COMMAND:
    198 case XIL_SYSTEM_INITIALIZE_COMMAND:
    199 case XIL_TERMINATE_COMMAND:
    200 case XIL_PROCESS_PARAMS_COMMAND:
    201 case XIL_ENABLE_COMMAND:
    202 case XIL_DISABLE_COMMAND:
    203 case XIL_CLIENT_SERVER_COMMAND:
    204 case XIL_UPDATE_COMMAND:
    205 case XIL_OUTPUT_COMMAND:
    206 case XIL_SYSTEM_RESET_COMMAND:
    207 case XIL_PAUSE_COMMAND:
    208 nextState = XIL_READ_FCNID;
    209 break;
    210 case XIL_SHUTDOWN_COMMAND:
    211 nextState = XIL_READ_FCNID;
    212 break;
    213 default:
    214 nextState = XIL_INVALID_STATE;
    215 break;
    216 }
    217 break;
    218 case XIL_READ_FCNID:
    219 switch(command) {
    220 case XIL_INIT_COMMAND:
    221 case XIL_PAUSE_COMMAND:
    222 nextState = XIL_CALL_XILINTERFACE;
    223 break;
    224 case XIL_CONST_OUTPUT_COMMAND:
    225 nextState = XIL_PROCESS_TARGET_TO_HOST_DATA;
    226 break;
    227 case XIL_INITIALIZE_COMMAND:
    228 case XIL_SYSTEM_INITIALIZE_COMMAND:
    229 case XIL_TERMINATE_COMMAND:
    230 case XIL_PROCESS_PARAMS_COMMAND:
    231 case XIL_SYSTEM_RESET_COMMAND:
    232 nextState = XIL_PROCESS_HOST_TO_TARGET_DATA;
    233 break;
    234 case XIL_ENABLE_COMMAND:
    235 case XIL_DISABLE_COMMAND:
    236 case XIL_CLIENT_SERVER_COMMAND:
    237 case XIL_UPDATE_COMMAND:
    238 case XIL_OUTPUT_COMMAND:
    239 nextState = XIL_READ_XILTID;
    240 break;
    241 default:
    242 nextState = XIL_INVALID_STATE;
    243 break;
    244 }
    245 break;
    246 case XIL_READ_XILTID:
    247 switch(command) {
    248 case XIL_ENABLE_COMMAND:
    249 case XIL_DISABLE_COMMAND:
    250 case XIL_CLIENT_SERVER_COMMAND:
    251 case XIL_OUTPUT_COMMAND:
    252 case XIL_UPDATE_COMMAND:
    253 nextState = XIL_PROCESS_HOST_TO_TARGET_DATA;
    254 break;
    255 default:
    256 nextState = XIL_INVALID_STATE;
    257 break;
    258 }
    259 break;
    260 case XIL_PROCESS_HOST_TO_TARGET_DATA:
    261 switch(command) {
    262 case XIL_INITIALIZE_COMMAND:
    263 case XIL_SYSTEM_INITIALIZE_COMMAND:
    264 case XIL_ENABLE_COMMAND:
    265 case XIL_DISABLE_COMMAND:
    266 case XIL_TERMINATE_COMMAND:
    267 case XIL_PROCESS_PARAMS_COMMAND:
    268 case XIL_UPDATE_COMMAND:
    269 case XIL_SYSTEM_RESET_COMMAND:
    270 case XIL_PAUSE_COMMAND:
    271 nextState = XIL_CALL_XILINTERFACE;
    272 break;
    273 case XIL_OUTPUT_COMMAND:
    274 nextState = XIL_PROCESS_TARGET_TO_HOST_PRE_DATA;
    275 break;
    276 case XIL_CLIENT_SERVER_COMMAND:
    277 nextState = XIL_COMPLETE;
    278 break;
    279 default:
    280 nextState = XIL_INVALID_STATE;
    281 break;
    282 }
    283 break;
    284 case XIL_PROCESS_TARGET_TO_HOST_PRE_DATA:
    285 switch(command) {
    286 case XIL_OUTPUT_COMMAND:
    287 nextState = XIL_CALL_XILINTERFACE;
    288 break;
    289 default:
    290 nextState = XIL_INVALID_STATE;
    291 break;
    292 }
    293 break;
    294 case XIL_CALL_XILINTERFACE:
    295 switch(command) {
    296 case XIL_UPDATE_COMMAND:
    297 case XIL_INIT_COMMAND:
    298 case XIL_PROCESS_PARAMS_COMMAND:
    299 nextState = XIL_COMPLETE;
    300 break;
    301 case XIL_INITIALIZE_COMMAND:
    302 case XIL_SYSTEM_INITIALIZE_COMMAND:
    303 case XIL_CONST_OUTPUT_COMMAND:
    304 case XIL_ENABLE_COMMAND:
    305 case XIL_DISABLE_COMMAND:
    306 case XIL_OUTPUT_COMMAND:
    307 case XIL_SYSTEM_RESET_COMMAND:
    308 case XIL_PAUSE_COMMAND:
    309 case XIL_TERMINATE_COMMAND:
    310 nextState = XIL_PROCESS_TARGET_TO_HOST_DATA;
    311 break;
    312 default:
    313 nextState = XIL_INVALID_STATE;
    314 break;
    315 }
    316 break;
    317 case XIL_PROCESS_TARGET_TO_HOST_DATA:
    318 /* done */
    319 nextState = XIL_COMPLETE;
    320 break;
    321 default:
    322 nextState = XIL_INVALID_STATE;
    323 break;
    324 }
    325 return nextState;
    326}
    327
    328#define XIL_COMMAND_TYPE_SIZE sizeof(MemUnit_T)
    329#define XIL_COMMAND_CODE_IDX 0
    330#define XIL_COMMAND_FCNID_IDX (XIL_COMMAND_CODE_IDX + XIL_COMMAND_TYPE_SIZE)
    331#define XIL_COMMAND_FCNID_SIZE sizeof(uint32_T)
    332#define XIL_COMMAND_XILTID_IDX (XIL_COMMAND_FCNID_IDX + XIL_COMMAND_FCNID_SIZE)
    333#define XIL_COMMAND_XILTID_SIZE sizeof(uint32_T)
    334#define XIL_COMMAND_ERROR_STATUS_SIZE sizeof(MemUnit_T)
    335
    336#define XIL_RUN_EXIT_ERROR processMsgSuccess = 0; \
    337 return
    338#define XIL_RUN_EXIT return
    339
    340#define XIL_EXIT_ERROR_IF_INVALID_STATE if (cc.state == XIL_INVALID_STATE) { \
    341 XIL_RUN_EXIT_ERROR; \
    342 }
    343
    344static void xilReadCommandCode(void) {
    345 MemUnit_T commandCode;
    346 if (cc.state==XIL_READ_COMMAND_CODE) {
    347 /* read commandCode */
    348
    349 xilReadData(&(commandCode), XIL_COMMAND_TYPE_SIZE);
    350
    351 /* cast from the MemUnit commandCode to the enumeration commandCode */
    352 cc.command = (XIL_COMMAND_TYPE_ENUM) commandCode;
    353
    354 if (cc.command == XIL_SHUTDOWN_COMMAND) {
    355 /* Terminate this process when XIL simulation is complete */
    356 isShutdownCommand = 1;
    357 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_TERMINATE, 1) != XIL_INTERFACE_LIB_SUCCESS) {
    358 XIL_RUN_EXIT_ERROR;
    359 }
    360 else {
    361 XIL_RUN_EXIT;
    362 }
    363 } else {
    364 /* compute next state */
    365 cc.state = computeNextState(cc.state, cc.command);
    366 XIL_EXIT_ERROR_IF_INVALID_STATE;
    367 }
    368 }
    369}
    370
    371void xilProcessMsg(void) {
    372 /* read commandCode */
    373 xilReadCommandCode();
    374
    375 if (cc.state==XIL_READ_FCNID) {
    376 /* read fcnId */
    377#ifdef HOST_BIG_ENDIAN_PROTOCOL_TESTING
    378 xilReadDataAndSwapBytes(((MemUnit_T*)&(cc.fcnId)), XIL_COMMAND_FCNID_SIZE);
    379#else
    380 xilReadData(((MemUnit_T*)&(cc.fcnId)), XIL_COMMAND_FCNID_SIZE);
    381#endif /*HOST_BIG_ENDIAN_PROTOCOL_TESTING*/
    382
    383
    384
    385 /* compute next state */
    386 cc.state = computeNextState(cc.state, cc.command);
    387 XIL_EXIT_ERROR_IF_INVALID_STATE;
    388 }
    389
    390
    391 if (cc.state==XIL_READ_XILTID) {
    392 /* read commandIdx */
    393
    394#ifdef HOST_BIG_ENDIAN_PROTOCOL_TESTING
    395 xilReadDataAndSwapBytes(((MemUnit_T*)&(cc.commandIdx)), XIL_COMMAND_XILTID_SIZE);
    396#else
    397 xilReadData(((MemUnit_T*)&(cc.commandIdx)), XIL_COMMAND_XILTID_SIZE);
    398#endif /*HOST_BIG_ENDIAN_PROTOCOL_TESTING*/
    399
    400 /* compute next state */
    401 cc.state = computeNextState(cc.state, cc.command);
    402 XIL_EXIT_ERROR_IF_INVALID_STATE;
    403 }
    404
    405 if (cc.state == XIL_PROCESS_HOST_TO_TARGET_DATA) {
    406 /* process inputs if required by command */
    407 XIL_PROCESSDATA_ERROR_CODE processDataError;
    408 /* process data from host */
    409 processDataError = processHostToTargetData(cc.fcnId, cc.command, cc.commandIdx);
    410 if (processDataError == XIL_PROCESSDATA_DATA_STREAM_ERROR) {
    411 XIL_RUN_EXIT_ERROR;
    412 } else if (processDataError != XIL_PROCESSDATA_SUCCESS) {
    413 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_PROCESS_UDATA, 1) != XIL_INTERFACE_LIB_SUCCESS) {
    414 XIL_RUN_EXIT_ERROR;
    415 }
    416 else {
    417 XIL_RUN_EXIT;
    418 }
    419 }
    420
    421 /* compute next state */
    422 cc.state = computeNextState(cc.state, cc.command);
    423 XIL_EXIT_ERROR_IF_INVALID_STATE
    424 }
    425
    426 if (cc.state == XIL_PROCESS_TARGET_TO_HOST_PRE_DATA) {
    427 XIL_PROCESSDATA_ERROR_CODE processDataError;
    428 /* process data from target */
    429 processDataError = processTargetToHostPreData(cc.fcnId, XIL_RESPONSE_OUTPUT_PRE_DATA, cc.command, cc.commandIdx);
    430 if (processDataError == XIL_PROCESSDATA_DATA_STREAM_ERROR) {
    431 XIL_RUN_EXIT_ERROR;
    432 } else if (processDataError != XIL_PROCESSDATA_SUCCESS) {
    433 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_PROCESS_YDATA, 1) != XIL_INTERFACE_LIB_SUCCESS) {
    434 XIL_RUN_EXIT_ERROR;
    435 }
    436 else {
    437 XIL_RUN_EXIT;
    438 }
    439 }
    440 /* compute next state */
    441 cc.state = computeNextState(cc.state, cc.command);
    442 XIL_EXIT_ERROR_IF_INVALID_STATE;
    443 }
    444
    445 if (cc.state == XIL_CALL_XILINTERFACE) {
    446 /* call xilInterface function */
    447 switch(cc.command) {
    448#ifndef OUT_OF_PROCESS_EXEC
    449 case XIL_INIT_COMMAND:
    450 {
    451#if CODER_ASSUMPTIONS_ENABLED == 1
    452 /* run validation of coder assumptions */
    453 if (coderAssumptionsRun() != XIL_INTERFACE_LIB_SUCCESS) {
    454 XIL_RUN_EXIT_ERROR;
    455 }
    456#endif
    457 if (xilGetDataTypeInfo() != XIL_INTERFACE_SUCCESS) {
    458 XIL_RUN_EXIT_ERROR;
    459 }
    460 break;
    461 }
    462 case XIL_CONST_OUTPUT_COMMAND:
    463 /* no function */
    464 break;
    465 case XIL_PROCESS_PARAMS_COMMAND:
    466 if (xilProcessParams(cc.fcnId) != XIL_INTERFACE_SUCCESS) {
    467 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_PROCESS_PARAMS, 1) != XIL_INTERFACE_LIB_SUCCESS) {
    468 XIL_RUN_EXIT_ERROR;
    469 }
    470 else {
    471 XIL_RUN_EXIT;
    472 }
    473 }
    474 break;
    475 case XIL_INITIALIZE_COMMAND:
    476 if (xilInitialize(cc.fcnId) != XIL_INTERFACE_SUCCESS) {
    477 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_INITIALIZE, 1) != XIL_INTERFACE_LIB_SUCCESS) {
    478 XIL_RUN_EXIT_ERROR;
    479 }
    480 else {
    481 XIL_RUN_EXIT;
    482 }
    483 }
    484 break;
    485 case XIL_PAUSE_COMMAND:
    486 if (xilPause(cc.fcnId) != XIL_INTERFACE_SUCCESS) {
    487 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_INITIALIZE, 1) != XIL_INTERFACE_LIB_SUCCESS) {
    488 XIL_RUN_EXIT_ERROR;
    489 }
    490 else {
    491 XIL_RUN_EXIT;
    492 }
    493 }
    494 break;
    495 case XIL_SYSTEM_INITIALIZE_COMMAND:
    496 if (xilSystemInitialize(cc.fcnId) != XIL_INTERFACE_SUCCESS) {
    497 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_SYSTEM_INITIALIZE, 1) != XIL_INTERFACE_LIB_SUCCESS) {
    498 XIL_RUN_EXIT_ERROR;
    499 }
    500 else {
    501 XIL_RUN_EXIT;
    502 }
    503 }
    504 break;
    505 case XIL_TERMINATE_COMMAND:
    506 if (xilTerminate(cc.fcnId) != XIL_INTERFACE_SUCCESS) {
    507 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_TERMINATE, 1) != XIL_INTERFACE_LIB_SUCCESS) {
    508 XIL_RUN_EXIT_ERROR;
    509 }
    510 else {
    511 XIL_RUN_EXIT;
    512 }
    513 }
    514 break;
    515 case XIL_ENABLE_COMMAND:
    516 if (xilEnable(cc.fcnId, cc.commandIdx) != XIL_INTERFACE_SUCCESS) {
    517 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_ENABLE, 1) != XIL_INTERFACE_LIB_SUCCESS) {
    518 XIL_RUN_EXIT_ERROR;
    519 }
    520 else {
    521 XIL_RUN_EXIT;
    522 }
    523 }
    524 break;
    525 case XIL_DISABLE_COMMAND:
    526 if (xilDisable(cc.fcnId, cc.commandIdx) != XIL_INTERFACE_SUCCESS) {
    527 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_DISABLE, 1) != XIL_INTERFACE_LIB_SUCCESS) {
    528 XIL_RUN_EXIT_ERROR;
    529 }
    530 else {
    531 XIL_RUN_EXIT;
    532 }
    533 }
    534 break;
    535 case XIL_UPDATE_COMMAND:
    536 if (xilUpdate(cc.fcnId, cc.commandIdx) != XIL_INTERFACE_SUCCESS) {
    537 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_UPDATE, 1) != XIL_INTERFACE_LIB_SUCCESS) {
    538 XIL_RUN_EXIT_ERROR;
    539 } else {
    540 XIL_RUN_EXIT;
    541 }
    542 }
    543 break;
    544#endif
    545 case XIL_OUTPUT_COMMAND:
    546 if (xilOutput(cc.fcnId, cc.commandIdx) != XIL_INTERFACE_SUCCESS) {
    547 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_OUTPUT, 1) != XIL_INTERFACE_LIB_SUCCESS) {
    548 XIL_RUN_EXIT_ERROR;
    549 }
    550 else {
    551 XIL_RUN_EXIT;
    552 }
    553 }
    554 break;
    555#ifndef OUT_OF_PROCESS_EXEC
    556 case XIL_SYSTEM_RESET_COMMAND:
    557 if (xilSystemReset(cc.fcnId) != XIL_INTERFACE_SUCCESS) {
    558 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_SYSTEM_RESET, 1) != XIL_INTERFACE_LIB_SUCCESS) {
    559 XIL_RUN_EXIT_ERROR;
    560 }
    561 else {
    562 XIL_RUN_EXIT;
    563 }
    564 }
    565 break;
    566#endif
    567 default:
    568 XIL_RUN_EXIT_ERROR;
    569 }
    570 /* compute next state */
    571 cc.state = computeNextState(cc.state, cc.command);
    572 XIL_EXIT_ERROR_IF_INVALID_STATE;
    573 }
    574 if (cc.state == XIL_PROCESS_TARGET_TO_HOST_DATA) {
    575 XIL_PROCESSDATA_ERROR_CODE processDataError;
    576 uint32_T serverFcnId = 0; /* Default server function ID */
    577 /* process data from target */
    578 processDataError = processTargetToHostData(cc.fcnId, XIL_RESPONSE_OUTPUT_DATA, cc.command, cc.commandIdx, serverFcnId);
    579 if (processDataError == XIL_PROCESSDATA_DATA_STREAM_ERROR) {
    580 XIL_RUN_EXIT_ERROR;
    581 } else if (processDataError != XIL_PROCESSDATA_SUCCESS) {
    582 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_PROCESS_YDATA, 1) != XIL_INTERFACE_LIB_SUCCESS) {
    583 XIL_RUN_EXIT_ERROR;
    584 }
    585 else {
    586 XIL_RUN_EXIT;
    587 }
    588 }
    589 /* compute next state */
    590 cc.state = computeNextState(cc.state, cc.command);
    591 XIL_EXIT_ERROR_IF_INVALID_STATE;
    592 /*break;*/
    593 }
    594
    595
    596#ifdef LDRA_ENABLED
    597 /* upload code coverage execution history from target*/
    598 if (cc.command == XIL_TERMINATE_COMMAND) {
    599 callTargetUploadFcns();
    600 }
    601#endif /* LDRA_ENABLED */
    602
    603 /* client/server commands could be executed in the middle of a step */
    604 if ((cc.state == XIL_COMPLETE) && (cc.command != XIL_CLIENT_SERVER_COMMAND)) {
    605 /* finalize the response */
    606 MemUnit_T isEndOfXILStep = 1;
    607 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_SUCCESS, isEndOfXILStep) != XIL_INTERFACE_LIB_SUCCESS) {
    608 XIL_RUN_EXIT_ERROR;
    609 }
    610
    611 /* reset state */
    612 cc.state = XIL_READ_COMMAND_CODE;
    613 }
    614
    615 XIL_RUN_EXIT;
    616
    617}
    618
    619XIL_INTERFACE_LIB_ERROR_CODE xilRun(void) {
    620 XIL_INTERFACE_LIB_ERROR_CODE errorCode = XIL_INTERFACE_LIB_SUCCESS;
    621
    622 /* read one msg and pass to owning application */
    623 xilProcessMsg();
    624
    625 if (processMsgSuccess) {
    626 if (isShutdownCommand) {
    627 errorCode = XIL_INTERFACE_LIB_TERMINATE;
    628 } else {
    629 errorCode = XIL_INTERFACE_LIB_SUCCESS;
    630 }
    631
    632 } else {
    633 errorCode = XIL_INTERFACE_LIB_ERROR;
    634 }
    635 return errorCode;
    636}
    637
    638/* Dispatch and receive client/server commands within a step */
    639void xilCommandDispatchAndResponse(XIL_COMMAND_TYPE_ENUM xilCommandType,
    640 uint32_T xilCommandIdx, uint32_T xilFcnId,
    641 uint32_T svrFcnId, MemUnit_T xilResponseId,
    642 XIL_PROCESS_MSG_CONTEXT_SWITCH callerCtx) {
    643
    644 /* define a binary flag, each CS command needs to process a response */
    645 int needToProcessCSResponse = 1;
    646
    647 /* send input data to the host */
    648 if (processTargetToHostData(xilFcnId, xilResponseId, xilCommandType,
    649 xilCommandIdx, svrFcnId) == XIL_PROCESSDATA_DATA_STREAM_ERROR) {
    650 restoreProcessMsgContext(callerCtx);
    651 XIL_RUN_EXIT_ERROR;
    652 }
    653
    654 /* finalize the response */
    655 {
    656 MemUnit_T isEndOfXILStep = 0;
    657 if (finalizeCommandResponse(XIL_RESPONSE_ERROR_SUCCESS, isEndOfXILStep) !=
    658 XIL_INTERFACE_LIB_SUCCESS) {
    659 restoreProcessMsgContext(callerCtx);
    660 XIL_RUN_EXIT_ERROR;
    661 }
    662 }
    663
    664 /* reset state for new context, recursive calls are safe because all
    665 * the caller contexts (callerCtx) are cached in the stack */
    666 cc.state = XIL_READ_COMMAND_CODE;
    667
    668 while(needToProcessCSResponse) {
    669 /* read next command requested by the host */
    670 xilReadCommandCode();
    671 if (cc.command == XIL_CLIENT_SERVER_COMMAND) {
    672 /* if the host sent a response to the server call, process it
    673 * and then exit the loop. Otherwise, process the current
    674 * command and read the next one */
    675 needToProcessCSResponse = 0;
    676 }
    677 /* process response data sent by host */
    678 if (xilRun() != XIL_INTERFACE_LIB_SUCCESS) {
    679 restoreProcessMsgContext(callerCtx);
    680 XIL_RUN_EXIT_ERROR;
    681 }
    682 }
    683
    684 restoreProcessMsgContext(callerCtx);
    685
    686}
    687
    688XIL_PROCESS_MSG_CONTEXT_SWITCH xilGetCurrentProcessMsgContext(void) {
    689 /* return the current context (cc) */
    690 return cc;
    691}
    692
    693
    694#ifdef HOST_BIG_ENDIAN_PROTOCOL_TESTING
    695
    696void swapBytes(MemUnit_T * const buffer, uint32_T size) {
    697 MemUnit_T tmp;
    698 MemUnit_T *headPtr;
    699 MemUnit_T *tailPtr;
    700 uint32_T idx;
    701
    702 for(idx = 0; idx < size/2; idx ++) {
    703 headPtr = buffer + idx;
    704 tailPtr = buffer + size -1 - idx;
    705 tmp = *headPtr;
    706 *headPtr = *tailPtr;
    707 *tailPtr = tmp;
    708 }
    709}
    710
    711static XIL_DATA_STREAM_ERROR_CODE xilReadDataAndSwapBytes(MemUnit_T * dst, uint32_T size) {
    712 XIL_DATA_STREAM_ERROR_CODE readDataVal = xilReadData(dst, size);
    713
    714 if (readDataVal == XIL_DATA_STREAM_SUCCESS) {
    715 swapBytes(dst, size);
    716 }
    717 return readDataVal;
    718}
    719
    720#endif /*HOST_BIG_ENDIAN_PROTOCOL_TESTING*/
    721
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_lib_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_lib_h.html deleted file mode 100644 index 3a3ea531153ccb610315f3d907eb5d6c83e3d4a1..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_lib_h.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2006-2018 The MathWorks, Inc. */
    2
    3/*
    4 * File: xil_interface_lib.h
    5 *
    6 * SIL/PIL support library
    7 */
    8
    9#ifndef __XIL_INTERFACE_LIB_H__
    10#define __XIL_INTERFACE_LIB_H__
    11
    12#include "xil_error_codes.h"
    13#include "xil_common.h"
    14#include "xil_interface_common.h"
    15
    16/* always present a C function-call interface for xil_interface_lib.c */
    17#ifdef __cplusplus
    18extern "C" {
    19#endif
    20
    21/* xil interface functions to be called from main */
    22extern XIL_INTERFACE_LIB_ERROR_CODE xilInit(const int argc,
    23 void *argv[]);
    24extern XIL_INTERFACE_LIB_ERROR_CODE xilRun(void);
    25
    26/* terminate XIL communications */
    27extern XIL_INTERFACE_LIB_ERROR_CODE xilTerminateComms(void);
    28
    29/* Dispatch and receive client/server commands within a step */
    30extern void xilCommandDispatchAndResponse(XIL_COMMAND_TYPE_ENUM xilCommandType,
    31 uint32_T xilCommandIdx, uint32_T xilFcnId,
    32 uint32_T serverFcnId, MemUnit_T xilResponseId,
    33 XIL_PROCESS_MSG_CONTEXT_SWITCH callerCtx);
    34
    35/* return the current context (cc) */
    36extern XIL_PROCESS_MSG_CONTEXT_SWITCH xilGetCurrentProcessMsgContext(void);
    37#ifdef __cplusplus
    38}
    39#endif
    40
    41#endif
    42
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_lib_private_h.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_lib_private_h.html deleted file mode 100644 index f5f8bb9be6b59fcd98712916085633df4c04f72f..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_interface_lib_private_h.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2006-2017 The MathWorks, Inc. */
    2
    3/*
    4 * File: xil_interface_lib_private.h
    5 *
    6 * SIL/PIL support library
    7 */
    8
    9#ifndef __XIL_INTERFACE_LIB_PRIVATE_H__
    10#define __XIL_INTERFACE_LIB_PRIVATE_H__
    11
    12#include "xil_interface_common.h"
    13
    14/* Enumeration to denote UDATA or YDATA processing */
    15typedef enum {XIL_UDATA_IO = 0, XIL_YDATA_IO} XIL_IO_TYPE;
    16
    17/* define some error codes */
    18typedef enum {XIL_PROCESSDATA_SUCCESS=0,
    19 XIL_PROCESSDATA_DATA_STREAM_ERROR,
    20 XIL_PROCESSDATA_IO_TYPE_ERROR} XIL_PROCESSDATA_ERROR_CODE;
    21
    22/* define error response error ids */
    23typedef enum {XIL_RESPONSE_ERROR_SUCCESS=0,
    24 XIL_RESPONSE_ERROR_PROCESS_UDATA,
    25 XIL_RESPONSE_ERROR_PROCESS_YDATA,
    26 XIL_RESPONSE_ERROR_PROCESS_PARAMS,
    27 XIL_RESPONSE_ERROR_INITIALIZE,
    28 XIL_RESPONSE_ERROR_SYSTEM_INITIALIZE,
    29 XIL_RESPONSE_ERROR_OUTPUT,
    30 XIL_RESPONSE_ERROR_UPDATE,
    31 XIL_RESPONSE_ERROR_TERMINATE,
    32 XIL_RESPONSE_ERROR_ENABLE,
    33 XIL_RESPONSE_ERROR_DISABLE,
    34 XIL_RESPONSE_ERROR_SYSTEM_RESET} XIL_RESPONSE_ERROR_ID;
    35
    36/* static functions */
    37static void getNextXILIOData(void);
    38
    39static XIL_HANDLE_RECV_STATE computeNextState(
    40 XIL_HANDLE_RECV_STATE currentState,
    41 XIL_COMMAND_TYPE_ENUM command);
    42
    43
    44#endif
    45
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_rtiostream_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_rtiostream_c.html deleted file mode 100644 index 51240002d4852900ba411a42a1900f2790358718..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_rtiostream_c.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2013-2015 The MathWorks, Inc. */
    2
    3#include "rx_tx_buffer_sizes.h"
    4#include "xil_common.h"
    5#include "XILTgtAppSvc_CInterface.h"
    6
    7/* XIL buffer is statically allocated for rtiostream-based implementation */
    8static IOUnit_T xilWriteBuffer[XIL_TX_BUFFER_MEMUNIT_SIZE];
    9
    10extern uint8_T xilTgtAppSvcCreate(void) {
    11 return XILTGTAPPSVC_SUCCESS;
    12}
    13
    14extern void xilTgtAppSvcDestroy(void) {
    15}
    16
    17/* Allocation method simply returns the statically allocated buffer */
    18extern uint8_T xilTgtAppSvcAllocBuffer(
    19 void** ppBuf,
    20 const uint16_T dataSize) {
    21
    22 /* buffer is already statically allocated */
    23 *ppBuf = &xilWriteBuffer[APPLICATION_ID_IDX];
    24
    25 UNUSED_PARAMETER(dataSize);
    26
    27 /* nothing to do as buffer is already statically allocated */
    28 return XILTGTAPPSVC_SUCCESS;
    29}
    30
    31/* return pointer to XIL buffer data */
    32extern IOUnit_T * xilTgtAppSvcGetBufferDataPtr(
    33 void* const pBuf) {
    34
    35 /* buffer is already statically allocated */
    36 UNUSED_PARAMETER(pBuf);
    37
    38 return &xilWriteBuffer[PAYLOAD_IDX];
    39}
    40
    41/* send data over rtiostream */
    42extern uint8_T xilTgtAppSvcSend(
    43 void* const pBuf,
    44 const uint16_T dataSize) {
    45
    46 return (uint8_T)commsEnqueueBuffer(pBuf, XIL_RTIOSTREAM_BASED_SERVICE_ID, dataSize);
    47}
    48
    49
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_services_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_services_c.html deleted file mode 100644 index dbe32e25f171ec677c498e8c69365b774dbaabe5..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xil_services_c.html +++ /dev/null @@ -1,332 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2015-2018 The MathWorks, Inc. */
    2
    3#ifdef XIL_SIGNAL_HANDLER
    4#include <signal.h>
    5#include <stdio.h>
    6#if defined(__GNUC__) && (defined(__linux__) || defined(__APPLE__))
    7 #include <execinfo.h>
    8 #define MAX_STACKTRACE 12
    9 #endif
    10#endif
    11
    12#ifdef SIL_DISABLE_SUBNORMAL_SUPPORT
    13 #if SIL_DISABLE_SUBNORMAL_SUPPORT >= 1
    14#include <immintrin.h>
    15 #endif
    16#endif
    17
    18#include "xil_error_codes.h"
    19#include "xil_interface_lib.h"
    20#include "xil_data_stream.h"
    21#include "comms_interface.h"
    22
    23#ifdef CODE_INSTRUMENTATION_ENABLED
    24#include "codeinstr_data_stream.h"
    25#endif
    26
    27#ifndef CODER_ASSUMPTIONS_ENABLED
    28 #error "CODER_ASSUMPTIONS_ENABLED should always be defined!"
    29#endif
    30
    31#if CODER_ASSUMPTIONS_ENABLED == 1
    32#include "coder_assumptions_data_stream.h"
    33#endif
    34
    35#ifdef XIL_SIGNAL_HANDLER
    36/* define signal handler codes */
    37typedef enum {XIL_SIGNAL_SIGFPE=0,
    38 XIL_SIGNAL_SIGILL,
    39 XIL_SIGNAL_ABRT,
    40 XIL_SIGNAL_SEGV,
    41 XIL_SIGNAL_UNKNOWN} XIL_SIGNAL_RAISED;
    42
    43static void XILSigHandler(int32_T sigNo)
    44{
    45 MemUnit_T memUnitData = XIL_RESPONSE_SIGNAL_RAISED;
    46
    47 fflush(stderr);
    48
    49 xilWriteData(&memUnitData, sizeof(memUnitData));
    50 switch (sigNo)
    51 {
    52 case SIGFPE:
    53 {
    54 /* Erroneous arithmetic operation, such as division by zero */
    55 memUnitData = XIL_SIGNAL_SIGFPE;
    56 break;
    57 }
    58 case SIGILL:
    59 {
    60 /* Illegal, malformed, unknown or privileged instruction */
    61 memUnitData = XIL_SIGNAL_SIGILL;
    62 break;
    63 }
    64 case SIGABRT:
    65 {
    66 /* Signal abort */
    67 memUnitData = XIL_SIGNAL_ABRT;
    68 break;
    69 }
    70 case SIGSEGV:
    71 {
    72 /* Segmentation violation */
    73 #if defined(__GNUC__) && (defined(__linux__) || defined(__APPLE__))
    74 void *array[MAX_STACKTRACE];
    75 int bt_size = 0;
    76 #endif
    77
    78 memUnitData = XIL_SIGNAL_SEGV;
    79
    80 #if defined(__GNUC__) && (defined(__linux__) || defined(__APPLE__))
    81 bt_size = backtrace(array, MAX_STACKTRACE);
    82 backtrace_symbols_fd(array, bt_size, 2);
    83 #endif
    84 break;
    85 }
    86 default:
    87 {
    88 memUnitData = XIL_SIGNAL_UNKNOWN;
    89 break;
    90 }
    91 }
    92 xilWriteData(&memUnitData, sizeof(memUnitData));
    93
    94 xilDataFlush((MemUnit_T)1);
    95 xilTerminateComms();
    96}
    97#endif
    98
    99/* Entry point (called from sil_main.c & pil_main.c) to initialize services */
    100XIL_INTERFACE_LIB_ERROR_CODE xilInit(const int argc, void *argv[]) {
    101
    102 if (commsInit(argc, argv) != COMMS_SUCCESS) {
    103 return XIL_INTERFACE_LIB_ERROR;
    104 }
    105
    106 if (silpilInit()!=XIL_INTERFACE_LIB_SUCCESS) {
    107 return XIL_INTERFACE_LIB_ERROR;
    108 }
    109
    110#ifdef CODE_INSTRUMENTATION_ENABLED
    111 if (codeInstrInit()!=XIL_INTERFACE_LIB_SUCCESS) {
    112 return XIL_INTERFACE_LIB_ERROR;
    113 }
    114#endif
    115
    116#if CODER_ASSUMPTIONS_ENABLED == 1
    117 if (coderAssumptionsInit()!=XIL_INTERFACE_LIB_SUCCESS) {
    118 return XIL_INTERFACE_LIB_ERROR;
    119 }
    120#endif
    121
    122#ifdef XIL_SIGNAL_HANDLER
    123 /* register signals to catch */
    124 signal(SIGFPE, XILSigHandler); /* Erroneous arithmetic operation */
    125 signal(SIGILL, XILSigHandler); /* Illegal operation */
    126 signal(SIGABRT, XILSigHandler); /* Abort signal */
    127 signal(SIGSEGV, XILSigHandler); /* Segmentation violation */
    128#endif
    129
    130#ifdef SIL_DISABLE_SUBNORMAL_SUPPORT
    131 #if SIL_DISABLE_SUBNORMAL_SUPPORT == 1
    132 _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
    133 #elif SIL_DISABLE_SUBNORMAL_SUPPORT == 2
    134 _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
    135 #endif
    136#endif
    137 return XIL_INTERFACE_LIB_SUCCESS;
    138}
    139
    140/* Entry point (called from sil_main.c & pil_main.c) to terminate services */
    141XIL_INTERFACE_LIB_ERROR_CODE xilTerminateComms(void) {
    142
    143 silpilTerminate();
    144
    145#ifdef CODE_INSTRUMENTATION_ENABLED
    146 codeInstrTerminate();
    147#endif
    148
    149#if CODER_ASSUMPTIONS_ENABLED == 1
    150 coderAssumptionsTerminate();
    151#endif
    152
    153 commsTerminate();
    154
    155 return XIL_INTERFACE_LIB_SUCCESS;
    156}
    157
    158
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xilcomms_rtiostream_c.html b/src/validation/FCC_Sys_New_harness_ert_rtw/html/xilcomms_rtiostream_c.html deleted file mode 100644 index 0892c0f41cd1ed11c888754f97cda90cf3298eb1..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/html/xilcomms_rtiostream_c.html +++ /dev/null @@ -1,334 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/* Copyright 2013-2017 The MathWorks, Inc. */
    2#include "xilcomms_rtiostream.h"
    3#include "comms_interface.h"
    4#include "rtiostream.h"
    5#include "rtiostream_utils.h"
    6#include "rx_tx_buffer_sizes.h"
    7#include "xil_common.h"
    8#include "XILTgtAppSvc.h"
    9#ifdef HOST_WORD_ADDRESSABLE_TESTING
    10 #include <stdio.h>
    11 #include <stdlib.h>
    12 #include "xil_data_stream.h"
    13#endif
    14#ifdef HOST_BIG_ENDIAN_PROTOCOL_TESTING
    15 extern void swapBytes(MemUnit_T * const buffer, uint32_T size);
    16#endif /* HOST_BIG_ENDIAN_PROTOCOL_TESTING */
    17
    18/* call xilProcessMsg */
    19extern void xilProcessMsg(void);
    20
    21/* store stream handle */
    22static int streamID;
    23
    24/* allocate the buffers */
    25static IOUnit_T xilCommsBuffer[RTIOSTREAM_RX_BUFFER_SIZE];
    26
    27
    28/* open rtiostream */
    29int commsInit(const int argc, void * argv[]){
    30
    31 streamID = rtIOStreamOpen(argc, argv);
    32 if (streamID == RTIOSTREAM_ERROR) {
    33 return COMMS_ERROR;
    34 }
    35 return COMMS_SUCCESS;
    36}
    37
    38/* close rtiostream */
    39int commsTerminate(void) {
    40 if (rtIOStreamClose(streamID) == RTIOSTREAM_NO_ERROR) {
    41 return COMMS_SUCCESS;
    42 } else {
    43 return COMMS_ERROR;
    44 }
    45}
    46
    47/* call rtIOStreamBlockingSend to send data*/
    48int commsEnqueueBuffer(
    49 void* const pBuf,
    50 const uint8_T appId,
    51 const uint16_T dataSize) {
    52
    53 int rtIOStreamErrorStatus;
    54 IOUnit_T* appBuffer;
    55 MemUnit_T appIdMemUnit = (MemUnit_T)appId;
    56 uint32_T writeDataAvail = (uint32_T)dataSize;
    57 uint32_T transferSize = writeDataAvail + BUFFER_HEADER_SIZE;
    58
    59 /* write size and application id before sending the buffer */
    60#ifdef HOST_WORD_ADDRESSABLE_TESTING
    61 /* writeDataAvail is in terms of IOUnit_T (uint8_T) - convert to MemUnit_T's
    62 * abort if writeDataAvail does not divide exactly */
    63 uint32_T writeDataAvailMemUnits = writeDataAvail / MEM_UNIT_BYTES;
    64 uint32_T memUnitsRemainder = writeDataAvail % MEM_UNIT_BYTES;
    65 if (memUnitsRemainder != 0) {
    66 fprintf(stderr,"Target application aborted: the number of available Bytes in the " \
    67 "TargetToHost TX Buffer (%d B) does not divide exactly by the number of " \
    68 "Bytes per MemUnit (%d B).\n", writeDataAvail, MEM_UNIT_BYTES);
    69 /* this condition can happen only when the buffer is full with the first
    70 * chunk of outgoing data, at this point the host will not be midway through
    71 * receiving a response. Therefore, it is ok to drop the pending data. */
    72 resetXILWriteBuffer();
    73 /* send the abort message */
    74 abort();
    75 }
    76
    77#else
    78 uint32_T writeDataAvailMemUnits = writeDataAvail;
    79#endif
    80
    81 /* get the pointer for the application buffer of the given app id */
    82 appBuffer = (IOUnit_T*) pBuf;
    83 if (appBuffer == NULL) {
    84 /* early return */
    85 return COMMS_ERROR;
    86 }
    87
    88 UNUSED_PARAMETER(pBuf);
    89
    90 memcpy((void *) &appBuffer[APPLICATION_ID_IDX], &appIdMemUnit, sizeof(appIdMemUnit));
    91
    92#ifdef HOST_BIG_ENDIAN_PROTOCOL_TESTING
    93 /* swap the bytes of the playload size that will be sent to the host */
    94 swapBytes((MemUnit_T*)(&writeDataAvailMemUnits), sizeof(writeDataAvailMemUnits));
    95#endif /*HOST_BIG_ENDIAN_PROTOCOL_TESTING*/
    96
    97 memcpy((void *) &appBuffer[PAYLOAD_SIZE_IDX], &writeDataAvailMemUnits, sizeof(writeDataAvailMemUnits));
    98
    99 /* Blocks until all requested outgoing data is sent */
    100 rtIOStreamErrorStatus = rtIOStreamBlockingSend(streamID,
    101 (const void *) appBuffer,
    102 transferSize);
    103
    104 if (rtIOStreamErrorStatus == RTIOSTREAM_ERROR)
    105 return COMMS_ERROR;
    106
    107 return COMMS_SUCCESS;
    108}
    109
    110int rtiostreamReadMessage(IOUnit_T ** currentBufferPosition, uint16_T *currentBufSize) {
    111
    112 int rtIOStreamErrorStatus;
    113 uint32_T dataSize = 0;
    114 MemUnit_T appId;
    115
    116
    117 rtIOStreamErrorStatus = rtIOStreamBlockingRecv(streamID,
    118 (void *) &appId,
    119 sizeof(appId));
    120
    121 if (rtIOStreamErrorStatus == RTIOSTREAM_ERROR)
    122 return COMMS_ERROR;
    123
    124
    125 /* receive size of data contained in the buffer */
    126 rtIOStreamErrorStatus = rtIOStreamBlockingRecv(streamID,
    127 (void *) &dataSize,
    128 sizeof(dataSize));
    129
    130#ifdef HOST_BIG_ENDIAN_PROTOCOL_TESTING
    131 /* swap the bytes of the dataSize sent from the host */
    132 swapBytes((MemUnit_T*)(&dataSize), sizeof(dataSize));
    133#endif /*HOST_BIG_ENDIAN_PROTOCOL_TESTING*/
    134
    135 if (rtIOStreamErrorStatus == RTIOSTREAM_ERROR)
    136 return COMMS_ERROR;
    137
    138
    139#ifdef HOST_WORD_ADDRESSABLE_TESTING
    140 /* dataSize is in terms of MemUnit_T - convert to IOUnit_T (uint8_T). Note
    141 * that dataSize will not overflow since the host already divided dataSize
    142 * by memUnit_T before transmission, so this multiplication should be safe
    143 * and won't overflow.
    144 */
    145 dataSize *= MEM_UNIT_BYTES;
    146#endif
    147
    148 /* receive the data */
    149 rtIOStreamErrorStatus = rtIOStreamBlockingRecv(streamID,
    150 (void *) &(xilCommsBuffer[0]),
    151 dataSize);
    152
    153 *currentBufferPosition = &(xilCommsBuffer[0]);
    154 *currentBufSize = (uint16_T)dataSize;
    155
    156 return COMMS_SUCCESS;
    157}
    158
    159
    -
    - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.bat b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.bat deleted file mode 100644 index 8deb7537bbc262b55e7f92357cbe441dfb0a2e93..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.bat +++ /dev/null @@ -1,15 +0,0 @@ -@if not "%MINGW_ROOT%" == "" (@set "PATH=%PATH%;%MINGW_ROOT%") - - -call "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a\bin\win64\checkMATLABRootForDriveMap.exe" "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a" > mlEnv.txt -for /f %%a in (mlEnv.txt) do set "%%a"\n -cd . - -if "%1"=="" ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f FCC_Sys_New_harness.mk all) else ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f FCC_Sys_New_harness.mk %1) -@if errorlevel 1 goto error_exit - -exit 0 - -:error_exit -echo The make command returned an error of %errorlevel% -exit 1 diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.c b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.c deleted file mode 100644 index e2dc3de112d7633ecc5af0f3d243daf95ca70647..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.c +++ /dev/null @@ -1,569 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: FCC_Sys_New_harness.c - * - * Code generated for Simulink model 'FCC_Sys_New_harness'. - * - * Model version : 1.91 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:26 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#include "FCC_Sys_New_harness.h" - -/* Private macros used by the generated code to access rtModel */ -#ifndef rtmIsMajorTimeStep -# define rtmIsMajorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MAJOR_TIME_STEP) -#endif - -#ifndef rtmIsMinorTimeStep -# define rtmIsMinorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MINOR_TIME_STEP) -#endif - -#ifndef rtmSetTPtr -# define rtmSetTPtr(rtm, val) ((rtm)->Timing.t = (val)) -#endif - -/* Used by FromWorkspace Block: '/FromWs' */ -#ifndef rtInterpolate -# define rtInterpolate(v1,v2,f1,f2) (((v1)==(v2))?((double)(v1)): (((f1)*((double)(v1)))+((f2)*((double)(v2))))) -#endif - -#ifndef rtRound -# define rtRound(v) ( ((v) >= 0) ? floor((v) + 0.5) : ceil((v) - 0.5) ) -#endif - -rtTimingBridge FCC_Sys_New_harness_TimingBrdg; - -/* Block signals and states (default storage) */ -DW_FCC_Sys_New_harness_T FCC_Sys_New_harness_DW; - -/* External outputs (root outports fed by signals with default storage) */ -ExtY_FCC_Sys_New_harness_T FCC_Sys_New_harness_Y; - -/* Real-time model */ -RT_MODEL_FCC_Sys_New_harness_T FCC_Sys_New_harness_M_; -RT_MODEL_FCC_Sys_New_harness_T *const FCC_Sys_New_harness_M = - &FCC_Sys_New_harness_M_; - -/* Model step function for TID0 */ -void FCC_Sys_New_harness_step0(void) /* Sample time: [0.0s, 0.0s] */ -{ - real_T v; - - /* Update the flag to indicate when data transfers from - * Sample time: [0.001s, 0.0s] to Sample time: [0.01s, 0.0s] */ - FCC_Sys_New_harness_M->Timing.RateInteraction.b_TID1_2 = - (FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2 == 0); - (FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2)++; - if ((FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2) > 9) { - FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2 = 0; - } - - /* FromWorkspace: '/FromWs' */ - { - real_T *pDataValues = (real_T *) FCC_Sys_New_harness_DW.FromWs_PWORK.DataPtr; - real_T *pTimeValues = (real_T *) FCC_Sys_New_harness_DW.FromWs_PWORK.TimePtr; - int_T currTimeIndex = FCC_Sys_New_harness_DW.FromWs_IWORK.PrevIndex; - real_T t = FCC_Sys_New_harness_M->Timing.t[0]; - - /* Get index */ - if (t <= pTimeValues[0]) { - currTimeIndex = 0; - } else if (t >= pTimeValues[11]) { - currTimeIndex = 10; - } else { - if (t < pTimeValues[currTimeIndex]) { - while (t < pTimeValues[currTimeIndex]) { - currTimeIndex--; - } - } else { - while (t >= pTimeValues[currTimeIndex + 1]) { - currTimeIndex++; - } - } - } - - FCC_Sys_New_harness_DW.FromWs_IWORK.PrevIndex = currTimeIndex; - - /* Post output */ - { - real_T t1 = pTimeValues[currTimeIndex]; - real_T t2 = pTimeValues[currTimeIndex + 1]; - if (t1 == t2) { - if (t < t1) { - { - int_T elIdx; - for (elIdx = 0; elIdx < 27; ++elIdx) { - (&FCC_Sys_New_harness_DW.FromWs[0])[elIdx] = - pDataValues[currTimeIndex]; - pDataValues += 12; - } - } - } else { - { - int_T elIdx; - for (elIdx = 0; elIdx < 27; ++elIdx) { - (&FCC_Sys_New_harness_DW.FromWs[0])[elIdx] = - pDataValues[currTimeIndex + 1]; - pDataValues += 12; - } - } - } - } else { - real_T f1 = (t2 - t) / (t2 - t1); - real_T f2 = 1.0 - f1; - real_T d1; - real_T d2; - int_T TimeIndex= currTimeIndex; - - { - int_T elIdx; - for (elIdx = 0; elIdx < 27; ++elIdx) { - d1 = pDataValues[TimeIndex]; - d2 = pDataValues[TimeIndex + 1]; - (&FCC_Sys_New_harness_DW.FromWs[0])[elIdx] = (real_T) rtInterpolate - (d1, d2, f1, f2); - pDataValues += 12; - } - } - } - } - } - - /* DataTypeConversion: '/Cast1' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[0]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[0] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[0]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Cast1 = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Cast1 = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Cast1 = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast1' */ - - /* DataTypeConversion: '/Cast2' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[1]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[1] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[1]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Cast2 = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Cast2 = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Cast2 = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast2' */ - - /* DataTypeConversion: '/Cast3' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[2]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[2] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[2]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Cast3 = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Cast3 = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Cast3 = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast3' */ - - /* ModelReference: '/FCC_New' incorporates: - * Outport: '/Actuator1' - * Outport: '/Actuator2' - * Outport: '/Actuator3' - */ - profileStart_F_02840e440c240744(1U); /* original_line:221 */FCC_NewTID0(&FCC_Sys_New_harness_DW.Cast1, &FCC_Sys_New_harness_DW.Cast2, - &FCC_Sys_New_harness_DW.Cast3, &FCC_Sys_New_harness_Y.Actuator1, - &FCC_Sys_New_harness_Y.Actuator2, &FCC_Sys_New_harness_Y.Actuator3);profileEnd_FCC_Sys_New_harness(1U); /* original_line:223 */ - - /* RateTransition: '/Sync4' incorporates: - * RateTransition: '/Sync10' - * RateTransition: '/Sync14' - * RateTransition: '/Sync21' - * RateTransition: '/Sync5' - * RateTransition: '/Sync6' - */ - if (FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2 == 1) { - /* DataTypeConversion: '/Cast4' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[3]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[3] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[3]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Sync4_Buffer = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Sync4_Buffer = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Sync4_Buffer = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast4' */ - - /* DataTypeConversion: '/Cast5' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[4]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[4] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[4]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Sync5_Buffer = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Sync5_Buffer = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Sync5_Buffer = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast5' */ - - /* DataTypeConversion: '/Cast6' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[5]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[5] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[5]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Sync6_Buffer = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Sync6_Buffer = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Sync6_Buffer = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast6' */ - FCC_Sys_New_harness_DW.Sync10_Buffer = FCC_Sys_New_harness_DW.FromWs[9]; - - /* RateTransition: '/Sync11' */ - FCC_Sys_New_harness_DW.Sync11_Buffer = FCC_Sys_New_harness_DW.FromWs[10]; - - /* RateTransition: '/Sync12' */ - FCC_Sys_New_harness_DW.Sync12_Buffer = FCC_Sys_New_harness_DW.FromWs[11]; - - /* RateTransition: '/Sync13' incorporates: - * DataTypeConversion: '/Cast13' - */ - FCC_Sys_New_harness_DW.Sync13_Buffer = (FCC_Sys_New_harness_DW.FromWs[12] != - 0.0); - - /* RateTransition: '/Sync7' */ - FCC_Sys_New_harness_DW.Sync7_Buffer = FCC_Sys_New_harness_DW.FromWs[6]; - - /* RateTransition: '/Sync8' */ - FCC_Sys_New_harness_DW.Sync8_Buffer = FCC_Sys_New_harness_DW.FromWs[7]; - - /* RateTransition: '/Sync9' */ - FCC_Sys_New_harness_DW.Sync9_Buffer = FCC_Sys_New_harness_DW.FromWs[8]; - FCC_Sys_New_harness_DW.Sync14_Buffer = FCC_Sys_New_harness_DW.FromWs[13]; - - /* RateTransition: '/Sync15' */ - FCC_Sys_New_harness_DW.Sync15_Buffer = FCC_Sys_New_harness_DW.FromWs[14]; - - /* RateTransition: '/Sync16' */ - FCC_Sys_New_harness_DW.Sync16_Buffer = FCC_Sys_New_harness_DW.FromWs[15]; - - /* RateTransition: '/Sync17' */ - FCC_Sys_New_harness_DW.Sync17_Buffer = FCC_Sys_New_harness_DW.FromWs[16]; - - /* RateTransition: '/Sync18' */ - FCC_Sys_New_harness_DW.Sync18_Buffer = FCC_Sys_New_harness_DW.FromWs[17]; - - /* RateTransition: '/Sync19' */ - FCC_Sys_New_harness_DW.Sync19_Buffer = FCC_Sys_New_harness_DW.FromWs[18]; - - /* RateTransition: '/Sync20' incorporates: - * DataTypeConversion: '/Cast20' - */ - FCC_Sys_New_harness_DW.Sync20_Buffer = (FCC_Sys_New_harness_DW.FromWs[19] != - 0.0); - FCC_Sys_New_harness_DW.Sync21_Buffer = FCC_Sys_New_harness_DW.FromWs[20]; - - /* RateTransition: '/Sync22' */ - FCC_Sys_New_harness_DW.Sync22_Buffer = FCC_Sys_New_harness_DW.FromWs[21]; - - /* RateTransition: '/Sync23' */ - FCC_Sys_New_harness_DW.Sync23_Buffer = FCC_Sys_New_harness_DW.FromWs[22]; - - /* RateTransition: '/Sync24' */ - FCC_Sys_New_harness_DW.Sync24_Buffer = FCC_Sys_New_harness_DW.FromWs[23]; - - /* RateTransition: '/Sync25' */ - FCC_Sys_New_harness_DW.Sync25_Buffer = FCC_Sys_New_harness_DW.FromWs[24]; - - /* RateTransition: '/Sync26' */ - FCC_Sys_New_harness_DW.Sync26_Buffer = FCC_Sys_New_harness_DW.FromWs[25]; - - /* RateTransition: '/Sync27' incorporates: - * DataTypeConversion: '/Cast27' - */ - FCC_Sys_New_harness_DW.Sync27_Buffer = (FCC_Sys_New_harness_DW.FromWs[26] != - 0.0); - } - - /* End of RateTransition: '/Sync4' */ - - /* Update absolute time */ - /* The "clockTick0" counts the number of times the code of this task has - * been executed. The absolute time is the multiplication of "clockTick0" - * and "Timing.stepSize0". Size of "clockTick0" ensures timer will not - * overflow during the application lifespan selected. - */ - FCC_Sys_New_harness_M->Timing.t[0] = - ((time_T)(++FCC_Sys_New_harness_M->Timing.clockTick0)) * - FCC_Sys_New_harness_M->Timing.stepSize0; - - /* Update absolute time */ - /* The "clockTick1" counts the number of times the code of this task has - * been executed. The resolution of this integer timer is 0.001, which is the step size - * of the task. Size of "clockTick1" ensures timer will not overflow during the - * application lifespan selected. - */ - FCC_Sys_New_harness_M->Timing.clockTick1++; -} - -/* Model step function for TID2 */ -void FCC_Sys_New_harness_step2(void) /* Sample time: [0.01s, 0.0s] */ -{ - /* local block i/o variables */ - AHRS_Bus rtb_AHRS11; - AHRS_Bus rtb_AHRS21; - AHRS_Bus rtb_AHRS31; - int16_T rtb_Sync4; - int16_T rtb_Sync5; - int16_T rtb_Sync6; - - /* RateTransition: '/Sync4' */ - rtb_Sync4 = FCC_Sys_New_harness_DW.Sync4_Buffer; - - /* RateTransition: '/Sync5' */ - rtb_Sync5 = FCC_Sys_New_harness_DW.Sync5_Buffer; - - /* RateTransition: '/Sync6' */ - rtb_Sync6 = FCC_Sys_New_harness_DW.Sync6_Buffer; - - /* BusCreator: '/AHRS1(1)' incorporates: - * RateTransition: '/Sync10' - * RateTransition: '/Sync11' - * RateTransition: '/Sync12' - * RateTransition: '/Sync13' - * RateTransition: '/Sync7' - * RateTransition: '/Sync8' - * RateTransition: '/Sync9' - */ - rtb_AHRS11.theta = FCC_Sys_New_harness_DW.Sync7_Buffer; - rtb_AHRS11.phi = FCC_Sys_New_harness_DW.Sync8_Buffer; - rtb_AHRS11.psi = FCC_Sys_New_harness_DW.Sync9_Buffer; - rtb_AHRS11.q = FCC_Sys_New_harness_DW.Sync10_Buffer; - rtb_AHRS11.p = FCC_Sys_New_harness_DW.Sync11_Buffer; - rtb_AHRS11.r = FCC_Sys_New_harness_DW.Sync12_Buffer; - rtb_AHRS11.valid = FCC_Sys_New_harness_DW.Sync13_Buffer; - - /* BusCreator: '/AHRS2(1)' incorporates: - * RateTransition: '/Sync14' - * RateTransition: '/Sync15' - * RateTransition: '/Sync16' - * RateTransition: '/Sync17' - * RateTransition: '/Sync18' - * RateTransition: '/Sync19' - * RateTransition: '/Sync20' - */ - rtb_AHRS21.theta = FCC_Sys_New_harness_DW.Sync14_Buffer; - rtb_AHRS21.phi = FCC_Sys_New_harness_DW.Sync15_Buffer; - rtb_AHRS21.psi = FCC_Sys_New_harness_DW.Sync16_Buffer; - rtb_AHRS21.q = FCC_Sys_New_harness_DW.Sync17_Buffer; - rtb_AHRS21.p = FCC_Sys_New_harness_DW.Sync18_Buffer; - rtb_AHRS21.r = FCC_Sys_New_harness_DW.Sync19_Buffer; - rtb_AHRS21.valid = FCC_Sys_New_harness_DW.Sync20_Buffer; - - /* BusCreator: '/AHRS3(1)' incorporates: - * RateTransition: '/Sync21' - * RateTransition: '/Sync22' - * RateTransition: '/Sync23' - * RateTransition: '/Sync24' - * RateTransition: '/Sync25' - * RateTransition: '/Sync26' - * RateTransition: '/Sync27' - */ - rtb_AHRS31.theta = FCC_Sys_New_harness_DW.Sync21_Buffer; - rtb_AHRS31.phi = FCC_Sys_New_harness_DW.Sync22_Buffer; - rtb_AHRS31.psi = FCC_Sys_New_harness_DW.Sync23_Buffer; - rtb_AHRS31.q = FCC_Sys_New_harness_DW.Sync24_Buffer; - rtb_AHRS31.p = FCC_Sys_New_harness_DW.Sync25_Buffer; - rtb_AHRS31.r = FCC_Sys_New_harness_DW.Sync26_Buffer; - rtb_AHRS31.valid = FCC_Sys_New_harness_DW.Sync27_Buffer; - - /* ModelReference: '/FCC_New' incorporates: - * Outport: '/Actuator1' - * Outport: '/Actuator2' - * Outport: '/Actuator3' - */ - profileStart_F_02840e440c240744(2U); /* original_line:469 */FCC_NewTID1(&rtb_Sync4, &rtb_Sync5, &rtb_Sync6, &rtb_AHRS11, &rtb_AHRS21, - &rtb_AHRS31);profileEnd_FCC_Sys_New_harness(2U); /* original_line:470 */ -} - -/* Model initialize function */ -void FCC_Sys_New_harness_initialize(void) -{ - /* Registration code */ - { - /* Setup solver object */ - rtsiSetSimTimeStepPtr(&FCC_Sys_New_harness_M->solverInfo, - &FCC_Sys_New_harness_M->Timing.simTimeStep); - rtsiSetTPtr(&FCC_Sys_New_harness_M->solverInfo, &rtmGetTPtr - (FCC_Sys_New_harness_M)); - rtsiSetStepSizePtr(&FCC_Sys_New_harness_M->solverInfo, - &FCC_Sys_New_harness_M->Timing.stepSize0); - rtsiSetErrorStatusPtr(&FCC_Sys_New_harness_M->solverInfo, - (&rtmGetErrorStatus(FCC_Sys_New_harness_M))); - rtsiSetRTModelPtr(&FCC_Sys_New_harness_M->solverInfo, FCC_Sys_New_harness_M); - } - - rtsiSetSimTimeStep(&FCC_Sys_New_harness_M->solverInfo, MAJOR_TIME_STEP); - rtsiSetSolverName(&FCC_Sys_New_harness_M->solverInfo,"FixedStepDiscrete"); - rtmSetTPtr(FCC_Sys_New_harness_M, &FCC_Sys_New_harness_M->Timing.tArray[0]); - FCC_Sys_New_harness_M->Timing.stepSize0 = 0.001; - - { - static uint32_T *clockTickPtrs[3]; - static real_T *taskTimePtrs[3]; - static boolean_T *rateTransitionPtrs[(3 * 3)]; - FCC_Sys_New_harness_TimingBrdg.nTasks = 3; - clockTickPtrs[0] = &(FCC_Sys_New_harness_M->Timing.clockTick0); - clockTickPtrs[1] = &(FCC_Sys_New_harness_M->Timing.clockTick1); - clockTickPtrs[2] = (NULL); - FCC_Sys_New_harness_TimingBrdg.clockTick = clockTickPtrs; - FCC_Sys_New_harness_TimingBrdg.clockTickH = (NULL); - rateTransitionPtrs[1*3 + 2] = - &(FCC_Sys_New_harness_M->Timing.RateInteraction.b_TID1_2); - FCC_Sys_New_harness_TimingBrdg.rateTransition = rateTransitionPtrs; - taskTimePtrs[0] = &(FCC_Sys_New_harness_M->Timing.t[0]); - taskTimePtrs[1] = (NULL); - taskTimePtrs[2] = (NULL); - FCC_Sys_New_harness_TimingBrdg.taskTime = taskTimePtrs; - } - - /* Model Initialize function for ModelReference Block: '/FCC_New' */ - FCC_New_initialize(rtmGetErrorStatusPointer(FCC_Sys_New_harness_M), - &FCC_Sys_New_harness_TimingBrdg, 1, 2); - - /* Start for FromWorkspace: '/FromWs' */ - { - static real_T pTimeValues0[] = { 0.0, 0.15, 0.15, 0.18, 0.18, 0.192, 0.192, - 0.26, 0.26, 0.27, 0.27, 0.271 } ; - - static real_T pDataValues0[] = { -32722.0, -32722.0, 0.0, 0.0, 0.0, 0.0, - -32728.0, -32728.0, 0.0, 0.0, 0.0, 0.0, -32671.0, -32671.0, 0.0, 0.0, 0.0, - 0.0, -32721.0, -32721.0, 0.0, 0.0, 0.0, 0.0, -32711.0, -32711.0, 0.0, 0.0, - 0.0, 0.0, -32720.0, -32720.0, 0.0, 0.0, 0.0, 0.0, -32722.0, -32722.0, 0.0, - 0.0, 0.0, 0.0, -32684.0, -32684.0, 0.0, 0.0, 0.0, 0.0, -32711.0, -32711.0, - 0.0, 0.0, 0.0, 0.0, -32710.0, -32710.0, 0.0, 0.0, 0.0, 0.0, -32686.0, - -32686.0, 0.0, 0.0, 0.0, 0.0, -32768.0, -32768.0, 0.0, 0.0, 0.0, 0.0, - -118.15138, -118.15138, -180.0, -180.0, -180.0, -180.0, 17.01541, 17.01541, - -180.0, -180.0, -180.0, -180.0, 25.9801, 25.9801, -180.0, -180.0, -180.0, - -180.0, 26.06345, 26.06345, -180.0, -180.0, -180.0, -180.0, 67.51613, - 67.51613, 0.0, 0.0, 0.0, 0.0, 305.78971, 305.78971, 0.0, 0.0, 0.0, 0.0, - 107.78888, 107.78888, -180.0, -180.0, -180.0, -180.0, -169.80836, - -169.80836, -180.0, -180.0, -180.0, -180.0, 171.2196, 171.2196, -180.0, - -180.0, -180.0, -180.0, -32.26304, -32.26304, -180.0, -180.0, 180.0, 180.0, - -3.5854, -3.5854, -180.0, -180.0, -180.0, -180.0, -55.81231, -55.81231, - -180.0, -180.0, -180.0, -180.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, - 1.0, 1.0, 1.0, 1.0, 179.94728, 179.94728, -180.0, -180.0, -180.0, -180.0, - 42.21022, 42.21022, -180.0, -180.0, -180.0, -180.0, -12.15585, -12.15585, - -180.0, -180.0, -180.0, -180.0, 65.16104, 65.16104, -180.0, -180.0, -180.0, - -180.0, 331.47544, 331.47544, 0.0, 0.0, 0.0, 0.0, 63.30298, 63.30298, 0.0, - 0.0, 0.0, 0.0, 158.38363, 158.38363, -180.0, -180.0, -180.0, -180.0, - -139.48832, -139.48832, -180.0, -180.0, -180.0, -180.0, -170.3775, - -170.3775, -180.0, -180.0, -180.0, -180.0, -150.40707, -150.40707, -180.0, - -180.0, 180.0, 180.0, -61.13408, -61.13408, -180.0, -180.0, -180.0, -180.0, - 141.8528, 141.8528, -180.0, -180.0, -180.0, -180.0, 1.0, 1.0, 1.0, 1.0, - 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 60.68156, 60.68156, -180.0, -180.0, - -180.0, -180.0, -93.63384, -93.63384, -180.0, -180.0, -180.0, -180.0, - 165.74818, 165.74818, -180.0, -180.0, -180.0, -180.0, 73.13588, 73.13588, - -180.0, -180.0, -180.0, -180.0, 42.57845, 42.57845, 0.0, 0.0, 0.0, 0.0, - 339.30663, 339.30663, 0.0, 0.0, 0.0, 0.0, 73.76652, 73.76652, -180.0, - -180.0, -180.0, -180.0, -75.80978, -75.80978, -180.0, -180.0, -180.0, - -180.0, -81.62332, -81.62332, -180.0, -180.0, -180.0, -180.0, 48.62002, - 48.62002, -180.0, -180.0, -180.0, -180.0, -31.30247, -31.30247, -180.0, - -180.0, -180.0, -180.0, 99.35286, 99.35286, -180.0, -180.0, -180.0, -180.0, - 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 } ; - - FCC_Sys_New_harness_DW.FromWs_PWORK.TimePtr = (void *) pTimeValues0; - FCC_Sys_New_harness_DW.FromWs_PWORK.DataPtr = (void *) pDataValues0; - FCC_Sys_New_harness_DW.FromWs_IWORK.PrevIndex = 0; - } -} - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.h b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.h deleted file mode 100644 index 603ae669aa5dba55406c4ebb443562c55e30586e..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: FCC_Sys_New_harness.h - * - * Code generated for Simulink model 'FCC_Sys_New_harness'. - * - * Model version : 1.91 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:26 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#ifndef RTW_HEADER_FCC_Sys_New_harness_h_ -#define RTW_HEADER_FCC_Sys_New_harness_h_ -#include -#include -#include "AHRS_Bus.h" -#ifndef FCC_Sys_New_harness_COMMON_INCLUDES_ -# define FCC_Sys_New_harness_COMMON_INCLUDES_ -#include "rtwtypes.h" -#include "rtw_continuous.h" -#include "rtw_solver.h" -#endif /* FCC_Sys_New_harness_COMMON_INCLUDES_ */ - -/* Shared type includes */ -#include "model_reference_types.h" - -/* Child system includes */ -#define FCC_New_MDLREF_HIDE_CHILD_ -#include "FCC_New.h" - -/* Model Code Variants */ - -/* Macros for accessing real-time model data structure */ -#ifndef rtmGetErrorStatus -# define rtmGetErrorStatus(rtm) ((rtm)->errorStatus) -#endif - -#ifndef rtmSetErrorStatus -# define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val)) -#endif - -#ifndef rtmGetErrorStatusPointer -# define rtmGetErrorStatusPointer(rtm) ((const char_T **)(&((rtm)->errorStatus))) -#endif - -#ifndef rtmGetT -# define rtmGetT(rtm) (rtmGetTPtr((rtm))[0]) -#endif - -#ifndef rtmGetTPtr -# define rtmGetTPtr(rtm) ((rtm)->Timing.t) -#endif - -/* Forward declaration for rtModel */ -typedef struct tag_RTM_FCC_Sys_New_harness_T RT_MODEL_FCC_Sys_New_harness_T; - -/* Block signals and states (default storage) for system '' */ -typedef struct { - real_T FromWs[27]; /* '/FromWs' */ - real_T Sync10_Buffer; /* '/Sync10' */ - real_T Sync11_Buffer; /* '/Sync11' */ - real_T Sync12_Buffer; /* '/Sync12' */ - real_T Sync7_Buffer; /* '/Sync7' */ - real_T Sync8_Buffer; /* '/Sync8' */ - real_T Sync9_Buffer; /* '/Sync9' */ - real_T Sync14_Buffer; /* '/Sync14' */ - real_T Sync15_Buffer; /* '/Sync15' */ - real_T Sync16_Buffer; /* '/Sync16' */ - real_T Sync17_Buffer; /* '/Sync17' */ - real_T Sync18_Buffer; /* '/Sync18' */ - real_T Sync19_Buffer; /* '/Sync19' */ - real_T Sync21_Buffer; /* '/Sync21' */ - real_T Sync22_Buffer; /* '/Sync22' */ - real_T Sync23_Buffer; /* '/Sync23' */ - real_T Sync24_Buffer; /* '/Sync24' */ - real_T Sync25_Buffer; /* '/Sync25' */ - real_T Sync26_Buffer; /* '/Sync26' */ - struct { - int_T PrevIndex; - } FromWs_IWORK; /* '/FromWs' */ - - struct { - void *TimePtr; - void *DataPtr; - void *RSimInfoPtr; - } FromWs_PWORK; /* '/FromWs' */ - - int16_T Cast1; /* '/Cast1' */ - int16_T Cast2; /* '/Cast2' */ - int16_T Cast3; /* '/Cast3' */ - int16_T Sync4_Buffer; /* '/Sync4' */ - int16_T Sync5_Buffer; /* '/Sync5' */ - int16_T Sync6_Buffer; /* '/Sync6' */ - boolean_T Sync13_Buffer; /* '/Sync13' */ - boolean_T Sync20_Buffer; /* '/Sync20' */ - boolean_T Sync27_Buffer; /* '/Sync27' */ -} DW_FCC_Sys_New_harness_T; - -/* External outputs (root outports fed by signals with default storage) */ -typedef struct { - int16_T Actuator1; /* '/Actuator1' */ - int16_T Actuator2; /* '/Actuator2' */ - int16_T Actuator3; /* '/Actuator3' */ -} ExtY_FCC_Sys_New_harness_T; - - - -/* Declare global externs for instrumentation */ -extern void profileStart_F_02840e440c240744(uint32_T); -extern void profileEnd_FCC_Sys_New_harness(uint32_T); -/* Code_Instrumentation_Declarations_Placeholder */ - -/* Real-time Model Data Structure */ -struct tag_RTM_FCC_Sys_New_harness_T { - const char_T *errorStatus; - RTWSolverInfo solverInfo; - - /* - * Timing: - * The following substructure contains information regarding - * the timing information for the model. - */ - struct { - uint32_T clockTick0; - time_T stepSize0; - uint32_T clockTick1; - struct { - uint32_T TID1_2; - boolean_T b_TID1_2; - } RateInteraction; - - SimTimeStep simTimeStep; - time_T *t; - time_T tArray[3]; - } Timing; -}; - -extern rtTimingBridge FCC_Sys_New_harness_TimingBrdg; - -/* Block signals and states (default storage) */ -extern DW_FCC_Sys_New_harness_T FCC_Sys_New_harness_DW; - -/* External outputs (root outports fed by signals with default storage) */ -extern ExtY_FCC_Sys_New_harness_T FCC_Sys_New_harness_Y; - -/* Model entry point functions */ -extern void FCC_Sys_New_harness_initialize(void); -extern void FCC_Sys_New_harness_step0(void); -extern void FCC_Sys_New_harness_step2(void); - -/* Real-time Model object */ -extern RT_MODEL_FCC_Sys_New_harness_T *const FCC_Sys_New_harness_M; - -/*- - * These blocks were eliminated from the model due to optimizations: - * - * Block '/Cast10' : Eliminate redundant data type conversion - * Block '/Cast11' : Eliminate redundant data type conversion - * Block '/Cast12' : Eliminate redundant data type conversion - * Block '/Cast14' : Eliminate redundant data type conversion - * Block '/Cast15' : Eliminate redundant data type conversion - * Block '/Cast16' : Eliminate redundant data type conversion - * Block '/Cast17' : Eliminate redundant data type conversion - * Block '/Cast18' : Eliminate redundant data type conversion - * Block '/Cast19' : Eliminate redundant data type conversion - * Block '/Cast21' : Eliminate redundant data type conversion - * Block '/Cast22' : Eliminate redundant data type conversion - * Block '/Cast23' : Eliminate redundant data type conversion - * Block '/Cast24' : Eliminate redundant data type conversion - * Block '/Cast25' : Eliminate redundant data type conversion - * Block '/Cast26' : Eliminate redundant data type conversion - * Block '/Cast7' : Eliminate redundant data type conversion - * Block '/Cast8' : Eliminate redundant data type conversion - * Block '/Cast9' : Eliminate redundant data type conversion - * Block '/Sync1' : Eliminated since input and output rates are identical - * Block '/Sync2' : Eliminated since input and output rates are identical - * Block '/Sync3' : Eliminated since input and output rates are identical - */ - -/*- - * The generated code includes comments that allow you to trace directly - * back to the appropriate location in the model. The basic format - * is /block_name, where system is the system number (uniquely - * assigned by Simulink) and block_name is the name of the block. - * - * Use the MATLAB hilite_system command to trace the generated code back - * to the model. For example, - * - * hilite_system('') - opens system 3 - * hilite_system('/Kp') - opens and selects block Kp which resides in S3 - * - * Here is the system hierarchy for this model - * - * '' : 'FCC_Sys_New_harness' - * '' : 'FCC_Sys_New_harness/Inputs' - * '' : 'FCC_Sys_New_harness/Size-Type' - * '' : 'FCC_Sys_New_harness/Test Case Explanation' - * '' : 'FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)' - * '' : 'FCC_Sys_New_harness/Size-Type/Bus7' - * '' : 'FCC_Sys_New_harness/Size-Type/Bus8' - * '' : 'FCC_Sys_New_harness/Size-Type/Bus9' - */ - -/*- - * Requirements for '': FCC_Sys_New_harness - */ -#endif /* RTW_HEADER_FCC_Sys_New_harness_h_ */ - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.mk b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.mk deleted file mode 100644 index 67834a8d56b582027aaf07ba99dbdf472fd71b23..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.mk +++ /dev/null @@ -1,427 +0,0 @@ -########################################################################### -## Makefile generated for Simulink model 'FCC_Sys_New_harness'. -## -## Makefile : FCC_Sys_New_harness.mk -## Generated on : Thu Jul 16 18:51:44 2020 -## MATLAB Coder version: 5.0 (R2020a) -## -## Build Info: -## -## Final product: $(RELATIVE_PATH_TO_ANCHOR)/FCC_Sys_New_harness.exe -## Product type : executable -## Build type : Top-Level Standalone Executable -## -########################################################################### - -########################################################################### -## MACROS -########################################################################### - -# Macro Descriptions: -# PRODUCT_NAME Name of the system to build -# MAKEFILE Name of this makefile -# MODELREF_LINK_RSPFILE Linker command listing model reference link objects -# COMPILER_COMMAND_FILE Compiler command listing model reference header paths -# CMD_FILE Command file - -PRODUCT_NAME = FCC_Sys_New_harness -MAKEFILE = FCC_Sys_New_harness.mk -MATLAB_ROOT = D:/Program Files/MATLAB/R2020a -MATLAB_BIN = D:/Program Files/MATLAB/R2020a/bin -MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64 -MASTER_ANCHOR_DIR = -START_DIR = D:/Documents/SCHOOL/McSCert/do178/src/validation -SOLVER = -SOLVER_OBJ = -CLASSIC_INTERFACE = 0 -TGT_FCN_LIB = ISO_C -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0 -RELATIVE_PATH_TO_ANCHOR = ../.. -MODELREF_LINK_RSPFILE = FCC_Sys_New_harness_ref.rsp -COMPILER_COMMAND_FILE = FCC_Sys_New_harness_comp.rsp -CMD_FILE = FCC_Sys_New_harness.rsp -C_STANDARD_OPTS = -fwrapv -CPP_STANDARD_OPTS = -fwrapv - -########################################################################### -## TOOLCHAIN SPECIFICATIONS -########################################################################### - -# Toolchain Name: MinGW64 | gmake (64-bit Windows) -# Supported Version(s): 6.x -# ToolchainInfo Version: 2020a -# Specification Revision: 1.0 -# -#------------------------------------------- -# Macros assumed to be defined elsewhere -#------------------------------------------- - -# C_STANDARD_OPTS -# CPP_STANDARD_OPTS -# MINGW_ROOT -# MINGW_C_STANDARD_OPTS - -#----------- -# MACROS -#----------- - -WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -WARN_FLAGS_MAX = $(WARN_FLAGS) -Wcast-qual -Wshadow -CPP_WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wpointer-arith -Wcast-align -CPP_WARN_FLAGS_MAX = $(CPP_WARN_FLAGS) -Wcast-qual -Wshadow -MW_EXTERNLIB_DIR = $(MATLAB_ROOT)/extern/lib/win64/mingw64 -SHELL = %SystemRoot%/system32/cmd.exe - -TOOLCHAIN_SRCS = -TOOLCHAIN_INCS = -TOOLCHAIN_LIBS = -lws2_32 - -#------------------------ -# BUILD TOOL COMMANDS -#------------------------ - -# C Compiler: GNU C Compiler -CC_PATH = $(MINGW_ROOT) -CC = "$(CC_PATH)/gcc" - -# Linker: GNU Linker -LD_PATH = $(MINGW_ROOT) -LD = "$(LD_PATH)/g++" - -# C++ Compiler: GNU C++ Compiler -CPP_PATH = $(MINGW_ROOT) -CPP = "$(CPP_PATH)/g++" - -# C++ Linker: GNU C++ Linker -CPP_LD_PATH = $(MINGW_ROOT) -CPP_LD = "$(CPP_LD_PATH)/g++" - -# Archiver: GNU Archiver -AR_PATH = $(MINGW_ROOT) -AR = "$(AR_PATH)/ar" - -# MEX Tool: MEX Tool -MEX_PATH = $(MATLAB_ARCH_BIN) -MEX = "$(MEX_PATH)/mex" - -# Download: Download -DOWNLOAD = - -# Execute: Execute -EXECUTE = $(PRODUCT) - -# Builder: GMAKE Utility -MAKE_PATH = %MATLAB%/bin/win64 -MAKE = "$(MAKE_PATH)/gmake" - - -#------------------------- -# Directives/Utilities -#------------------------- - -CDEBUG = -g -C_OUTPUT_FLAG = -o -LDDEBUG = -g -OUTPUT_FLAG = -o -CPPDEBUG = -g -CPP_OUTPUT_FLAG = -o -CPPLDDEBUG = -g -OUTPUT_FLAG = -o -ARDEBUG = -STATICLIB_OUTPUT_FLAG = -MEX_DEBUG = -g -RM = @del -ECHO = @echo -MV = @move -RUN = - -#---------------------------------------- -# "Faster Builds" Build Configuration -#---------------------------------------- - -ARFLAGS = ruvs -CFLAGS = -c $(MINGW_C_STANDARD_OPTS) -m64 \ - -O0 -CPPFLAGS = -c $(CPP_STANDARD_OPTS) -m64 -std=c++11 \ - -O0 -CPP_LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -CPP_SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib -DOWNLOAD_FLAGS = -EXECUTE_FLAGS = -LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -MEX_CPPFLAGS = -MEX_CPPLDFLAGS = -MEX_CFLAGS = -MEX_LDFLAGS = -MAKE_FLAGS = -f $(MAKEFILE) -SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib - - - -########################################################################### -## OUTPUT INFO -########################################################################### - -PRODUCT = $(RELATIVE_PATH_TO_ANCHOR)/FCC_Sys_New_harness.exe -PRODUCT_TYPE = "executable" -BUILD_TYPE = "Top-Level Standalone Executable" - -########################################################################### -## INCLUDE PATHS -########################################################################### - -INCLUDES_BUILDINFO = - -INCLUDES = $(INCLUDES_BUILDINFO) - -########################################################################### -## DEFINES -########################################################################### - -DEFINES_BUILD_ARGS = -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DEFINES_CUSTOM = -DEFINES_OPTS = -DTID01EQ=1 -DPORTABLE_WORDSIZES -DEFINES_STANDARD = -DMODEL=FCC_Sys_New_harness -DNUMST=3 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 - -DEFINES = $(DEFINES_BUILD_ARGS) $(DEFINES_CUSTOM) $(DEFINES_OPTS) $(DEFINES_STANDARD) - -########################################################################### -## SOURCE FILES -########################################################################### - -SRCS = $(START_DIR)/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.c coder_profile_timer.c - -MAIN_SRC = $(START_DIR)/FCC_Sys_New_harness_ert_rtw/instrumented/ert_main.c - -ALL_SRCS = $(SRCS) $(MAIN_SRC) - -########################################################################### -## OBJECTS -########################################################################### - -OBJS = FCC_Sys_New_harness.obj coder_profile_timer.obj - -MAIN_OBJ = ert_main.obj - -ALL_OBJS = $(OBJS) $(MAIN_OBJ) - -########################################################################### -## PREBUILT OBJECT FILES -########################################################################### - -PREBUILT_OBJS = - -########################################################################### -## LIBRARIES -########################################################################### - -MODELREF_LIBS = D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/FCC_New/instrumented/FCC_New_rtwlib.lib D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl_rtwlib.lib D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl_rtwlib.lib - -LIBS = - -########################################################################### -## SYSTEM LIBRARIES -########################################################################### - -SYSTEM_LIBS = - -########################################################################### -## ADDITIONAL TOOLCHAIN FLAGS -########################################################################### - -#--------------- -# C Compiler -#--------------- - -CFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CFLAGS += $(CFLAGS_BASIC) - -#----------------- -# C++ Compiler -#----------------- - -CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CPPFLAGS += $(CPPFLAGS_BASIC) - -#--------------------- -# MEX C++ Compiler -#--------------------- - -MEX_CPP_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CPPFLAGS += $(MEX_CPP_Compiler_BASIC) - -#----------------- -# MEX Compiler -#----------------- - -MEX_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CFLAGS += $(MEX_Compiler_BASIC) - -########################################################################### -## INLINED COMMANDS -########################################################################### - - -MINGW_C_STANDARD_OPTS = $(C_STANDARD_OPTS) - - -########################################################################### -## PHONY TARGETS -########################################################################### - -.PHONY : all build buildobj clean info prebuild download execute - - -all : build - @echo "### Successfully generated all binary outputs." - - -build : prebuild $(PRODUCT) - - -buildobj : prebuild $(OBJS) $(PREBUILT_OBJS) - @echo "### Successfully generated all binary outputs." - - -prebuild : - - -download : $(PRODUCT) - - -execute : download - @echo "### Invoking postbuild tool "Execute" ..." - $(EXECUTE) $(EXECUTE_FLAGS) - @echo "### Done invoking postbuild tool." - - -########################################################################### -## FINAL TARGET -########################################################################### - -#------------------------------------------- -# Create a standalone executable -#------------------------------------------- - -$(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) $(MODELREF_LIBS) $(MAIN_OBJ) - @echo "### Creating standalone executable "$(PRODUCT)" ..." - $(LD) $(LDFLAGS) -o $(PRODUCT) @$(CMD_FILE) @$(MODELREF_LINK_RSPFILE) $(SYSTEM_LIBS) $(TOOLCHAIN_LIBS) - @echo "### Created: $(PRODUCT)" - - -########################################################################### -## INTERMEDIATE TARGETS -########################################################################### - -#--------------------- -# SOURCE-TO-OBJECT -#--------------------- - -%.obj : %.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : %.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/FCC_Sys_New_harness_ert_rtw/instrumented/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/FCC_Sys_New_harness_ert_rtw/instrumented/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -FCC_Sys_New_harness.obj : $(START_DIR)/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -ert_main.obj : $(START_DIR)/FCC_Sys_New_harness_ert_rtw/instrumented/ert_main.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -########################################################################### -## DEPENDENCIES -########################################################################### - -$(ALL_OBJS) : rtw_proj.tmw $(COMPILER_COMMAND_FILE) $(MAKEFILE) - - -########################################################################### -## MISCELLANEOUS TARGETS -########################################################################### - -info : - @echo "### PRODUCT = $(PRODUCT)" - @echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)" - @echo "### BUILD_TYPE = $(BUILD_TYPE)" - @echo "### INCLUDES = $(INCLUDES)" - @echo "### DEFINES = $(DEFINES)" - @echo "### ALL_SRCS = $(ALL_SRCS)" - @echo "### ALL_OBJS = $(ALL_OBJS)" - @echo "### LIBS = $(LIBS)" - @echo "### MODELREF_LIBS = $(MODELREF_LIBS)" - @echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)" - @echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)" - @echo "### CFLAGS = $(CFLAGS)" - @echo "### LDFLAGS = $(LDFLAGS)" - @echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)" - @echo "### CPPFLAGS = $(CPPFLAGS)" - @echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)" - @echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)" - @echo "### ARFLAGS = $(ARFLAGS)" - @echo "### MEX_CFLAGS = $(MEX_CFLAGS)" - @echo "### MEX_CPPFLAGS = $(MEX_CPPFLAGS)" - @echo "### MEX_LDFLAGS = $(MEX_LDFLAGS)" - @echo "### MEX_CPPLDFLAGS = $(MEX_CPPLDFLAGS)" - @echo "### DOWNLOAD_FLAGS = $(DOWNLOAD_FLAGS)" - @echo "### EXECUTE_FLAGS = $(EXECUTE_FLAGS)" - @echo "### MAKE_FLAGS = $(MAKE_FLAGS)" - - -clean : - $(ECHO) "### Deleting all derived files..." - $(RM) $(subst /,\,$(PRODUCT)) - $(RM) $(subst /,\,$(ALL_OBJS)) - $(ECHO) "### Deleted all derived files." - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.rsp b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.rsp deleted file mode 100644 index 02f179998d031d8783d1f0ec2f85c9c7de5b0f53..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness.rsp +++ /dev/null @@ -1,3 +0,0 @@ -FCC_Sys_New_harness.obj -coder_profile_timer.obj -ert_main.obj diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness_comp.rsp b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness_comp.rsp deleted file mode 100644 index 7c57f62c6dce1ca8c1bd74967e8b7f30096d58d5..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness_comp.rsp +++ /dev/null @@ -1,11 +0,0 @@ --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/FCC_New --ID:/Documents/SCHOOL/McSCert/do178/src/validation --ID:/Documents/SCHOOL/McSCert/do178/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented --ID:/Program\ Files/MATLAB/R2020a/extern/include --ID:/Program\ Files/MATLAB/R2020a/simulink/include --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src/ext_mode/common --ID:/Program\ Files/MATLAB/R2020a/rtw/c/ert --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/_sharedutils diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness_ref.rsp b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness_ref.rsp deleted file mode 100644 index f979e9f556c7a59dc17abb656649b22368d82bc1..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/FCC_Sys_New_harness_ref.rsp +++ /dev/null @@ -1,3 +0,0 @@ -D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/FCC_New/instrumented/FCC_New_rtwlib.lib -D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl_rtwlib.lib -D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl_rtwlib.lib diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/buildInfo.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/buildInfo.mat deleted file mode 100644 index b8df6680d6b547261e35b475fc4a51e796eb337f..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/buildInfo.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/coder_profile_timer.c b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/coder_profile_timer.c deleted file mode 100644 index ff16877d23d3fc115b5452f5a36b34432231745a..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/coder_profile_timer.c +++ /dev/null @@ -1,63 +0,0 @@ -/* - * File: coder_profile_timer.c - * - * Code generated for instrumentation. - * - * This file contains stub implementations of the instrumentation utility - * functions. These stubs allow instrumented code to be compiled - * into an executable that does not support collection of execution - * instrumentation data. - * - */ - -#include "coder_profile_timer.h" - -/* Code instrumentation offset(s) for model FCC_Sys_New_harness */ -#define profileStart_F_02840e440c240744_offset 0 -#define profileEnd_FCC_Sys_New_harness_offset 0 - -/* A function parameter may be intentionally unused */ -#ifndef UNUSED_PARAMETER -# if defined(__LCC__) -# define UNUSED_PARAMETER(x) -# else -# define UNUSED_PARAMETER(x) (void) (x) -# endif -#endif - -void xilProfilingTimerFreezeInternal(void) -{ -} - -void xilProfilingTimerFreeze(void) -{ -} - -void xilProfilingTimerUnFreezeInternal(void) -{ -} - -void xilProfilingTimerUnFreeze(void) -{ -} - -void profileStart(uint32_T sectionId) -{ - UNUSED_PARAMETER(sectionId); -} - -void profileEnd(uint32_T sectionId) -{ - UNUSED_PARAMETER(sectionId); -} - -/* Code instrumentation method(s) for model FCC_Sys_New_harness */ -void profileStart_F_02840e440c240744(uint32_T sectionId) -{ - profileStart(profileStart_F_02840e440c240744_offset + sectionId); -} - -void profileEnd_FCC_Sys_New_harness(uint32_T sectionId) -{ - profileEnd(profileEnd_FCC_Sys_New_harness_offset + sectionId); -} diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/coder_profile_timer.h b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/coder_profile_timer.h deleted file mode 100644 index 9df0512fc88ff79107156260f7366ce39c074395..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/coder_profile_timer.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * File: coder_profile_timer.h - * - * Code generated for instrumentation. - * - */ - -#include "rtwtypes.h" - -/* Called before starting a profiled section of code */ -void profileStart(uint32_T); - -/* Called on finishing a profiled section of code */ -void profileEnd(uint32_T); - -/* Pause the timer while running code associated with storing and uploading the data. */ -void xilProfilingTimerFreeze(void); - -/* Restart the timer after a pause */ -void xilProfilingTimerUnFreeze(void); - -/* Code instrumentation method(s) for model FCC_Sys_New_harness */ -void profileStart_F_02840e440c240744(uint32_T sectionId); -void profileEnd_FCC_Sys_New_harness(uint32_T sectionId); diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/compileInfo.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/compileInfo.mat deleted file mode 100644 index a362ebf1025b2a7e9b3de45a4bb8abf8e1bdf2a1..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/compileInfo.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/defines.txt b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/defines.txt deleted file mode 100644 index b5ab630ab5807c6f7e689a2148d683010900c502..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/defines.txt +++ /dev/null @@ -1,15 +0,0 @@ -MODEL=FCC_Sys_New_harness -NUMST=3 -NCSTATES=0 -HAVESTDIO -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -CLASSIC_INTERFACE=0 -ALLOCATIONFCN=0 -TID01EQ=1 -PORTABLE_WORDSIZES -TERMFCN=0 -ONESTEPFCN=1 -MAT_FILE=0 -MULTI_INSTANCE_CODE=0 -INTEGER_CODE=0 -MT=1 diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/ert_main.c b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/ert_main.c deleted file mode 100644 index 79179126d4f53c4222e9188fd9aba9973978de37..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/ert_main.c +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: ert_main.c - * - * Code generated for Simulink model 'FCC_Sys_New_harness'. - * - * Model version : 1.91 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:26 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#include -#include /* This ert_main.c example uses printf/fflush */ -#include "FCC_Sys_New_harness.h" /* Model's header file */ -#include "rtwtypes.h" -#include "model_reference_types.h" - -/* - * Associating rt_OneStep with a real-time clock or interrupt service routine - * is what makes the generated code "real-time". The function rt_OneStep is - * always associated with the base rate of the model. Subrates are managed - * by the base rate from inside the generated code. Enabling/disabling - * interrupts and floating point context switches are target specific. This - * example code indicates where these should take place relative to executing - * the generated code step function. Overrun behavior should be tailored to - * your application needs. This example simply sets an error status in the - * real-time model and returns from rt_OneStep. - */ -void rt_OneStep(void); -void rt_OneStep(void) -{ - static boolean_T OverrunFlags[3] = { 0, 0, 0 }; - - static boolean_T eventFlags[3] = { 0, 0, 0 };/* Model has 3 rates */ - - static int_T taskCounter[3] = { 0, 0, 0 }; - - /* Disable interrupts here */ - - /* Check base rate for overrun */ - if (OverrunFlags[0]) { - rtmSetErrorStatus(FCC_Sys_New_harness_M, "Overrun"); - return; - } - - OverrunFlags[0] = true; - - /* Save FPU context here (if necessary) */ - /* Re-enable timer or interrupt here */ - - /* - * For a bare-board target (i.e., no operating system), the - * following code checks whether any subrate overruns, - * and also sets the rates that need to run this time step. - */ - if (taskCounter[2] == 0) { - if (eventFlags[2]) { - OverrunFlags[0] = false; - OverrunFlags[2] = true; - - /* Sampling too fast */ - rtmSetErrorStatus(FCC_Sys_New_harness_M, "Overrun"); - return; - } - - eventFlags[2] = true; - } - - taskCounter[1]++; - if (taskCounter[1] == 1) { - taskCounter[1]= 0; - } - - taskCounter[2]++; - if (taskCounter[2] == 10) { - taskCounter[2]= 0; - } - - /* Set model inputs associated with base rate here */ - - /* Step the model for base rate */ - FCC_Sys_New_harness_step0(); - - /* Get model outputs here */ - - /* Indicate task for base rate complete */ - OverrunFlags[0] = false; - - /* If task 1 is running, don't run any lower priority task */ - if (OverrunFlags[1]) { - return; - } - - /* Step the model for subrate */ - if (eventFlags[2]) { - OverrunFlags[2] = true; - - /* Set model inputs associated with subrates here */ - - /* Step the model for subrate 2 */ - FCC_Sys_New_harness_step2(); - - /* Get model outputs here */ - - /* Indicate task complete for subrate */ - OverrunFlags[2] = false; - eventFlags[2] = false; - } - - /* Disable interrupts here */ - /* Restore FPU context here (if necessary) */ - /* Enable interrupts here */ -} - -/* - * The example "main" function illustrates what is required by your - * application code to initialize, execute, and terminate the generated code. - * Attaching rt_OneStep to a real-time clock is target specific. This example - * illustrates how you do this relative to initializing the model. - */ -int_T main(int_T argc, const char *argv[]) -{ - /* Unused arguments */ - (void)(argc); - (void)(argv); - - /* Initialize model */ - FCC_Sys_New_harness_initialize(); - - /* Attach rt_OneStep to a timer or interrupt service routine with - * period 0.001 seconds (the model's base sample time) here. The - * call syntax for rt_OneStep is - * - * rt_OneStep(); - */ - printf("Warning: The simulation will run forever. " - "Generated ERT main won't simulate model step behavior. " - "To change this behavior select the 'MAT-file logging' option.\n"); - fflush((NULL)); - while (rtmGetErrorStatus(FCC_Sys_New_harness_M) == (NULL)) { - /* Perform other application tasks here */ - } - - /* Disable rt_OneStep() here */ - return 0; -} - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/instrumentationInfo.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/instrumentationInfo.mat deleted file mode 100644 index 134275589b63dccebd6600018d6db67ef360d5ed..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/instrumentationInfo.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/profiling_info.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/profiling_info.mat deleted file mode 100644 index bcf92faa8714c37737453eea91bffb25d011d027..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/profiling_info.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/rtw_proj.tmw b/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/rtw_proj.tmw deleted file mode 100644 index d4c8a63350938c7f839e413678ddfa017793aa06..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/instrumented/rtw_proj.tmw +++ /dev/null @@ -1,4 +0,0 @@ -Simulink Coder project for FCC_Sys_New_harness using . MATLAB root = D:\Program Files\MATLAB\R2020a. SimStruct date: 18-Nov-2019 20:54:47 -This file is generated by Simulink Coder for use by the make utility -to determine when to rebuild objects when the name of the current Simulink Coder project changes. -The rtwinfomat located at: ..\..\slprj\ert\FCC_Sys_New_harness\tmwinternal\binfo.mat diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/modelsources.txt b/src/validation/FCC_Sys_New_harness_ert_rtw/modelsources.txt deleted file mode 100644 index 05dd0f4ce0365b73f14306f4b1372456bfedd262..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/modelsources.txt +++ /dev/null @@ -1,2 +0,0 @@ - FCC_Sys_New_harness.c - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/profilingTraceability.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/profilingTraceability.mat deleted file mode 100644 index f5deee541b449907d364eed8cbab73e2c115b11a..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/profilingTraceability.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/rtw_proj.tmw b/src/validation/FCC_Sys_New_harness_ert_rtw/rtw_proj.tmw deleted file mode 100644 index 10e98d485458f0004b86e961f4bd9cbd330b21a1..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/rtw_proj.tmw +++ /dev/null @@ -1,4 +0,0 @@ -Simulink Coder project for FCC_Sys_New_harness using . MATLAB root = D:\Program Files\MATLAB\R2020a. SimStruct date: 18-Nov-2019 20:54:47 -This file is generated by Simulink Coder for use by the make utility -to determine when to rebuild objects when the name of the current Simulink Coder project changes. -The rtwinfomat located at: ..\slprj\ert\FCC_Sys_New_harness\tmwinternal\binfo.mat diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness.bat b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness.bat deleted file mode 100644 index 8deb7537bbc262b55e7f92357cbe441dfb0a2e93..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness.bat +++ /dev/null @@ -1,15 +0,0 @@ -@if not "%MINGW_ROOT%" == "" (@set "PATH=%PATH%;%MINGW_ROOT%") - - -call "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a\bin\win64\checkMATLABRootForDriveMap.exe" "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a" > mlEnv.txt -for /f %%a in (mlEnv.txt) do set "%%a"\n -cd . - -if "%1"=="" ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f FCC_Sys_New_harness.mk all) else ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f FCC_Sys_New_harness.mk %1) -@if errorlevel 1 goto error_exit - -exit 0 - -:error_exit -echo The make command returned an error of %errorlevel% -exit 1 diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness.exe b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness.exe deleted file mode 100644 index 7a68e533193f104a4c15baeb336d547a452df932..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness.exe and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness.mk b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness.mk deleted file mode 100644 index c5b1ed5c36441d82fca28de54be84747b1878733..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness.mk +++ /dev/null @@ -1,483 +0,0 @@ -########################################################################### -## Makefile generated for Simulink model 'FCC_Sys_New_harness'. -## -## Makefile : FCC_Sys_New_harness.mk -## Generated on : Thu Jul 16 18:55:52 2020 -## MATLAB Coder version: 5.0 (R2020a) -## -## Build Info: -## -## Final product: ./FCC_Sys_New_harness.exe -## Product type : executable -## Build type : Top-Level Standalone Executable -## -########################################################################### - -########################################################################### -## MACROS -########################################################################### - -# Macro Descriptions: -# PRODUCT_NAME Name of the system to build -# MAKEFILE Name of this makefile -# MODELREF_LINK_RSPFILE Linker command listing model reference link objects -# COMPILER_COMMAND_FILE Compiler command listing model reference header paths -# CMD_FILE Command file - -PRODUCT_NAME = FCC_Sys_New_harness -MAKEFILE = FCC_Sys_New_harness.mk -MATLAB_ROOT = D:/Program Files/MATLAB/R2020a -MATLAB_BIN = D:/Program Files/MATLAB/R2020a/bin -MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64 -MASTER_ANCHOR_DIR = -START_DIR = D:/Documents/SCHOOL/McSCert/do178/src/validation -SOLVER = -SOLVER_OBJ = -CLASSIC_INTERFACE = 0 -TGT_FCN_LIB = ISO_C -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0 -RELATIVE_PATH_TO_ANCHOR = ../.. -MODELREF_LINK_RSPFILE = FCC_Sys_New_harness_ref.rsp -COMPILER_COMMAND_FILE = FCC_Sys_New_harness_comp.rsp -CMD_FILE = FCC_Sys_New_harness.rsp -C_STANDARD_OPTS = -fwrapv -CPP_STANDARD_OPTS = -fwrapv - -########################################################################### -## TOOLCHAIN SPECIFICATIONS -########################################################################### - -# Toolchain Name: MinGW64 | gmake (64-bit Windows) -# Supported Version(s): 6.x -# ToolchainInfo Version: 2020a -# Specification Revision: 1.0 -# -#------------------------------------------- -# Macros assumed to be defined elsewhere -#------------------------------------------- - -# C_STANDARD_OPTS -# CPP_STANDARD_OPTS -# MINGW_ROOT -# MINGW_C_STANDARD_OPTS - -#----------- -# MACROS -#----------- - -WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -WARN_FLAGS_MAX = $(WARN_FLAGS) -Wcast-qual -Wshadow -CPP_WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wpointer-arith -Wcast-align -CPP_WARN_FLAGS_MAX = $(CPP_WARN_FLAGS) -Wcast-qual -Wshadow -MW_EXTERNLIB_DIR = $(MATLAB_ROOT)/extern/lib/win64/mingw64 -SHELL = %SystemRoot%/system32/cmd.exe - -TOOLCHAIN_SRCS = -TOOLCHAIN_INCS = -TOOLCHAIN_LIBS = -lws2_32 - -#------------------------ -# BUILD TOOL COMMANDS -#------------------------ - -# C Compiler: GNU C Compiler -CC_PATH = $(MINGW_ROOT) -CC = "$(CC_PATH)/gcc" - -# Linker: GNU Linker -LD_PATH = $(MINGW_ROOT) -LD = "$(LD_PATH)/g++" - -# C++ Compiler: GNU C++ Compiler -CPP_PATH = $(MINGW_ROOT) -CPP = "$(CPP_PATH)/g++" - -# C++ Linker: GNU C++ Linker -CPP_LD_PATH = $(MINGW_ROOT) -CPP_LD = "$(CPP_LD_PATH)/g++" - -# Archiver: GNU Archiver -AR_PATH = $(MINGW_ROOT) -AR = "$(AR_PATH)/ar" - -# MEX Tool: MEX Tool -MEX_PATH = $(MATLAB_ARCH_BIN) -MEX = "$(MEX_PATH)/mex" - -# Download: Download -DOWNLOAD = - -# Execute: Execute -EXECUTE = $(PRODUCT) - -# Builder: GMAKE Utility -MAKE_PATH = %MATLAB%/bin/win64 -MAKE = "$(MAKE_PATH)/gmake" - - -#------------------------- -# Directives/Utilities -#------------------------- - -CDEBUG = -g -C_OUTPUT_FLAG = -o -LDDEBUG = -g -OUTPUT_FLAG = -o -CPPDEBUG = -g -CPP_OUTPUT_FLAG = -o -CPPLDDEBUG = -g -OUTPUT_FLAG = -o -ARDEBUG = -STATICLIB_OUTPUT_FLAG = -MEX_DEBUG = -g -RM = @del -ECHO = @echo -MV = @move -RUN = - -#---------------------------------------- -# "Faster Builds" Build Configuration -#---------------------------------------- - -ARFLAGS = ruvs -CFLAGS = -c $(MINGW_C_STANDARD_OPTS) -m64 \ - -O0 -CPPFLAGS = -c $(CPP_STANDARD_OPTS) -m64 -std=c++11 \ - -O0 -CPP_LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -CPP_SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib -DOWNLOAD_FLAGS = -EXECUTE_FLAGS = -LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -MEX_CPPFLAGS = -MEX_CPPLDFLAGS = -MEX_CFLAGS = -MEX_LDFLAGS = -MAKE_FLAGS = -f $(MAKEFILE) -SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib - - - -########################################################################### -## OUTPUT INFO -########################################################################### - -PRODUCT = ./FCC_Sys_New_harness.exe -PRODUCT_TYPE = "executable" -BUILD_TYPE = "Top-Level Standalone Executable" - -########################################################################### -## INCLUDE PATHS -########################################################################### - -INCLUDES_BUILDINFO = - -INCLUDES = $(INCLUDES_BUILDINFO) - -########################################################################### -## DEFINES -########################################################################### - -DEFINES_BUILD_ARGS = -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DEFINES_CUSTOM = -DEFINES_OPTS = -DTID01EQ=1 -DPORTABLE_WORDSIZES -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DEFINES_STANDARD = -DMODEL=FCC_Sys_New_harness -DNUMST=3 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 - -DEFINES = $(DEFINES_BUILD_ARGS) $(DEFINES_CUSTOM) $(DEFINES_OPTS) $(DEFINES_STANDARD) - -########################################################################### -## SOURCE FILES -########################################################################### - -SRCS = $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/xil_interface_lib.c $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/xil_data_stream.c $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/xil_services.c $(START_DIR)/FCC_Sys_New_harness_ert_rtw/sil/xil_interface.c $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/xilcomms_rtiostream.c $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/xil_rtiostream.c $(MATLAB_ROOT)/toolbox/coder/rtiostream/src/utils/rtiostream_utils.c $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/coder_assumptions_app.c $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/coder_assumptions_data_stream.c $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/coder_assumptions_rtiostream.c $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/sil_main.c $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/target_io.c $(MATLAB_ROOT)/toolbox/coder/rtiostream/src/rtiostreamtcpip/rtiostream_tcpip.c $(START_DIR)/FCC_Sys_New_harness_ert_rtw/sil/xil_instrumentation.c $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/codeinstr_data_stream.c $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/codeinstr_rtiostream.c $(MATLAB_ROOT)/toolbox/coder/profile/src/host_timer_x86.c - -ALL_SRCS = $(SRCS) - -########################################################################### -## OBJECTS -########################################################################### - -OBJS = xil_interface_lib.obj xil_data_stream.obj xil_services.obj xil_interface.obj xilcomms_rtiostream.obj xil_rtiostream.obj rtiostream_utils.obj coder_assumptions_app.obj coder_assumptions_data_stream.obj coder_assumptions_rtiostream.obj sil_main.obj target_io.obj rtiostream_tcpip.obj xil_instrumentation.obj codeinstr_data_stream.obj codeinstr_rtiostream.obj host_timer_x86.obj - -ALL_OBJS = $(OBJS) - -########################################################################### -## PREBUILT OBJECT FILES -########################################################################### - -PREBUILT_OBJS = - -########################################################################### -## LIBRARIES -########################################################################### - -MODELREF_LIBS = hostobj/instrumented/FCC_Sys_New_harness.obj D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New_rtwlib.lib D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_rtwlib.lib D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl_rtwlib.lib - -LIBS = $(START_DIR)/FCC_Sys_New_harness_ert_rtw/coderassumptions/pwslib/FCC_Sys_New_harness_ca.lib - -########################################################################### -## SYSTEM LIBRARIES -########################################################################### - -SYSTEM_LIBS = - -########################################################################### -## ADDITIONAL TOOLCHAIN FLAGS -########################################################################### - -#--------------- -# C Compiler -#--------------- - -CFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CFLAGS += $(CFLAGS_BASIC) - -#----------------- -# C++ Compiler -#----------------- - -CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CPPFLAGS += $(CPPFLAGS_BASIC) - -#--------------------- -# MEX C++ Compiler -#--------------------- - -MEX_CPP_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CPPFLAGS += $(MEX_CPP_Compiler_BASIC) - -#----------------- -# MEX Compiler -#----------------- - -MEX_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CFLAGS += $(MEX_Compiler_BASIC) - -########################################################################### -## INLINED COMMANDS -########################################################################### - - -MINGW_C_STANDARD_OPTS = $(C_STANDARD_OPTS) - - -########################################################################### -## PHONY TARGETS -########################################################################### - -.PHONY : all build buildobj clean info prebuild download execute - - -all : build - @echo "### Successfully generated all binary outputs." - - -build : prebuild $(PRODUCT) - - -buildobj : prebuild $(OBJS) $(PREBUILT_OBJS) $(LIBS) - @echo "### Successfully generated all binary outputs." - - -prebuild : - - -download : $(PRODUCT) - - -execute : download - @echo "### Invoking postbuild tool "Execute" ..." - $(EXECUTE) $(EXECUTE_FLAGS) - @echo "### Done invoking postbuild tool." - - -########################################################################### -## FINAL TARGET -########################################################################### - -#------------------------------------------- -# Create a standalone executable -#------------------------------------------- - -$(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) $(MODELREF_LIBS) $(LIBS) - @echo "### Creating standalone executable "$(PRODUCT)" ..." - $(LD) $(LDFLAGS) -o $(PRODUCT) @$(CMD_FILE) @$(MODELREF_LINK_RSPFILE) -Wl,--start-group $(LIBS) -Wl,--end-group $(SYSTEM_LIBS) $(TOOLCHAIN_LIBS) - @echo "### Created: $(PRODUCT)" - - -########################################################################### -## INTERMEDIATE TARGETS -########################################################################### - -#--------------------- -# SOURCE-TO-OBJECT -#--------------------- - -%.obj : %.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : %.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/toolbox/coder/rtiostream/src/utils/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/toolbox/coder/rtiostream/src/utils/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/toolbox/coder/rtiostream/src/rtiostreamtcpip/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/toolbox/coder/rtiostream/src/rtiostreamtcpip/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/toolbox/coder/profile/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/toolbox/coder/profile/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -xil_interface_lib.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/xil_interface_lib.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -xil_data_stream.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/xil_data_stream.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -xil_services.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/xil_services.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -xil_interface.obj : $(START_DIR)/FCC_Sys_New_harness_ert_rtw/sil/xil_interface.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -xilcomms_rtiostream.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/xilcomms_rtiostream.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -xil_rtiostream.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/xil_rtiostream.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -rtiostream_utils.obj : $(MATLAB_ROOT)/toolbox/coder/rtiostream/src/utils/rtiostream_utils.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -coder_assumptions_app.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/coder_assumptions_app.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -coder_assumptions_data_stream.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/coder_assumptions_data_stream.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -coder_assumptions_rtiostream.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/coder_assumptions_rtiostream.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -sil_main.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/sil_main.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -target_io.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/target_io.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -rtiostream_tcpip.obj : $(MATLAB_ROOT)/toolbox/coder/rtiostream/src/rtiostreamtcpip/rtiostream_tcpip.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -xil_instrumentation.obj : $(START_DIR)/FCC_Sys_New_harness_ert_rtw/sil/xil_instrumentation.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -codeinstr_data_stream.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/codeinstr_data_stream.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -codeinstr_rtiostream.obj : $(MATLAB_ROOT)/toolbox/rtw/targets/pil/c/codeinstr_rtiostream.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -host_timer_x86.obj : $(MATLAB_ROOT)/toolbox/coder/profile/src/host_timer_x86.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -########################################################################### -## DEPENDENCIES -########################################################################### - -$(ALL_OBJS) : rtw_proj.tmw $(COMPILER_COMMAND_FILE) $(MAKEFILE) - - -########################################################################### -## MISCELLANEOUS TARGETS -########################################################################### - -info : - @echo "### PRODUCT = $(PRODUCT)" - @echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)" - @echo "### BUILD_TYPE = $(BUILD_TYPE)" - @echo "### INCLUDES = $(INCLUDES)" - @echo "### DEFINES = $(DEFINES)" - @echo "### ALL_SRCS = $(ALL_SRCS)" - @echo "### ALL_OBJS = $(ALL_OBJS)" - @echo "### LIBS = $(LIBS)" - @echo "### MODELREF_LIBS = $(MODELREF_LIBS)" - @echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)" - @echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)" - @echo "### CFLAGS = $(CFLAGS)" - @echo "### LDFLAGS = $(LDFLAGS)" - @echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)" - @echo "### CPPFLAGS = $(CPPFLAGS)" - @echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)" - @echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)" - @echo "### ARFLAGS = $(ARFLAGS)" - @echo "### MEX_CFLAGS = $(MEX_CFLAGS)" - @echo "### MEX_CPPFLAGS = $(MEX_CPPFLAGS)" - @echo "### MEX_LDFLAGS = $(MEX_LDFLAGS)" - @echo "### MEX_CPPLDFLAGS = $(MEX_CPPLDFLAGS)" - @echo "### DOWNLOAD_FLAGS = $(DOWNLOAD_FLAGS)" - @echo "### EXECUTE_FLAGS = $(EXECUTE_FLAGS)" - @echo "### MAKE_FLAGS = $(MAKE_FLAGS)" - - -clean : - $(ECHO) "### Deleting all derived files..." - $(RM) $(subst /,\,$(PRODUCT)) - $(RM) $(subst /,\,$(ALL_OBJS)) - $(ECHO) "### Deleted all derived files." - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness.rsp b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness.rsp deleted file mode 100644 index 5281c5c5c2e29e06a1065d8b14320f8bc9f6d1e2..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness.rsp +++ /dev/null @@ -1,17 +0,0 @@ -codeinstr_data_stream.obj -codeinstr_rtiostream.obj -coder_assumptions_app.obj -coder_assumptions_data_stream.obj -coder_assumptions_rtiostream.obj -host_timer_x86.obj -rtiostream_tcpip.obj -rtiostream_utils.obj -sil_main.obj -target_io.obj -xil_data_stream.obj -xil_instrumentation.obj -xil_interface.obj -xil_interface_lib.obj -xil_rtiostream.obj -xil_services.obj -xilcomms_rtiostream.obj diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness_comp.rsp b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness_comp.rsp deleted file mode 100644 index 344bafb3d48dee753c97d0d4241f0c910c537ef4..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness_comp.rsp +++ /dev/null @@ -1,20 +0,0 @@ --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/FCC_New --ID:/Documents/SCHOOL/McSCert/do178/src/validation --ID:/Documents/SCHOOL/McSCert/do178/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented --ID:/Program\ Files/MATLAB/R2020a/extern/include --ID:/Program\ Files/MATLAB/R2020a/simulink/include --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src/ext_mode/common --ID:/Program\ Files/MATLAB/R2020a/rtw/c/ert --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/_sharedutils --ID:/Program\ Files/MATLAB/R2020a/toolbox/rtw/targets/pil/c --ID:/Documents/SCHOOL/McSCert/do178/src/validation/FCC_Sys_New_harness_ert_rtw/sil --ID:/Program\ Files/MATLAB/R2020a/extern/include/coder/connectivity/XILTgtAppSvc --ID:/Program\ Files/MATLAB/R2020a/toolbox/coder/rtiostream/src/utils --ID:/Program\ Files/MATLAB/R2020a/toolbox/coder/rtiostream/src --ID:/Program\ Files/MATLAB/R2020a/extern/include/coder/connectivity/CoderAssumpTgtAppSvc --ID:/Documents/SCHOOL/McSCert/do178/src/validation/FCC_Sys_New_harness_ert_rtw/coderassumptions --ID:/Program\ Files/MATLAB/R2020a/extern/include/coder/connectivity/CodeInstrTgtAppSvc --ID:/Program\ Files/MATLAB/R2020a/toolbox/coder/profile/src diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness_ref.rsp b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness_ref.rsp deleted file mode 100644 index 005186d3933af7f7f5a3f69dbbb134f0c2d2411e..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness_ref.rsp +++ /dev/null @@ -1,4 +0,0 @@ -hostobj/instrumented/FCC_Sys_New_harness.obj -D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New_rtwlib.lib -D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_rtwlib.lib -D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl_rtwlib.lib diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness_sbs.c b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness_sbs.c deleted file mode 100644 index f32091740f664d47e4f3c5b0f3db9ed4dbdc8de0..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/FCC_Sys_New_harness_sbs.c +++ /dev/null @@ -1,2727 +0,0 @@ -/* - * FCC_Sys_New_harness_sbs.c - * - * Automatically generated s-function with I/O interface for: - * Component: FCC_Sys_New_harness - * Component Simulink Path: FCC_Sys_New_harness - * Simulation Mode: SIL - * - */ - -#define S_FUNCTION_NAME FCC_Sys_New_harness_sbs -#define S_FUNCTION_LEVEL 2 -#if !defined(RTW_GENERATED_S_FUNCTION) -#define RTW_GENERATED_S_FUNCTION -#endif - -#include -#include -#include "simstruc.h" -#include "simtarget/slMdlrefSimTargetCoreHeaders.h" -#include "simtarget/slMdlrefSimTargetInstrumentationHeaders.h" -#include "fixedpoint.h" -#include "coder/connectivity_core/xilutils/xilutils.h" -#include "coder/simulinkcoder/xilutils_sl/xilutils_sl.h" -#include "rtiostream_utils.h" -#include "coder/connectivity/xilcomms_rtiostream/xilcomms_rtiostream.h" -#include "coder/connectivity/XILHostAppSvc/XILHostAppSvc_CInterface.h" -#include "messages/slMessagesSfcnBridge.h" -#include "strings/slStringSfcnAPI.h" -#include "mwstringutil.h" -#include "coder/connectivity/CodeInstrHostAppSvc/CodeInstrHostAppSvc_CInterface.h" -#include "coder/connectivity/CoderAssumpHostAppSvc/CoderAssumpHostAppSvc_CInterface.h" - -/* Response case labels */ -enum ResponseIDs { - RESPONSE_ERROR = 0, - RESPONSE_OUTPUT_PRE_DATA = 1, - RESPONSE_OUTPUT_DATA = 2, - RESPONSE_PRINTF = 3, - RESPONSE_FOPEN = 4, - RESPONSE_FPRINTF = 5, - RESPONSE_SIGNAL_RAISED = 6 -}; - -typedef struct { - FILE ** Fd; - mwSize size; - int32_T fidOffset; -} targetIOFd_T; - -typedef enum { - XIL_INIT_COMMAND = 0, - XIL_INITIALIZE_COMMAND, - XIL_SYSTEM_INITIALIZE_COMMAND, - XIL_OUTPUT_COMMAND, - XIL_TERMINATE_COMMAND, - XIL_ENABLE_COMMAND, - XIL_DISABLE_COMMAND, - XIL_CONST_OUTPUT_COMMAND, - XIL_PROCESS_PARAMS_COMMAND, - XIL_CLIENT_SERVER_COMMAND, - XIL_SHUTDOWN_COMMAND, - XIL_UPDATE_COMMAND, - XIL_SYSTEM_RESET_COMMAND, - XIL_PAUSE_COMMAND -} - XIL_COMMAND_TYPE_ENUM; - -static void callStopHookAndFreeSFcnMemory(SimStruct *S); -static void mdlTerminate(SimStruct *S); - -/* grow the buffer for target I/O Fd array - * targetIOFd->Fd is NULL on failure */ -static void growTargetIOFd(SimStruct *S, targetIOFd_T * IOFd, mwSize - requiredSize) -{ - if (IOFd->size < requiredSize) { - IOFd->Fd = mxRealloc(IOFd->Fd, requiredSize * sizeof(FILE*)); - if (IOFd->Fd == NULL) { - ssSetErrorStatus( S,"growTargetIOFd: mxRealloc failed."); - } else { - mexMakeMemoryPersistent(IOFd->Fd); - IOFd->size = requiredSize; - } /* if */ - } /* if */ -} - -static void closeAndFreeTargetIOFd(SimStruct *S) -{ - int i; - if (ssGetPWork(S) != NULL) { - targetIOFd_T * targetIOFdPtr = (targetIOFd_T *) ssGetPWorkValue(S, 3); - if (targetIOFdPtr != NULL) { - if (targetIOFdPtr->Fd != NULL) { - for (i=0; isize; i++) { - if (targetIOFdPtr->Fd[i] != NULL) { - fclose(targetIOFdPtr->Fd[i]); - } /* if */ - } /* for */ - - mxFree(targetIOFdPtr->Fd); - } /* if */ - - mxFree(targetIOFdPtr); - } /* if */ - - ssSetPWorkValue(S, 3, NULL); - } /* if */ -} - -/* receive one packet of data and dispatch to owning application */ -static boolean_T recvData(SimStruct *S, void* pComms) -{ - int * pCommErrorOccurred = (int *) ssGetPWorkValue(S, 4); - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - if (pCommErrorOccurred == NULL) { - ssSetErrorStatus( S,"pCommErrorOccurred is NULL."); - return XILHOSTAPPSVC_ERROR; - } /* if */ - - if (pXILUtils == NULL) { - ssSetErrorStatus( S,"pXILUtils is NULL."); - return XILHOSTAPPSVC_ERROR; - } /* if */ - - *pCommErrorOccurred = (xilCommsRun(pComms, pXILUtils) != - XILCOMMS_RTIOSTREAM_SUCCESS); - return (*pCommErrorOccurred?XILHOSTAPPSVC_ERROR:XILHOSTAPPSVC_SUCCESS); -} - -/* send data via xil comms */ -static boolean_T sendData(SimStruct *S, void* pXILService, XIL_IOBuffer_T - * IOBuffer, mwSize sendSize) -{ - int * pCommErrorOccurred = (int *) ssGetPWorkValue(S, 4); - if (pCommErrorOccurred == NULL) { - ssSetErrorStatus( S,"pCommErrorOccurred is NULL."); - return XILHOSTAPPSVC_ERROR; - } /* if */ - - *pCommErrorOccurred = (xilHostAppSvcSend(pXILService, IOBuffer->data, sendSize) - != XILHOSTAPPSVC_SUCCESS); - return (*pCommErrorOccurred?XILHOSTAPPSVC_ERROR:XILHOSTAPPSVC_SUCCESS); -} - -/* implements command dispatch */ -static boolean_T commandDispatch(SimStruct *S, XIL_IOBuffer_T* IOBuffer, mwSize - dataOutSize) -{ - void * pXILService = (void *) ssGetPWorkValue(S, 9); - if (pXILService == NULL) { - ssSetErrorStatus( S,"pXILService is NULL!"); - return XILHOSTAPPSVC_ERROR; - } /* if */ - - /* send the data */ - if (sendData(S, pXILService, IOBuffer, dataOutSize) != XILHOSTAPPSVC_SUCCESS) - { - return XILHOSTAPPSVC_ERROR; - } /* if */ - - return XILHOSTAPPSVC_SUCCESS; -} - -/* implements command response */ -static boolean_T commandResponse(SimStruct *S, mwSize* dataInSize, - XILCommandResponseType* commandType) -{ - void * pXILService = (void *) ssGetPWorkValue(S, 9); - if (pXILService == NULL) { - ssSetErrorStatus( S,"pXILService is NULL!"); - return XILHOSTAPPSVC_ERROR; - } /* if */ - - { - /* receive the response data */ - uint8_T COMMAND_COMPLETE = 0; - void * pComms = (void *) ssGetPWorkValue(S, 7); - if (pComms == NULL) { - ssSetErrorStatus( S,"pComms is NULL!"); - return XILHOSTAPPSVC_ERROR; - } /* if */ - - while (!COMMAND_COMPLETE) { - xilHostAppSvcSetIsResponseComplete(pXILService, 0); - if (recvData(S, pComms) != XILHOSTAPPSVC_SUCCESS) { - return XILHOSTAPPSVC_ERROR; - } /* if */ - - COMMAND_COMPLETE = xilHostAppSvcGetIsResponseComplete(pXILService); - } /* while */ - - /* determine command response type */ - *commandType = (XILCommandResponseType) COMMAND_COMPLETE; - *dataInSize = xilHostAppSvcGetPayloadSizeForOneStep(pXILService); - return XILHOSTAPPSVC_SUCCESS; - } -} - -static void copyIOData(void * const dstPtr, void * const srcPtr, uint8_T ** - const tgtPtrPtr, size_t numElements, size_t cTypeSize) -{ - size_t maxBytesConsumed = numElements * cTypeSize; - memcpy(dstPtr, srcPtr, maxBytesConsumed); - (*tgtPtrPtr)+=(maxBytesConsumed/sizeof(**tgtPtrPtr)); -} - -static void copyStringIOData(void * const dstPtr, void * const srcPtr, uint8_T ** - const tgtPtrPtr, size_t numElements, size_t cTypeSize, uint8_T isInput) -{ - size_t maxBytesConsumed = numElements * cTypeSize; - if (isInput) { - suWriteSILStringInput(dstPtr, (int32_T)numElements, srcPtr); - } else { - suWriteSILStringOutput(dstPtr, srcPtr, (int32_T)numElements); - } /* if */ - - (*tgtPtrPtr)+=(maxBytesConsumed/sizeof(**tgtPtrPtr)); -} - -/* returns data needed by code instrumentation service */ -static CodeInstrServiceData_T* codeInstrServiceData(SimStruct *S, uint8_T - memUnitSizeBytes) -{ - CodeInstrServiceData_T* pCodeInstrServiceData = (CodeInstrServiceData_T*) - mxCalloc(1, sizeof(CodeInstrServiceData_T)); - const char * simulinkBlockPath = ssGetPath(S); - if (pCodeInstrServiceData == NULL) { - ssSetErrorStatus( S, - "Error in allocating memory for code instrumentation data through mxCalloc."); - return NULL; - } /* if */ - - pCodeInstrServiceData->infoPath = - "D:/Documents/SCHOOL/McSCert/do178/src/validation/FCC_Sys_New_harness_ert_rtw/sil"; - pCodeInstrServiceData->blockPath = simulinkBlockPath; - pCodeInstrServiceData->rootModel = ssGetPath(ssGetRootSS(S)); - pCodeInstrServiceData->memUnitSize = memUnitSizeBytes; - pCodeInstrServiceData->isProfilingEnabled = true; - pCodeInstrServiceData->inTheLoopType = 0; - pCodeInstrServiceData->silPilInterfaceFcn = - "@coder.connectivity.SimulinkInterface.getSILPILInterface"; - return pCodeInstrServiceData; -} - -static void callStopHookAndFreeSFcnMemory(SimStruct *S) -{ - closeAndFreeTargetIOFd(S); - if (ssGetPWork(S) != NULL) { - int * pCommErrorOccurred = (int *) ssGetPWorkValue(S, 4); - int * pIsXILApplicationStarted = (int *) ssGetPWorkValue(S, 5); - if ((pIsXILApplicationStarted != NULL) && (*pIsXILApplicationStarted == 1)) - { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - if (pXILUtils) { - mxArray *rhs[3]; - const char * simulinkBlockPath = ssGetPath(S); - rhs[ 0 ] = mxCreateString( - "@coder.connectivity.SimulinkInterface.getSILPILInterface"); - rhs[ 1 ] = mxCreateDoubleScalar( 0 ); - rhs[ 2 ] = mxCreateString(simulinkBlockPath); - if (xilUtilsCallMATLAB(pXILUtils, 0, NULL, 3, rhs, - "rtw.pil.SILPILInterface.sfunctionPILStopHook") - != XIL_UTILS_SUCCESS) { - } /* if */ - } /* if */ - } - } /* if */ - - if (pIsXILApplicationStarted != NULL) { - *pIsXILApplicationStarted = 0; - } /* if */ - } /* if */ - - if (ssGetPWork(S) != NULL) { - XIL_IOBuffer_T* IOBufferPtr; - XIL_RtIOStreamData_T * rtIOStreamDataPtr = (XIL_RtIOStreamData_T *) - ssGetPWorkValue(S, 0); - SIL_DEBUGGING_DATA_T * silDebuggingDataPtr = (SIL_DEBUGGING_DATA_T *) - ssGetPWorkValue(S, 2); - if (rtIOStreamDataPtr != NULL) { - { - int errorStatus = rtIOStreamUnloadLib(&rtIOStreamDataPtr->libH); - if (errorStatus) { - ssSetErrorStatus( S,"rtIOStreamUnloadLib failed."); - } /* if */ - } - - mxFree(rtIOStreamDataPtr->lib); - mxDestroyArray(rtIOStreamDataPtr->MATLABObject); - mxFree(rtIOStreamDataPtr); - ssSetPWorkValue(S, 0, NULL); - } /* if */ - - if (silDebuggingDataPtr != NULL) { - mxFree(silDebuggingDataPtr->componentBlockPath); - mxFree(silDebuggingDataPtr->SILPILInterfaceFcnStr); - mxFree(silDebuggingDataPtr); - ssSetPWorkValue(S, 2, NULL); - } /* if */ - - IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - if (IOBufferPtr != NULL) { - mxFree(IOBufferPtr->data); - mxFree(IOBufferPtr); - ssSetPWorkValue(S, 1, NULL); - } /* if */ - - closeAndFreeTargetIOFd(S); - if (ssGetPWork(S) != NULL) { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - void * pComms = (void *) ssGetPWorkValue(S, 7); - void * pXILService = (void *) ssGetPWorkValue(S, 9); - void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10); - void * pCoderAssumptionsApp = (void *) ssGetPWorkValue(S, 12); - if (pCodeInstrService != NULL) { - uint8_T memUnitSizeBytes = 1; - CodeInstrServiceData_T* pCodeInstrServiceData = codeInstrServiceData(S, - memUnitSizeBytes); - codeInstrHostAppSvcDestroy(pCodeInstrService, pCodeInstrServiceData); - mxFree(pCodeInstrServiceData); - } /* if */ - - ssSetPWorkValue(S, 10, NULL); - if (pCoderAssumptionsApp != NULL) { - coderAssumpHostAppSvcDestroy(pCoderAssumptionsApp); - ssSetPWorkValue(S, 12, NULL); - } /* if */ - - if (pXILService != NULL) { - xilHostAppSvcDestroy(pXILService); - ssSetPWorkValue(S, 9, NULL); - } /* if */ - - if (pComms != NULL) { - xilCommsDestroy(pComms); - ssSetPWorkValue(S, 7, NULL); - } /* if */ - } /* if */ - } /* if */ -} - -static boolean_T processResponseError(SimStruct * S, uint8_T ** mxMemUnitPtrPtr) -{ - uint8_T errorId = **mxMemUnitPtrPtr; - (*mxMemUnitPtrPtr)++; - if (errorId) { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString("PIL:pilverification:PILError"); - rhs[1] = mxCreateDoubleScalar(errorId); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return XILHOSTAPPSVC_ERROR; - } - } /* if */ - - return XILHOSTAPPSVC_SUCCESS; -} - -static boolean_T processResponsePrintf(SimStruct * S, uint8_T ** mxMemUnitPtrPtr) -{ - const int TARGET_IO_SUCCESS = 0; - uint8_T PRINTF_ERROR; - uint16_T PRINTF_SIZE; - - { - { - uint8_T * simDataMemUnitPtr; - simDataMemUnitPtr = (uint8_T *) &PRINTF_ERROR; - - { - size_t num_elements = 1; - - { - copyIOData(simDataMemUnitPtr, *mxMemUnitPtrPtr, &*mxMemUnitPtrPtr, - num_elements, sizeof(uint8_T)); - } - } - } - } - - { - { - uint8_T * simDataMemUnitPtr; - simDataMemUnitPtr = (uint8_T *) &PRINTF_SIZE; - - { - size_t num_elements = 1; - - { - copyIOData(simDataMemUnitPtr, *mxMemUnitPtrPtr, &*mxMemUnitPtrPtr, - num_elements, sizeof(uint16_T)); - } - } - } - } - - if (PRINTF_ERROR != TARGET_IO_SUCCESS) { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString("PIL:pil:TargetIOError"); - rhs[1] = mxCreateDoubleScalar(PRINTF_ERROR); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return XILHOSTAPPSVC_ERROR; - } - } else { - uint8_T *pPrintBuff; - pPrintBuff = *mxMemUnitPtrPtr; - if (pPrintBuff[PRINTF_SIZE-1] == '\0') { - mexPrintf("%s", pPrintBuff); - } /* if */ - } /* if */ - - (*mxMemUnitPtrPtr) = (*mxMemUnitPtrPtr) + PRINTF_SIZE; - return XILHOSTAPPSVC_SUCCESS; -} - -static boolean_T processResponseFopen(SimStruct * S, uint8_T ** mxMemUnitPtrPtr) -{ - uint16_T FOPEN_FID; - uint16_T FOPEN_NAME_SIZE; - targetIOFd_T *targetIOFdPtr; - - { - { - uint8_T * simDataMemUnitPtr; - simDataMemUnitPtr = (uint8_T *) &FOPEN_FID; - - { - size_t num_elements = 1; - - { - copyIOData(simDataMemUnitPtr, *mxMemUnitPtrPtr, &*mxMemUnitPtrPtr, - num_elements, sizeof(uint16_T)); - } - } - } - } - - { - { - uint8_T * simDataMemUnitPtr; - simDataMemUnitPtr = (uint8_T *) &FOPEN_NAME_SIZE; - - { - size_t num_elements = 1; - - { - copyIOData(simDataMemUnitPtr, *mxMemUnitPtrPtr, &*mxMemUnitPtrPtr, - num_elements, sizeof(uint16_T)); - } - } - } - } - - targetIOFdPtr = (targetIOFd_T *) ssGetPWorkValue(S, 3); - if (targetIOFdPtr != NULL) { - /* check fid increments by 1 */ - if (targetIOFdPtr->fidOffset + 1 == FOPEN_FID) { - targetIOFdPtr->fidOffset = FOPEN_FID; - growTargetIOFd(S, targetIOFdPtr, targetIOFdPtr->fidOffset + 1); - if (targetIOFdPtr->Fd != NULL) { - uint8_T *pFopenBuff; - targetIOFdPtr->Fd[targetIOFdPtr->fidOffset] = NULL; - pFopenBuff = (*mxMemUnitPtrPtr); - if (pFopenBuff[FOPEN_NAME_SIZE-1] == '\0') { - FILE * tmpFd = NULL; - tmpFd = fopen((char *) pFopenBuff,"w"); - if (tmpFd != NULL) { - /* save the file descriptor */ - targetIOFdPtr->Fd[targetIOFdPtr->fidOffset] = tmpFd; - } else { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString("PIL:pil:TargetIOFopenError"); - rhs[1] = mxCreateString((char *) pFopenBuff); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return XILHOSTAPPSVC_ERROR; - } - } /* if */ - } /* if */ - } /* if */ - } else { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString("PIL:pil:TargetIOFopenFidError"); - rhs[1] = mxCreateDoubleScalar(FOPEN_FID); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return XILHOSTAPPSVC_ERROR; - } - } /* if */ - } /* if */ - - (*mxMemUnitPtrPtr) = (*mxMemUnitPtrPtr) + FOPEN_NAME_SIZE; - return XILHOSTAPPSVC_SUCCESS; -} - -static boolean_T processResponseFprintf(SimStruct * S, uint8_T - ** mxMemUnitPtrPtr) -{ - const int TARGET_IO_SUCCESS = 0; - uint8_T FPRINTF_ERROR; - uint16_T FPRINTF_FID; - uint16_T FPRINTF_SIZE; - - { - { - uint8_T * simDataMemUnitPtr; - simDataMemUnitPtr = (uint8_T *) &FPRINTF_ERROR; - - { - size_t num_elements = 1; - - { - copyIOData(simDataMemUnitPtr, *mxMemUnitPtrPtr, &*mxMemUnitPtrPtr, - num_elements, sizeof(uint8_T)); - } - } - } - } - - { - { - uint8_T * simDataMemUnitPtr; - simDataMemUnitPtr = (uint8_T *) &FPRINTF_FID; - - { - size_t num_elements = 1; - - { - copyIOData(simDataMemUnitPtr, *mxMemUnitPtrPtr, &*mxMemUnitPtrPtr, - num_elements, sizeof(uint16_T)); - } - } - } - } - - { - { - uint8_T * simDataMemUnitPtr; - simDataMemUnitPtr = (uint8_T *) &FPRINTF_SIZE; - - { - size_t num_elements = 1; - - { - copyIOData(simDataMemUnitPtr, *mxMemUnitPtrPtr, &*mxMemUnitPtrPtr, - num_elements, sizeof(uint16_T)); - } - } - } - } - - if (FPRINTF_ERROR != TARGET_IO_SUCCESS) { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString("PIL:pil:TargetIOError"); - rhs[1] = mxCreateDoubleScalar(FPRINTF_ERROR); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return XILHOSTAPPSVC_ERROR; - } - } else { - targetIOFd_T * targetIOFdPtr = (targetIOFd_T *) ssGetPWorkValue(S, 3); - if (targetIOFdPtr != NULL) { - if (targetIOFdPtr->size > FPRINTF_FID) { - if (targetIOFdPtr->Fd[FPRINTF_FID] != NULL) { - uint8_T *pFprintfBuff; - pFprintfBuff = (*mxMemUnitPtrPtr); - if (pFprintfBuff[FPRINTF_SIZE-1] == '\0') { - fprintf(targetIOFdPtr->Fd[FPRINTF_FID], "%s", pFprintfBuff); - } /* if */ - } /* if */ - } /* if */ - } /* if */ - } /* if */ - - (*mxMemUnitPtrPtr) = (*mxMemUnitPtrPtr) + FPRINTF_SIZE ; - return XILHOSTAPPSVC_SUCCESS; -} - -static boolean_T processResponseSignalRaised(SimStruct * S, uint8_T - ** mxMemUnitPtrPtr) -{ - const char *signalStr[5] = { "SIGFPE", "SIGILL", "SIGABRT", "SIGSEGV", - "Unknown Signal" }; - - uint8_T errorId = **mxMemUnitPtrPtr; - (*mxMemUnitPtrPtr)++; - - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 3 ]; - rhs[0] = mxCreateString("Connectivity:target:CaughtTargetSignalWithStderr"); - rhs[1] = mxCreateString(signalStr[errorId]); - rhs[2] = mxCreateDoubleScalar(ssGetT(S)); - xilUtilsHandleError(pXILUtils, 3 , rhs ); - return XILHOSTAPPSVC_ERROR; - } -} - -static boolean_T processErrorAndTargetIOResponseCases(SimStruct * S, const int - responseId, uint8_T ** mxMemUnitPtrPtr) -{ - switch (responseId) { - case RESPONSE_ERROR: - { - return processResponseError(S, mxMemUnitPtrPtr); - } - - case RESPONSE_PRINTF: - { - return processResponsePrintf(S, mxMemUnitPtrPtr); - } - - case RESPONSE_FOPEN: - { - return processResponseFopen(S, mxMemUnitPtrPtr); - } - - case RESPONSE_FPRINTF: - { - return processResponseFprintf(S, mxMemUnitPtrPtr); - } - - case RESPONSE_SIGNAL_RAISED: - { - return processResponseSignalRaised(S, mxMemUnitPtrPtr); - } - - default: - { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString("PIL:pilverification:UnknownResponseId"); - rhs[1] = mxCreateDoubleScalar(responseId); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return XILHOSTAPPSVC_ERROR; - } - } - } /* switch */ -} - -static size_t getBusElementDimension(SimStruct * S, DTypeId dType, int_T - offsetIdx, const int_T ** dimsOut, int_T * numDims) -{ - int_T numDimensions = ssGetBusElementNumDimensions(S, dType, offsetIdx); - const int_T *dims = ssGetBusElementDimensions(S, dType, offsetIdx); - size_t numElements = 1; - int j = 0; - for (j = 0; j< numDimensions; j++) { - numElements *= dims[j]; - } /* for */ - - *dimsOut = dims; - *numDims = numDimensions; - return numElements; -} - -/* Process params function shared between mdlStart and mdlProcessParams */ -static boolean_T processParams(SimStruct * S) -{ - if (ssGetPWork(S) != NULL) { - int * pIsXILApplicationStarted = (int *) ssGetPWorkValue(S, 5); - if ((pIsXILApplicationStarted!=NULL) && (*pIsXILApplicationStarted==1)) { - /* update run time params */ - ssUpdateAllTunableParamsAsRunTimeParams(S); - - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - if (IOBufferPtr != NULL) { - void * pXILService = (void *) ssGetPWorkValue(S, 9); - if (pXILService != NULL) { - if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 5, 0)!= - XILHOSTAPPSVC_SUCCESS) { - return false; - } /* if */ - - if (IOBufferPtr->data != NULL) { - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - - /* write command id */ - *mxMemUnitPtr = (uint8_T) XIL_PROCESS_PARAMS_COMMAND; - mxMemUnitPtr++; - - { - { - uint8_T * simDataMemUnitPtr; - uint32_T commandDataFcnid = 0; - simDataMemUnitPtr = (uint8_T *) &commandDataFcnid; - - { - size_t num_elements = 1; - - { - copyIOData(mxMemUnitPtr, simDataMemUnitPtr, &mxMemUnitPtr, - num_elements, sizeof(uint32_T)); - } - } - } - } - } /* if */ - } /* if */ - } /* if */ - } - - { - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - - /* provide the time information to the code instrumentation service */ - { - void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10); - time_T simTime = ssGetT(S); - if (pCodeInstrService != NULL) { - codeInstrHostAppSvcSetTime(pCodeInstrService, simTime); - } /* if */ - } - - /* dispatch command to the target */ - if (commandDispatch(S, IOBufferPtr, 5)!=XILHOSTAPPSVC_SUCCESS) { - return false; - } /* if */ - - { - XILCommandResponseType commandResponseType = - XIL_COMMAND_NOT_COMPLETE; - while (commandResponseType != XIL_STEP_COMPLETE) { - /* receive command from the target */ - mwSize dataInSize = 0; - if (commandResponse(S, &dataInSize, &commandResponseType) != - XILHOSTAPPSVC_SUCCESS) { - return false; - } /* if */ - - if (dataInSize>0) { - size_t dataInMemUnitSize = dataInSize; - uint8_T responseId = 0; - uint8_T * mxMemUnitPtrEnd; - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1; - while (mxMemUnitPtr <= mxMemUnitPtrEnd) { - /* read response id */ - responseId = *mxMemUnitPtr; - mxMemUnitPtr++; - switch (responseId) { - case RESPONSE_ERROR: - case RESPONSE_PRINTF: - case RESPONSE_FOPEN: - case RESPONSE_FPRINTF: - case RESPONSE_SIGNAL_RAISED: - { - if (processErrorAndTargetIOResponseCases(S, responseId, - &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) { - return false; - } /* if */ - break; - } - - default: - { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString( - "PIL:pilverification:UnknownResponseId"); - rhs[1] = mxCreateDoubleScalar(responseId); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return false; - } - break; - } - } /* switch */ - } /* while */ - } /* if */ - } /* while */ - } - } - } - } /* if */ - } /* if */ - - return true; -} - -static boolean_T startAndSetupApplication(SimStruct *S) -{ - { - { - mxArray *rhs[4]; - const char * simulinkBlockPath = ssGetPath(S); - rhs[ 0 ] = mxCreateString( - "@coder.connectivity.SimulinkInterface.getSILPILInterface"); - rhs[ 1 ] = mxCreateDoubleScalar( 0 ); - rhs[ 2 ] = mxCreateString(simulinkBlockPath); - rhs[3] = mxCreateString("uint8"); - - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - if (xilUtilsCallMATLAB(pXILUtils, 0, 0, 4, rhs, - "rtw.pil.SILPILInterface.sfunctionPILStartHook") - !=XIL_UTILS_SUCCESS) { - return false; - } /* if */ - } - } - - { /* record that the XIL application has started */ - int * pIsXILApplicationStarted = (int *) ssGetPWorkValue(S, 5); - *pIsXILApplicationStarted = 1; - ssSetPWorkValue(S, 5, pIsXILApplicationStarted); - } - } - - { - mxArray *rhs[3]; - mxArray *lhs[5]; - const char * simulinkBlockPath = ssGetPath(S); - rhs[ 0 ] = mxCreateString( - "@coder.connectivity.SimulinkInterface.getSILPILInterface"); - rhs[ 1 ] = mxCreateDoubleScalar( 0 ); - rhs[ 2 ] = mxCreateString(simulinkBlockPath); - - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - if (xilUtilsCallMATLAB(pXILUtils, 5, lhs, 3, rhs, - "rtw.pil.SILPILInterface.sfunctionGetRtIOStreamInfoHook") - !=XIL_UTILS_SUCCESS) { - return false; - } /* if */ - } - - { - XIL_RtIOStreamData_T* rtIOStreamDataPtr = (XIL_RtIOStreamData_T*) mxCalloc - (1, sizeof(XIL_RtIOStreamData_T)); - if (rtIOStreamDataPtr == NULL) { - ssSetErrorStatus( S,"Error in allocating memory through mxCalloc."); - return false; - } /* if */ - - rtIOStreamDataPtr->lib = mxArrayToString(lhs[0]); - rtIOStreamDataPtr->MATLABObject = mxDuplicateArray(lhs[1]); - mexMakeMemoryPersistent(rtIOStreamDataPtr); - mexMakeMemoryPersistent(rtIOStreamDataPtr->lib); - mexMakeArrayPersistent(rtIOStreamDataPtr->MATLABObject); - rtIOStreamDataPtr->streamID = *mxGetPr(lhs[2]); - rtIOStreamDataPtr->recvTimeout = *mxGetPr(lhs[3]); - rtIOStreamDataPtr->sendTimeout = *mxGetPr(lhs[4]); - rtIOStreamDataPtr->isRtIOStreamCCall = 1; - rtIOStreamDataPtr->ioMxClassID = mxUINT8_CLASS; - rtIOStreamDataPtr->ioDataSize = sizeof(uint8_T); - rtIOStreamDataPtr->targetRecvBufferSizeBytes = 50000; - rtIOStreamDataPtr->targetSendBufferSizeBytes = 50000; - - { - int errorStatus = rtIOStreamLoadLib(&rtIOStreamDataPtr->libH, - rtIOStreamDataPtr->lib); - if (errorStatus) { - ssSetErrorStatus( S,"rtIOStreamLoadLib failed."); - return false; - } /* if */ - } - - ssSetPWorkValue(S, 0, rtIOStreamDataPtr); - } - - { - int i; - for (i=0; i<5; i++) { - mxDestroyArray(lhs[i]); - } /* for */ - } - } - - { - XIL_IOBuffer_T* IOBufferPtr = (XIL_IOBuffer_T *) mxCalloc(1, sizeof - (XIL_IOBuffer_T)); - if (IOBufferPtr == NULL) { - ssSetErrorStatus( S,"Error in allocating memory through mxCalloc."); - return false; - } /* if */ - - mexMakeMemoryPersistent(IOBufferPtr); - ssSetPWorkValue(S, 1, IOBufferPtr); - } - - { - SIL_DEBUGGING_DATA_T* silDebuggingDataPtr = (SIL_DEBUGGING_DATA_T*) mxCalloc - (1, sizeof(SIL_DEBUGGING_DATA_T)); - const char * simulinkBlockPath = ssGetPath(S); - if (silDebuggingDataPtr == NULL) { - ssSetErrorStatus( S, - "Error in allocating memory through mxCalloc for SIL_DEBUGGING_DATA_T."); - return false; - } /* if */ - - silDebuggingDataPtr->componentBlockPath = strcpy((char *) mxCalloc(strlen - (simulinkBlockPath)+1, sizeof(char)), simulinkBlockPath); - silDebuggingDataPtr->SILPILInterfaceFcnStr = strcpy((char*) mxCalloc(57, - sizeof(char)), "@coder.connectivity.SimulinkInterface.getSILPILInterface"); - silDebuggingDataPtr->inTheLoopType = 0; - mexMakeMemoryPersistent(silDebuggingDataPtr); - mexMakeMemoryPersistent(silDebuggingDataPtr->componentBlockPath); - mexMakeMemoryPersistent(silDebuggingDataPtr->SILPILInterfaceFcnStr); - ssSetPWorkValue(S, 2, silDebuggingDataPtr); - } - - { - targetIOFd_T * targetIOFdPtr = (targetIOFd_T *) mxCalloc(1, sizeof - (targetIOFd_T)); - if (targetIOFdPtr == NULL) { - return false; - } /* if */ - - mexMakeMemoryPersistent(targetIOFdPtr); - targetIOFdPtr->size = 0; - targetIOFdPtr->Fd = NULL; - targetIOFdPtr->fidOffset = -1; - ssSetPWorkValue(S, 3, targetIOFdPtr); - } - - { - void* pConnectionOptions = NULL; - void* pComms = NULL; - void* pXILService = NULL; - void* pMemUnitTransformer = NULL; - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - uint8_T memUnitSizeBytes = 1; - uint8_T ioDataTypeSizeBytes = sizeof(uint8_T); - XIL_RtIOStreamData_T * rtIOStreamDataPtr = (XIL_RtIOStreamData_T *) - ssGetPWorkValue(S, 0); - SIL_DEBUGGING_DATA_T * silDebuggingDataPtr = (SIL_DEBUGGING_DATA_T *) - ssGetPWorkValue(S, 2); - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - void* pCodeInstrService = NULL; - CodeInstrServiceData_T* pCodeInstrServiceData = codeInstrServiceData(S, - memUnitSizeBytes); - void * pCoderAssumptionsApp = NULL; - if (xilCommsCreate(&pComms, rtIOStreamDataPtr, silDebuggingDataPtr, - memUnitSizeBytes, pMemUnitTransformer, pXILUtils, 0) != - XILCOMMS_RTIOSTREAM_SUCCESS) { - return false; - } /* if */ - - if (xilHostAppSvcCreate(&pXILService, pComms, pXILUtils, IOBufferPtr, - memUnitSizeBytes, ioDataTypeSizeBytes, 0) != - XILHOSTAPPSVC_SUCCESS) { - return false; - } /* if */ - - { - void * pCodeInstrMultiRunData = NULL; - pCodeInstrMultiRunData = (void *) ssGetPWorkValue(S, 11); - if (codeInstrHostAppSvcCreate(&pCodeInstrService, pCodeInstrServiceData, - pComms, pMemUnitTransformer, 32, pXILUtils, memUnitSizeBytes, 0, - pCodeInstrMultiRunData) != CODEINSTRHOSTAPPSVC_SUCCESS) { - mxFree(pCodeInstrServiceData); - return false; - } /* if */ - - mxFree(pCodeInstrServiceData); - } - - { - mxArray * codeGenComponent = mxCreateString("FCC_Sys_New_harness"); - mxArray *rhs[3]; - const char * simulinkBlockPath = ssGetPath(S); - rhs[ 0 ] = mxCreateString( - "@coder.connectivity.SimulinkInterface.getSILPILInterface"); - rhs[ 1 ] = mxCreateDoubleScalar( 0 ); - rhs[ 2 ] = mxCreateString(simulinkBlockPath); - if (coderAssumpHostAppSvcCreate(&pCoderAssumptionsApp, pComms, pXILUtils, - 0, 1, codeGenComponent, rhs[0], rhs[1], rhs[2], 1, 0, 1) != - CODERASSUMPHOSTAPPSVC_SUCCESS) { - return false; - } /* if */ - } - - xilCommsRegisterApplication(pComms, pXILService); - xilCommsRegisterApplication(pComms, pCodeInstrService); - xilCommsRegisterApplication(pComms, pCoderAssumptionsApp); - ssSetPWorkValue(S, 9, pXILService); - ssSetPWorkValue(S, 7, pComms); - ssSetPWorkValue(S, 6, pXILUtils); - ssSetPWorkValue(S, 10, pCodeInstrService); - ssSetPWorkValue(S, 12, pCoderAssumptionsApp); - } - - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - if (IOBufferPtr != NULL) { - void * pXILService = (void *) ssGetPWorkValue(S, 9); - if (pXILService != NULL) { - if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 5, 0)!= - XILHOSTAPPSVC_SUCCESS) { - return false; - } /* if */ - - if (IOBufferPtr->data != NULL) { - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - - /* write command id */ - *mxMemUnitPtr = (uint8_T) XIL_INIT_COMMAND; - mxMemUnitPtr++; - - { - { - uint8_T * simDataMemUnitPtr; - uint32_T commandDataFcnid = 0; - simDataMemUnitPtr = (uint8_T *) &commandDataFcnid; - - { - size_t num_elements = 1; - - { - copyIOData(mxMemUnitPtr, simDataMemUnitPtr, &mxMemUnitPtr, - num_elements, sizeof(uint32_T)); - } - } - } - } - } /* if */ - } /* if */ - } /* if */ - } - - { - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - - /* provide the time information to the code instrumentation service */ - { - void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10); - time_T simTime = ssGetT(S); - if (pCodeInstrService != NULL) { - codeInstrHostAppSvcSetTime(pCodeInstrService, simTime); - } /* if */ - } - - /* dispatch command to the target */ - if (commandDispatch(S, IOBufferPtr, 5)!=XILHOSTAPPSVC_SUCCESS) { - return false; - } /* if */ - - { - XILCommandResponseType commandResponseType = XIL_COMMAND_NOT_COMPLETE; - while (commandResponseType != XIL_STEP_COMPLETE) { - /* receive command from the target */ - mwSize dataInSize = 0; - if (commandResponse(S, &dataInSize, &commandResponseType) != - XILHOSTAPPSVC_SUCCESS) { - return false; - } /* if */ - - if (dataInSize>0) { - size_t dataInMemUnitSize = dataInSize; - uint8_T responseId = 0; - uint8_T * mxMemUnitPtrEnd; - -#define RESPONSE_TYPE_SIZE 7 - - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1; - while (mxMemUnitPtr <= mxMemUnitPtrEnd) { - /* read response id */ - responseId = *mxMemUnitPtr; - mxMemUnitPtr++; - switch (responseId) { - case RESPONSE_ERROR: - case RESPONSE_PRINTF: - case RESPONSE_FOPEN: - case RESPONSE_FPRINTF: - case RESPONSE_SIGNAL_RAISED: - { - if (processErrorAndTargetIOResponseCases(S, responseId, - &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) { - return false; - } /* if */ - break; - } - - case RESPONSE_TYPE_SIZE: - { - uint8_T typeBytes; - uint8_T typeId = *mxMemUnitPtr; - mxMemUnitPtr++; - typeBytes = *mxMemUnitPtr; - mxMemUnitPtr++; - switch (typeId) { - case SS_SINGLE: - { - if (typeBytes != 4) { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 3 ]; - rhs[0] = mxCreateString( - "PIL:pilverification:SingleUnsupported"); - rhs[1] = mxCreateDoubleScalar(4); - rhs[2] = mxCreateDoubleScalar(typeBytes); - xilUtilsHandleError(pXILUtils, 3 , rhs ); - return false; - } - } /* if */ - break; - } - - case SS_DOUBLE: - { - if (typeBytes != 8) { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 3 ]; - rhs[0] = mxCreateString( - "PIL:pilverification:DoubleUnsupported"); - rhs[1] = mxCreateDoubleScalar(8); - rhs[2] = mxCreateDoubleScalar(typeBytes); - xilUtilsHandleError(pXILUtils, 3 , rhs ); - return false; - } - } /* if */ - break; - } - - default: - { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString( - "PIL:pilverification:UnknownTypeId"); - rhs[1] = mxCreateDoubleScalar(typeId); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return false; - } - break; - } - } /* switch */ - break; - } - - default: - { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString( - "PIL:pilverification:UnknownResponseId"); - rhs[1] = mxCreateDoubleScalar(responseId); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return false; - } - break; - } - } /* switch */ - } /* while */ - } /* if */ - } /* while */ - } - } - } - - /* initialize parameters */ - if (!processParams(S)) { - return false; - } /* if */ - - { - /* DataInterface: output, 1 */ - void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S, 0); - } - - { - /* DataInterface: output, 2 */ - void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S, 1); - } - - { - /* DataInterface: output, 3 */ - void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S, 2); - } - - return true; -} - -static void sendInitializeCommand(SimStruct *S) -{ - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - if (IOBufferPtr != NULL) { - void * pXILService = (void *) ssGetPWorkValue(S, 9); - if (pXILService != NULL) { - if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 5, 0)!= - XILHOSTAPPSVC_SUCCESS) { - return; - } /* if */ - - if (IOBufferPtr->data != NULL) { - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - - /* write command id */ - *mxMemUnitPtr = (uint8_T) XIL_INITIALIZE_COMMAND; - mxMemUnitPtr++; - - { - { - uint8_T * simDataMemUnitPtr; - uint32_T commandDataFcnid = 0; - simDataMemUnitPtr = (uint8_T *) &commandDataFcnid; - - { - size_t num_elements = 1; - - { - copyIOData(mxMemUnitPtr, simDataMemUnitPtr, &mxMemUnitPtr, - num_elements, sizeof(uint32_T)); - } - } - } - } - } /* if */ - } /* if */ - } /* if */ - } - - { - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - - /* provide the time information to the code instrumentation service */ - { - void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10); - time_T simTime = ssGetT(S); - if (pCodeInstrService != NULL) { - codeInstrHostAppSvcSetTime(pCodeInstrService, simTime); - } /* if */ - } - - /* dispatch command to the target */ - if (commandDispatch(S, IOBufferPtr, 5)!=XILHOSTAPPSVC_SUCCESS) { - return; - } /* if */ - - { - XILCommandResponseType commandResponseType = XIL_COMMAND_NOT_COMPLETE; - while (commandResponseType != XIL_STEP_COMPLETE) { - /* receive command from the target */ - mwSize dataInSize = 0; - if (commandResponse(S, &dataInSize, &commandResponseType) != - XILHOSTAPPSVC_SUCCESS) { - return; - } /* if */ - - if (dataInSize>0) { - size_t dataInMemUnitSize = dataInSize; - uint8_T responseId = 0; - uint8_T * mxMemUnitPtrEnd; - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1; - while (mxMemUnitPtr <= mxMemUnitPtrEnd) { - /* read response id */ - responseId = *mxMemUnitPtr; - mxMemUnitPtr++; - switch (responseId) { - case RESPONSE_ERROR: - case RESPONSE_PRINTF: - case RESPONSE_FOPEN: - case RESPONSE_FPRINTF: - case RESPONSE_SIGNAL_RAISED: - { - if (processErrorAndTargetIOResponseCases(S, responseId, - &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) { - return; - } /* if */ - break; - } - - case RESPONSE_OUTPUT_PRE_DATA: - { - break; - } - - case RESPONSE_OUTPUT_DATA: - { - { - /* DataInterface: output, 1 */ - void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S, - 0); - - { - uint8_T * simDataMemUnitPtr; - - /* DataInterface: output, 1 */ - simDataMemUnitPtr = ( uint8_T *) dataInterfacePtr; - - { - size_t num_elements = 1; - - { - copyIOData(simDataMemUnitPtr, mxMemUnitPtr, - &mxMemUnitPtr, num_elements, sizeof(int16_T)); - } - } - } - } - - { - /* DataInterface: output, 2 */ - void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S, - 1); - - { - uint8_T * simDataMemUnitPtr; - - /* DataInterface: output, 2 */ - simDataMemUnitPtr = ( uint8_T *) dataInterfacePtr; - - { - size_t num_elements = 1; - - { - copyIOData(simDataMemUnitPtr, mxMemUnitPtr, - &mxMemUnitPtr, num_elements, sizeof(int16_T)); - } - } - } - } - - { - /* DataInterface: output, 3 */ - void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S, - 2); - - { - uint8_T * simDataMemUnitPtr; - - /* DataInterface: output, 3 */ - simDataMemUnitPtr = ( uint8_T *) dataInterfacePtr; - - { - size_t num_elements = 1; - - { - copyIOData(simDataMemUnitPtr, mxMemUnitPtr, - &mxMemUnitPtr, num_elements, sizeof(int16_T)); - } - } - } - } - break; - } - - default: - { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString( - "PIL:pilverification:UnknownResponseId"); - rhs[1] = mxCreateDoubleScalar(responseId); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return; - } - break; - } - } /* switch */ - } /* while */ - } /* if */ - } /* while */ - } - } - } -} - -/* This function checks the attributes of tunable parameters. */ -#define MDL_CHECK_PARAMETERS -#if defined(MDL_CHECK_PARAMETERS) && defined(MATLAB_MEX_FILE) - -static void mdlCheckParameters(SimStruct *S) -{ -} - -#endif /* MDL_CHECK_PARAMETERS */ - -static void mdlInitializeSizes(SimStruct *S) -{ - ssSetNumSFcnParams(S, 0); /* Number of expected parameters */ - if (ssGetNumSFcnParams(S) == ssGetSFcnParamsCount(S)) { - -#if defined(MDL_CHECK_PARAMETERS) - - mdlCheckParameters(S); - -#endif - - if (ssGetErrorStatus(S) != (NULL)) - return; - } else { - /* Parameter mismatch will be reported by Simulink */ - return; - } - - ssSetNumContStates(S, 0); - ssSetNumDiscStates(S, 0); - - /* no support for SimState */ - ssSetSimStateCompliance(S, DISALLOW_SIM_STATE); - - /* Allow signal dimensions greater than 2 */ - ssAllowSignalsWithMoreThan2D(S); - - /* Allow fixed-point data types with 33 or more bits */ - ssFxpSetU32BitRegionCompliant(S,1); - ssSetRTWGeneratedSFcn(S, 4); - if (!ssSetNumInputPorts(S, 0)) - return; - if (!ssSetNumOutputPorts(S, 3)) - return; - - /* Output Port 0 */ - if (ssGetSimMode(S) != SS_SIMMODE_SIZES_CALL_ONLY) { - DTypeId dataTypeId = INVALID_DTYPE_ID; - - /* set datatype */ - dataTypeId = 4; - ssSetOutputPortDataType(S, 0, dataTypeId); - } - - /* dimensions */ - { - DECL_AND_INIT_DIMSINFO(di); - int_T dims[ 1 ] = { 1 }; - - di.numDims = 1; - di.dims = dims; - di.width = 1; - ssSetOutputPortDimensionInfo(S, 0, &di); - } - - ssSetOutputPortDimensionsMode(S, 0, FIXED_DIMS_MODE); - - /* complexity */ - ssSetOutputPortComplexSignal(S, 0, COMPLEX_NO); - - /* using hybrid block and port based sample times */ - ssSetOutputPortSampleTime(S, 0, 0.001); - ssSetOutputPortOffsetTime(S, 0, 0); - - /* sampling mode */ - ssSetOutputPortFrameData(S, 0, FRAME_NO); - - /* units */ - if (ssGetSimMode(S) != SS_SIMMODE_SIZES_CALL_ONLY) { - -#if defined (MATLAB_MEX_FILE) - - UnitId unitIdReg; - ssRegisterUnitFromExpr( - S, - "", - &unitIdReg); - if (unitIdReg == INVALID_UNIT_ID) - return; - ssSetOutputPortUnit(S, 0, unitIdReg); - -#endif - - } /* Output Port 1 */ - - if (ssGetSimMode(S) != SS_SIMMODE_SIZES_CALL_ONLY) { - DTypeId dataTypeId = INVALID_DTYPE_ID; - - /* set datatype */ - dataTypeId = 4; - ssSetOutputPortDataType(S, 1, dataTypeId); - } - - /* dimensions */ - { - DECL_AND_INIT_DIMSINFO(di); - int_T dims[ 1 ] = { 1 }; - - di.numDims = 1; - di.dims = dims; - di.width = 1; - ssSetOutputPortDimensionInfo(S, 1, &di); - } - - ssSetOutputPortDimensionsMode(S, 1, FIXED_DIMS_MODE); - - /* complexity */ - ssSetOutputPortComplexSignal(S, 1, COMPLEX_NO); - - /* using hybrid block and port based sample times */ - ssSetOutputPortSampleTime(S, 1, 0.001); - ssSetOutputPortOffsetTime(S, 1, 0); - - /* sampling mode */ - ssSetOutputPortFrameData(S, 1, FRAME_NO); - - /* units */ - if (ssGetSimMode(S) != SS_SIMMODE_SIZES_CALL_ONLY) { - -#if defined (MATLAB_MEX_FILE) - - UnitId unitIdReg; - ssRegisterUnitFromExpr( - S, - "", - &unitIdReg); - if (unitIdReg == INVALID_UNIT_ID) - return; - ssSetOutputPortUnit(S, 1, unitIdReg); - -#endif - - } /* Output Port 2 */ - - if (ssGetSimMode(S) != SS_SIMMODE_SIZES_CALL_ONLY) { - DTypeId dataTypeId = INVALID_DTYPE_ID; - - /* set datatype */ - dataTypeId = 4; - ssSetOutputPortDataType(S, 2, dataTypeId); - } - - /* dimensions */ - { - DECL_AND_INIT_DIMSINFO(di); - int_T dims[ 1 ] = { 1 }; - - di.numDims = 1; - di.dims = dims; - di.width = 1; - ssSetOutputPortDimensionInfo(S, 2, &di); - } - - ssSetOutputPortDimensionsMode(S, 2, FIXED_DIMS_MODE); - - /* complexity */ - ssSetOutputPortComplexSignal(S, 2, COMPLEX_NO); - - /* using hybrid block and port based sample times */ - ssSetOutputPortSampleTime(S, 2, 0.001); - ssSetOutputPortOffsetTime(S, 2, 0); - - /* sampling mode */ - ssSetOutputPortFrameData(S, 2, FRAME_NO); - - /* units */ - if (ssGetSimMode(S) != SS_SIMMODE_SIZES_CALL_ONLY) { - -#if defined (MATLAB_MEX_FILE) - - UnitId unitIdReg; - ssRegisterUnitFromExpr( - S, - "", - &unitIdReg); - if (unitIdReg == INVALID_UNIT_ID) - return; - ssSetOutputPortUnit(S, 2, unitIdReg); - -#endif - - } /* using hybrid block and port based sample times */ - - ssSetNumSampleTimes(S, 2); - - /* this s-function is sample time dependent: do not allow sub-models containing it to inherit sample times */ - ssSetModelReferenceSampleTimeInheritanceRule(S, - DISALLOW_SAMPLE_TIME_INHERITANCE); - if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S) ) { - ssSetNumPWork(S, 0); - } else { - ssSetNumPWork(S, 13); - } /* if */ - - ssSetNumRWork(S, 0); - ssSetNumIWork(S, 0); - ssSetNumModes(S, 0); - ssSetNumNonsampledZCs(S, 0); - - { - uint_T options = 0; - - /* using hybrid block and port based sample times */ - options |= SS_OPTION_PORT_SAMPLE_TIMES_ASSIGNED; - - /* do not allow (including inheritance of) constant block-based sample times*/ - options |= SS_OPTION_DISALLOW_CONSTANT_SAMPLE_TIME; - options |= SS_OPTION_SUPPORTS_ALIAS_DATA_TYPES; - options |= SS_OPTION_CALL_TERMINATE_ON_EXIT; - ssSetOptions(S, options); - } - - ssSetModelReferenceNormalModeSupport(S, MDL_START_AND_MDL_PROCESS_PARAMS_OK); -} - -#define MDL_SET_INPUT_PORT_SAMPLE_TIME /* Change to #undef to remove function */ -#if defined(MDL_SET_INPUT_PORT_SAMPLE_TIME) && defined(MATLAB_MEX_FILE) - -static void mdlSetInputPortSampleTime(SimStruct *S, int_T portIdx, real_T - sampleTime, real_T offsetTime) -{ - /* sample times are fully specified */ -} - -#endif /* MDL_SET_INPUT_PORT_SAMPLE_TIME */ - -#define MDL_SET_OUTPUT_PORT_SAMPLE_TIME /* Change to #undef to remove function */ -#if defined(MDL_SET_OUTPUT_PORT_SAMPLE_TIME) && defined(MATLAB_MEX_FILE) - -static void mdlSetOutputPortSampleTime(SimStruct *S, int_T portIdx, real_T - sampleTime, real_T offsetTime) -{ - /* sample times are fully specified */ -} - -#endif /* MDL_SET_OUTPUT_PORT_SAMPLE_TIME */ - -static void mdlInitializeSampleTimes(SimStruct *S) -{ - if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) { - return; - } /* if */ - - /* using hybrid block and port based sample times */ - ssSetSampleTime(S, 0, 0.001); - ssSetOffsetTime(S, 0, 0); - ssSetSampleTime(S, 1, 0.01); - ssSetOffsetTime(S, 1, 0); -} - -#define MDL_SETUP_RUNTIME_RESOURCES /* Change to #undef to remove function */ -#if defined(MDL_SETUP_RUNTIME_RESOURCES) - -static void mdlSetupRuntimeResources(SimStruct *S) -{ - if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) { - return; - } /* if */ - - { - mxArray * error = NULL; - error = mexCallMATLABWithTrap( 0, NULL, 0, NULL, - "rtw.pil.checkEmbeddedCoderInstalled"); - if (error != NULL) { - mexCallMATLAB( 0, NULL, 1, &error, "throw"); - } /* if */ - } - - { - mxArray * lhs[1]; - mxArray * error = NULL; - char * installVersion; - error = mexCallMATLABWithTrap(1, lhs, 0, NULL, "rtw.pil.getPILVersion"); - if (error != NULL) { - mxDestroyArray(error); - ssSetErrorStatus( S, - "Failed to determine the installed In-the-Loop version for comparison against the In-the-Loop s-function version (release 9.8 (R2020a)_13). To avoid this error, remove the In-the-Loop s-function from your MATLAB path (e.g. delete it or move to a clean working directory)."); - return; - } /* if */ - - if (mxIsEmpty(lhs[0])) { - ssSetErrorStatus( S,"rtw.pil.getPILVersion returned empty!"); - return; - } /* if */ - - installVersion = mxArrayToString(lhs[0]); - mxDestroyArray(lhs[0]); - if (installVersion == NULL) { - ssSetErrorStatus( S,"Failed to determine installed In-the-Loop version."); - return; - } /* if */ - - if (strcmp(installVersion, "9.8 (R2020a)_13") != 0) { - ssSetErrorStatus( S, - "The In-the-Loop s-function is incompatible with the installed In-the-Loop version (see ver('matlab')); it was generated for release 9.8 (R2020a)_13. To avoid this error, remove the In-the-Loop s-function from your MATLAB path (e.g. delete it or move to a clean working directory)"); - return; - } /* if */ - - mxFree(installVersion); - } - - { - int retValXILUtils = XIL_UTILS_SUCCESS; - void* pXILUtils = NULL; - retValXILUtils = xilSimulinkUtilsCreate(&pXILUtils, S); - if (retValXILUtils!=XIL_UTILS_SUCCESS) { - ssSetErrorStatus( S,"Error instantiating XIL Utils!"); - return; - } /* if */ - - ssSetPWorkValue(S, 6, pXILUtils); - } - - { - int * pCommErrorOccurred = (int *) mxCalloc(1, sizeof(int)); - if (pCommErrorOccurred == NULL) { - ssSetErrorStatus( S, - "Error in allocating memory for pCommErrorOccurred through mxCalloc."); - return; - } /* if */ - - *pCommErrorOccurred = 0; - mexMakeMemoryPersistent(pCommErrorOccurred); - ssSetPWorkValue(S, 4, pCommErrorOccurred); - } - - { - int * pIsXILApplicationStarted = (int *) mxCalloc(1, sizeof(int)); - if (pIsXILApplicationStarted == NULL) { - ssSetErrorStatus( S, - "Error in allocating memory for pIsXILApplicationStarted through mxCalloc."); - return; - } /* if */ - - *pIsXILApplicationStarted = 0; - mexMakeMemoryPersistent(pIsXILApplicationStarted); - ssSetPWorkValue(S, 5, pIsXILApplicationStarted); - } - - { - mxArray *rhs[4]; - mxArray *lhs[1]; - char * rootLoggingPath; - const char * simulinkBlockPath = ssGetPath(S); - rhs[ 0 ] = mxCreateString( - "@coder.connectivity.SimulinkInterface.getSILPILInterface"); - rhs[ 1 ] = mxCreateDoubleScalar( 0 ); - rhs[ 2 ] = mxCreateString(simulinkBlockPath); - rhs[3] = mxCreateString(ssGetPath(ssGetRootSS(S))); - - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - if (xilUtilsCallMATLAB(pXILUtils, 1, lhs, 4, rhs, - "rtw.pil.SILPILInterface.sfunctionInitializeHook") - !=XIL_UTILS_SUCCESS) { - return; - } /* if */ - } - - rootLoggingPath = mxArrayToString(lhs[0]); - mxDestroyArray(lhs[0]); - mxFree(rootLoggingPath); - } - - { - void * multiRunDataPtr = xilSimulinkUtilsStaticInitMultiRunInstrData(); - ssSetPWorkValue(S, 11, multiRunDataPtr); - } -} - -#endif /* MDL_SETUP_RUNTIME_RESOURCES */ - -#define MDL_SIM_STATUS_CHANGE /* Change to #undef to remove function */ -#if defined(MDL_SIM_STATUS_CHANGE) - -static void mdlSimStatusChange(SimStruct *S, ssSimStatusChangeType simStatus) -{ - if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) { - return; - } /* if */ - - if (simStatus == SIM_PAUSE) { - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - if (IOBufferPtr != NULL) { - void * pXILService = (void *) ssGetPWorkValue(S, 9); - if (pXILService != NULL) { - if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 5, 0)!= - XILHOSTAPPSVC_SUCCESS) { - return ; - } /* if */ - - if (IOBufferPtr->data != NULL) { - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - - /* write command id */ - *mxMemUnitPtr = (uint8_T) XIL_PAUSE_COMMAND; - mxMemUnitPtr++; - - { - { - uint8_T * simDataMemUnitPtr; - uint32_T commandDataFcnid = 0; - simDataMemUnitPtr = (uint8_T *) &commandDataFcnid; - - { - size_t num_elements = 1; - - { - copyIOData(mxMemUnitPtr, simDataMemUnitPtr, &mxMemUnitPtr, - num_elements, sizeof(uint32_T)); - } - } - } - } - } /* if */ - } /* if */ - } /* if */ - } - - { - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - - /* provide the time information to the code instrumentation service */ - { - void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10); - time_T simTime = ssGetT(S); - if (pCodeInstrService != NULL) { - codeInstrHostAppSvcSetTime(pCodeInstrService, simTime); - } /* if */ - } - - /* dispatch command to the target */ - if (commandDispatch(S, IOBufferPtr, 5)!=XILHOSTAPPSVC_SUCCESS) { - return ; - } /* if */ - - { - XILCommandResponseType commandResponseType = XIL_COMMAND_NOT_COMPLETE; - while (commandResponseType != XIL_STEP_COMPLETE) { - /* receive command from the target */ - mwSize dataInSize = 0; - if (commandResponse(S, &dataInSize, &commandResponseType) != - XILHOSTAPPSVC_SUCCESS) { - return ; - } /* if */ - - if (dataInSize>0) { - size_t dataInMemUnitSize = dataInSize; - uint8_T responseId = 0; - uint8_T * mxMemUnitPtrEnd; - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1; - while (mxMemUnitPtr <= mxMemUnitPtrEnd) { - /* read response id */ - responseId = *mxMemUnitPtr; - mxMemUnitPtr++; - switch (responseId) { - case RESPONSE_ERROR: - case RESPONSE_PRINTF: - case RESPONSE_FOPEN: - case RESPONSE_FPRINTF: - case RESPONSE_SIGNAL_RAISED: - { - if (processErrorAndTargetIOResponseCases(S, responseId, - &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) { - return ; - } /* if */ - break; - } - - default: - { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString( - "PIL:pilverification:UnknownResponseId"); - rhs[1] = mxCreateDoubleScalar(responseId); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return ; - } - break; - } - } /* switch */ - } /* while */ - } /* if */ - } /* while */ - } - } - } - - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - if (pXILUtils) { - mxArray *rhs[3]; - const char * simulinkBlockPath = ssGetPath(S); - rhs[ 0 ] = mxCreateString( - "@coder.connectivity.SimulinkInterface.getSILPILInterface"); - rhs[ 1 ] = mxCreateDoubleScalar( 0 ); - rhs[ 2 ] = mxCreateString(simulinkBlockPath); - if (xilUtilsCallMATLAB(pXILUtils, 0, NULL, 3, rhs, - "rtw.pil.SILPILInterface.sfunctionPILPauseHook") - != XIL_UTILS_SUCCESS) { - return ; - } /* if */ - } /* if */ - } - } /* if */ -} - -#endif /* MDL_SIM_STATUS_CHANGE */ - -#define MDL_START /* Change to #undef to remove function */ -#if defined(MDL_START) - -static void mdlStart(SimStruct *S) -{ - if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) { - return; - } /* if */ - - /* no solver check required for multitasking scheduling */ - /* Check current start time is consistent with the generated code */ - if (ssGetTStart(S) != 0) { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString("PIL:pil:XILBlockStartTimeError"); - rhs[1] = mxCreateString("0"); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return; - } - } /* if */ - - { - int * pIsXILApplicationStartedLocal = (int *) ssGetPWorkValue(S, 5); - if (pIsXILApplicationStartedLocal != NULL && (*pIsXILApplicationStartedLocal) - != 0) { - ssSetErrorStatus( S, - "Failed to start the application: another instance is already running."); - return ; - } /* if */ - } - - { - boolean_T applicationStarted = startAndSetupApplication(S); - if (!applicationStarted) { - return; - } /* if */ - } - - sendInitializeCommand(S); -} - -#endif /* MDL_START */ - -static void XILoutputTID01(SimStruct *S, int tid) -{ - time_T taskTime = ssGetTaskTime(S, 0); - - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - if (IOBufferPtr != NULL) { - void * pXILService = (void *) ssGetPWorkValue(S, 9); - if (pXILService != NULL) { - if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 9, 0)!= - XILHOSTAPPSVC_SUCCESS) { - return; - } /* if */ - - if (IOBufferPtr->data != NULL) { - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - - /* write command id */ - *mxMemUnitPtr = (uint8_T) XIL_OUTPUT_COMMAND; - mxMemUnitPtr++; - - { - { - uint8_T * simDataMemUnitPtr; - uint32_T commandDataFcnidTID[2] = { 0, 1 }; - - simDataMemUnitPtr = (uint8_T *) &commandDataFcnidTID[0]; - - { - size_t num_elements = 2; - - { - copyIOData(mxMemUnitPtr, simDataMemUnitPtr, &mxMemUnitPtr, - num_elements, sizeof(uint32_T)); - } - } - } - } - } /* if */ - } /* if */ - } /* if */ - } - - { - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - - /* provide the time information to the code instrumentation service */ - { - void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10); - if (pCodeInstrService != NULL) { - codeInstrHostAppSvcSetTime(pCodeInstrService, taskTime); - } /* if */ - } - - /* dispatch command to the target */ - if (commandDispatch(S, IOBufferPtr, 9)!=XILHOSTAPPSVC_SUCCESS) { - return; - } /* if */ - - { - XILCommandResponseType commandResponseType = XIL_COMMAND_NOT_COMPLETE; - while (commandResponseType != XIL_STEP_COMPLETE) { - /* receive command from the target */ - mwSize dataInSize = 0; - if (commandResponse(S, &dataInSize, &commandResponseType) != - XILHOSTAPPSVC_SUCCESS) { - return; - } /* if */ - - if (dataInSize>0) { - size_t dataInMemUnitSize = dataInSize; - uint8_T responseId = 0; - uint8_T * mxMemUnitPtrEnd; - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1; - while (mxMemUnitPtr <= mxMemUnitPtrEnd) { - /* read response id */ - responseId = *mxMemUnitPtr; - mxMemUnitPtr++; - switch (responseId) { - case RESPONSE_ERROR: - case RESPONSE_PRINTF: - case RESPONSE_FOPEN: - case RESPONSE_FPRINTF: - case RESPONSE_SIGNAL_RAISED: - { - if (processErrorAndTargetIOResponseCases(S, responseId, - &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) { - return; - } /* if */ - break; - } - - case RESPONSE_OUTPUT_PRE_DATA: - { - break; - } - - case RESPONSE_OUTPUT_DATA: - { - { - /* DataInterface: output, 1 */ - void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S, - 0); - - { - uint8_T * simDataMemUnitPtr; - - /* DataInterface: output, 1 */ - simDataMemUnitPtr = ( uint8_T *) dataInterfacePtr; - - { - size_t num_elements = 1; - - { - copyIOData(simDataMemUnitPtr, mxMemUnitPtr, - &mxMemUnitPtr, num_elements, sizeof(int16_T)); - } - } - } - } - - { - /* DataInterface: output, 2 */ - void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S, - 1); - - { - uint8_T * simDataMemUnitPtr; - - /* DataInterface: output, 2 */ - simDataMemUnitPtr = ( uint8_T *) dataInterfacePtr; - - { - size_t num_elements = 1; - - { - copyIOData(simDataMemUnitPtr, mxMemUnitPtr, - &mxMemUnitPtr, num_elements, sizeof(int16_T)); - } - } - } - } - - { - /* DataInterface: output, 3 */ - void * dataInterfacePtr = (void *) ssGetOutputPortSignal(S, - 2); - - { - uint8_T * simDataMemUnitPtr; - - /* DataInterface: output, 3 */ - simDataMemUnitPtr = ( uint8_T *) dataInterfacePtr; - - { - size_t num_elements = 1; - - { - copyIOData(simDataMemUnitPtr, mxMemUnitPtr, - &mxMemUnitPtr, num_elements, sizeof(int16_T)); - } - } - } - } - break; - } - - default: - { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString( - "PIL:pilverification:UnknownResponseId"); - rhs[1] = mxCreateDoubleScalar(responseId); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return; - } - break; - } - } /* switch */ - } /* while */ - } /* if */ - } /* while */ - } - } - } - - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - if (dataInSize>0) { - size_t dataInMemUnitSize = dataInSize; - uint8_T responseId = 0; - uint8_T * mxMemUnitPtrEnd; - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1; - while (mxMemUnitPtr <= mxMemUnitPtrEnd) { - /* read response id */ - responseId = *mxMemUnitPtr; - mxMemUnitPtr++; - switch (responseId) { - case RESPONSE_ERROR: - case RESPONSE_PRINTF: - case RESPONSE_FOPEN: - case RESPONSE_FPRINTF: - case RESPONSE_SIGNAL_RAISED: - { - if (processErrorAndTargetIOResponseCases(S, responseId, - &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) { - return; - } /* if */ - break; - } - - default: - { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString("PIL:pilverification:UnknownResponseId"); - rhs[1] = mxCreateDoubleScalar(responseId); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return; - } - break; - } - } /* switch */ - } /* while */ - } /* if */ - } -} - -static void XILoutputTID02(SimStruct *S, int tid) -{ - time_T taskTime = ssGetTaskTime(S, 1); - - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - if (IOBufferPtr != NULL) { - void * pXILService = (void *) ssGetPWorkValue(S, 9); - if (pXILService != NULL) { - if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 9, 0)!= - XILHOSTAPPSVC_SUCCESS) { - return; - } /* if */ - - if (IOBufferPtr->data != NULL) { - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - - /* write command id */ - *mxMemUnitPtr = (uint8_T) XIL_OUTPUT_COMMAND; - mxMemUnitPtr++; - - { - { - uint8_T * simDataMemUnitPtr; - uint32_T commandDataFcnidTID[2] = { 0, 2 }; - - simDataMemUnitPtr = (uint8_T *) &commandDataFcnidTID[0]; - - { - size_t num_elements = 2; - - { - copyIOData(mxMemUnitPtr, simDataMemUnitPtr, &mxMemUnitPtr, - num_elements, sizeof(uint32_T)); - } - } - } - } - } /* if */ - } /* if */ - } /* if */ - } - - { - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - - /* provide the time information to the code instrumentation service */ - { - void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10); - if (pCodeInstrService != NULL) { - codeInstrHostAppSvcSetTime(pCodeInstrService, taskTime); - } /* if */ - } - - /* dispatch command to the target */ - if (commandDispatch(S, IOBufferPtr, 9)!=XILHOSTAPPSVC_SUCCESS) { - return; - } /* if */ - - { - XILCommandResponseType commandResponseType = XIL_COMMAND_NOT_COMPLETE; - while (commandResponseType != XIL_STEP_COMPLETE) { - /* receive command from the target */ - mwSize dataInSize = 0; - if (commandResponse(S, &dataInSize, &commandResponseType) != - XILHOSTAPPSVC_SUCCESS) { - return; - } /* if */ - - if (dataInSize>0) { - size_t dataInMemUnitSize = dataInSize; - uint8_T responseId = 0; - uint8_T * mxMemUnitPtrEnd; - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1; - while (mxMemUnitPtr <= mxMemUnitPtrEnd) { - /* read response id */ - responseId = *mxMemUnitPtr; - mxMemUnitPtr++; - switch (responseId) { - case RESPONSE_ERROR: - case RESPONSE_PRINTF: - case RESPONSE_FOPEN: - case RESPONSE_FPRINTF: - case RESPONSE_SIGNAL_RAISED: - { - if (processErrorAndTargetIOResponseCases(S, responseId, - &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) { - return; - } /* if */ - break; - } - - default: - { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString( - "PIL:pilverification:UnknownResponseId"); - rhs[1] = mxCreateDoubleScalar(responseId); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return; - } - break; - } - } /* switch */ - } /* while */ - } /* if */ - } /* while */ - } - } - } - - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - if (dataInSize>0) { - size_t dataInMemUnitSize = dataInSize; - uint8_T responseId = 0; - uint8_T * mxMemUnitPtrEnd; - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1; - while (mxMemUnitPtr <= mxMemUnitPtrEnd) { - /* read response id */ - responseId = *mxMemUnitPtr; - mxMemUnitPtr++; - switch (responseId) { - case RESPONSE_ERROR: - case RESPONSE_PRINTF: - case RESPONSE_FOPEN: - case RESPONSE_FPRINTF: - case RESPONSE_SIGNAL_RAISED: - { - if (processErrorAndTargetIOResponseCases(S, responseId, - &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) { - return; - } /* if */ - break; - } - - default: - { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString("PIL:pilverification:UnknownResponseId"); - rhs[1] = mxCreateDoubleScalar(responseId); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return; - } - break; - } - } /* switch */ - } /* while */ - } /* if */ - } -} - -#define MDL_PROCESS_PARAMETERS -#if defined(MDL_PROCESS_PARAMETERS) - -static void mdlProcessParameters(SimStruct *S) -{ - if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) { - return; - } /* if */ - - processParams(S); -} - -#endif /* MDL_PROCESS_PARAMETERS */ - -#define MDL_INITIALIZE_CONDITIONS /* Change to #undef to remove function */ -#if defined(MDL_INITIALIZE_CONDITIONS) - -static void mdlInitializeConditions(SimStruct *S) -{ - if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) { - return; - } /* if */ - - if (!ssIsFirstInitCond(S)) { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString("PIL:pil:NoInitConditionsToInvoke"); - rhs[1] = mxCreateString(ssGetPath(S)); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - return; - } - } /* if */ -} - -#endif /* MDL_INITIALIZE_CONDITIONS */ - -#define MDL_SET_WORK_WIDTHS /* Change to #undef to remove function */ -#if defined(MDL_SET_WORK_WIDTHS) - -static void mdlSetWorkWidths(SimStruct *S) -{ -} - -#endif /* MDL_SET_WORK_WIDTHS */ - -static void mdlOutputs(SimStruct *S, int_T tid) -{ - if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) { - return; - } /* if */ - - /* Multirate, multitasking scheduling */ - /* check for sample time hit associated with task 1 */ - if (ssIsSampleHit(S, 0, tid)) { - XILoutputTID01(S, tid); - } /* if */ - - /* Multirate, multitasking scheduling */ - /* check for sample time hit associated with task 2 */ - if (ssIsSampleHit(S, 1, tid)) { - XILoutputTID02(S, tid); - } /* if */ -} - -#define MDL_UPDATE -#if defined(MDL_UPDATE) - -static void mdlUpdate(SimStruct *S, int_T tid) -{ -} - -#endif - -static void mdlTerminate(SimStruct *S) -{ - int commErrorOccurred = 0; - int isXILApplicationStarted = 0; - - { - if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) { - return; - } /* if */ - - if (ssGetPWork(S) != NULL) { - int * pCommErrorOccurred = (int *) ssGetPWorkValue(S, 4); - int * pIsXILApplicationStarted = (int *) ssGetPWorkValue(S, 5); - if (pCommErrorOccurred != NULL) { - commErrorOccurred = *pCommErrorOccurred; - } /* if */ - - if (pIsXILApplicationStarted != NULL) { - isXILApplicationStarted = *pIsXILApplicationStarted; - } /* if */ - } /* if */ - } - - if (isXILApplicationStarted) { - if (!commErrorOccurred) { - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - if (IOBufferPtr != NULL) { - void * pXILService = (void *) ssGetPWorkValue(S, 9); - if (pXILService != NULL) { - if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 5, 0)!= - XILHOSTAPPSVC_SUCCESS) { - callStopHookAndFreeSFcnMemory(S); - return; - } /* if */ - - if (IOBufferPtr->data != NULL) { - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - - /* write command id */ - *mxMemUnitPtr = (uint8_T) XIL_TERMINATE_COMMAND; - mxMemUnitPtr++; - - { - { - uint8_T * simDataMemUnitPtr; - uint32_T commandDataFcnid = 0; - simDataMemUnitPtr = (uint8_T *) &commandDataFcnid; - - { - size_t num_elements = 1; - - { - copyIOData(mxMemUnitPtr, simDataMemUnitPtr, &mxMemUnitPtr, - num_elements, sizeof(uint32_T)); - } - } - } - } - } /* if */ - } /* if */ - } /* if */ - } - - { - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - - /* provide the time information to the code instrumentation service */ - { - void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10); - time_T simTime = ssGetT(S); - if (pCodeInstrService != NULL) { - codeInstrHostAppSvcSetTime(pCodeInstrService, simTime); - } /* if */ - } - - /* dispatch command to the target */ - if (commandDispatch(S, IOBufferPtr, 5)!=XILHOSTAPPSVC_SUCCESS) { - callStopHookAndFreeSFcnMemory(S); - return; - } /* if */ - - { - XILCommandResponseType commandResponseType = - XIL_COMMAND_NOT_COMPLETE; - while (commandResponseType != XIL_STEP_COMPLETE) { - /* receive command from the target */ - mwSize dataInSize = 0; - if (commandResponse(S, &dataInSize, &commandResponseType) != - XILHOSTAPPSVC_SUCCESS) { - callStopHookAndFreeSFcnMemory(S); - return; - } /* if */ - - if (dataInSize>0) { - size_t dataInMemUnitSize = dataInSize; - uint8_T responseId = 0; - uint8_T * mxMemUnitPtrEnd; - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - mxMemUnitPtrEnd = mxMemUnitPtr + dataInMemUnitSize - 1; - while (mxMemUnitPtr <= mxMemUnitPtrEnd) { - /* read response id */ - responseId = *mxMemUnitPtr; - mxMemUnitPtr++; - switch (responseId) { - case RESPONSE_ERROR: - case RESPONSE_PRINTF: - case RESPONSE_FOPEN: - case RESPONSE_FPRINTF: - case RESPONSE_SIGNAL_RAISED: - { - if (processErrorAndTargetIOResponseCases(S, responseId, - &mxMemUnitPtr)== XILHOSTAPPSVC_ERROR) { - callStopHookAndFreeSFcnMemory(S); - return; - } /* if */ - break; - } - - default: - { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 2 ]; - rhs[0] = mxCreateString( - "PIL:pilverification:UnknownResponseId"); - rhs[1] = mxCreateDoubleScalar(responseId); - xilUtilsHandleError(pXILUtils, 2 , rhs ); - callStopHookAndFreeSFcnMemory(S); - return; - } - break; - } - } /* switch */ - } /* while */ - } /* if */ - } /* while */ - } - } - } - - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - if (IOBufferPtr != NULL) { - void * pXILService = (void *) ssGetPWorkValue(S, 9); - if (pXILService != NULL) { - if (xilHostAppSvcGrowIOBuffer(pXILService, IOBufferPtr, 1, 0)!= - XILHOSTAPPSVC_SUCCESS) { - callStopHookAndFreeSFcnMemory(S); - return; - } /* if */ - - if (IOBufferPtr->data != NULL) { - mxMemUnitPtr = (uint8_T *) IOBufferPtr->data; - - /* write command id */ - *mxMemUnitPtr = (uint8_T) XIL_SHUTDOWN_COMMAND; - mxMemUnitPtr++; - } /* if */ - } /* if */ - } /* if */ - } - - { - { - uint8_T * mxMemUnitPtr; - mwSize dataInSize = 0; - XIL_IOBuffer_T * IOBufferPtr = (XIL_IOBuffer_T *) ssGetPWorkValue(S, 1); - - /* provide the time information to the code instrumentation service */ - { - void * pCodeInstrService = (void *) ssGetPWorkValue(S, 10); - time_T simTime = ssGetT(S); - if (pCodeInstrService != NULL) { - codeInstrHostAppSvcSetTime(pCodeInstrService, simTime); - } /* if */ - } - - /* dispatch command to the target */ - if (commandDispatch(S, IOBufferPtr, 1)!=XILHOSTAPPSVC_SUCCESS) { - callStopHookAndFreeSFcnMemory(S); - return; - } /* if */ - } - } - } /* if */ - } /* if */ - - callStopHookAndFreeSFcnMemory(S); -} - -#define MDL_CLEANUP_RUNTIME_RESOURCES /* Change to #undef to remove function */ -#if defined(MDL_CLEANUP_RUNTIME_RESOURCES) - -static void mdlCleanupRuntimeResources(SimStruct *S) -{ - if (ssRTWGenIsCodeGen(S) || ssIsExternalSim(S)) { - return; - } /* if */ - - { - void * pCodeInstrMultiRunData = NULL; - pCodeInstrMultiRunData = (void *) ssGetPWorkValue(S, 11); - xilSimulinkUtilsStaticFreeMultiRunInstrData(pCodeInstrMultiRunData); - } - - if (ssGetPWork(S) != NULL) { - int * pIsXILApplicationStarted = (int *) ssGetPWorkValue(S, 5); - int * pCommErrorOccurred = (int *) ssGetPWorkValue(S, 4); - if (pIsXILApplicationStarted != NULL) { - mxFree(pIsXILApplicationStarted); - ssSetPWorkValue(S, 5, NULL); - } /* if */ - - if (pCommErrorOccurred != NULL) { - mxFree(pCommErrorOccurred); - ssSetPWorkValue(S, 4, NULL); - } /* if */ - } /* if */ - - if (ssGetPWork(S) != NULL) { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - if (pXILUtils != NULL) { - xilUtilsDestroy(pXILUtils); - ssSetPWorkValue(S, 6, NULL); - } /* if */ - } /* if */ -} - -#endif /* MDL_CLEANUP_RUNTIME_RESOURCES */ - -#define MDL_ENABLE -#if defined(MDL_ENABLE) - -static void mdlEnable(SimStruct *S) -{ - if (ssGetT(S) != ssGetTStart(S)) { - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 3 ]; - rhs[0] = mxCreateString("PIL:pil:EnableDisableCallbackError"); - rhs[1] = mxCreateString("enable"); - rhs[2] = mxCreateString("enable"); - xilUtilsHandleError(pXILUtils, 3 , rhs ); - return; - } - } /* if */ -} - -#endif /* MDL_ENABLE */ - -#define MDL_DISABLE -#if defined(MDL_DISABLE) - -static void mdlDisable(SimStruct *S) -{ - { - void * pXILUtils = (void *) ssGetPWorkValue(S, 6); - mxArray * rhs[ 3 ]; - rhs[0] = mxCreateString("PIL:pil:EnableDisableCallbackError"); - rhs[1] = mxCreateString("disable"); - rhs[2] = mxCreateString("disable"); - xilUtilsHandleError(pXILUtils, 3 , rhs ); - return; - } -} - -#endif /* MDL_DISABLE */ - -/* Required S-function trailer */ -#ifdef MATLAB_MEX_FILE /* Is this file being compiled as a MEX-file? */ -#include "simulink.c" /* MEX-file interface mechanism */ -#include "fixedpoint.c" -#else -#error Assertion failed: file must be compiled as a MEX-file -#endif diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/buildInfo.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/buildInfo.mat deleted file mode 100644 index c12c7074a0528270eee06705034adf8ef28a6db5..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/buildInfo.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/builderInfo.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/builderInfo.mat deleted file mode 100644 index 96b947b84bb6c70cbd26a235c5179c1832f72767..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/builderInfo.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/codeinstr_data_stream.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/codeinstr_data_stream.obj deleted file mode 100644 index 7f70ae262bfc2a7804a34566860036d69bff710f..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/codeinstr_data_stream.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/codeinstr_rtiostream.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/codeinstr_rtiostream.obj deleted file mode 100644 index 05d1e4e6c1ec10b660cd3285689d35fb32bc3f23..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/codeinstr_rtiostream.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/coder_assumptions_app.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/coder_assumptions_app.obj deleted file mode 100644 index 8590a14cb554f0d940ad3dad2c604c6f08cd149b..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/coder_assumptions_app.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/coder_assumptions_data_stream.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/coder_assumptions_data_stream.obj deleted file mode 100644 index ec5059f65e8bfeba55f6bcf1474829f0d03b0226..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/coder_assumptions_data_stream.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/coder_assumptions_rtiostream.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/coder_assumptions_rtiostream.obj deleted file mode 100644 index e83b9f81159564278b7c39cf2b518f3b76cac4ca..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/coder_assumptions_rtiostream.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/host_timer_x86.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/host_timer_x86.obj deleted file mode 100644 index ec30fe4729942f730a2f567d94a347ebf6f2650a..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/host_timer_x86.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.bat b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.bat deleted file mode 100644 index 8deb7537bbc262b55e7f92357cbe441dfb0a2e93..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.bat +++ /dev/null @@ -1,15 +0,0 @@ -@if not "%MINGW_ROOT%" == "" (@set "PATH=%PATH%;%MINGW_ROOT%") - - -call "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a\bin\win64\checkMATLABRootForDriveMap.exe" "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a" > mlEnv.txt -for /f %%a in (mlEnv.txt) do set "%%a"\n -cd . - -if "%1"=="" ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f FCC_Sys_New_harness.mk all) else ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f FCC_Sys_New_harness.mk %1) -@if errorlevel 1 goto error_exit - -exit 0 - -:error_exit -echo The make command returned an error of %errorlevel% -exit 1 diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.c b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.c deleted file mode 100644 index e2dc3de112d7633ecc5af0f3d243daf95ca70647..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.c +++ /dev/null @@ -1,569 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: FCC_Sys_New_harness.c - * - * Code generated for Simulink model 'FCC_Sys_New_harness'. - * - * Model version : 1.91 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:26 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#include "FCC_Sys_New_harness.h" - -/* Private macros used by the generated code to access rtModel */ -#ifndef rtmIsMajorTimeStep -# define rtmIsMajorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MAJOR_TIME_STEP) -#endif - -#ifndef rtmIsMinorTimeStep -# define rtmIsMinorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MINOR_TIME_STEP) -#endif - -#ifndef rtmSetTPtr -# define rtmSetTPtr(rtm, val) ((rtm)->Timing.t = (val)) -#endif - -/* Used by FromWorkspace Block: '/FromWs' */ -#ifndef rtInterpolate -# define rtInterpolate(v1,v2,f1,f2) (((v1)==(v2))?((double)(v1)): (((f1)*((double)(v1)))+((f2)*((double)(v2))))) -#endif - -#ifndef rtRound -# define rtRound(v) ( ((v) >= 0) ? floor((v) + 0.5) : ceil((v) - 0.5) ) -#endif - -rtTimingBridge FCC_Sys_New_harness_TimingBrdg; - -/* Block signals and states (default storage) */ -DW_FCC_Sys_New_harness_T FCC_Sys_New_harness_DW; - -/* External outputs (root outports fed by signals with default storage) */ -ExtY_FCC_Sys_New_harness_T FCC_Sys_New_harness_Y; - -/* Real-time model */ -RT_MODEL_FCC_Sys_New_harness_T FCC_Sys_New_harness_M_; -RT_MODEL_FCC_Sys_New_harness_T *const FCC_Sys_New_harness_M = - &FCC_Sys_New_harness_M_; - -/* Model step function for TID0 */ -void FCC_Sys_New_harness_step0(void) /* Sample time: [0.0s, 0.0s] */ -{ - real_T v; - - /* Update the flag to indicate when data transfers from - * Sample time: [0.001s, 0.0s] to Sample time: [0.01s, 0.0s] */ - FCC_Sys_New_harness_M->Timing.RateInteraction.b_TID1_2 = - (FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2 == 0); - (FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2)++; - if ((FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2) > 9) { - FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2 = 0; - } - - /* FromWorkspace: '/FromWs' */ - { - real_T *pDataValues = (real_T *) FCC_Sys_New_harness_DW.FromWs_PWORK.DataPtr; - real_T *pTimeValues = (real_T *) FCC_Sys_New_harness_DW.FromWs_PWORK.TimePtr; - int_T currTimeIndex = FCC_Sys_New_harness_DW.FromWs_IWORK.PrevIndex; - real_T t = FCC_Sys_New_harness_M->Timing.t[0]; - - /* Get index */ - if (t <= pTimeValues[0]) { - currTimeIndex = 0; - } else if (t >= pTimeValues[11]) { - currTimeIndex = 10; - } else { - if (t < pTimeValues[currTimeIndex]) { - while (t < pTimeValues[currTimeIndex]) { - currTimeIndex--; - } - } else { - while (t >= pTimeValues[currTimeIndex + 1]) { - currTimeIndex++; - } - } - } - - FCC_Sys_New_harness_DW.FromWs_IWORK.PrevIndex = currTimeIndex; - - /* Post output */ - { - real_T t1 = pTimeValues[currTimeIndex]; - real_T t2 = pTimeValues[currTimeIndex + 1]; - if (t1 == t2) { - if (t < t1) { - { - int_T elIdx; - for (elIdx = 0; elIdx < 27; ++elIdx) { - (&FCC_Sys_New_harness_DW.FromWs[0])[elIdx] = - pDataValues[currTimeIndex]; - pDataValues += 12; - } - } - } else { - { - int_T elIdx; - for (elIdx = 0; elIdx < 27; ++elIdx) { - (&FCC_Sys_New_harness_DW.FromWs[0])[elIdx] = - pDataValues[currTimeIndex + 1]; - pDataValues += 12; - } - } - } - } else { - real_T f1 = (t2 - t) / (t2 - t1); - real_T f2 = 1.0 - f1; - real_T d1; - real_T d2; - int_T TimeIndex= currTimeIndex; - - { - int_T elIdx; - for (elIdx = 0; elIdx < 27; ++elIdx) { - d1 = pDataValues[TimeIndex]; - d2 = pDataValues[TimeIndex + 1]; - (&FCC_Sys_New_harness_DW.FromWs[0])[elIdx] = (real_T) rtInterpolate - (d1, d2, f1, f2); - pDataValues += 12; - } - } - } - } - } - - /* DataTypeConversion: '/Cast1' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[0]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[0] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[0]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Cast1 = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Cast1 = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Cast1 = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast1' */ - - /* DataTypeConversion: '/Cast2' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[1]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[1] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[1]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Cast2 = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Cast2 = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Cast2 = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast2' */ - - /* DataTypeConversion: '/Cast3' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[2]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[2] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[2]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Cast3 = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Cast3 = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Cast3 = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast3' */ - - /* ModelReference: '/FCC_New' incorporates: - * Outport: '/Actuator1' - * Outport: '/Actuator2' - * Outport: '/Actuator3' - */ - profileStart_F_02840e440c240744(1U); /* original_line:221 */FCC_NewTID0(&FCC_Sys_New_harness_DW.Cast1, &FCC_Sys_New_harness_DW.Cast2, - &FCC_Sys_New_harness_DW.Cast3, &FCC_Sys_New_harness_Y.Actuator1, - &FCC_Sys_New_harness_Y.Actuator2, &FCC_Sys_New_harness_Y.Actuator3);profileEnd_FCC_Sys_New_harness(1U); /* original_line:223 */ - - /* RateTransition: '/Sync4' incorporates: - * RateTransition: '/Sync10' - * RateTransition: '/Sync14' - * RateTransition: '/Sync21' - * RateTransition: '/Sync5' - * RateTransition: '/Sync6' - */ - if (FCC_Sys_New_harness_M->Timing.RateInteraction.TID1_2 == 1) { - /* DataTypeConversion: '/Cast4' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[3]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[3] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[3]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Sync4_Buffer = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Sync4_Buffer = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Sync4_Buffer = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast4' */ - - /* DataTypeConversion: '/Cast5' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[4]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[4] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[4]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Sync5_Buffer = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Sync5_Buffer = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Sync5_Buffer = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast5' */ - - /* DataTypeConversion: '/Cast6' */ - v = fabs(FCC_Sys_New_harness_DW.FromWs[5]); - if (v < 4.503599627370496E+15) { - if (v >= 0.5) { - v = floor(FCC_Sys_New_harness_DW.FromWs[5] + 0.5); - } else { - v = 0.0; - } - } else { - v = FCC_Sys_New_harness_DW.FromWs[5]; - } - - if (v < 32768.0) { - if (v >= -32768.0) { - FCC_Sys_New_harness_DW.Sync6_Buffer = (int16_T)v; - } else { - FCC_Sys_New_harness_DW.Sync6_Buffer = MIN_int16_T; - } - } else { - FCC_Sys_New_harness_DW.Sync6_Buffer = MAX_int16_T; - } - - /* End of DataTypeConversion: '/Cast6' */ - FCC_Sys_New_harness_DW.Sync10_Buffer = FCC_Sys_New_harness_DW.FromWs[9]; - - /* RateTransition: '/Sync11' */ - FCC_Sys_New_harness_DW.Sync11_Buffer = FCC_Sys_New_harness_DW.FromWs[10]; - - /* RateTransition: '/Sync12' */ - FCC_Sys_New_harness_DW.Sync12_Buffer = FCC_Sys_New_harness_DW.FromWs[11]; - - /* RateTransition: '/Sync13' incorporates: - * DataTypeConversion: '/Cast13' - */ - FCC_Sys_New_harness_DW.Sync13_Buffer = (FCC_Sys_New_harness_DW.FromWs[12] != - 0.0); - - /* RateTransition: '/Sync7' */ - FCC_Sys_New_harness_DW.Sync7_Buffer = FCC_Sys_New_harness_DW.FromWs[6]; - - /* RateTransition: '/Sync8' */ - FCC_Sys_New_harness_DW.Sync8_Buffer = FCC_Sys_New_harness_DW.FromWs[7]; - - /* RateTransition: '/Sync9' */ - FCC_Sys_New_harness_DW.Sync9_Buffer = FCC_Sys_New_harness_DW.FromWs[8]; - FCC_Sys_New_harness_DW.Sync14_Buffer = FCC_Sys_New_harness_DW.FromWs[13]; - - /* RateTransition: '/Sync15' */ - FCC_Sys_New_harness_DW.Sync15_Buffer = FCC_Sys_New_harness_DW.FromWs[14]; - - /* RateTransition: '/Sync16' */ - FCC_Sys_New_harness_DW.Sync16_Buffer = FCC_Sys_New_harness_DW.FromWs[15]; - - /* RateTransition: '/Sync17' */ - FCC_Sys_New_harness_DW.Sync17_Buffer = FCC_Sys_New_harness_DW.FromWs[16]; - - /* RateTransition: '/Sync18' */ - FCC_Sys_New_harness_DW.Sync18_Buffer = FCC_Sys_New_harness_DW.FromWs[17]; - - /* RateTransition: '/Sync19' */ - FCC_Sys_New_harness_DW.Sync19_Buffer = FCC_Sys_New_harness_DW.FromWs[18]; - - /* RateTransition: '/Sync20' incorporates: - * DataTypeConversion: '/Cast20' - */ - FCC_Sys_New_harness_DW.Sync20_Buffer = (FCC_Sys_New_harness_DW.FromWs[19] != - 0.0); - FCC_Sys_New_harness_DW.Sync21_Buffer = FCC_Sys_New_harness_DW.FromWs[20]; - - /* RateTransition: '/Sync22' */ - FCC_Sys_New_harness_DW.Sync22_Buffer = FCC_Sys_New_harness_DW.FromWs[21]; - - /* RateTransition: '/Sync23' */ - FCC_Sys_New_harness_DW.Sync23_Buffer = FCC_Sys_New_harness_DW.FromWs[22]; - - /* RateTransition: '/Sync24' */ - FCC_Sys_New_harness_DW.Sync24_Buffer = FCC_Sys_New_harness_DW.FromWs[23]; - - /* RateTransition: '/Sync25' */ - FCC_Sys_New_harness_DW.Sync25_Buffer = FCC_Sys_New_harness_DW.FromWs[24]; - - /* RateTransition: '/Sync26' */ - FCC_Sys_New_harness_DW.Sync26_Buffer = FCC_Sys_New_harness_DW.FromWs[25]; - - /* RateTransition: '/Sync27' incorporates: - * DataTypeConversion: '/Cast27' - */ - FCC_Sys_New_harness_DW.Sync27_Buffer = (FCC_Sys_New_harness_DW.FromWs[26] != - 0.0); - } - - /* End of RateTransition: '/Sync4' */ - - /* Update absolute time */ - /* The "clockTick0" counts the number of times the code of this task has - * been executed. The absolute time is the multiplication of "clockTick0" - * and "Timing.stepSize0". Size of "clockTick0" ensures timer will not - * overflow during the application lifespan selected. - */ - FCC_Sys_New_harness_M->Timing.t[0] = - ((time_T)(++FCC_Sys_New_harness_M->Timing.clockTick0)) * - FCC_Sys_New_harness_M->Timing.stepSize0; - - /* Update absolute time */ - /* The "clockTick1" counts the number of times the code of this task has - * been executed. The resolution of this integer timer is 0.001, which is the step size - * of the task. Size of "clockTick1" ensures timer will not overflow during the - * application lifespan selected. - */ - FCC_Sys_New_harness_M->Timing.clockTick1++; -} - -/* Model step function for TID2 */ -void FCC_Sys_New_harness_step2(void) /* Sample time: [0.01s, 0.0s] */ -{ - /* local block i/o variables */ - AHRS_Bus rtb_AHRS11; - AHRS_Bus rtb_AHRS21; - AHRS_Bus rtb_AHRS31; - int16_T rtb_Sync4; - int16_T rtb_Sync5; - int16_T rtb_Sync6; - - /* RateTransition: '/Sync4' */ - rtb_Sync4 = FCC_Sys_New_harness_DW.Sync4_Buffer; - - /* RateTransition: '/Sync5' */ - rtb_Sync5 = FCC_Sys_New_harness_DW.Sync5_Buffer; - - /* RateTransition: '/Sync6' */ - rtb_Sync6 = FCC_Sys_New_harness_DW.Sync6_Buffer; - - /* BusCreator: '/AHRS1(1)' incorporates: - * RateTransition: '/Sync10' - * RateTransition: '/Sync11' - * RateTransition: '/Sync12' - * RateTransition: '/Sync13' - * RateTransition: '/Sync7' - * RateTransition: '/Sync8' - * RateTransition: '/Sync9' - */ - rtb_AHRS11.theta = FCC_Sys_New_harness_DW.Sync7_Buffer; - rtb_AHRS11.phi = FCC_Sys_New_harness_DW.Sync8_Buffer; - rtb_AHRS11.psi = FCC_Sys_New_harness_DW.Sync9_Buffer; - rtb_AHRS11.q = FCC_Sys_New_harness_DW.Sync10_Buffer; - rtb_AHRS11.p = FCC_Sys_New_harness_DW.Sync11_Buffer; - rtb_AHRS11.r = FCC_Sys_New_harness_DW.Sync12_Buffer; - rtb_AHRS11.valid = FCC_Sys_New_harness_DW.Sync13_Buffer; - - /* BusCreator: '/AHRS2(1)' incorporates: - * RateTransition: '/Sync14' - * RateTransition: '/Sync15' - * RateTransition: '/Sync16' - * RateTransition: '/Sync17' - * RateTransition: '/Sync18' - * RateTransition: '/Sync19' - * RateTransition: '/Sync20' - */ - rtb_AHRS21.theta = FCC_Sys_New_harness_DW.Sync14_Buffer; - rtb_AHRS21.phi = FCC_Sys_New_harness_DW.Sync15_Buffer; - rtb_AHRS21.psi = FCC_Sys_New_harness_DW.Sync16_Buffer; - rtb_AHRS21.q = FCC_Sys_New_harness_DW.Sync17_Buffer; - rtb_AHRS21.p = FCC_Sys_New_harness_DW.Sync18_Buffer; - rtb_AHRS21.r = FCC_Sys_New_harness_DW.Sync19_Buffer; - rtb_AHRS21.valid = FCC_Sys_New_harness_DW.Sync20_Buffer; - - /* BusCreator: '/AHRS3(1)' incorporates: - * RateTransition: '/Sync21' - * RateTransition: '/Sync22' - * RateTransition: '/Sync23' - * RateTransition: '/Sync24' - * RateTransition: '/Sync25' - * RateTransition: '/Sync26' - * RateTransition: '/Sync27' - */ - rtb_AHRS31.theta = FCC_Sys_New_harness_DW.Sync21_Buffer; - rtb_AHRS31.phi = FCC_Sys_New_harness_DW.Sync22_Buffer; - rtb_AHRS31.psi = FCC_Sys_New_harness_DW.Sync23_Buffer; - rtb_AHRS31.q = FCC_Sys_New_harness_DW.Sync24_Buffer; - rtb_AHRS31.p = FCC_Sys_New_harness_DW.Sync25_Buffer; - rtb_AHRS31.r = FCC_Sys_New_harness_DW.Sync26_Buffer; - rtb_AHRS31.valid = FCC_Sys_New_harness_DW.Sync27_Buffer; - - /* ModelReference: '/FCC_New' incorporates: - * Outport: '/Actuator1' - * Outport: '/Actuator2' - * Outport: '/Actuator3' - */ - profileStart_F_02840e440c240744(2U); /* original_line:469 */FCC_NewTID1(&rtb_Sync4, &rtb_Sync5, &rtb_Sync6, &rtb_AHRS11, &rtb_AHRS21, - &rtb_AHRS31);profileEnd_FCC_Sys_New_harness(2U); /* original_line:470 */ -} - -/* Model initialize function */ -void FCC_Sys_New_harness_initialize(void) -{ - /* Registration code */ - { - /* Setup solver object */ - rtsiSetSimTimeStepPtr(&FCC_Sys_New_harness_M->solverInfo, - &FCC_Sys_New_harness_M->Timing.simTimeStep); - rtsiSetTPtr(&FCC_Sys_New_harness_M->solverInfo, &rtmGetTPtr - (FCC_Sys_New_harness_M)); - rtsiSetStepSizePtr(&FCC_Sys_New_harness_M->solverInfo, - &FCC_Sys_New_harness_M->Timing.stepSize0); - rtsiSetErrorStatusPtr(&FCC_Sys_New_harness_M->solverInfo, - (&rtmGetErrorStatus(FCC_Sys_New_harness_M))); - rtsiSetRTModelPtr(&FCC_Sys_New_harness_M->solverInfo, FCC_Sys_New_harness_M); - } - - rtsiSetSimTimeStep(&FCC_Sys_New_harness_M->solverInfo, MAJOR_TIME_STEP); - rtsiSetSolverName(&FCC_Sys_New_harness_M->solverInfo,"FixedStepDiscrete"); - rtmSetTPtr(FCC_Sys_New_harness_M, &FCC_Sys_New_harness_M->Timing.tArray[0]); - FCC_Sys_New_harness_M->Timing.stepSize0 = 0.001; - - { - static uint32_T *clockTickPtrs[3]; - static real_T *taskTimePtrs[3]; - static boolean_T *rateTransitionPtrs[(3 * 3)]; - FCC_Sys_New_harness_TimingBrdg.nTasks = 3; - clockTickPtrs[0] = &(FCC_Sys_New_harness_M->Timing.clockTick0); - clockTickPtrs[1] = &(FCC_Sys_New_harness_M->Timing.clockTick1); - clockTickPtrs[2] = (NULL); - FCC_Sys_New_harness_TimingBrdg.clockTick = clockTickPtrs; - FCC_Sys_New_harness_TimingBrdg.clockTickH = (NULL); - rateTransitionPtrs[1*3 + 2] = - &(FCC_Sys_New_harness_M->Timing.RateInteraction.b_TID1_2); - FCC_Sys_New_harness_TimingBrdg.rateTransition = rateTransitionPtrs; - taskTimePtrs[0] = &(FCC_Sys_New_harness_M->Timing.t[0]); - taskTimePtrs[1] = (NULL); - taskTimePtrs[2] = (NULL); - FCC_Sys_New_harness_TimingBrdg.taskTime = taskTimePtrs; - } - - /* Model Initialize function for ModelReference Block: '/FCC_New' */ - FCC_New_initialize(rtmGetErrorStatusPointer(FCC_Sys_New_harness_M), - &FCC_Sys_New_harness_TimingBrdg, 1, 2); - - /* Start for FromWorkspace: '/FromWs' */ - { - static real_T pTimeValues0[] = { 0.0, 0.15, 0.15, 0.18, 0.18, 0.192, 0.192, - 0.26, 0.26, 0.27, 0.27, 0.271 } ; - - static real_T pDataValues0[] = { -32722.0, -32722.0, 0.0, 0.0, 0.0, 0.0, - -32728.0, -32728.0, 0.0, 0.0, 0.0, 0.0, -32671.0, -32671.0, 0.0, 0.0, 0.0, - 0.0, -32721.0, -32721.0, 0.0, 0.0, 0.0, 0.0, -32711.0, -32711.0, 0.0, 0.0, - 0.0, 0.0, -32720.0, -32720.0, 0.0, 0.0, 0.0, 0.0, -32722.0, -32722.0, 0.0, - 0.0, 0.0, 0.0, -32684.0, -32684.0, 0.0, 0.0, 0.0, 0.0, -32711.0, -32711.0, - 0.0, 0.0, 0.0, 0.0, -32710.0, -32710.0, 0.0, 0.0, 0.0, 0.0, -32686.0, - -32686.0, 0.0, 0.0, 0.0, 0.0, -32768.0, -32768.0, 0.0, 0.0, 0.0, 0.0, - -118.15138, -118.15138, -180.0, -180.0, -180.0, -180.0, 17.01541, 17.01541, - -180.0, -180.0, -180.0, -180.0, 25.9801, 25.9801, -180.0, -180.0, -180.0, - -180.0, 26.06345, 26.06345, -180.0, -180.0, -180.0, -180.0, 67.51613, - 67.51613, 0.0, 0.0, 0.0, 0.0, 305.78971, 305.78971, 0.0, 0.0, 0.0, 0.0, - 107.78888, 107.78888, -180.0, -180.0, -180.0, -180.0, -169.80836, - -169.80836, -180.0, -180.0, -180.0, -180.0, 171.2196, 171.2196, -180.0, - -180.0, -180.0, -180.0, -32.26304, -32.26304, -180.0, -180.0, 180.0, 180.0, - -3.5854, -3.5854, -180.0, -180.0, -180.0, -180.0, -55.81231, -55.81231, - -180.0, -180.0, -180.0, -180.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, - 1.0, 1.0, 1.0, 1.0, 179.94728, 179.94728, -180.0, -180.0, -180.0, -180.0, - 42.21022, 42.21022, -180.0, -180.0, -180.0, -180.0, -12.15585, -12.15585, - -180.0, -180.0, -180.0, -180.0, 65.16104, 65.16104, -180.0, -180.0, -180.0, - -180.0, 331.47544, 331.47544, 0.0, 0.0, 0.0, 0.0, 63.30298, 63.30298, 0.0, - 0.0, 0.0, 0.0, 158.38363, 158.38363, -180.0, -180.0, -180.0, -180.0, - -139.48832, -139.48832, -180.0, -180.0, -180.0, -180.0, -170.3775, - -170.3775, -180.0, -180.0, -180.0, -180.0, -150.40707, -150.40707, -180.0, - -180.0, 180.0, 180.0, -61.13408, -61.13408, -180.0, -180.0, -180.0, -180.0, - 141.8528, 141.8528, -180.0, -180.0, -180.0, -180.0, 1.0, 1.0, 1.0, 1.0, - 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 60.68156, 60.68156, -180.0, -180.0, - -180.0, -180.0, -93.63384, -93.63384, -180.0, -180.0, -180.0, -180.0, - 165.74818, 165.74818, -180.0, -180.0, -180.0, -180.0, 73.13588, 73.13588, - -180.0, -180.0, -180.0, -180.0, 42.57845, 42.57845, 0.0, 0.0, 0.0, 0.0, - 339.30663, 339.30663, 0.0, 0.0, 0.0, 0.0, 73.76652, 73.76652, -180.0, - -180.0, -180.0, -180.0, -75.80978, -75.80978, -180.0, -180.0, -180.0, - -180.0, -81.62332, -81.62332, -180.0, -180.0, -180.0, -180.0, 48.62002, - 48.62002, -180.0, -180.0, -180.0, -180.0, -31.30247, -31.30247, -180.0, - -180.0, -180.0, -180.0, 99.35286, 99.35286, -180.0, -180.0, -180.0, -180.0, - 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 } ; - - FCC_Sys_New_harness_DW.FromWs_PWORK.TimePtr = (void *) pTimeValues0; - FCC_Sys_New_harness_DW.FromWs_PWORK.DataPtr = (void *) pDataValues0; - FCC_Sys_New_harness_DW.FromWs_IWORK.PrevIndex = 0; - } -} - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.h b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.h deleted file mode 100644 index 603ae669aa5dba55406c4ebb443562c55e30586e..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.h +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: FCC_Sys_New_harness.h - * - * Code generated for Simulink model 'FCC_Sys_New_harness'. - * - * Model version : 1.91 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:26 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#ifndef RTW_HEADER_FCC_Sys_New_harness_h_ -#define RTW_HEADER_FCC_Sys_New_harness_h_ -#include -#include -#include "AHRS_Bus.h" -#ifndef FCC_Sys_New_harness_COMMON_INCLUDES_ -# define FCC_Sys_New_harness_COMMON_INCLUDES_ -#include "rtwtypes.h" -#include "rtw_continuous.h" -#include "rtw_solver.h" -#endif /* FCC_Sys_New_harness_COMMON_INCLUDES_ */ - -/* Shared type includes */ -#include "model_reference_types.h" - -/* Child system includes */ -#define FCC_New_MDLREF_HIDE_CHILD_ -#include "FCC_New.h" - -/* Model Code Variants */ - -/* Macros for accessing real-time model data structure */ -#ifndef rtmGetErrorStatus -# define rtmGetErrorStatus(rtm) ((rtm)->errorStatus) -#endif - -#ifndef rtmSetErrorStatus -# define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val)) -#endif - -#ifndef rtmGetErrorStatusPointer -# define rtmGetErrorStatusPointer(rtm) ((const char_T **)(&((rtm)->errorStatus))) -#endif - -#ifndef rtmGetT -# define rtmGetT(rtm) (rtmGetTPtr((rtm))[0]) -#endif - -#ifndef rtmGetTPtr -# define rtmGetTPtr(rtm) ((rtm)->Timing.t) -#endif - -/* Forward declaration for rtModel */ -typedef struct tag_RTM_FCC_Sys_New_harness_T RT_MODEL_FCC_Sys_New_harness_T; - -/* Block signals and states (default storage) for system '' */ -typedef struct { - real_T FromWs[27]; /* '/FromWs' */ - real_T Sync10_Buffer; /* '/Sync10' */ - real_T Sync11_Buffer; /* '/Sync11' */ - real_T Sync12_Buffer; /* '/Sync12' */ - real_T Sync7_Buffer; /* '/Sync7' */ - real_T Sync8_Buffer; /* '/Sync8' */ - real_T Sync9_Buffer; /* '/Sync9' */ - real_T Sync14_Buffer; /* '/Sync14' */ - real_T Sync15_Buffer; /* '/Sync15' */ - real_T Sync16_Buffer; /* '/Sync16' */ - real_T Sync17_Buffer; /* '/Sync17' */ - real_T Sync18_Buffer; /* '/Sync18' */ - real_T Sync19_Buffer; /* '/Sync19' */ - real_T Sync21_Buffer; /* '/Sync21' */ - real_T Sync22_Buffer; /* '/Sync22' */ - real_T Sync23_Buffer; /* '/Sync23' */ - real_T Sync24_Buffer; /* '/Sync24' */ - real_T Sync25_Buffer; /* '/Sync25' */ - real_T Sync26_Buffer; /* '/Sync26' */ - struct { - int_T PrevIndex; - } FromWs_IWORK; /* '/FromWs' */ - - struct { - void *TimePtr; - void *DataPtr; - void *RSimInfoPtr; - } FromWs_PWORK; /* '/FromWs' */ - - int16_T Cast1; /* '/Cast1' */ - int16_T Cast2; /* '/Cast2' */ - int16_T Cast3; /* '/Cast3' */ - int16_T Sync4_Buffer; /* '/Sync4' */ - int16_T Sync5_Buffer; /* '/Sync5' */ - int16_T Sync6_Buffer; /* '/Sync6' */ - boolean_T Sync13_Buffer; /* '/Sync13' */ - boolean_T Sync20_Buffer; /* '/Sync20' */ - boolean_T Sync27_Buffer; /* '/Sync27' */ -} DW_FCC_Sys_New_harness_T; - -/* External outputs (root outports fed by signals with default storage) */ -typedef struct { - int16_T Actuator1; /* '/Actuator1' */ - int16_T Actuator2; /* '/Actuator2' */ - int16_T Actuator3; /* '/Actuator3' */ -} ExtY_FCC_Sys_New_harness_T; - - - -/* Declare global externs for instrumentation */ -extern void profileStart_F_02840e440c240744(uint32_T); -extern void profileEnd_FCC_Sys_New_harness(uint32_T); -/* Code_Instrumentation_Declarations_Placeholder */ - -/* Real-time Model Data Structure */ -struct tag_RTM_FCC_Sys_New_harness_T { - const char_T *errorStatus; - RTWSolverInfo solverInfo; - - /* - * Timing: - * The following substructure contains information regarding - * the timing information for the model. - */ - struct { - uint32_T clockTick0; - time_T stepSize0; - uint32_T clockTick1; - struct { - uint32_T TID1_2; - boolean_T b_TID1_2; - } RateInteraction; - - SimTimeStep simTimeStep; - time_T *t; - time_T tArray[3]; - } Timing; -}; - -extern rtTimingBridge FCC_Sys_New_harness_TimingBrdg; - -/* Block signals and states (default storage) */ -extern DW_FCC_Sys_New_harness_T FCC_Sys_New_harness_DW; - -/* External outputs (root outports fed by signals with default storage) */ -extern ExtY_FCC_Sys_New_harness_T FCC_Sys_New_harness_Y; - -/* Model entry point functions */ -extern void FCC_Sys_New_harness_initialize(void); -extern void FCC_Sys_New_harness_step0(void); -extern void FCC_Sys_New_harness_step2(void); - -/* Real-time Model object */ -extern RT_MODEL_FCC_Sys_New_harness_T *const FCC_Sys_New_harness_M; - -/*- - * These blocks were eliminated from the model due to optimizations: - * - * Block '/Cast10' : Eliminate redundant data type conversion - * Block '/Cast11' : Eliminate redundant data type conversion - * Block '/Cast12' : Eliminate redundant data type conversion - * Block '/Cast14' : Eliminate redundant data type conversion - * Block '/Cast15' : Eliminate redundant data type conversion - * Block '/Cast16' : Eliminate redundant data type conversion - * Block '/Cast17' : Eliminate redundant data type conversion - * Block '/Cast18' : Eliminate redundant data type conversion - * Block '/Cast19' : Eliminate redundant data type conversion - * Block '/Cast21' : Eliminate redundant data type conversion - * Block '/Cast22' : Eliminate redundant data type conversion - * Block '/Cast23' : Eliminate redundant data type conversion - * Block '/Cast24' : Eliminate redundant data type conversion - * Block '/Cast25' : Eliminate redundant data type conversion - * Block '/Cast26' : Eliminate redundant data type conversion - * Block '/Cast7' : Eliminate redundant data type conversion - * Block '/Cast8' : Eliminate redundant data type conversion - * Block '/Cast9' : Eliminate redundant data type conversion - * Block '/Sync1' : Eliminated since input and output rates are identical - * Block '/Sync2' : Eliminated since input and output rates are identical - * Block '/Sync3' : Eliminated since input and output rates are identical - */ - -/*- - * The generated code includes comments that allow you to trace directly - * back to the appropriate location in the model. The basic format - * is /block_name, where system is the system number (uniquely - * assigned by Simulink) and block_name is the name of the block. - * - * Use the MATLAB hilite_system command to trace the generated code back - * to the model. For example, - * - * hilite_system('') - opens system 3 - * hilite_system('/Kp') - opens and selects block Kp which resides in S3 - * - * Here is the system hierarchy for this model - * - * '' : 'FCC_Sys_New_harness' - * '' : 'FCC_Sys_New_harness/Inputs' - * '' : 'FCC_Sys_New_harness/Size-Type' - * '' : 'FCC_Sys_New_harness/Test Case Explanation' - * '' : 'FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)' - * '' : 'FCC_Sys_New_harness/Size-Type/Bus7' - * '' : 'FCC_Sys_New_harness/Size-Type/Bus8' - * '' : 'FCC_Sys_New_harness/Size-Type/Bus9' - */ - -/*- - * Requirements for '': FCC_Sys_New_harness - */ -#endif /* RTW_HEADER_FCC_Sys_New_harness_h_ */ - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.mk b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.mk deleted file mode 100644 index bedd63b07be344496fa4fb27647e0265536d1e0c..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.mk +++ /dev/null @@ -1,419 +0,0 @@ -########################################################################### -## Makefile generated for Simulink model 'FCC_Sys_New_harness'. -## -## Makefile : FCC_Sys_New_harness.mk -## Generated on : Thu Jul 16 18:55:30 2020 -## MATLAB Coder version: 5.0 (R2020a) -## -## Build Info: -## -## Final product: $(RELATIVE_PATH_TO_ANCHOR)/FCC_Sys_New_harness.exe -## Product type : executable -## Build type : Top-Level Standalone Executable -## -########################################################################### - -########################################################################### -## MACROS -########################################################################### - -# Macro Descriptions: -# PRODUCT_NAME Name of the system to build -# MAKEFILE Name of this makefile -# MODELREF_LINK_RSPFILE Linker command listing model reference link objects -# COMPILER_COMMAND_FILE Compiler command listing model reference header paths -# CMD_FILE Command file - -PRODUCT_NAME = FCC_Sys_New_harness -MAKEFILE = FCC_Sys_New_harness.mk -MATLAB_ROOT = D:/Program Files/MATLAB/R2020a -MATLAB_BIN = D:/Program Files/MATLAB/R2020a/bin -MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64 -MASTER_ANCHOR_DIR = -START_DIR = D:/Documents/SCHOOL/McSCert/do178/src/validation -SOLVER = -SOLVER_OBJ = -CLASSIC_INTERFACE = 0 -TGT_FCN_LIB = ISO_C -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0 -RELATIVE_PATH_TO_ANCHOR = ../../../.. -MODELREF_LINK_RSPFILE = FCC_Sys_New_harness_ref.rsp -COMPILER_COMMAND_FILE = FCC_Sys_New_harness_comp.rsp -CMD_FILE = FCC_Sys_New_harness.rsp -C_STANDARD_OPTS = -fwrapv -CPP_STANDARD_OPTS = -fwrapv - -########################################################################### -## TOOLCHAIN SPECIFICATIONS -########################################################################### - -# Toolchain Name: MinGW64 | gmake (64-bit Windows) -# Supported Version(s): 6.x -# ToolchainInfo Version: 2020a -# Specification Revision: 1.0 -# -#------------------------------------------- -# Macros assumed to be defined elsewhere -#------------------------------------------- - -# C_STANDARD_OPTS -# CPP_STANDARD_OPTS -# MINGW_ROOT -# MINGW_C_STANDARD_OPTS - -#----------- -# MACROS -#----------- - -WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -WARN_FLAGS_MAX = $(WARN_FLAGS) -Wcast-qual -Wshadow -CPP_WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wpointer-arith -Wcast-align -CPP_WARN_FLAGS_MAX = $(CPP_WARN_FLAGS) -Wcast-qual -Wshadow -MW_EXTERNLIB_DIR = $(MATLAB_ROOT)/extern/lib/win64/mingw64 -SHELL = %SystemRoot%/system32/cmd.exe - -TOOLCHAIN_SRCS = -TOOLCHAIN_INCS = -TOOLCHAIN_LIBS = -lws2_32 - -#------------------------ -# BUILD TOOL COMMANDS -#------------------------ - -# C Compiler: GNU C Compiler -CC_PATH = $(MINGW_ROOT) -CC = "$(CC_PATH)/gcc" - -# Linker: GNU Linker -LD_PATH = $(MINGW_ROOT) -LD = "$(LD_PATH)/g++" - -# C++ Compiler: GNU C++ Compiler -CPP_PATH = $(MINGW_ROOT) -CPP = "$(CPP_PATH)/g++" - -# C++ Linker: GNU C++ Linker -CPP_LD_PATH = $(MINGW_ROOT) -CPP_LD = "$(CPP_LD_PATH)/g++" - -# Archiver: GNU Archiver -AR_PATH = $(MINGW_ROOT) -AR = "$(AR_PATH)/ar" - -# MEX Tool: MEX Tool -MEX_PATH = $(MATLAB_ARCH_BIN) -MEX = "$(MEX_PATH)/mex" - -# Download: Download -DOWNLOAD = - -# Execute: Execute -EXECUTE = $(PRODUCT) - -# Builder: GMAKE Utility -MAKE_PATH = %MATLAB%/bin/win64 -MAKE = "$(MAKE_PATH)/gmake" - - -#------------------------- -# Directives/Utilities -#------------------------- - -CDEBUG = -g -C_OUTPUT_FLAG = -o -LDDEBUG = -g -OUTPUT_FLAG = -o -CPPDEBUG = -g -CPP_OUTPUT_FLAG = -o -CPPLDDEBUG = -g -OUTPUT_FLAG = -o -ARDEBUG = -STATICLIB_OUTPUT_FLAG = -MEX_DEBUG = -g -RM = @del -ECHO = @echo -MV = @move -RUN = - -#---------------------------------------- -# "Faster Builds" Build Configuration -#---------------------------------------- - -ARFLAGS = ruvs -CFLAGS = -c $(MINGW_C_STANDARD_OPTS) -m64 \ - -O0 -CPPFLAGS = -c $(CPP_STANDARD_OPTS) -m64 -std=c++11 \ - -O0 -CPP_LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -CPP_SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib -DOWNLOAD_FLAGS = -EXECUTE_FLAGS = -LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -MEX_CPPFLAGS = -MEX_CPPLDFLAGS = -MEX_CFLAGS = -MEX_LDFLAGS = -MAKE_FLAGS = -f $(MAKEFILE) -SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib - - - -########################################################################### -## OUTPUT INFO -########################################################################### - -PRODUCT = $(RELATIVE_PATH_TO_ANCHOR)/FCC_Sys_New_harness.exe -PRODUCT_TYPE = "executable" -BUILD_TYPE = "Top-Level Standalone Executable" - -########################################################################### -## INCLUDE PATHS -########################################################################### - -INCLUDES_BUILDINFO = - -INCLUDES = $(INCLUDES_BUILDINFO) - -########################################################################### -## DEFINES -########################################################################### - -DEFINES_BUILD_ARGS = -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DEFINES_CUSTOM = -DEFINES_OPTS = -DTID01EQ=1 -DPORTABLE_WORDSIZES -DEFINES_STANDARD = -DMODEL=FCC_Sys_New_harness -DNUMST=3 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 - -DEFINES = $(DEFINES_BUILD_ARGS) $(DEFINES_CUSTOM) $(DEFINES_OPTS) $(DEFINES_STANDARD) - -########################################################################### -## SOURCE FILES -########################################################################### - -SRCS = $(START_DIR)/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.c - -ALL_SRCS = $(SRCS) - -########################################################################### -## OBJECTS -########################################################################### - -OBJS = FCC_Sys_New_harness.obj - -ALL_OBJS = $(OBJS) - -########################################################################### -## PREBUILT OBJECT FILES -########################################################################### - -PREBUILT_OBJS = - -########################################################################### -## LIBRARIES -########################################################################### - -MODELREF_LIBS = D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New_rtwlib.lib D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_rtwlib.lib D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl_rtwlib.lib - -LIBS = - -########################################################################### -## SYSTEM LIBRARIES -########################################################################### - -SYSTEM_LIBS = - -########################################################################### -## ADDITIONAL TOOLCHAIN FLAGS -########################################################################### - -#--------------- -# C Compiler -#--------------- - -CFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CFLAGS += $(CFLAGS_BASIC) - -#----------------- -# C++ Compiler -#----------------- - -CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CPPFLAGS += $(CPPFLAGS_BASIC) - -#--------------------- -# MEX C++ Compiler -#--------------------- - -MEX_CPP_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CPPFLAGS += $(MEX_CPP_Compiler_BASIC) - -#----------------- -# MEX Compiler -#----------------- - -MEX_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CFLAGS += $(MEX_Compiler_BASIC) - -########################################################################### -## INLINED COMMANDS -########################################################################### - - -MINGW_C_STANDARD_OPTS = $(C_STANDARD_OPTS) - - -########################################################################### -## PHONY TARGETS -########################################################################### - -.PHONY : all build buildobj clean info prebuild download execute - - -all : build - @echo "### Successfully generated all binary outputs." - - -build : prebuild $(PRODUCT) - - -buildobj : prebuild $(OBJS) $(PREBUILT_OBJS) - @echo "### Successfully generated all binary outputs." - - -prebuild : - - -download : $(PRODUCT) - - -execute : download - @echo "### Invoking postbuild tool "Execute" ..." - $(EXECUTE) $(EXECUTE_FLAGS) - @echo "### Done invoking postbuild tool." - - -########################################################################### -## FINAL TARGET -########################################################################### - -#------------------------------------------- -# Create a standalone executable -#------------------------------------------- - -$(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) $(MODELREF_LIBS) - @echo "### Creating standalone executable "$(PRODUCT)" ..." - $(LD) $(LDFLAGS) -o $(PRODUCT) @$(CMD_FILE) @$(MODELREF_LINK_RSPFILE) $(SYSTEM_LIBS) $(TOOLCHAIN_LIBS) - @echo "### Created: $(PRODUCT)" - - -########################################################################### -## INTERMEDIATE TARGETS -########################################################################### - -#--------------------- -# SOURCE-TO-OBJECT -#--------------------- - -%.obj : %.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : %.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -FCC_Sys_New_harness.obj : $(START_DIR)/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -########################################################################### -## DEPENDENCIES -########################################################################### - -$(ALL_OBJS) : rtw_proj.tmw $(COMPILER_COMMAND_FILE) $(MAKEFILE) - - -########################################################################### -## MISCELLANEOUS TARGETS -########################################################################### - -info : - @echo "### PRODUCT = $(PRODUCT)" - @echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)" - @echo "### BUILD_TYPE = $(BUILD_TYPE)" - @echo "### INCLUDES = $(INCLUDES)" - @echo "### DEFINES = $(DEFINES)" - @echo "### ALL_SRCS = $(ALL_SRCS)" - @echo "### ALL_OBJS = $(ALL_OBJS)" - @echo "### LIBS = $(LIBS)" - @echo "### MODELREF_LIBS = $(MODELREF_LIBS)" - @echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)" - @echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)" - @echo "### CFLAGS = $(CFLAGS)" - @echo "### LDFLAGS = $(LDFLAGS)" - @echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)" - @echo "### CPPFLAGS = $(CPPFLAGS)" - @echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)" - @echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)" - @echo "### ARFLAGS = $(ARFLAGS)" - @echo "### MEX_CFLAGS = $(MEX_CFLAGS)" - @echo "### MEX_CPPFLAGS = $(MEX_CPPFLAGS)" - @echo "### MEX_LDFLAGS = $(MEX_LDFLAGS)" - @echo "### MEX_CPPLDFLAGS = $(MEX_CPPLDFLAGS)" - @echo "### DOWNLOAD_FLAGS = $(DOWNLOAD_FLAGS)" - @echo "### EXECUTE_FLAGS = $(EXECUTE_FLAGS)" - @echo "### MAKE_FLAGS = $(MAKE_FLAGS)" - - -clean : - $(ECHO) "### Deleting all derived files..." - $(RM) $(subst /,\,$(PRODUCT)) - $(RM) $(subst /,\,$(ALL_OBJS)) - $(ECHO) "### Deleted all derived files." - - diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.obj deleted file mode 100644 index ff97a6519cd8f481a7b5d8f286f5e04d1214c5af..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.rsp b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.rsp deleted file mode 100644 index c11eae025c92507a5ea202c46217b4f12888026c..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness.rsp +++ /dev/null @@ -1 +0,0 @@ -FCC_Sys_New_harness.obj diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness_comp.rsp b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness_comp.rsp deleted file mode 100644 index 8df052eb13c4921e99f89e25112635f29c8b694d..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness_comp.rsp +++ /dev/null @@ -1,11 +0,0 @@ --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/FCC_New --ID:/Documents/SCHOOL/McSCert/do178/src/validation --ID:/Documents/SCHOOL/McSCert/do178/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented --ID:/Program\ Files/MATLAB/R2020a/extern/include --ID:/Program\ Files/MATLAB/R2020a/simulink/include --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src/ext_mode/common --ID:/Program\ Files/MATLAB/R2020a/rtw/c/ert --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/_sharedutils diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness_ref.rsp b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness_ref.rsp deleted file mode 100644 index ab538dcb64ebd4e6bd0c0bbbde73fcead810d269..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/FCC_Sys_New_harness_ref.rsp +++ /dev/null @@ -1,3 +0,0 @@ -D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New_rtwlib.lib -D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_rtwlib.lib -D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl_rtwlib.lib diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/buildInfo.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/buildInfo.mat deleted file mode 100644 index 7db82842cb1ccdfc04560b9f1c5561abdadb0743..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/buildInfo.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/compileInfo.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/compileInfo.mat deleted file mode 100644 index 9cd24a9d727e24514575e1062d40b6e61e0e66dd..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/compileInfo.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/defines.txt b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/defines.txt deleted file mode 100644 index b5ab630ab5807c6f7e689a2148d683010900c502..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/defines.txt +++ /dev/null @@ -1,15 +0,0 @@ -MODEL=FCC_Sys_New_harness -NUMST=3 -NCSTATES=0 -HAVESTDIO -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -CLASSIC_INTERFACE=0 -ALLOCATIONFCN=0 -TID01EQ=1 -PORTABLE_WORDSIZES -TERMFCN=0 -ONESTEPFCN=1 -MAT_FILE=0 -MULTI_INSTANCE_CODE=0 -INTEGER_CODE=0 -MT=1 diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/ert_main.c b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/ert_main.c deleted file mode 100644 index 79179126d4f53c4222e9188fd9aba9973978de37..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/ert_main.c +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: ert_main.c - * - * Code generated for Simulink model 'FCC_Sys_New_harness'. - * - * Model version : 1.91 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:26 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#include -#include /* This ert_main.c example uses printf/fflush */ -#include "FCC_Sys_New_harness.h" /* Model's header file */ -#include "rtwtypes.h" -#include "model_reference_types.h" - -/* - * Associating rt_OneStep with a real-time clock or interrupt service routine - * is what makes the generated code "real-time". The function rt_OneStep is - * always associated with the base rate of the model. Subrates are managed - * by the base rate from inside the generated code. Enabling/disabling - * interrupts and floating point context switches are target specific. This - * example code indicates where these should take place relative to executing - * the generated code step function. Overrun behavior should be tailored to - * your application needs. This example simply sets an error status in the - * real-time model and returns from rt_OneStep. - */ -void rt_OneStep(void); -void rt_OneStep(void) -{ - static boolean_T OverrunFlags[3] = { 0, 0, 0 }; - - static boolean_T eventFlags[3] = { 0, 0, 0 };/* Model has 3 rates */ - - static int_T taskCounter[3] = { 0, 0, 0 }; - - /* Disable interrupts here */ - - /* Check base rate for overrun */ - if (OverrunFlags[0]) { - rtmSetErrorStatus(FCC_Sys_New_harness_M, "Overrun"); - return; - } - - OverrunFlags[0] = true; - - /* Save FPU context here (if necessary) */ - /* Re-enable timer or interrupt here */ - - /* - * For a bare-board target (i.e., no operating system), the - * following code checks whether any subrate overruns, - * and also sets the rates that need to run this time step. - */ - if (taskCounter[2] == 0) { - if (eventFlags[2]) { - OverrunFlags[0] = false; - OverrunFlags[2] = true; - - /* Sampling too fast */ - rtmSetErrorStatus(FCC_Sys_New_harness_M, "Overrun"); - return; - } - - eventFlags[2] = true; - } - - taskCounter[1]++; - if (taskCounter[1] == 1) { - taskCounter[1]= 0; - } - - taskCounter[2]++; - if (taskCounter[2] == 10) { - taskCounter[2]= 0; - } - - /* Set model inputs associated with base rate here */ - - /* Step the model for base rate */ - FCC_Sys_New_harness_step0(); - - /* Get model outputs here */ - - /* Indicate task for base rate complete */ - OverrunFlags[0] = false; - - /* If task 1 is running, don't run any lower priority task */ - if (OverrunFlags[1]) { - return; - } - - /* Step the model for subrate */ - if (eventFlags[2]) { - OverrunFlags[2] = true; - - /* Set model inputs associated with subrates here */ - - /* Step the model for subrate 2 */ - FCC_Sys_New_harness_step2(); - - /* Get model outputs here */ - - /* Indicate task complete for subrate */ - OverrunFlags[2] = false; - eventFlags[2] = false; - } - - /* Disable interrupts here */ - /* Restore FPU context here (if necessary) */ - /* Enable interrupts here */ -} - -/* - * The example "main" function illustrates what is required by your - * application code to initialize, execute, and terminate the generated code. - * Attaching rt_OneStep to a real-time clock is target specific. This example - * illustrates how you do this relative to initializing the model. - */ -int_T main(int_T argc, const char *argv[]) -{ - /* Unused arguments */ - (void)(argc); - (void)(argv); - - /* Initialize model */ - FCC_Sys_New_harness_initialize(); - - /* Attach rt_OneStep to a timer or interrupt service routine with - * period 0.001 seconds (the model's base sample time) here. The - * call syntax for rt_OneStep is - * - * rt_OneStep(); - */ - printf("Warning: The simulation will run forever. " - "Generated ERT main won't simulate model step behavior. " - "To change this behavior select the 'MAT-file logging' option.\n"); - fflush((NULL)); - while (rtmGetErrorStatus(FCC_Sys_New_harness_M) == (NULL)) { - /* Perform other application tasks here */ - } - - /* Disable rt_OneStep() here */ - return 0; -} - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/instrumentationInfo.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/instrumentationInfo.mat deleted file mode 100644 index 1747cf70415b0a5f0f4507fef6b3229a5880c1f9..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/instrumentationInfo.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/mlEnv.txt b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/mlEnv.txt deleted file mode 100644 index 4dd92c55ba21f6d084f4d56da9e810007d42794a..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/mlEnv.txt +++ /dev/null @@ -1,4 +0,0 @@ -MATLAB_ROOT=E: -ALT_MATLAB_ROOT=E: -MATLAB_BIN=E:\bin -ALT_MATLAB_BIN=E:\bin diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/profiling_info.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/profiling_info.mat deleted file mode 100644 index aec86947259dfa0f3dbf53f40a5fcbc2a472e219..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/profiling_info.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/rtw_proj.tmw b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/rtw_proj.tmw deleted file mode 100644 index 606012a6e6eb212b96d4d1cff3ce385f409ba4c3..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/hostobj/instrumented/rtw_proj.tmw +++ /dev/null @@ -1,4 +0,0 @@ -Simulink Coder project for FCC_Sys_New_harness using . MATLAB root = D:\Program Files\MATLAB\R2020a. SimStruct date: 18-Nov-2019 20:54:47 -This file is generated by Simulink Coder for use by the make utility -to determine when to rebuild objects when the name of the current Simulink Coder project changes. -The rtwinfomat located at: ..\..\..\..\slprj\ert\FCC_Sys_New_harness\tmwinternal\binfo.mat diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/mlEnv.txt b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/mlEnv.txt deleted file mode 100644 index 4dd92c55ba21f6d084f4d56da9e810007d42794a..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/mlEnv.txt +++ /dev/null @@ -1,4 +0,0 @@ -MATLAB_ROOT=E: -ALT_MATLAB_ROOT=E: -MATLAB_BIN=E:\bin -ALT_MATLAB_BIN=E:\bin diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/profiling_info.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/profiling_info.mat deleted file mode 100644 index 797ec2a2990cef859b3fb3e6b553a5ab01ab4e1b..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/profiling_info.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/rtiostream_tcpip.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/rtiostream_tcpip.obj deleted file mode 100644 index 85238e346412f26076d3c3beac9c2f77e2fb30e9..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/rtiostream_tcpip.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/rtiostream_utils.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/rtiostream_utils.obj deleted file mode 100644 index 4cabb0e39ebad6f771b33e7950cb2fcebdf54bb7..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/rtiostream_utils.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/rtw_proj.tmw b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/rtw_proj.tmw deleted file mode 100644 index 603d0f3367fc08b9101849d076c89657cdff8e61..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/rtw_proj.tmw +++ /dev/null @@ -1 +0,0 @@ -This file is generated by the Real-Time Workshop \ No newline at end of file diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/sil_main.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/sil_main.obj deleted file mode 100644 index a8c8b72f88e25f7e82ac2b28d5cdeb231d8d47c4..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/sil_main.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/target_io.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/target_io.obj deleted file mode 100644 index 233d61b485c6987afe111ef5b56e3065f73b1010..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/target_io.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/wrapperInfo.mat b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/wrapperInfo.mat deleted file mode 100644 index ad927ced53b905ae1b99090924e2020780e5a05e..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/wrapperInfo.mat and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_data_stream.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_data_stream.obj deleted file mode 100644 index a2877f32aa92505258d240a02865cfa45810d29f..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_data_stream.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_instrumentation.c b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_instrumentation.c deleted file mode 100644 index 3b67615a7cf7cb456ba4e60f009c19cc654f9b5d..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_instrumentation.c +++ /dev/null @@ -1,125 +0,0 @@ -/* - * File: xil_instrumentation.c - * - * Code generated for instrumentation. - * - */ - -#include "xil_instrumentation.h" - -/* Code instrumentation offset(s) for model FCC_Sys_New_harness */ -#define profileStart_F_02840e440c240744_offset 3 -#define profileEnd_FCC_Sys_New_harness_offset 3 - -/* Code instrumentation offset(s) for model FCC_Sys_New_harness */ -#define taskTimeStart_0c6401e40e940cc4_offset 0 -#define taskTimeEnd_FCC_Sys_New_harness_offset 0 - -/* A function parameter may be intentionally unused */ -#ifndef UNUSED_PARAMETER -# if defined(__LCC__) -# define UNUSED_PARAMETER(x) -# else -# define UNUSED_PARAMETER(x) (void) (x) -# endif -#endif - -#define SIZEOF_SECTION_ID_CONTAINER sizeof(uint64_T) -#define SIZEOF_TIMER_TYPE sizeof(uint64_T) - -static uint64_T xsd_xil_timer_corrected = 0; -static uint64_T xsd_xil_timer_unfreeze = 0; -static uint32_T xsd_xil_freezing_busy = 0; -void xilUploadProfilingData(uint32_T sectionId) -{ - xilUploadCodeInstrData((void *)(&xsd_xil_timer_corrected), (uint32_T) - (SIZEOF_TIMER_TYPE), sectionId); -} - -/* The internal freeze and unfreeze methods cannot be nested. The customer-visible implementation avoids nesting problems */ -void xilProfilingTimerFreezeInternal(void) -{ - /* Update the value of the corrected timer to exclude time spent in the - * instrumentation code. - * - * Using a timer that increments on each tick. - */ - xsd_xil_timer_corrected = xsd_xil_timer_corrected + (((uint64_T)(timestamp_x86 - ())) - xsd_xil_timer_unfreeze); -} - -void xilProfilingTimerUnFreezeInternal(void) -{ - xsd_xil_timer_unfreeze = ( uint64_T ) (timestamp_x86()); -} - -void xilProfilingTimerFreeze(void) -{ - if (xsd_xil_freezing_busy == 0) { - xilProfilingTimerFreezeInternal(); - } /* if */ -} - -void xilProfilingTimerUnFreeze(void) -{ - if (xsd_xil_freezing_busy == 0) { - xilProfilingTimerUnFreezeInternal(); - } /* if */ -} - -void taskTimeStart(uint32_T sectionId) -{ - /* Send execution profiling data to host */ - xilUploadProfilingData(sectionId); - xilProfilingTimerUnFreezeInternal(); -} - -void taskTimeEnd(uint32_T sectionId) -{ - uint32_T sectionIdNeg = ~sectionId; - xilProfilingTimerFreezeInternal(); - - /* Send execution profiling data to host */ - xilUploadProfilingData(sectionIdNeg); -} - -void profileStart(uint32_T sectionId) -{ - xilProfilingTimerFreezeInternal(); - - /* Send execution profiling data to host */ - xilUploadProfilingData(sectionId); - xilProfilingTimerUnFreezeInternal(); -} - -void profileEnd(uint32_T sectionId) -{ - uint32_T sectionIdNeg = ~sectionId; - xilProfilingTimerFreezeInternal(); - - /* Send execution profiling data to host */ - xilUploadProfilingData(sectionIdNeg); - xilProfilingTimerUnFreezeInternal(); -} - -/* Code instrumentation method(s) for model FCC_Sys_New_harness */ -void profileStart_F_02840e440c240744(uint32_T sectionId) -{ - profileStart(profileStart_F_02840e440c240744_offset + sectionId); -} - -void profileEnd_FCC_Sys_New_harness(uint32_T sectionId) -{ - profileEnd(profileEnd_FCC_Sys_New_harness_offset + sectionId); -} - -/* Code instrumentation method(s) for model FCC_Sys_New_harness */ -void taskTimeStart_0c6401e40e940cc4(uint32_T sectionId) -{ - taskTimeStart(taskTimeStart_0c6401e40e940cc4_offset + sectionId); -} - -void taskTimeEnd_FCC_Sys_New_harness(uint32_T sectionId) -{ - taskTimeEnd(taskTimeEnd_FCC_Sys_New_harness_offset + sectionId); -} diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_instrumentation.h b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_instrumentation.h deleted file mode 100644 index ba9fb18f6654737a97034f57c7c4ccd6ec345d79..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_instrumentation.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * File: xil_instrumentation.h - * - * Code generated for instrumentation. - * - */ - -/* Functions with a C call interface */ -#ifdef __cplusplus - -extern "C" { - -#endif - -#include "host_timer_x86.h" -#ifdef __cplusplus - -} -#endif - -#include "rtwtypes.h" - -/* Upload code instrumentation data point */ -void xilUploadCodeInstrData( - void* pData, uint32_T numMemUnits, uint32_T sectionId); - -/* Called before starting a profiled section of code */ -void taskTimeStart(uint32_T); - -/* Called on finishing a profiled section of code */ -void taskTimeEnd(uint32_T); - -/* Uploads data */ -void xilUploadProfilingData(uint32_T sectionId); - -/* Pause the timer while running code associated with storing and uploading the data. */ -void xilProfilingTimerFreeze(void); - -/* Restart the timer after a pause */ -void xilProfilingTimerUnFreeze(void); - -/* Called before starting a profiled section of code */ -void profileStart(uint32_T); - -/* Called on finishing a profiled section of code */ -void profileEnd(uint32_T); - -/* Code instrumentation method(s) for model FCC_Sys_New_harness */ -void profileStart_F_02840e440c240744(uint32_T sectionId); -void profileEnd_FCC_Sys_New_harness(uint32_T sectionId); - -/* Code instrumentation method(s) for model FCC_Sys_New_harness */ -void taskTimeStart_0c6401e40e940cc4(uint32_T sectionId); -void taskTimeEnd_FCC_Sys_New_harness(uint32_T sectionId); diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_instrumentation.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_instrumentation.obj deleted file mode 100644 index 46083341c3097f88940591ef2c6a394dc5795b55..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_instrumentation.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_interface.c b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_interface.c deleted file mode 100644 index 39ffcdb0a3535463d813b8244c362ca35fb3b5fe..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_interface.c +++ /dev/null @@ -1,360 +0,0 @@ -/* - * File: xil_interface.c - * - * SIL generated interface for code: "FCC_Sys_New_harness" - * - */ - -#include "FCC_Sys_New_harness.h" -#include "xil_interface.h" -#include "xil_instrumentation.h" - -/* Functions with a C call interface */ -#ifdef __cplusplus - -extern "C" { - -#endif - -#include "xil_data_stream.h" -#include "codeinstr_data_stream.h" -#ifdef __cplusplus - -} -#endif - -static XILIOData xil_fcnid0_task1_y[4]; -static XILIOData xil_fcnid0_init_y[4]; - -/* In-the-Loop Interface functions - see xil_interface.h */ -XIL_INTERFACE_ERROR_CODE xilProcessParams(uint32_T xilFcnId) -{ - /* Single In-the-Loop Component */ - if (xilFcnId != 0) { - return XIL_INTERFACE_UNKNOWN_FCNID; - } - - return XIL_INTERFACE_SUCCESS; -} - -void xilUploadCodeInstrData(void * pData, uint32_T numMemUnits, uint32_T - sectionId) -{ - /* Send code instrumentation data to host */ - if (codeInstrWriteData((MemUnit_T *) &numMemUnits, sizeof(numMemUnits)) != - XIL_DATA_STREAM_SUCCESS) { - for (;;) ; - } - - if (codeInstrWriteData((MemUnit_T *) §ionId, sizeof(uint32_T)) != - XIL_DATA_STREAM_SUCCESS) { - for (;;) ; - } - - if (codeInstrWriteData((MemUnit_T *) pData, numMemUnits) != - XIL_DATA_STREAM_SUCCESS) { - for (;;) ; - } -} - -XIL_INTERFACE_ERROR_CODE xilGetDataTypeInfo(void) -{ - return XIL_INTERFACE_SUCCESS; -} - -XIL_INTERFACE_ERROR_CODE xilInitialize(uint32_T xilFcnId) -{ - XIL_INTERFACE_ERROR_CODE errorCode = XIL_INTERFACE_SUCCESS; - - /* initialize output storage owned by In-the-Loop */ - /* Single In-the-Loop Component */ - if (xilFcnId == 0) { - taskTimeStart_0c6401e40e940cc4(1U); - FCC_Sys_New_harness_initialize(); - taskTimeEnd_FCC_Sys_New_harness(1U); - } else { - errorCode = XIL_INTERFACE_UNKNOWN_FCNID; - } - - return errorCode; -} - -XIL_INTERFACE_ERROR_CODE xilPause(uint32_T xilFcnId) -{ - XIL_INTERFACE_ERROR_CODE errorCode = XIL_INTERFACE_SUCCESS; - if (xilFcnId == 0) { - /* Nothing to do */ - } else { - errorCode = XIL_INTERFACE_UNKNOWN_FCNID; - } /* if */ - - return errorCode; -} - -XIL_INTERFACE_ERROR_CODE xilSystemInitialize(uint32_T xilFcnId) -{ - XIL_INTERFACE_ERROR_CODE errorCode = XIL_INTERFACE_SUCCESS; - - /* Single In-the-Loop Component */ - if (xilFcnId == 0) { - /* No Function to Call */ - } else { - errorCode = XIL_INTERFACE_UNKNOWN_FCNID; - } - - return errorCode; -} - -XIL_INTERFACE_ERROR_CODE xilSystemReset(uint32_T xilFcnId) -{ - XIL_INTERFACE_ERROR_CODE errorCode = XIL_INTERFACE_SUCCESS; - - /* Single In-the-Loop Component */ - if (xilFcnId == 0) { - /* No Function to Call */ - } else { - errorCode = XIL_INTERFACE_UNKNOWN_FCNID; - } - - return errorCode; -} - -XIL_INTERFACE_ERROR_CODE xilGetHostToTargetData(uint32_T xilFcnId, - XIL_COMMAND_TYPE_ENUM xilCommandType, uint32_T xilCommandIdx, XILIOData - ** xilIOData) -{ - XIL_INTERFACE_ERROR_CODE errorCode = XIL_INTERFACE_SUCCESS; - *xilIOData = 0; - - /* Single In-the-Loop Component */ - if (xilFcnId != 0) { - errorCode = XIL_INTERFACE_UNKNOWN_FCNID; - return errorCode; - } - - errorCode = XIL_INTERFACE_UNKNOWN_TID; - UNUSED_PARAMETER(xilCommandType); - UNUSED_PARAMETER(xilCommandIdx); - return errorCode; -} - -XIL_INTERFACE_ERROR_CODE xilGetTargetToHostPreData(uint32_T xilFcnId, - XIL_COMMAND_TYPE_ENUM xilCommandType, uint32_T xilCommandIdx, XILIOData - ** xilIOData, MemUnit_T responseId, uint32_T serverFcnId) -{ - XIL_INTERFACE_ERROR_CODE errorCode = XIL_INTERFACE_SUCCESS; - *xilIOData = 0; - if (xilFcnId != 0) { - errorCode = XIL_INTERFACE_UNKNOWN_FCNID; - return errorCode; - } /* if */ - - errorCode = XIL_INTERFACE_UNKNOWN_TID; - UNUSED_PARAMETER(xilCommandType); - UNUSED_PARAMETER(xilCommandIdx); - UNUSED_PARAMETER(responseId); - UNUSED_PARAMETER(serverFcnId); - return errorCode; -} - -XIL_INTERFACE_ERROR_CODE xilOutput(uint32_T xilFcnId, uint32_T xilTID) -{ - /* Single In-the-Loop Component */ - if (xilFcnId != 0) { - return XIL_INTERFACE_UNKNOWN_FCNID; - } - - switch (xilTID) { - case 1: - taskTimeStart_0c6401e40e940cc4(2U); - FCC_Sys_New_harness_step0(); - taskTimeEnd_FCC_Sys_New_harness(2U); - break; - - case 2: - taskTimeStart_0c6401e40e940cc4(3U); - FCC_Sys_New_harness_step2(); - taskTimeEnd_FCC_Sys_New_harness(3U); - break; - - default: - return XIL_INTERFACE_UNKNOWN_TID; - } - - return XIL_INTERFACE_SUCCESS; -} - -XIL_INTERFACE_ERROR_CODE xilUpdate(uint32_T xilFcnId, uint32_T xilTID) -{ - /* Single In-the-Loop Component */ - if (xilFcnId != 0) { - return XIL_INTERFACE_UNKNOWN_FCNID; - } - - /* No Update Function */ - UNUSED_PARAMETER(xilTID); - return XIL_INTERFACE_SUCCESS; -} - -XIL_INTERFACE_ERROR_CODE xilGetTargetToHostData(uint32_T xilFcnId, - XIL_COMMAND_TYPE_ENUM xilCommandType, uint32_T xilCommandIdx, XILIOData - ** xilIOData, MemUnit_T responseId, uint32_T serverFcnId) -{ - XIL_INTERFACE_ERROR_CODE errorCode = XIL_INTERFACE_SUCCESS; - - /* Single In-the-Loop Component */ - *xilIOData = 0; - if (xilFcnId != 0) { - errorCode = XIL_INTERFACE_UNKNOWN_FCNID; - return errorCode; - } - - switch (xilCommandType) { - case XIL_INITIALIZE_COMMAND: - { - static int initComplete = 0; - if (!initComplete) { - uint32_T tableIdx = 0; - - { - void * dataAddress = (void *) &(FCC_Sys_New_harness_Y.Actuator1); - xil_fcnid0_init_y[tableIdx].memUnitLength = 1 * sizeof(int16_T); - xil_fcnid0_init_y[tableIdx++].address = (MemUnit_T *) dataAddress; - } - - { - void * dataAddress = (void *) &(FCC_Sys_New_harness_Y.Actuator2); - xil_fcnid0_init_y[tableIdx].memUnitLength = 1 * sizeof(int16_T); - xil_fcnid0_init_y[tableIdx++].address = (MemUnit_T *) dataAddress; - } - - { - void * dataAddress = (void *) &(FCC_Sys_New_harness_Y.Actuator3); - xil_fcnid0_init_y[tableIdx].memUnitLength = 1 * sizeof(int16_T); - xil_fcnid0_init_y[tableIdx++].address = (MemUnit_T *) dataAddress; - } - - xil_fcnid0_init_y[tableIdx].memUnitLength = 0; - xil_fcnid0_init_y[tableIdx++].address = (MemUnit_T *) 0; - initComplete = 1; - } /* if */ - - { - if (xilWriteData(&responseId, sizeof(responseId)) != - XIL_DATA_STREAM_SUCCESS) { - return XIL_INTERFACE_COMMS_FAILURE; - } /* if */ - - if (responseId == XIL_RESPONSE_CS_REQUEST_SERVICE) { - if (xilWriteData((MemUnit_T *) &serverFcnId, sizeof(serverFcnId)) != - XIL_DATA_STREAM_SUCCESS) { - return XIL_INTERFACE_COMMS_FAILURE; - } /* if */ - } /* if */ - } - - *xilIOData = &xil_fcnid0_init_y[0]; - break; - } - - case XIL_OUTPUT_COMMAND: - { - switch (xilCommandIdx) { - case 1: - { - static int initComplete = 0; - if (!initComplete) { - uint32_T tableIdx = 0; - - { - void * dataAddress = (void *) &(FCC_Sys_New_harness_Y.Actuator1); - xil_fcnid0_task1_y[tableIdx].memUnitLength = 1 * sizeof(int16_T); - xil_fcnid0_task1_y[tableIdx++].address = (MemUnit_T *) dataAddress; - } - - { - void * dataAddress = (void *) &(FCC_Sys_New_harness_Y.Actuator2); - xil_fcnid0_task1_y[tableIdx].memUnitLength = 1 * sizeof(int16_T); - xil_fcnid0_task1_y[tableIdx++].address = (MemUnit_T *) dataAddress; - } - - { - void * dataAddress = (void *) &(FCC_Sys_New_harness_Y.Actuator3); - xil_fcnid0_task1_y[tableIdx].memUnitLength = 1 * sizeof(int16_T); - xil_fcnid0_task1_y[tableIdx++].address = (MemUnit_T *) dataAddress; - } - - xil_fcnid0_task1_y[tableIdx].memUnitLength = 0; - xil_fcnid0_task1_y[tableIdx++].address = (MemUnit_T *) 0; - initComplete = 1; - } /* if */ - - { - if (xilWriteData(&responseId, sizeof(responseId)) != - XIL_DATA_STREAM_SUCCESS) { - return XIL_INTERFACE_COMMS_FAILURE; - } /* if */ - - if (responseId == XIL_RESPONSE_CS_REQUEST_SERVICE) { - if (xilWriteData((MemUnit_T *) &serverFcnId, sizeof(serverFcnId)) - != XIL_DATA_STREAM_SUCCESS) { - return XIL_INTERFACE_COMMS_FAILURE; - } /* if */ - } /* if */ - } - - *xilIOData = &xil_fcnid0_task1_y[0]; - break; - } - - default: - errorCode = XIL_INTERFACE_UNKNOWN_TID; - break; - } - break; - } - - default: - errorCode = XIL_INTERFACE_UNKNOWN_TID; - break; - } - - return errorCode; -} - -XIL_INTERFACE_ERROR_CODE xilTerminate(uint32_T xilFcnId) -{ - if (xilFcnId != 0) { - return XIL_INTERFACE_UNKNOWN_FCNID; - } /* if */ - - /* Invoke any terminate Function */ - /* No Function to Call */ - return XIL_INTERFACE_SUCCESS; -} - -XIL_INTERFACE_ERROR_CODE xilEnable(uint32_T xilFcnId, uint32_T xilTID) -{ - /* Single In-the-Loop Component */ - if (xilFcnId != 0) { - return XIL_INTERFACE_UNKNOWN_FCNID; - } - - UNUSED_PARAMETER(xilTID); - - /* No Enable Function - this function should never be called */ - return XIL_INTERFACE_UNKNOWN_TID; -} - -XIL_INTERFACE_ERROR_CODE xilDisable(uint32_T xilFcnId, uint32_T xilTID) -{ - /* Single In-the-Loop Component */ - if (xilFcnId != 0) { - return XIL_INTERFACE_UNKNOWN_FCNID; - } - - UNUSED_PARAMETER(xilTID); - - /* No Disable Function - this function should never be called */ - return XIL_INTERFACE_UNKNOWN_TID; -} diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_interface.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_interface.obj deleted file mode 100644 index f6561368d2d5af3fc65c0f640d49c43fd1e9b5db..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_interface.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_interface_lib.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_interface_lib.obj deleted file mode 100644 index 27e4432e883c23f65a189219b861fee9983910dd..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_interface_lib.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_rtiostream.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_rtiostream.obj deleted file mode 100644 index 55b55fc244573100a41afea0c2871f5fb9717359..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_rtiostream.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_services.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_services.obj deleted file mode 100644 index 18b6e646c7c5e17c8d0dc5389bd17e4fffc75f46..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xil_services.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xilcomms_rtiostream.obj b/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xilcomms_rtiostream.obj deleted file mode 100644 index 488a1912298a72b98b3a4d3afac2de134114831b..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_ert_rtw/sil/xilcomms_rtiostream.obj and /dev/null differ diff --git a/src/validation/FCC_Sys_New_harness_ert_rtw/tmwinternal/simulink_cache.xml b/src/validation/FCC_Sys_New_harness_ert_rtw/tmwinternal/simulink_cache.xml deleted file mode 100644 index 9318e32c307061cf03f104ae33b5d9ee2c4512dc..0000000000000000000000000000000000000000 --- a/src/validation/FCC_Sys_New_harness_ert_rtw/tmwinternal/simulink_cache.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - sfdyHzBTQG0a+B822/uHBg== - - \ No newline at end of file diff --git a/src/validation/FCC_Sys_New_harness_sbs.mexw64 b/src/validation/FCC_Sys_New_harness_sbs.mexw64 deleted file mode 100644 index 37e60db4baf3d6c87f5b650f882b354af45db5d4..0000000000000000000000000000000000000000 Binary files a/src/validation/FCC_Sys_New_harness_sbs.mexw64 and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/AHRSControl.c b/src/validation/slprj/ert/AHRSControl/AHRSControl.c deleted file mode 100644 index ec131ac27a9c19fcb8e37ff232cdb9e38313472e..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/AHRSControl.c +++ /dev/null @@ -1,887 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: AHRSControl.c - * - * Code generated for Simulink model 'AHRSControl'. - * - * Model version : 1.131 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:50:39 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#include "AHRSControl.h" - -/* Macros for accessing real-time model data structure */ -#ifndef rtmGetErrorStatus -# define rtmGetErrorStatus(rtm) (*((rtm)->errorStatus)) -#endif - -#ifndef rtmSetErrorStatus -# define rtmSetErrorStatus(rtm, val) (*((rtm)->errorStatus) = (val)) -#endif - -#ifndef rtmGetErrorStatusPointer -# define rtmGetErrorStatusPointer(rtm) (rtm)->errorStatus -#endif - -#ifndef rtmSetErrorStatusPointer -# define rtmSetErrorStatusPointer(rtm, val) ((rtm)->errorStatus = (val)) -#endif - -MdlrefDW_AHRSControl_T AHRSControl_MdlrefDW; - -/* Block states (default storage) */ -DW_AHRSControl_f_T AHRSControl_DW; -extern void AHRSControl_Filter(real_T rtu_Signal, real_T rtu_prev_FeedbackSum, - real_T *rty_filtered_Signal, real_T *rty_FeedbackSum); -extern void AHRSControl_pitch_feedback(real_T rtu_theta_cmd, const real_T - rtu_voted_fb[5], real_T *rty_ds); -extern void AHRSControl_roll_feedback(real_T rtu_phi_cmd, const real_T - rtu_voted_fb[5], real_T *rty_dc); -extern void AHRSControl_yaw_feedback(real_T rtu_r_cmd, const real_T - rtu_voted_fb[5], real_T *rty_dT); -extern void AHRSControl_Heli_inner_loop(real_T rtu_theta_cmd, real_T rtu_phi_cmd, - real_T rtu_r_cmd, const real_T rtu_voted_fb[5], real_T rty_actuator_commands[3]); -extern void AHRSControl_Pitch_loop_Disable(void); -extern void AHRSControl_Pitch_loop(real_T rtu_Pilot_theta_cmd, real_T rtu_theta, - real_T *rty_theta_cmd); -extern void AHRSControl_Roll_loop_Disable(void); -extern void AHRSControl_Roll_loop(real_T rtu_Pilot_phi_cmd, real_T rtu_phi, - real_T *rty_phi_cmd); -extern void AHRSControl_Yaw_loop_Disable(void); -extern void AHRSControl_Yaw_loop(real_T rtu_Pilot_r_cmd, real_T rtu_r, real_T - *rty_r_cmd); -extern void AHRSCon_Heli_outer_loop_Disable(void); -extern void AHRSControl_Heli_outer_loop(int16_T rtu_Pilot_theta_cmd, int16_T - rtu_Pilot_phi_cmd, int16_T rtu_Pilot_r_cmd, const real_T rtu_voted_fb[5], - real_T *rty_theta_cmd, real_T *rty_phi_cmd, real_T *rty_r_cmd); -extern void AHRSContro_AHRSLoopCtrl_Disable(void); -extern void AHRSControl_AHRSLoopCtrl(int16_T rtu_Pilot_theta_cmd, int16_T - rtu_Pilot_phi_cmd, int16_T rtu_Pilot_r_cmd, const real_T rtu_voted_fb[5], - real_T rty_actuator_commands[3]); -extern void AHRSControl_Avg_Value(const real_T rtu_AHRS1[5], const real_T - rtu_AHRS2[5], const real_T rtu_AHRS3[5], boolean_T rtu_AHRS1_Valid, boolean_T - rtu_AHRS2_Valid, boolean_T rtu_AHRS3_Valid, real_T rty_Avg_Value[5]); -extern void AHRSControl_Mid_Value(const real_T rtu_AHRS1[5], const real_T - rtu_AHRS2[5], const real_T rtu_AHRS3[5], real_T rty_Mid_Value[5]); -extern void AHRSControl_Single_Value(const real_T rtu_AHRS1[5], const real_T - rtu_AHRS2[5], const real_T rtu_AHRS3[5], boolean_T rtu_AHRS1_Valid, boolean_T - rtu_AHRS2_Valid, boolean_T rtu_AHRS3_Valid, real_T rty_Single_Value[5]); -extern void AHRSControl_AHRS_voter(const AHRS_Bus *rtu_AHRS1, const AHRS_Bus - *rtu_AHRS2, const AHRS_Bus *rtu_AHRS3, real_T rty_voted_fb[5]); - -/* Output and update for Simulink Function: '/Filter' */ -void AHRSControl_Filter(real_T rtu_Signal, real_T rtu_prev_FeedbackSum, real_T - *rty_filtered_Signal, real_T *rty_FeedbackSum) -{ - real_T rtb_SumB21; - - /* Sum: '/SumA21' incorporates: - * Gain: '/a_2_1' - * Gain: '/s_1' - * SignalConversion generated from: '/Signal' - * SignalConversion generated from: '/prev_FeedbackSum' - */ - rtb_SumB21 = (0.16840424129937498 * rtu_Signal) - (-0.66319151740124993 * - rtu_prev_FeedbackSum); - - /* SignalConversion generated from: '/FeedbackSum' */ - *rty_FeedbackSum = rtb_SumB21; - - /* SignalConversion generated from: '/filtered_Signal' incorporates: - * SignalConversion generated from: '/prev_FeedbackSum' - * Sum: '/SumB21' - */ - *rty_filtered_Signal = rtb_SumB21 + rtu_prev_FeedbackSum; -} - -/* Output and update for Simulink Function: '/pitch_feedback' */ -void AHRSControl_pitch_feedback(real_T rtu_theta_cmd, const real_T rtu_voted_fb - [5], real_T *rty_ds) -{ - real_T rtb_ds; - real_T rtb_Filter_caller_o2; - int32_T i; - - /* Gain: '/Gain' incorporates: - * SignalConversion generated from: '/voted_fb' - */ - rtb_ds = 0.0; - for (i = 0; i < 5; i++) { - rtb_ds += AHRSControl_ConstP.Gain_Gain[i] * rtu_voted_fb[i]; - } - - /* Sum: '/Sum5' incorporates: - * Gain: '/Gain' - * SignalConversion generated from: '/theta_cmd' - */ - rtb_ds = rtu_theta_cmd - rtb_ds; - - /* FunctionCaller: '/Filter_caller' incorporates: - * UnitDelay: '/Unit Delay' - */ - AHRSControl_Filter(rtb_ds, AHRSControl_DW.UnitDelay_DSTATE_j, &rtb_ds, - &rtb_Filter_caller_o2); - - /* SignalConversion generated from: '/ds' */ - *rty_ds = rtb_ds; - - /* Update for UnitDelay: '/Unit Delay' */ - AHRSControl_DW.UnitDelay_DSTATE_j = rtb_Filter_caller_o2; -} - -/* Output and update for Simulink Function: '/roll_feedback' */ -void AHRSControl_roll_feedback(real_T rtu_phi_cmd, const real_T rtu_voted_fb[5], - real_T *rty_dc) -{ - real_T rtb_dc; - real_T rtb_Filter_caller_o2; - int32_T i; - - /* Gain: '/Gain' incorporates: - * SignalConversion generated from: '/voted_fb' - */ - rtb_dc = 0.0; - for (i = 0; i < 5; i++) { - rtb_dc += AHRSControl_ConstP.Gain_Gain_d[i] * rtu_voted_fb[i]; - } - - /* Sum: '/Sum5' incorporates: - * Gain: '/Gain' - * SignalConversion generated from: '/phi_cmd' - */ - rtb_dc = rtu_phi_cmd - rtb_dc; - - /* FunctionCaller: '/Filter_caller' incorporates: - * UnitDelay: '/Unit Delay' - */ - AHRSControl_Filter(rtb_dc, AHRSControl_DW.UnitDelay_DSTATE_f, &rtb_dc, - &rtb_Filter_caller_o2); - - /* SignalConversion generated from: '/dc' */ - *rty_dc = rtb_dc; - - /* Update for UnitDelay: '/Unit Delay' */ - AHRSControl_DW.UnitDelay_DSTATE_f = rtb_Filter_caller_o2; -} - -/* Output and update for Simulink Function: '/yaw_feedback' */ -void AHRSControl_yaw_feedback(real_T rtu_r_cmd, const real_T rtu_voted_fb[5], - real_T *rty_dT) -{ - real_T rtb_dT; - real_T rtb_Filter_caller_o2; - int32_T i; - - /* Gain: '/Gain' incorporates: - * SignalConversion generated from: '/voted_fb' - */ - rtb_dT = 0.0; - for (i = 0; i < 5; i++) { - rtb_dT += AHRSControl_ConstP.Gain_Gain_b[i] * rtu_voted_fb[i]; - } - - /* Sum: '/Sum5' incorporates: - * Gain: '/Gain' - * SignalConversion generated from: '/r_cmd' - */ - rtb_dT = rtu_r_cmd - rtb_dT; - - /* FunctionCaller: '/Filter_caller' incorporates: - * UnitDelay: '/Unit Delay' - */ - AHRSControl_Filter(rtb_dT, AHRSControl_DW.UnitDelay_DSTATE, &rtb_dT, - &rtb_Filter_caller_o2); - - /* SignalConversion generated from: '/dT' */ - *rty_dT = rtb_dT; - - /* Update for UnitDelay: '/Unit Delay' */ - AHRSControl_DW.UnitDelay_DSTATE = rtb_Filter_caller_o2; -} - -/* Output and update for Simulink Function: '/Heli_inner_loop' */ -void AHRSControl_Heli_inner_loop(real_T rtu_theta_cmd, real_T rtu_phi_cmd, - real_T rtu_r_cmd, const real_T rtu_voted_fb[5], real_T rty_actuator_commands[3]) -{ - real_T rtb_pitch_feedback_caller; - real_T rtb_TmpSignalConversionAtvote_o[5]; - real_T rtb_roll_feedback_caller; - real_T rtb_yaw_feedback_caller; - int32_T i; - - /* SignalConversion generated from: '/theta_cmd' */ - rtb_pitch_feedback_caller = rtu_theta_cmd; - - /* SignalConversion generated from: '/voted_fb' */ - for (i = 0; i < 5; i++) { - rtb_TmpSignalConversionAtvote_o[i] = rtu_voted_fb[i]; - } - - /* End of SignalConversion generated from: '/voted_fb' */ - - /* FunctionCaller: '/pitch_feedback_caller' incorporates: - * SignalConversion generated from: '/theta_cmd' - */ - AHRSControl_pitch_feedback(rtu_theta_cmd, rtb_TmpSignalConversionAtvote_o, - &rtb_pitch_feedback_caller); - - /* SignalConversion generated from: '/phi_cmd' */ - rtb_roll_feedback_caller = rtu_phi_cmd; - - /* FunctionCaller: '/roll_feedback_caller' incorporates: - * SignalConversion generated from: '/phi_cmd' - */ - AHRSControl_roll_feedback(rtu_phi_cmd, rtb_TmpSignalConversionAtvote_o, - &rtb_roll_feedback_caller); - - /* SignalConversion generated from: '/r_cmd' */ - rtb_yaw_feedback_caller = rtu_r_cmd; - - /* FunctionCaller: '/yaw_feedback_caller' incorporates: - * SignalConversion generated from: '/r_cmd' - */ - AHRSControl_yaw_feedback(rtu_r_cmd, rtb_TmpSignalConversionAtvote_o, - &rtb_yaw_feedback_caller); - - /* Gain: '/Gain' */ - rtb_pitch_feedback_caller *= 0.0033333333333333335; - - /* Saturate: '/Saturation' */ - if (rtb_pitch_feedback_caller > 0.1) { - /* SignalConversion generated from: '/actuator_commands' */ - rty_actuator_commands[0] = 0.1; - } else if (rtb_pitch_feedback_caller < -0.1) { - /* SignalConversion generated from: '/actuator_commands' */ - rty_actuator_commands[0] = -0.1; - } else { - /* SignalConversion generated from: '/actuator_commands' */ - rty_actuator_commands[0] = rtb_pitch_feedback_caller; - } - - /* Gain: '/Gain' */ - rtb_pitch_feedback_caller = 0.0033333333333333335 * rtb_roll_feedback_caller; - - /* Saturate: '/Saturation' */ - if (rtb_pitch_feedback_caller > 0.1) { - /* SignalConversion generated from: '/actuator_commands' */ - rty_actuator_commands[1] = 0.1; - } else if (rtb_pitch_feedback_caller < -0.1) { - /* SignalConversion generated from: '/actuator_commands' */ - rty_actuator_commands[1] = -0.1; - } else { - /* SignalConversion generated from: '/actuator_commands' */ - rty_actuator_commands[1] = rtb_pitch_feedback_caller; - } - - /* Gain: '/Gain' */ - rtb_pitch_feedback_caller = 0.0033333333333333335 * rtb_yaw_feedback_caller; - - /* Saturate: '/Saturation' */ - if (rtb_pitch_feedback_caller > 0.1) { - /* SignalConversion generated from: '/actuator_commands' */ - rty_actuator_commands[2] = 0.1; - } else if (rtb_pitch_feedback_caller < -0.1) { - /* SignalConversion generated from: '/actuator_commands' */ - rty_actuator_commands[2] = -0.1; - } else { - /* SignalConversion generated from: '/actuator_commands' */ - rty_actuator_commands[2] = rtb_pitch_feedback_caller; - } -} - -/* Disable for Simulink Function: '/Pitch_loop' */ -void AHRSControl_Pitch_loop_Disable(void) -{ - /* Disable for DiscreteIntegrator: '/Integrator' */ - AHRSControl_DW.Integrator_DSTATE = AHRSControl_DW.Integrator; -} - -/* Output and update for Simulink Function: '/Pitch_loop' */ -void AHRSControl_Pitch_loop(real_T rtu_Pilot_theta_cmd, real_T rtu_theta, real_T - *rty_theta_cmd) -{ - real_T rtb_Sum; - - /* DiscreteIntegrator: '/Integrator' */ - AHRSControl_DW.Integrator = AHRSControl_DW.Integrator_DSTATE; - - /* Sum: '/Sum' incorporates: - * SignalConversion generated from: '/Pilot_theta_cmd' - * SignalConversion generated from: '/theta' - */ - rtb_Sum = rtu_Pilot_theta_cmd - rtu_theta; - - /* SignalConversion generated from: '/theta_cmd' incorporates: - * Gain: '/Gain' - * Gain: '/Gain1' - * Sum: '/Sum3' - */ - *rty_theta_cmd = (0.01 * AHRSControl_DW.Integrator) + (1.13 * rtb_Sum); - - /* Update for DiscreteIntegrator: '/Integrator' incorporates: - * Gain: '/Gain2' - */ - AHRSControl_DW.Integrator_DSTATE += 2.25 * rtb_Sum; - if (AHRSControl_DW.Integrator_DSTATE >= 10.0) { - AHRSControl_DW.Integrator_DSTATE = 10.0; - } else { - if (AHRSControl_DW.Integrator_DSTATE <= -10.0) { - AHRSControl_DW.Integrator_DSTATE = -10.0; - } - } - - /* End of Update for DiscreteIntegrator: '/Integrator' */ -} - -/* Disable for Simulink Function: '/Roll_loop' */ -void AHRSControl_Roll_loop_Disable(void) -{ - /* Disable for DiscreteIntegrator: '/Integrator1' */ - AHRSControl_DW.Integrator1_DSTATE = AHRSControl_DW.Integrator1; -} - -/* Output and update for Simulink Function: '/Roll_loop' */ -void AHRSControl_Roll_loop(real_T rtu_Pilot_phi_cmd, real_T rtu_phi, real_T - *rty_phi_cmd) -{ - real_T rtb_Sum; - - /* DiscreteIntegrator: '/Integrator1' */ - AHRSControl_DW.Integrator1 = AHRSControl_DW.Integrator1_DSTATE; - - /* Sum: '/Sum' incorporates: - * SignalConversion generated from: '/Pilot_phi_cmd' - * SignalConversion generated from: '/phi' - */ - rtb_Sum = rtu_Pilot_phi_cmd - rtu_phi; - - /* SignalConversion generated from: '/phi_cmd' incorporates: - * Gain: '/Gain1' - * Gain: '/Gain2' - * Sum: '/Sum4' - */ - *rty_phi_cmd = (0.01 * AHRSControl_DW.Integrator1) + (-0.086 * rtb_Sum); - - /* Update for DiscreteIntegrator: '/Integrator1' incorporates: - * Gain: '/Gain3' - */ - AHRSControl_DW.Integrator1_DSTATE += -1.19 * rtb_Sum; - if (AHRSControl_DW.Integrator1_DSTATE >= 10.0) { - AHRSControl_DW.Integrator1_DSTATE = 10.0; - } else { - if (AHRSControl_DW.Integrator1_DSTATE <= -10.0) { - AHRSControl_DW.Integrator1_DSTATE = -10.0; - } - } - - /* End of Update for DiscreteIntegrator: '/Integrator1' */ -} - -/* Disable for Simulink Function: '/Yaw_loop' */ -void AHRSControl_Yaw_loop_Disable(void) -{ - /* Disable for DiscreteIntegrator: '/Integrator2' */ - AHRSControl_DW.Integrator2_DSTATE = AHRSControl_DW.Integrator2; -} - -/* Output and update for Simulink Function: '/Yaw_loop' */ -void AHRSControl_Yaw_loop(real_T rtu_Pilot_r_cmd, real_T rtu_r, real_T - *rty_r_cmd) -{ - real_T rtb_Sum; - - /* DiscreteIntegrator: '/Integrator2' */ - AHRSControl_DW.Integrator2 = AHRSControl_DW.Integrator2_DSTATE; - - /* Sum: '/Sum' incorporates: - * SignalConversion generated from: '/Pilot_r_cmd' - * SignalConversion generated from: '/r' - */ - rtb_Sum = rtu_Pilot_r_cmd - rtu_r; - - /* SignalConversion generated from: '/r_cmd' incorporates: - * Gain: '/Gain1' - * Gain: '/Gain4' - * Sum: '/Sum5' - */ - *rty_r_cmd = (0.01 * AHRSControl_DW.Integrator2) + (1.33 * rtb_Sum); - - /* Update for DiscreteIntegrator: '/Integrator2' incorporates: - * Gain: '/Gain5' - */ - AHRSControl_DW.Integrator2_DSTATE += -2.33 * rtb_Sum; - if (AHRSControl_DW.Integrator2_DSTATE >= 10.0) { - AHRSControl_DW.Integrator2_DSTATE = 10.0; - } else { - if (AHRSControl_DW.Integrator2_DSTATE <= -10.0) { - AHRSControl_DW.Integrator2_DSTATE = -10.0; - } - } - - /* End of Update for DiscreteIntegrator: '/Integrator2' */ -} - -/* Disable for Simulink Function: '/Heli_outer_loop' */ -void AHRSCon_Heli_outer_loop_Disable(void) -{ - /* Disable for S-Function (sfun_private_function_caller) generated from: '/Roll_loop' incorporates: - * SubSystem: '/Roll_loop' - */ - AHRSControl_Roll_loop_Disable(); - - /* End of Disable for S-Function (sfun_private_function_caller) generated from: '/Roll_loop' */ - - /* Disable for S-Function (sfun_private_function_caller) generated from: '/Yaw_loop' incorporates: - * SubSystem: '/Yaw_loop' - */ - AHRSControl_Yaw_loop_Disable(); - - /* End of Disable for S-Function (sfun_private_function_caller) generated from: '/Yaw_loop' */ - - /* Disable for S-Function (sfun_private_function_caller) generated from: '/Pitch_loop' incorporates: - * SubSystem: '/Pitch_loop' - */ - AHRSControl_Pitch_loop_Disable(); - - /* End of Disable for S-Function (sfun_private_function_caller) generated from: '/Pitch_loop' */ -} - -/* Output and update for Simulink Function: '/Heli_outer_loop' */ -void AHRSControl_Heli_outer_loop(int16_T rtu_Pilot_theta_cmd, int16_T - rtu_Pilot_phi_cmd, int16_T rtu_Pilot_r_cmd, const real_T rtu_voted_fb[5], - real_T *rty_theta_cmd, real_T *rty_phi_cmd, real_T *rty_r_cmd) -{ - real_T rtb_Saturation_f; - - /* Gain: '/Scaling1' incorporates: - * DataTypeConversion: '/TypeConversion1' - * SignalConversion generated from: '/Pilot_phi_cmd' - */ - rtb_Saturation_f = 0.00091555528427991577 * ((real_T)rtu_Pilot_phi_cmd); - - /* FunctionCaller: '/Roll_loop_caller' incorporates: - * SignalConversion generated from: '/voted_fb' - */ - AHRSControl_Roll_loop(rtb_Saturation_f, rtu_voted_fb[1], &rtb_Saturation_f); - - /* Saturate: '/Saturation1' */ - if (rtb_Saturation_f > 30.0) { - /* SignalConversion generated from: '/phi_cmd' */ - *rty_phi_cmd = 30.0; - } else if (rtb_Saturation_f < -30.0) { - /* SignalConversion generated from: '/phi_cmd' */ - *rty_phi_cmd = -30.0; - } else { - /* SignalConversion generated from: '/phi_cmd' */ - *rty_phi_cmd = rtb_Saturation_f; - } - - /* End of Saturate: '/Saturation1' */ - - /* Gain: '/Scaling2' incorporates: - * DataTypeConversion: '/TypeConversion2' - * SignalConversion generated from: '/Pilot_r_cmd' - */ - rtb_Saturation_f = 0.00045777764213995788 * ((real_T)rtu_Pilot_r_cmd); - - /* FunctionCaller: '/Yaw_loop_caller' incorporates: - * SignalConversion generated from: '/voted_fb' - */ - AHRSControl_Yaw_loop(rtb_Saturation_f, rtu_voted_fb[2], &rtb_Saturation_f); - - /* Saturate: '/Saturation2' */ - if (rtb_Saturation_f > 30.0) { - /* SignalConversion generated from: '/r_cmd' */ - *rty_r_cmd = 30.0; - } else if (rtb_Saturation_f < -30.0) { - /* SignalConversion generated from: '/r_cmd' */ - *rty_r_cmd = -30.0; - } else { - /* SignalConversion generated from: '/r_cmd' */ - *rty_r_cmd = rtb_Saturation_f; - } - - /* End of Saturate: '/Saturation2' */ - - /* Gain: '/Scaling' incorporates: - * DataTypeConversion: '/TypeConversion' - * SignalConversion generated from: '/Pilot_theta_cmd' - */ - rtb_Saturation_f = 0.00091555528427991577 * ((real_T)rtu_Pilot_theta_cmd); - - /* FunctionCaller: '/Pitch_loop_caller' incorporates: - * SignalConversion generated from: '/voted_fb' - */ - AHRSControl_Pitch_loop(rtb_Saturation_f, rtu_voted_fb[0], &rtb_Saturation_f); - - /* Saturate: '/Saturation' */ - if (rtb_Saturation_f > 30.0) { - /* SignalConversion generated from: '/theta_cmd' */ - *rty_theta_cmd = 30.0; - } else if (rtb_Saturation_f < -30.0) { - /* SignalConversion generated from: '/theta_cmd' */ - *rty_theta_cmd = -30.0; - } else { - /* SignalConversion generated from: '/theta_cmd' */ - *rty_theta_cmd = rtb_Saturation_f; - } - - /* End of Saturate: '/Saturation' */ -} - -/* Disable for Simulink Function: '/AHRSLoopCtrl' */ -void AHRSContro_AHRSLoopCtrl_Disable(void) -{ - /* Disable for S-Function (sfun_private_function_caller) generated from: '/Heli_outer_loop' incorporates: - * SubSystem: '/Heli_outer_loop' - */ - AHRSCon_Heli_outer_loop_Disable(); - - /* End of Disable for S-Function (sfun_private_function_caller) generated from: '/Heli_outer_loop' */ -} - -/* Output and update for Simulink Function: '/AHRSLoopCtrl' */ -void AHRSControl_AHRSLoopCtrl(int16_T rtu_Pilot_theta_cmd, int16_T - rtu_Pilot_phi_cmd, int16_T rtu_Pilot_r_cmd, const real_T rtu_voted_fb[5], - real_T rty_actuator_commands[3]) -{ - real_T rtb_TmpSignalConversionAtvote_g[5]; - real_T rtb_Heli_outer_loop_caller_o1; - real_T rtb_Heli_outer_loop_caller_o2; - real_T rtb_Heli_outer_loop_caller_o3; - int32_T i; - - /* SignalConversion generated from: '/voted_fb' */ - for (i = 0; i < 5; i++) { - rtb_TmpSignalConversionAtvote_g[i] = rtu_voted_fb[i]; - } - - /* End of SignalConversion generated from: '/voted_fb' */ - - /* FunctionCaller: '/Heli_outer_loop_caller' incorporates: - * SignalConversion generated from: '/Pilot_phi_cmd' - * SignalConversion generated from: '/Pilot_r_cmd' - * SignalConversion generated from: '/Pilot_theta_cmd' - */ - AHRSControl_Heli_outer_loop(rtu_Pilot_theta_cmd, rtu_Pilot_phi_cmd, - rtu_Pilot_r_cmd, rtb_TmpSignalConversionAtvote_g, - &rtb_Heli_outer_loop_caller_o1, &rtb_Heli_outer_loop_caller_o2, - &rtb_Heli_outer_loop_caller_o3); - - /* SignalConversion generated from: '/actuator_commands' incorporates: - * FunctionCaller: '/Heli_inner_loop_caller' - */ - AHRSControl_Heli_inner_loop(rtb_Heli_outer_loop_caller_o1, - rtb_Heli_outer_loop_caller_o2, rtb_Heli_outer_loop_caller_o3, - rtb_TmpSignalConversionAtvote_g, rty_actuator_commands); -} - -/* Output and update for Simulink Function: '/Avg_Value' */ -void AHRSControl_Avg_Value(const real_T rtu_AHRS1[5], const real_T rtu_AHRS2[5], - const real_T rtu_AHRS3[5], boolean_T rtu_AHRS1_Valid, boolean_T - rtu_AHRS2_Valid, boolean_T rtu_AHRS3_Valid, real_T rty_Avg_Value[5]) -{ - int32_T i; - real_T rtu_AHRS2_Valid_0; - real_T rtu_AHRS3_Valid_0; - for (i = 0; i < 5; i++) { - /* Switch: '/Switch' incorporates: - * SignalConversion generated from: '/AHRS1' - * SignalConversion generated from: '/AHRS1_Valid' - */ - if (rtu_AHRS1_Valid) { - rty_Avg_Value[i] = rtu_AHRS1[i]; - } else { - rty_Avg_Value[i] = 0.0; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch1' incorporates: - * SignalConversion generated from: '/AHRS2' - * SignalConversion generated from: '/AHRS2_Valid' - */ - if (rtu_AHRS2_Valid) { - rtu_AHRS2_Valid_0 = rtu_AHRS2[i]; - } else { - rtu_AHRS2_Valid_0 = 0.0; - } - - /* End of Switch: '/Switch1' */ - - /* Switch: '/Switch2' incorporates: - * SignalConversion generated from: '/AHRS3' - * SignalConversion generated from: '/AHRS3_Valid' - */ - if (rtu_AHRS3_Valid) { - rtu_AHRS3_Valid_0 = rtu_AHRS3[i]; - } else { - rtu_AHRS3_Valid_0 = 0.0; - } - - /* End of Switch: '/Switch2' */ - - /* SignalConversion generated from: '/Avg_Value' incorporates: - * Gain: '/Gain' - * Sum: '/Sum' - */ - rty_Avg_Value[i] = ((rty_Avg_Value[i] + rtu_AHRS2_Valid_0) + - rtu_AHRS3_Valid_0) * 0.5; - } -} - -/* Output and update for Simulink Function: '/Mid_Value' */ -void AHRSControl_Mid_Value(const real_T rtu_AHRS1[5], const real_T rtu_AHRS2[5], - const real_T rtu_AHRS3[5], real_T rty_Mid_Value[5]) -{ - int32_T i; - - /* SignalConversion generated from: '/Mid_Value' incorporates: - * MinMax: '/MinMax' - * MinMax: '/MinMax1' - * MinMax: '/MinMax2' - * MinMax: '/MinMax3' - * SignalConversion generated from: '/AHRS1' - * SignalConversion generated from: '/AHRS2' - * SignalConversion generated from: '/AHRS3' - */ - for (i = 0; i < 5; i++) { - rty_Mid_Value[i] = fmax(fmax(fmin(rtu_AHRS1[i], rtu_AHRS2[i]), fmin - (rtu_AHRS2[i], rtu_AHRS3[i])), fmin(rtu_AHRS3[i], rtu_AHRS1[i])); - } - - /* End of SignalConversion generated from: '/Mid_Value' */ -} - -/* Output and update for Simulink Function: '/Single_Value' */ -void AHRSControl_Single_Value(const real_T rtu_AHRS1[5], const real_T rtu_AHRS2 - [5], const real_T rtu_AHRS3[5], boolean_T rtu_AHRS1_Valid, boolean_T - rtu_AHRS2_Valid, boolean_T rtu_AHRS3_Valid, real_T rty_Single_Value[5]) -{ - int32_T i; - real_T rtu_AHRS2_Valid_0; - real_T rtu_AHRS3_Valid_0; - for (i = 0; i < 5; i++) { - /* Switch: '/Switch' incorporates: - * SignalConversion generated from: '/AHRS1' - * SignalConversion generated from: '/AHRS1_Valid' - */ - if (rtu_AHRS1_Valid) { - rty_Single_Value[i] = rtu_AHRS1[i]; - } else { - rty_Single_Value[i] = 0.0; - } - - /* End of Switch: '/Switch' */ - - /* Switch: '/Switch1' incorporates: - * SignalConversion generated from: '/AHRS2' - * SignalConversion generated from: '/AHRS2_Valid' - */ - if (rtu_AHRS2_Valid) { - rtu_AHRS2_Valid_0 = rtu_AHRS2[i]; - } else { - rtu_AHRS2_Valid_0 = 0.0; - } - - /* End of Switch: '/Switch1' */ - - /* Switch: '/Switch2' incorporates: - * SignalConversion generated from: '/AHRS3' - * SignalConversion generated from: '/AHRS3_Valid' - */ - if (rtu_AHRS3_Valid) { - rtu_AHRS3_Valid_0 = rtu_AHRS3[i]; - } else { - rtu_AHRS3_Valid_0 = 0.0; - } - - /* End of Switch: '/Switch2' */ - - /* SignalConversion generated from: '/Single_Value' incorporates: - * Sum: '/Sum' - */ - rty_Single_Value[i] = (rty_Single_Value[i] + rtu_AHRS2_Valid_0) + - rtu_AHRS3_Valid_0; - } -} - -/* Output and update for Simulink Function: '/AHRS_voter' */ -void AHRSControl_AHRS_voter(const AHRS_Bus *rtu_AHRS1, const AHRS_Bus *rtu_AHRS2, - const AHRS_Bus *rtu_AHRS3, real_T rty_voted_fb[5]) -{ - real_T rtb_TmpSignalConversionAtAvg__o[5]; - real_T rtb_TmpSignalConversionAtAvg__d[5]; - real_T rtb_MultiportSwitch[5]; - real_T rtb_Single_Value_caller[5]; - real_T rtb_Avg_Value_caller[5]; - int32_T i; - - /* SignalConversion generated from: '/Avg_Value_caller' incorporates: - * SignalConversion generated from: '/AHRS1' - */ - rtb_TmpSignalConversionAtAvg__o[0] = rtu_AHRS1->theta; - rtb_TmpSignalConversionAtAvg__o[1] = rtu_AHRS1->phi; - rtb_TmpSignalConversionAtAvg__o[2] = rtu_AHRS1->r; - rtb_TmpSignalConversionAtAvg__o[3] = rtu_AHRS1->q; - rtb_TmpSignalConversionAtAvg__o[4] = rtu_AHRS1->p; - - /* SignalConversion generated from: '/Avg_Value_caller' incorporates: - * SignalConversion generated from: '/AHRS2' - */ - rtb_TmpSignalConversionAtAvg__d[0] = rtu_AHRS2->theta; - rtb_TmpSignalConversionAtAvg__d[1] = rtu_AHRS2->phi; - rtb_TmpSignalConversionAtAvg__d[2] = rtu_AHRS2->r; - rtb_TmpSignalConversionAtAvg__d[3] = rtu_AHRS2->q; - rtb_TmpSignalConversionAtAvg__d[4] = rtu_AHRS2->p; - - /* SignalConversion generated from: '/Avg_Value_caller' incorporates: - * SignalConversion generated from: '/AHRS3' - */ - rtb_MultiportSwitch[0] = rtu_AHRS3->theta; - rtb_MultiportSwitch[1] = rtu_AHRS3->phi; - rtb_MultiportSwitch[2] = rtu_AHRS3->r; - rtb_MultiportSwitch[3] = rtu_AHRS3->q; - rtb_MultiportSwitch[4] = rtu_AHRS3->p; - - /* FunctionCaller: '/Single_Value_caller' incorporates: - * SignalConversion generated from: '/AHRS1' - * SignalConversion generated from: '/AHRS2' - * SignalConversion generated from: '/AHRS3' - */ - AHRSControl_Single_Value(rtb_TmpSignalConversionAtAvg__o, - rtb_TmpSignalConversionAtAvg__d, rtb_MultiportSwitch, rtu_AHRS1->valid, - rtu_AHRS2->valid, rtu_AHRS3->valid, rtb_Single_Value_caller); - - /* FunctionCaller: '/Avg_Value_caller' incorporates: - * SignalConversion generated from: '/AHRS1' - * SignalConversion generated from: '/AHRS2' - * SignalConversion generated from: '/AHRS3' - */ - AHRSControl_Avg_Value(rtb_TmpSignalConversionAtAvg__o, - rtb_TmpSignalConversionAtAvg__d, rtb_MultiportSwitch, - rtu_AHRS1->valid, rtu_AHRS2->valid, rtu_AHRS3->valid, - rtb_Avg_Value_caller); - - /* FunctionCaller: '/Mid_Value_caller' */ - AHRSControl_Mid_Value(rtb_TmpSignalConversionAtAvg__o, - rtb_TmpSignalConversionAtAvg__d, rtb_MultiportSwitch, - rty_voted_fb); - - /* MultiPortSwitch: '/MultiportSwitch' incorporates: - * SignalConversion generated from: '/AHRS1' - * SignalConversion generated from: '/AHRS2' - * SignalConversion generated from: '/AHRS3' - * Sum: '/Sum' - */ - switch ((((uint32_T)(rtu_AHRS1->valid ? 1U : 0U)) + (rtu_AHRS2->valid ? 1U : - 0U)) + (rtu_AHRS3->valid ? 1U : 0U)) { - case 0: - /* SignalConversion generated from: '/voted_fb' */ - for (i = 0; i < 5; i++) { - rty_voted_fb[i] = 0.0; - } - break; - - case 1: - /* SignalConversion generated from: '/voted_fb' */ - for (i = 0; i < 5; i++) { - rty_voted_fb[i] = rtb_Single_Value_caller[i]; - } - break; - - case 2: - /* SignalConversion generated from: '/voted_fb' */ - for (i = 0; i < 5; i++) { - rty_voted_fb[i] = rtb_Avg_Value_caller[i]; - } - break; - - default: - /* no actions */ - break; - } - - /* End of MultiPortSwitch: '/MultiportSwitch' */ -} - -/* Disable for referenced model: 'AHRSControl' */ -void AHRSControl_Disable(void) -{ - /* Disable for S-Function (sfun_private_function_caller) generated from: '/AHRS_Control' incorporates: - * SubSystem: '/AHRS_Control' - */ - /* Disable for S-Function (sfun_private_function_caller) generated from: '/AHRSLoopCtrl' incorporates: - * SubSystem: '/AHRSLoopCtrl' - */ - AHRSContro_AHRSLoopCtrl_Disable(); - - /* End of Disable for S-Function (sfun_private_function_caller) generated from: '/AHRSLoopCtrl' */ - /* End of Disable for S-Function (sfun_private_function_caller) generated from: '/AHRS_Control' */ -} - -/* Output and update for referenced model: 'AHRSControl' */ -void AHRSControl_AHRS_Control(const int16_T rtu_Pilot_theta_cmd, const int16_T - rtu_Pilot_phi_cmd, const int16_T rtu_Pilot_r_cmd, const AHRS_Bus *rtu_AHRS1, - const AHRS_Bus *rtu_AHRS2, const AHRS_Bus *rtu_AHRS3, real_T - rty_actuator_commands[3]) -{ - AHRS_Bus rtb_TmpSignalConversionAtAHRS_c; - AHRS_Bus rtb_TmpSignalConversionAtAHRS_i; - AHRS_Bus rtb_TmpSignalConversionAtAHRS_e; - real_T rtb_AHRS_voter_caller[5]; - - /* Outputs for Function Call SubSystem: '/AHRS_Control' */ - /* SignalConversion generated from: '/AHRS1' */ - rtb_TmpSignalConversionAtAHRS_c = *rtu_AHRS1; - - /* SignalConversion generated from: '/AHRS2' */ - rtb_TmpSignalConversionAtAHRS_i = *rtu_AHRS2; - - /* SignalConversion generated from: '/AHRS3' */ - rtb_TmpSignalConversionAtAHRS_e = *rtu_AHRS3; - - /* FunctionCaller: '/AHRS_voter_caller' */ - AHRSControl_AHRS_voter(&rtb_TmpSignalConversionAtAHRS_c, - &rtb_TmpSignalConversionAtAHRS_i, &rtb_TmpSignalConversionAtAHRS_e, - rtb_AHRS_voter_caller); - - /* SignalConversion generated from: '/actuator_commands' incorporates: - * FunctionCaller: '/AHRSLoopCtrl_caller' - * SignalConversion generated from: '/Pilot_phi_cmd' - * SignalConversion generated from: '/Pilot_r_cmd' - * SignalConversion generated from: '/Pilot_theta_cmd' - */ - AHRSControl_AHRSLoopCtrl(rtu_Pilot_theta_cmd, rtu_Pilot_phi_cmd, - rtu_Pilot_r_cmd, rtb_AHRS_voter_caller, rty_actuator_commands); - - /* End of Outputs for SubSystem: '/AHRS_Control' */ -} - -/* Model initialize function */ -void AHRSControl_initialize(const char_T **rt_errorStatus) -{ - RT_MODEL_AHRSControl_T *const AHRSControl_M = &(AHRSControl_MdlrefDW.rtm); - - /* Registration code */ - - /* initialize error status */ - rtmSetErrorStatusPointer(AHRSControl_M, rt_errorStatus); -} - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/slprj/ert/AHRSControl/AHRSControl.h b/src/validation/slprj/ert/AHRSControl/AHRSControl.h deleted file mode 100644 index 1934d5fd4be4c5a7d78486ddfaf6507b42c8d063..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/AHRSControl.h +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: AHRSControl.h - * - * Code generated for Simulink model 'AHRSControl'. - * - * Model version : 1.131 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:50:39 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#ifndef RTW_HEADER_AHRSControl_h_ -#define RTW_HEADER_AHRSControl_h_ -#include -#include "AHRS_Bus.h" -#ifndef AHRSControl_COMMON_INCLUDES_ -# define AHRSControl_COMMON_INCLUDES_ -#include "rtwtypes.h" -#include "rtw_continuous.h" -#include "rtw_solver.h" -#endif /* AHRSControl_COMMON_INCLUDES_ */ - -/* Child system includes */ -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#include "AHRSControl_AHRS_Control.h" -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -/* Model Code Variants */ - -/* Forward declaration for rtModel */ -typedef struct tag_RTM_AHRSControl_T RT_MODEL_AHRSControl_T; - -/* Block signals and states (default storage) for model 'AHRSControl' */ -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ - -typedef struct { - real_T Integrator2; /* '/Integrator2' */ - real_T Integrator1; /* '/Integrator1' */ - real_T Integrator; /* '/Integrator' */ - real_T Integrator2_DSTATE; /* '/Integrator2' */ - real_T Integrator1_DSTATE; /* '/Integrator1' */ - real_T Integrator_DSTATE; /* '/Integrator' */ - real_T UnitDelay_DSTATE; /* '/Unit Delay' */ - real_T UnitDelay_DSTATE_f; /* '/Unit Delay' */ - real_T UnitDelay_DSTATE_j; /* '/Unit Delay' */ -} DW_AHRSControl_f_T; - -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ - -/* Real-time Model Data Structure */ -struct tag_RTM_AHRSControl_T { - const char_T **errorStatus; -}; - -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -/* Constant parameters (default storage) */ -typedef struct { - /* Expression: [2.395,-0.3609,-0.002145,0.808700,-0.0205;;] - * Referenced by: '/Gain' - */ - real_T Gain_Gain[5]; - - /* Expression: [;-0.1427,-1.115,0.04573,-0.04318,-0.1007;] - * Referenced by: '/Gain' - */ - real_T Gain_Gain_d[5]; - - /* Expression: [;;-0.02792,-0.02229,-2.25,-0.06152,0.03151] - * Referenced by: '/Gain' - */ - real_T Gain_Gain_b[5]; -} ConstP_AHRSControl_T; - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ - -typedef struct { - RT_MODEL_AHRSControl_T rtm; -} MdlrefDW_AHRSControl_T; - -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ - -/* Constant parameters (default storage) */ -extern const ConstP_AHRSControl_T AHRSControl_ConstP; - -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -extern void AHRSControl_Disable(void); -extern void AHRSControl_AHRS_Control(const int16_T rtu_Pilot_theta_cmd, const - int16_T rtu_Pilot_phi_cmd, const int16_T rtu_Pilot_r_cmd, const AHRS_Bus - *rtu_AHRS1, const AHRS_Bus *rtu_AHRS2, const AHRS_Bus *rtu_AHRS3, real_T - rty_actuator_commands[3]); - -/* Model reference registration function */ -extern void AHRSControl_initialize(const char_T **rt_errorStatus); - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ - -extern MdlrefDW_AHRSControl_T AHRSControl_MdlrefDW; - -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -#ifndef AHRSControl_MDLREF_HIDE_CHILD_ - -/* Block states (default storage) */ -extern DW_AHRSControl_f_T AHRSControl_DW; - -#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/ - -/*- - * The generated code includes comments that allow you to trace directly - * back to the appropriate location in the model. The basic format - * is /block_name, where system is the system number (uniquely - * assigned by Simulink) and block_name is the name of the block. - * - * Use the MATLAB hilite_system command to trace the generated code back - * to the model. For example, - * - * hilite_system('') - opens system 3 - * hilite_system('/Kp') - opens and selects block Kp which resides in S3 - * - * Here is the system hierarchy for this model - * - * '' : 'AHRSControl' - * '' : 'AHRSControl/AHRS_Control' - * '' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl' - * '' : 'AHRSControl/AHRS_Control/AHRS_voter' - * '' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop' - * '' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop' - * '' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Filter' - * '' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/ModelInfo' - * '' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback' - * '' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback' - * '' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback' - * '' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/ModelInfo' - * '' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop' - * '' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop' - * '' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop' - * '' : 'AHRSControl/AHRS_Control/AHRS_voter/Avg_Value' - * '' : 'AHRSControl/AHRS_Control/AHRS_voter/Mid_Value' - * '' : 'AHRSControl/AHRS_Control/AHRS_voter/ModelInfo' - * '' : 'AHRSControl/AHRS_Control/AHRS_voter/Single_Value' - */ - -/*- - * Requirements for '': AHRSControl - */ -#endif /* RTW_HEADER_AHRSControl_h_ */ - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/slprj/ert/AHRSControl/AHRSControl_data.c b/src/validation/slprj/ert/AHRSControl/AHRSControl_data.c deleted file mode 100644 index fc9882f644bb8c8b8d262c16299462eec231c3cc..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/AHRSControl_data.c +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: AHRSControl_data.c - * - * Code generated for Simulink model 'AHRSControl'. - * - * Model version : 1.131 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:50:39 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#include "AHRSControl.h" - -/* Constant parameters (default storage) */ -const ConstP_AHRSControl_T AHRSControl_ConstP = { - /* Expression: [2.395,-0.3609,-0.002145,0.808700,-0.0205;;] - * Referenced by: '/Gain' - */ - { 2.395, -0.3609, -0.002145, 0.8087, -0.0205 }, - - /* Expression: [;-0.1427,-1.115,0.04573,-0.04318,-0.1007;] - * Referenced by: '/Gain' - */ - { -0.1427, -1.115, 0.04573, -0.04318, -0.1007 }, - - /* Expression: [;;-0.02792,-0.02229,-2.25,-0.06152,0.03151] - * Referenced by: '/Gain' - */ - { -0.02792, -0.02229, -2.25, -0.06152, 0.03151 } -}; - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/slprj/ert/AHRSControl/AHRSControl_mr_codeInfo.mat b/src/validation/slprj/ert/AHRSControl/AHRSControl_mr_codeInfo.mat deleted file mode 100644 index 7bf9c4e8c338ad0d8fa9681483f7e7f83fac38af..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/AHRSControl_mr_codeInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/buildInfo.mat b/src/validation/slprj/ert/AHRSControl/buildInfo.mat deleted file mode 100644 index 7cdba017e501b01c41c4015c3cfe1054739470d5..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/buildInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/codedescriptor.dmr b/src/validation/slprj/ert/AHRSControl/codedescriptor.dmr deleted file mode 100644 index a377f1c68b44d82354c366c360dd3a9e966aab6d..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/codedescriptor.dmr and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/defines.txt b/src/validation/slprj/ert/AHRSControl/defines.txt deleted file mode 100644 index 32c8635417ec98996436cf5436fcb05244a5a7e5..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/defines.txt +++ /dev/null @@ -1,15 +0,0 @@ -MODEL=AHRSControl -NUMST=1 -NCSTATES=0 -HAVESTDIO -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -CLASSIC_INTERFACE=0 -ALLOCATIONFCN=0 -TID01EQ=0 -PORTABLE_WORDSIZES -TERMFCN=0 -ONESTEPFCN=1 -MAT_FILE=0 -MULTI_INSTANCE_CODE=0 -INTEGER_CODE=0 -MT=1 diff --git a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_c.html b/src/validation/slprj/ert/AHRSControl/html/AHRSControl_c.html deleted file mode 100644 index bbe839dc82783a66cf439b233d39bfdd4e6e929a..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_c.html +++ /dev/null @@ -1,1792 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * Academic License - for use in teaching, academic research, and meeting
    3 * course requirements at degree granting institutions only. Not for
    4 * government, commercial, or other organizational use.
    5 *
    6 * File: AHRSControl.c
    7 *
    8 * Code generated for Simulink model 'AHRSControl'.
    9 *
    10 * Model version : 1.131
    11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
    12 * C/C++ source code generated on : Thu Jul 16 18:50:39 2020
    13 *
    14 * Target selection: ert.tlc
    15 * Embedded hardware selection: Intel->x86-32 (Windows32)
    16 * Code generation objectives:
    17 * 1. Execution efficiency
    18 * 2. RAM efficiency
    19 * Validation result: Not run
    20 */
    21
    22#include "AHRSControl.h"
    23
    24/* Macros for accessing real-time model data structure */
    25#ifndef rtmGetErrorStatus
    26# define rtmGetErrorStatus(rtm) (*((rtm)->errorStatus))
    27#endif
    28
    29#ifndef rtmSetErrorStatus
    30# define rtmSetErrorStatus(rtm, val) (*((rtm)->errorStatus) = (val))
    31#endif
    32
    33#ifndef rtmGetErrorStatusPointer
    34# define rtmGetErrorStatusPointer(rtm) (rtm)->errorStatus
    35#endif
    36
    37#ifndef rtmSetErrorStatusPointer
    38# define rtmSetErrorStatusPointer(rtm, val) ((rtm)->errorStatus = (val))
    39#endif
    40
    41MdlrefDW_AHRSControl_T AHRSControl_MdlrefDW;
    42
    43/* Block states (default storage) */
    44DW_AHRSControl_f_T AHRSControl_DW;
    45extern void AHRSControl_Filter(real_T rtu_Signal, real_T rtu_prev_FeedbackSum,
    46 real_T *rty_filtered_Signal, real_T *rty_FeedbackSum);
    47extern void AHRSControl_pitch_feedback(real_T rtu_theta_cmd, const real_T
    48 rtu_voted_fb[5], real_T *rty_ds);
    49extern void AHRSControl_roll_feedback(real_T rtu_phi_cmd, const real_T
    50 rtu_voted_fb[5], real_T *rty_dc);
    51extern void AHRSControl_yaw_feedback(real_T rtu_r_cmd, const real_T
    52 rtu_voted_fb[5], real_T *rty_dT);
    53extern void AHRSControl_Heli_inner_loop(real_T rtu_theta_cmd, real_T rtu_phi_cmd,
    54 real_T rtu_r_cmd, const real_T rtu_voted_fb[5], real_T rty_actuator_commands[3]);
    55extern void AHRSControl_Pitch_loop_Disable(void);
    56extern void AHRSControl_Pitch_loop(real_T rtu_Pilot_theta_cmd, real_T rtu_theta,
    57 real_T *rty_theta_cmd);
    58extern void AHRSControl_Roll_loop_Disable(void);
    59extern void AHRSControl_Roll_loop(real_T rtu_Pilot_phi_cmd, real_T rtu_phi,
    60 real_T *rty_phi_cmd);
    61extern void AHRSControl_Yaw_loop_Disable(void);
    62extern void AHRSControl_Yaw_loop(real_T rtu_Pilot_r_cmd, real_T rtu_r, real_T
    63 *rty_r_cmd);
    64extern void AHRSCon_Heli_outer_loop_Disable(void);
    65extern void AHRSControl_Heli_outer_loop(int16_T rtu_Pilot_theta_cmd, int16_T
    66 rtu_Pilot_phi_cmd, int16_T rtu_Pilot_r_cmd, const real_T rtu_voted_fb[5],
    67 real_T *rty_theta_cmd, real_T *rty_phi_cmd, real_T *rty_r_cmd);
    68extern void AHRSContro_AHRSLoopCtrl_Disable(void);
    69extern void AHRSControl_AHRSLoopCtrl(int16_T rtu_Pilot_theta_cmd, int16_T
    70 rtu_Pilot_phi_cmd, int16_T rtu_Pilot_r_cmd, const real_T rtu_voted_fb[5],
    71 real_T rty_actuator_commands[3]);
    72extern void AHRSControl_Avg_Value(const real_T rtu_AHRS1[5], const real_T
    73 rtu_AHRS2[5], const real_T rtu_AHRS3[5], boolean_T rtu_AHRS1_Valid, boolean_T
    74 rtu_AHRS2_Valid, boolean_T rtu_AHRS3_Valid, real_T rty_Avg_Value[5]);
    75extern void AHRSControl_Mid_Value(const real_T rtu_AHRS1[5], const real_T
    76 rtu_AHRS2[5], const real_T rtu_AHRS3[5], real_T rty_Mid_Value[5]);
    77extern void AHRSControl_Single_Value(const real_T rtu_AHRS1[5], const real_T
    78 rtu_AHRS2[5], const real_T rtu_AHRS3[5], boolean_T rtu_AHRS1_Valid, boolean_T
    79 rtu_AHRS2_Valid, boolean_T rtu_AHRS3_Valid, real_T rty_Single_Value[5]);
    80extern void AHRSControl_AHRS_voter(const AHRS_Bus *rtu_AHRS1, const AHRS_Bus
    81 *rtu_AHRS2, const AHRS_Bus *rtu_AHRS3, real_T rty_voted_fb[5]);
    82
    83/* Output and update for Simulink Function: '<S4>/Filter' */
    84void AHRSControl_Filter(real_T rtu_Signal, real_T rtu_prev_FeedbackSum, real_T
    85 *rty_filtered_Signal, real_T *rty_FeedbackSum)
    86{
    87 real_T rtb_SumB21;
    88
    89 /* Sum: '<S6>/SumA21' incorporates:
    90 * Gain: '<S6>/a_2_1'
    91 * Gain: '<S6>/s_1'
    92 * SignalConversion generated from: '<S6>/Signal'
    93 * SignalConversion generated from: '<S6>/prev_FeedbackSum'
    94 */
    95 rtb_SumB21 = (0.16840424129937498 * rtu_Signal) - (-0.66319151740124993 *
    96 rtu_prev_FeedbackSum);
    97
    98 /* SignalConversion generated from: '<S6>/FeedbackSum' */
    99 *rty_FeedbackSum = rtb_SumB21;
    100
    101 /* SignalConversion generated from: '<S6>/filtered_Signal' incorporates:
    102 * SignalConversion generated from: '<S6>/prev_FeedbackSum'
    103 * Sum: '<S6>/SumB21'
    104 */
    105 *rty_filtered_Signal = rtb_SumB21 + rtu_prev_FeedbackSum;
    106}
    107
    108/* Output and update for Simulink Function: '<S4>/pitch_feedback' */
    109void AHRSControl_pitch_feedback(real_T rtu_theta_cmd, const real_T rtu_voted_fb
    110 [5], real_T *rty_ds)
    111{
    112 real_T rtb_ds;
    113 real_T rtb_Filter_caller_o2;
    114 int32_T i;
    115
    116 /* Gain: '<S8>/Gain' incorporates:
    117 * SignalConversion generated from: '<S8>/voted_fb'
    118 */
    119 rtb_ds = 0.0;
    120 for (i = 0; i < 5; i++) {
    121 rtb_ds += AHRSControl_ConstP.Gain_Gain[i] * rtu_voted_fb[i];
    122 }
    123
    124 /* Sum: '<S8>/Sum5' incorporates:
    125 * Gain: '<S8>/Gain'
    126 * SignalConversion generated from: '<S8>/theta_cmd'
    127 */
    128 rtb_ds = rtu_theta_cmd - rtb_ds;
    129
    130 /* FunctionCaller: '<S8>/Filter_caller' incorporates:
    131 * UnitDelay: '<S8>/Unit Delay'
    132 */
    133 AHRSControl_Filter(rtb_ds, AHRSControl_DW.UnitDelay_DSTATE_j, &rtb_ds,
    134 &rtb_Filter_caller_o2);
    135
    136 /* SignalConversion generated from: '<S8>/ds' */
    137 *rty_ds = rtb_ds;
    138
    139 /* Update for UnitDelay: '<S8>/Unit Delay' */
    140 AHRSControl_DW.UnitDelay_DSTATE_j = rtb_Filter_caller_o2;
    141}
    142
    143/* Output and update for Simulink Function: '<S4>/roll_feedback' */
    144void AHRSControl_roll_feedback(real_T rtu_phi_cmd, const real_T rtu_voted_fb[5],
    145 real_T *rty_dc)
    146{
    147 real_T rtb_dc;
    148 real_T rtb_Filter_caller_o2;
    149 int32_T i;
    150
    151 /* Gain: '<S9>/Gain' incorporates:
    152 * SignalConversion generated from: '<S9>/voted_fb'
    153 */
    154 rtb_dc = 0.0;
    155 for (i = 0; i < 5; i++) {
    156 rtb_dc += AHRSControl_ConstP.Gain_Gain_d[i] * rtu_voted_fb[i];
    157 }
    158
    159 /* Sum: '<S9>/Sum5' incorporates:
    160 * Gain: '<S9>/Gain'
    161 * SignalConversion generated from: '<S9>/phi_cmd'
    162 */
    163 rtb_dc = rtu_phi_cmd - rtb_dc;
    164
    165 /* FunctionCaller: '<S9>/Filter_caller' incorporates:
    166 * UnitDelay: '<S9>/Unit Delay'
    167 */
    168 AHRSControl_Filter(rtb_dc, AHRSControl_DW.UnitDelay_DSTATE_f, &rtb_dc,
    169 &rtb_Filter_caller_o2);
    170
    171 /* SignalConversion generated from: '<S9>/dc' */
    172 *rty_dc = rtb_dc;
    173
    174 /* Update for UnitDelay: '<S9>/Unit Delay' */
    175 AHRSControl_DW.UnitDelay_DSTATE_f = rtb_Filter_caller_o2;
    176}
    177
    178/* Output and update for Simulink Function: '<S4>/yaw_feedback' */
    179void AHRSControl_yaw_feedback(real_T rtu_r_cmd, const real_T rtu_voted_fb[5],
    180 real_T *rty_dT)
    181{
    182 real_T rtb_dT;
    183 real_T rtb_Filter_caller_o2;
    184 int32_T i;
    185
    186 /* Gain: '<S10>/Gain' incorporates:
    187 * SignalConversion generated from: '<S10>/voted_fb'
    188 */
    189 rtb_dT = 0.0;
    190 for (i = 0; i < 5; i++) {
    191 rtb_dT += AHRSControl_ConstP.Gain_Gain_b[i] * rtu_voted_fb[i];
    192 }
    193
    194 /* Sum: '<S10>/Sum5' incorporates:
    195 * Gain: '<S10>/Gain'
    196 * SignalConversion generated from: '<S10>/r_cmd'
    197 */
    198 rtb_dT = rtu_r_cmd - rtb_dT;
    199
    200 /* FunctionCaller: '<S10>/Filter_caller' incorporates:
    201 * UnitDelay: '<S10>/Unit Delay'
    202 */
    203 AHRSControl_Filter(rtb_dT, AHRSControl_DW.UnitDelay_DSTATE, &rtb_dT,
    204 &rtb_Filter_caller_o2);
    205
    206 /* SignalConversion generated from: '<S10>/dT' */
    207 *rty_dT = rtb_dT;
    208
    209 /* Update for UnitDelay: '<S10>/Unit Delay' */
    210 AHRSControl_DW.UnitDelay_DSTATE = rtb_Filter_caller_o2;
    211}
    212
    213/* Output and update for Simulink Function: '<S2>/Heli_inner_loop' */
    214void AHRSControl_Heli_inner_loop(real_T rtu_theta_cmd, real_T rtu_phi_cmd,
    215 real_T rtu_r_cmd, const real_T rtu_voted_fb[5], real_T rty_actuator_commands[3])
    216{
    217 real_T rtb_pitch_feedback_caller;
    218 real_T rtb_TmpSignalConversionAtvote_o[5];
    219 real_T rtb_roll_feedback_caller;
    220 real_T rtb_yaw_feedback_caller;
    221 int32_T i;
    222
    223 /* SignalConversion generated from: '<S4>/theta_cmd' */
    224 rtb_pitch_feedback_caller = rtu_theta_cmd;
    225
    226 /* SignalConversion generated from: '<S4>/voted_fb' */
    227 for (i = 0; i < 5; i++) {
    228 rtb_TmpSignalConversionAtvote_o[i] = rtu_voted_fb[i];
    229 }
    230
    231 /* End of SignalConversion generated from: '<S4>/voted_fb' */
    232
    233 /* FunctionCaller: '<S4>/pitch_feedback_caller' incorporates:
    234 * SignalConversion generated from: '<S4>/theta_cmd'
    235 */
    236 AHRSControl_pitch_feedback(rtu_theta_cmd, rtb_TmpSignalConversionAtvote_o,
    237 &rtb_pitch_feedback_caller);
    238
    239 /* SignalConversion generated from: '<S4>/phi_cmd' */
    240 rtb_roll_feedback_caller = rtu_phi_cmd;
    241
    242 /* FunctionCaller: '<S4>/roll_feedback_caller' incorporates:
    243 * SignalConversion generated from: '<S4>/phi_cmd'
    244 */
    245 AHRSControl_roll_feedback(rtu_phi_cmd, rtb_TmpSignalConversionAtvote_o,
    246 &rtb_roll_feedback_caller);
    247
    248 /* SignalConversion generated from: '<S4>/r_cmd' */
    249 rtb_yaw_feedback_caller = rtu_r_cmd;
    250
    251 /* FunctionCaller: '<S4>/yaw_feedback_caller' incorporates:
    252 * SignalConversion generated from: '<S4>/r_cmd'
    253 */
    254 AHRSControl_yaw_feedback(rtu_r_cmd, rtb_TmpSignalConversionAtvote_o,
    255 &rtb_yaw_feedback_caller);
    256
    257 /* Gain: '<S4>/Gain' */
    258 rtb_pitch_feedback_caller *= 0.0033333333333333335;
    259
    260 /* Saturate: '<S4>/Saturation' */
    261 if (rtb_pitch_feedback_caller > 0.1) {
    262 /* SignalConversion generated from: '<S4>/actuator_commands' */
    263 rty_actuator_commands[0] = 0.1;
    264 } else if (rtb_pitch_feedback_caller < -0.1) {
    265 /* SignalConversion generated from: '<S4>/actuator_commands' */
    266 rty_actuator_commands[0] = -0.1;
    267 } else {
    268 /* SignalConversion generated from: '<S4>/actuator_commands' */
    269 rty_actuator_commands[0] = rtb_pitch_feedback_caller;
    270 }
    271
    272 /* Gain: '<S4>/Gain' */
    273 rtb_pitch_feedback_caller = 0.0033333333333333335 * rtb_roll_feedback_caller;
    274
    275 /* Saturate: '<S4>/Saturation' */
    276 if (rtb_pitch_feedback_caller > 0.1) {
    277 /* SignalConversion generated from: '<S4>/actuator_commands' */
    278 rty_actuator_commands[1] = 0.1;
    279 } else if (rtb_pitch_feedback_caller < -0.1) {
    280 /* SignalConversion generated from: '<S4>/actuator_commands' */
    281 rty_actuator_commands[1] = -0.1;
    282 } else {
    283 /* SignalConversion generated from: '<S4>/actuator_commands' */
    284 rty_actuator_commands[1] = rtb_pitch_feedback_caller;
    285 }
    286
    287 /* Gain: '<S4>/Gain' */
    288 rtb_pitch_feedback_caller = 0.0033333333333333335 * rtb_yaw_feedback_caller;
    289
    290 /* Saturate: '<S4>/Saturation' */
    291 if (rtb_pitch_feedback_caller > 0.1) {
    292 /* SignalConversion generated from: '<S4>/actuator_commands' */
    293 rty_actuator_commands[2] = 0.1;
    294 } else if (rtb_pitch_feedback_caller < -0.1) {
    295 /* SignalConversion generated from: '<S4>/actuator_commands' */
    296 rty_actuator_commands[2] = -0.1;
    297 } else {
    298 /* SignalConversion generated from: '<S4>/actuator_commands' */
    299 rty_actuator_commands[2] = rtb_pitch_feedback_caller;
    300 }
    301}
    302
    303/* Disable for Simulink Function: '<S5>/Pitch_loop' */
    304void AHRSControl_Pitch_loop_Disable(void)
    305{
    306 /* Disable for DiscreteIntegrator: '<S12>/Integrator' */
    307 AHRSControl_DW.Integrator_DSTATE = AHRSControl_DW.Integrator;
    308}
    309
    310/* Output and update for Simulink Function: '<S5>/Pitch_loop' */
    311void AHRSControl_Pitch_loop(real_T rtu_Pilot_theta_cmd, real_T rtu_theta, real_T
    312 *rty_theta_cmd)
    313{
    314 real_T rtb_Sum;
    315
    316 /* DiscreteIntegrator: '<S12>/Integrator' */
    317 AHRSControl_DW.Integrator = AHRSControl_DW.Integrator_DSTATE;
    318
    319 /* Sum: '<S12>/Sum' incorporates:
    320 * SignalConversion generated from: '<S12>/Pilot_theta_cmd'
    321 * SignalConversion generated from: '<S12>/theta'
    322 */
    323 rtb_Sum = rtu_Pilot_theta_cmd - rtu_theta;
    324
    325 /* SignalConversion generated from: '<S12>/theta_cmd' incorporates:
    326 * Gain: '<S12>/Gain'
    327 * Gain: '<S12>/Gain1'
    328 * Sum: '<S12>/Sum3'
    329 */
    330 *rty_theta_cmd = (0.01 * AHRSControl_DW.Integrator) + (1.13 * rtb_Sum);
    331
    332 /* Update for DiscreteIntegrator: '<S12>/Integrator' incorporates:
    333 * Gain: '<S12>/Gain2'
    334 */
    335 AHRSControl_DW.Integrator_DSTATE += 2.25 * rtb_Sum;
    336 if (AHRSControl_DW.Integrator_DSTATE >= 10.0) {
    337 AHRSControl_DW.Integrator_DSTATE = 10.0;
    338 } else {
    339 if (AHRSControl_DW.Integrator_DSTATE <= -10.0) {
    340 AHRSControl_DW.Integrator_DSTATE = -10.0;
    341 }
    342 }
    343
    344 /* End of Update for DiscreteIntegrator: '<S12>/Integrator' */
    345}
    346
    347/* Disable for Simulink Function: '<S5>/Roll_loop' */
    348void AHRSControl_Roll_loop_Disable(void)
    349{
    350 /* Disable for DiscreteIntegrator: '<S13>/Integrator1' */
    351 AHRSControl_DW.Integrator1_DSTATE = AHRSControl_DW.Integrator1;
    352}
    353
    354/* Output and update for Simulink Function: '<S5>/Roll_loop' */
    355void AHRSControl_Roll_loop(real_T rtu_Pilot_phi_cmd, real_T rtu_phi, real_T
    356 *rty_phi_cmd)
    357{
    358 real_T rtb_Sum;
    359
    360 /* DiscreteIntegrator: '<S13>/Integrator1' */
    361 AHRSControl_DW.Integrator1 = AHRSControl_DW.Integrator1_DSTATE;
    362
    363 /* Sum: '<S13>/Sum' incorporates:
    364 * SignalConversion generated from: '<S13>/Pilot_phi_cmd'
    365 * SignalConversion generated from: '<S13>/phi'
    366 */
    367 rtb_Sum = rtu_Pilot_phi_cmd - rtu_phi;
    368
    369 /* SignalConversion generated from: '<S13>/phi_cmd' incorporates:
    370 * Gain: '<S13>/Gain1'
    371 * Gain: '<S13>/Gain2'
    372 * Sum: '<S13>/Sum4'
    373 */
    374 *rty_phi_cmd = (0.01 * AHRSControl_DW.Integrator1) + (-0.086 * rtb_Sum);
    375
    376 /* Update for DiscreteIntegrator: '<S13>/Integrator1' incorporates:
    377 * Gain: '<S13>/Gain3'
    378 */
    379 AHRSControl_DW.Integrator1_DSTATE += -1.19 * rtb_Sum;
    380 if (AHRSControl_DW.Integrator1_DSTATE >= 10.0) {
    381 AHRSControl_DW.Integrator1_DSTATE = 10.0;
    382 } else {
    383 if (AHRSControl_DW.Integrator1_DSTATE <= -10.0) {
    384 AHRSControl_DW.Integrator1_DSTATE = -10.0;
    385 }
    386 }
    387
    388 /* End of Update for DiscreteIntegrator: '<S13>/Integrator1' */
    389}
    390
    391/* Disable for Simulink Function: '<S5>/Yaw_loop' */
    392void AHRSControl_Yaw_loop_Disable(void)
    393{
    394 /* Disable for DiscreteIntegrator: '<S14>/Integrator2' */
    395 AHRSControl_DW.Integrator2_DSTATE = AHRSControl_DW.Integrator2;
    396}
    397
    398/* Output and update for Simulink Function: '<S5>/Yaw_loop' */
    399void AHRSControl_Yaw_loop(real_T rtu_Pilot_r_cmd, real_T rtu_r, real_T
    400 *rty_r_cmd)
    401{
    402 real_T rtb_Sum;
    403
    404 /* DiscreteIntegrator: '<S14>/Integrator2' */
    405 AHRSControl_DW.Integrator2 = AHRSControl_DW.Integrator2_DSTATE;
    406
    407 /* Sum: '<S14>/Sum' incorporates:
    408 * SignalConversion generated from: '<S14>/Pilot_r_cmd'
    409 * SignalConversion generated from: '<S14>/r'
    410 */
    411 rtb_Sum = rtu_Pilot_r_cmd - rtu_r;
    412
    413 /* SignalConversion generated from: '<S14>/r_cmd' incorporates:
    414 * Gain: '<S14>/Gain1'
    415 * Gain: '<S14>/Gain4'
    416 * Sum: '<S14>/Sum5'
    417 */
    418 *rty_r_cmd = (0.01 * AHRSControl_DW.Integrator2) + (1.33 * rtb_Sum);
    419
    420 /* Update for DiscreteIntegrator: '<S14>/Integrator2' incorporates:
    421 * Gain: '<S14>/Gain5'
    422 */
    423 AHRSControl_DW.Integrator2_DSTATE += -2.33 * rtb_Sum;
    424 if (AHRSControl_DW.Integrator2_DSTATE >= 10.0) {
    425 AHRSControl_DW.Integrator2_DSTATE = 10.0;
    426 } else {
    427 if (AHRSControl_DW.Integrator2_DSTATE <= -10.0) {
    428 AHRSControl_DW.Integrator2_DSTATE = -10.0;
    429 }
    430 }
    431
    432 /* End of Update for DiscreteIntegrator: '<S14>/Integrator2' */
    433}
    434
    435/* Disable for Simulink Function: '<S2>/Heli_outer_loop' */
    436void AHRSCon_Heli_outer_loop_Disable(void)
    437{
    438 /* Disable for S-Function (sfun_private_function_caller) generated from: '<S5>/Roll_loop' incorporates:
    439 * SubSystem: '<S5>/Roll_loop'
    440 */
    441 AHRSControl_Roll_loop_Disable();
    442
    443 /* End of Disable for S-Function (sfun_private_function_caller) generated from: '<S5>/Roll_loop' */
    444
    445 /* Disable for S-Function (sfun_private_function_caller) generated from: '<S5>/Yaw_loop' incorporates:
    446 * SubSystem: '<S5>/Yaw_loop'
    447 */
    448 AHRSControl_Yaw_loop_Disable();
    449
    450 /* End of Disable for S-Function (sfun_private_function_caller) generated from: '<S5>/Yaw_loop' */
    451
    452 /* Disable for S-Function (sfun_private_function_caller) generated from: '<S5>/Pitch_loop' incorporates:
    453 * SubSystem: '<S5>/Pitch_loop'
    454 */
    455 AHRSControl_Pitch_loop_Disable();
    456
    457 /* End of Disable for S-Function (sfun_private_function_caller) generated from: '<S5>/Pitch_loop' */
    458}
    459
    460/* Output and update for Simulink Function: '<S2>/Heli_outer_loop' */
    461void AHRSControl_Heli_outer_loop(int16_T rtu_Pilot_theta_cmd, int16_T
    462 rtu_Pilot_phi_cmd, int16_T rtu_Pilot_r_cmd, const real_T rtu_voted_fb[5],
    463 real_T *rty_theta_cmd, real_T *rty_phi_cmd, real_T *rty_r_cmd)
    464{
    465 real_T rtb_Saturation_f;
    466
    467 /* Gain: '<S5>/Scaling1' incorporates:
    468 * DataTypeConversion: '<S5>/TypeConversion1'
    469 * SignalConversion generated from: '<S5>/Pilot_phi_cmd'
    470 */
    471 rtb_Saturation_f = 0.00091555528427991577 * ((real_T)rtu_Pilot_phi_cmd);
    472
    473 /* FunctionCaller: '<S5>/Roll_loop_caller' incorporates:
    474 * SignalConversion generated from: '<S5>/voted_fb'
    475 */
    476 AHRSControl_Roll_loop(rtb_Saturation_f, rtu_voted_fb[1], &rtb_Saturation_f);
    477
    478 /* Saturate: '<S5>/Saturation1' */
    479 if (rtb_Saturation_f > 30.0) {
    480 /* SignalConversion generated from: '<S5>/phi_cmd' */
    481 *rty_phi_cmd = 30.0;
    482 } else if (rtb_Saturation_f < -30.0) {
    483 /* SignalConversion generated from: '<S5>/phi_cmd' */
    484 *rty_phi_cmd = -30.0;
    485 } else {
    486 /* SignalConversion generated from: '<S5>/phi_cmd' */
    487 *rty_phi_cmd = rtb_Saturation_f;
    488 }
    489
    490 /* End of Saturate: '<S5>/Saturation1' */
    491
    492 /* Gain: '<S5>/Scaling2' incorporates:
    493 * DataTypeConversion: '<S5>/TypeConversion2'
    494 * SignalConversion generated from: '<S5>/Pilot_r_cmd'
    495 */
    496 rtb_Saturation_f = 0.00045777764213995788 * ((real_T)rtu_Pilot_r_cmd);
    497
    498 /* FunctionCaller: '<S5>/Yaw_loop_caller' incorporates:
    499 * SignalConversion generated from: '<S5>/voted_fb'
    500 */
    501 AHRSControl_Yaw_loop(rtb_Saturation_f, rtu_voted_fb[2], &rtb_Saturation_f);
    502
    503 /* Saturate: '<S5>/Saturation2' */
    504 if (rtb_Saturation_f > 30.0) {
    505 /* SignalConversion generated from: '<S5>/r_cmd' */
    506 *rty_r_cmd = 30.0;
    507 } else if (rtb_Saturation_f < -30.0) {
    508 /* SignalConversion generated from: '<S5>/r_cmd' */
    509 *rty_r_cmd = -30.0;
    510 } else {
    511 /* SignalConversion generated from: '<S5>/r_cmd' */
    512 *rty_r_cmd = rtb_Saturation_f;
    513 }
    514
    515 /* End of Saturate: '<S5>/Saturation2' */
    516
    517 /* Gain: '<S5>/Scaling' incorporates:
    518 * DataTypeConversion: '<S5>/TypeConversion'
    519 * SignalConversion generated from: '<S5>/Pilot_theta_cmd'
    520 */
    521 rtb_Saturation_f = 0.00091555528427991577 * ((real_T)rtu_Pilot_theta_cmd);
    522
    523 /* FunctionCaller: '<S5>/Pitch_loop_caller' incorporates:
    524 * SignalConversion generated from: '<S5>/voted_fb'
    525 */
    526 AHRSControl_Pitch_loop(rtb_Saturation_f, rtu_voted_fb[0], &rtb_Saturation_f);
    527
    528 /* Saturate: '<S5>/Saturation' */
    529 if (rtb_Saturation_f > 30.0) {
    530 /* SignalConversion generated from: '<S5>/theta_cmd' */
    531 *rty_theta_cmd = 30.0;
    532 } else if (rtb_Saturation_f < -30.0) {
    533 /* SignalConversion generated from: '<S5>/theta_cmd' */
    534 *rty_theta_cmd = -30.0;
    535 } else {
    536 /* SignalConversion generated from: '<S5>/theta_cmd' */
    537 *rty_theta_cmd = rtb_Saturation_f;
    538 }
    539
    540 /* End of Saturate: '<S5>/Saturation' */
    541}
    542
    543/* Disable for Simulink Function: '<S1>/AHRSLoopCtrl' */
    544void AHRSContro_AHRSLoopCtrl_Disable(void)
    545{
    546 /* Disable for S-Function (sfun_private_function_caller) generated from: '<S2>/Heli_outer_loop' incorporates:
    547 * SubSystem: '<S2>/Heli_outer_loop'
    548 */
    549 AHRSCon_Heli_outer_loop_Disable();
    550
    551 /* End of Disable for S-Function (sfun_private_function_caller) generated from: '<S2>/Heli_outer_loop' */
    552}
    553
    554/* Output and update for Simulink Function: '<S1>/AHRSLoopCtrl' */
    555void AHRSControl_AHRSLoopCtrl(int16_T rtu_Pilot_theta_cmd, int16_T
    556 rtu_Pilot_phi_cmd, int16_T rtu_Pilot_r_cmd, const real_T rtu_voted_fb[5],
    557 real_T rty_actuator_commands[3])
    558{
    559 real_T rtb_TmpSignalConversionAtvote_g[5];
    560 real_T rtb_Heli_outer_loop_caller_o1;
    561 real_T rtb_Heli_outer_loop_caller_o2;
    562 real_T rtb_Heli_outer_loop_caller_o3;
    563 int32_T i;
    564
    565 /* SignalConversion generated from: '<S2>/voted_fb' */
    566 for (i = 0; i < 5; i++) {
    567 rtb_TmpSignalConversionAtvote_g[i] = rtu_voted_fb[i];
    568 }
    569
    570 /* End of SignalConversion generated from: '<S2>/voted_fb' */
    571
    572 /* FunctionCaller: '<S2>/Heli_outer_loop_caller' incorporates:
    573 * SignalConversion generated from: '<S2>/Pilot_phi_cmd'
    574 * SignalConversion generated from: '<S2>/Pilot_r_cmd'
    575 * SignalConversion generated from: '<S2>/Pilot_theta_cmd'
    576 */
    577 AHRSControl_Heli_outer_loop(rtu_Pilot_theta_cmd, rtu_Pilot_phi_cmd,
    578 rtu_Pilot_r_cmd, rtb_TmpSignalConversionAtvote_g,
    579 &rtb_Heli_outer_loop_caller_o1, &rtb_Heli_outer_loop_caller_o2,
    580 &rtb_Heli_outer_loop_caller_o3);
    581
    582 /* SignalConversion generated from: '<S2>/actuator_commands' incorporates:
    583 * FunctionCaller: '<S2>/Heli_inner_loop_caller'
    584 */
    585 AHRSControl_Heli_inner_loop(rtb_Heli_outer_loop_caller_o1,
    586 rtb_Heli_outer_loop_caller_o2, rtb_Heli_outer_loop_caller_o3,
    587 rtb_TmpSignalConversionAtvote_g, rty_actuator_commands);
    588}
    589
    590/* Output and update for Simulink Function: '<S3>/Avg_Value' */
    591void AHRSControl_Avg_Value(const real_T rtu_AHRS1[5], const real_T rtu_AHRS2[5],
    592 const real_T rtu_AHRS3[5], boolean_T rtu_AHRS1_Valid, boolean_T
    593 rtu_AHRS2_Valid, boolean_T rtu_AHRS3_Valid, real_T rty_Avg_Value[5])
    594{
    595 int32_T i;
    596 real_T rtu_AHRS2_Valid_0;
    597 real_T rtu_AHRS3_Valid_0;
    598 for (i = 0; i < 5; i++) {
    599 /* Switch: '<S15>/Switch' incorporates:
    600 * SignalConversion generated from: '<S15>/AHRS1'
    601 * SignalConversion generated from: '<S15>/AHRS1_Valid'
    602 */
    603 if (rtu_AHRS1_Valid) {
    604 rty_Avg_Value[i] = rtu_AHRS1[i];
    605 } else {
    606 rty_Avg_Value[i] = 0.0;
    607 }
    608
    609 /* End of Switch: '<S15>/Switch' */
    610
    611 /* Switch: '<S15>/Switch1' incorporates:
    612 * SignalConversion generated from: '<S15>/AHRS2'
    613 * SignalConversion generated from: '<S15>/AHRS2_Valid'
    614 */
    615 if (rtu_AHRS2_Valid) {
    616 rtu_AHRS2_Valid_0 = rtu_AHRS2[i];
    617 } else {
    618 rtu_AHRS2_Valid_0 = 0.0;
    619 }
    620
    621 /* End of Switch: '<S15>/Switch1' */
    622
    623 /* Switch: '<S15>/Switch2' incorporates:
    624 * SignalConversion generated from: '<S15>/AHRS3'
    625 * SignalConversion generated from: '<S15>/AHRS3_Valid'
    626 */
    627 if (rtu_AHRS3_Valid) {
    628 rtu_AHRS3_Valid_0 = rtu_AHRS3[i];
    629 } else {
    630 rtu_AHRS3_Valid_0 = 0.0;
    631 }
    632
    633 /* End of Switch: '<S15>/Switch2' */
    634
    635 /* SignalConversion generated from: '<S15>/Avg_Value' incorporates:
    636 * Gain: '<S15>/Gain'
    637 * Sum: '<S15>/Sum'
    638 */
    639 rty_Avg_Value[i] = ((rty_Avg_Value[i] + rtu_AHRS2_Valid_0) +
    640 rtu_AHRS3_Valid_0) * 0.5;
    641 }
    642}
    643
    644/* Output and update for Simulink Function: '<S3>/Mid_Value' */
    645void AHRSControl_Mid_Value(const real_T rtu_AHRS1[5], const real_T rtu_AHRS2[5],
    646 const real_T rtu_AHRS3[5], real_T rty_Mid_Value[5])
    647{
    648 int32_T i;
    649
    650 /* SignalConversion generated from: '<S16>/Mid_Value' incorporates:
    651 * MinMax: '<S16>/MinMax'
    652 * MinMax: '<S16>/MinMax1'
    653 * MinMax: '<S16>/MinMax2'
    654 * MinMax: '<S16>/MinMax3'
    655 * SignalConversion generated from: '<S16>/AHRS1'
    656 * SignalConversion generated from: '<S16>/AHRS2'
    657 * SignalConversion generated from: '<S16>/AHRS3'
    658 */
    659 for (i = 0; i < 5; i++) {
    660 rty_Mid_Value[i] = fmax(fmax(fmin(rtu_AHRS1[i], rtu_AHRS2[i]), fmin
    661 (rtu_AHRS2[i], rtu_AHRS3[i])), fmin(rtu_AHRS3[i], rtu_AHRS1[i]));
    662 }
    663
    664 /* End of SignalConversion generated from: '<S16>/Mid_Value' */
    665}
    666
    667/* Output and update for Simulink Function: '<S3>/Single_Value' */
    668void AHRSControl_Single_Value(const real_T rtu_AHRS1[5], const real_T rtu_AHRS2
    669 [5], const real_T rtu_AHRS3[5], boolean_T rtu_AHRS1_Valid, boolean_T
    670 rtu_AHRS2_Valid, boolean_T rtu_AHRS3_Valid, real_T rty_Single_Value[5])
    671{
    672 int32_T i;
    673 real_T rtu_AHRS2_Valid_0;
    674 real_T rtu_AHRS3_Valid_0;
    675 for (i = 0; i < 5; i++) {
    676 /* Switch: '<S18>/Switch' incorporates:
    677 * SignalConversion generated from: '<S18>/AHRS1'
    678 * SignalConversion generated from: '<S18>/AHRS1_Valid'
    679 */
    680 if (rtu_AHRS1_Valid) {
    681 rty_Single_Value[i] = rtu_AHRS1[i];
    682 } else {
    683 rty_Single_Value[i] = 0.0;
    684 }
    685
    686 /* End of Switch: '<S18>/Switch' */
    687
    688 /* Switch: '<S18>/Switch1' incorporates:
    689 * SignalConversion generated from: '<S18>/AHRS2'
    690 * SignalConversion generated from: '<S18>/AHRS2_Valid'
    691 */
    692 if (rtu_AHRS2_Valid) {
    693 rtu_AHRS2_Valid_0 = rtu_AHRS2[i];
    694 } else {
    695 rtu_AHRS2_Valid_0 = 0.0;
    696 }
    697
    698 /* End of Switch: '<S18>/Switch1' */
    699
    700 /* Switch: '<S18>/Switch2' incorporates:
    701 * SignalConversion generated from: '<S18>/AHRS3'
    702 * SignalConversion generated from: '<S18>/AHRS3_Valid'
    703 */
    704 if (rtu_AHRS3_Valid) {
    705 rtu_AHRS3_Valid_0 = rtu_AHRS3[i];
    706 } else {
    707 rtu_AHRS3_Valid_0 = 0.0;
    708 }
    709
    710 /* End of Switch: '<S18>/Switch2' */
    711
    712 /* SignalConversion generated from: '<S18>/Single_Value' incorporates:
    713 * Sum: '<S18>/Sum'
    714 */
    715 rty_Single_Value[i] = (rty_Single_Value[i] + rtu_AHRS2_Valid_0) +
    716 rtu_AHRS3_Valid_0;
    717 }
    718}
    719
    720/* Output and update for Simulink Function: '<S1>/AHRS_voter' */
    721void AHRSControl_AHRS_voter(const AHRS_Bus *rtu_AHRS1, const AHRS_Bus *rtu_AHRS2,
    722 const AHRS_Bus *rtu_AHRS3, real_T rty_voted_fb[5])
    723{
    724 real_T rtb_TmpSignalConversionAtAvg__o[5];
    725 real_T rtb_TmpSignalConversionAtAvg__d[5];
    726 real_T rtb_MultiportSwitch[5];
    727 real_T rtb_Single_Value_caller[5];
    728 real_T rtb_Avg_Value_caller[5];
    729 int32_T i;
    730
    731 /* SignalConversion generated from: '<S3>/Avg_Value_caller' incorporates:
    732 * SignalConversion generated from: '<S3>/AHRS1'
    733 */
    734 rtb_TmpSignalConversionAtAvg__o[0] = rtu_AHRS1->theta;
    735 rtb_TmpSignalConversionAtAvg__o[1] = rtu_AHRS1->phi;
    736 rtb_TmpSignalConversionAtAvg__o[2] = rtu_AHRS1->r;
    737 rtb_TmpSignalConversionAtAvg__o[3] = rtu_AHRS1->q;
    738 rtb_TmpSignalConversionAtAvg__o[4] = rtu_AHRS1->p;
    739
    740 /* SignalConversion generated from: '<S3>/Avg_Value_caller' incorporates:
    741 * SignalConversion generated from: '<S3>/AHRS2'
    742 */
    743 rtb_TmpSignalConversionAtAvg__d[0] = rtu_AHRS2->theta;
    744 rtb_TmpSignalConversionAtAvg__d[1] = rtu_AHRS2->phi;
    745 rtb_TmpSignalConversionAtAvg__d[2] = rtu_AHRS2->r;
    746 rtb_TmpSignalConversionAtAvg__d[3] = rtu_AHRS2->q;
    747 rtb_TmpSignalConversionAtAvg__d[4] = rtu_AHRS2->p;
    748
    749 /* SignalConversion generated from: '<S3>/Avg_Value_caller' incorporates:
    750 * SignalConversion generated from: '<S3>/AHRS3'
    751 */
    752 rtb_MultiportSwitch[0] = rtu_AHRS3->theta;
    753 rtb_MultiportSwitch[1] = rtu_AHRS3->phi;
    754 rtb_MultiportSwitch[2] = rtu_AHRS3->r;
    755 rtb_MultiportSwitch[3] = rtu_AHRS3->q;
    756 rtb_MultiportSwitch[4] = rtu_AHRS3->p;
    757
    758 /* FunctionCaller: '<S3>/Single_Value_caller' incorporates:
    759 * SignalConversion generated from: '<S3>/AHRS1'
    760 * SignalConversion generated from: '<S3>/AHRS2'
    761 * SignalConversion generated from: '<S3>/AHRS3'
    762 */
    763 AHRSControl_Single_Value(rtb_TmpSignalConversionAtAvg__o,
    764 rtb_TmpSignalConversionAtAvg__d, rtb_MultiportSwitch, rtu_AHRS1->valid,
    765 rtu_AHRS2->valid, rtu_AHRS3->valid, rtb_Single_Value_caller);
    766
    767 /* FunctionCaller: '<S3>/Avg_Value_caller' incorporates:
    768 * SignalConversion generated from: '<S3>/AHRS1'
    769 * SignalConversion generated from: '<S3>/AHRS2'
    770 * SignalConversion generated from: '<S3>/AHRS3'
    771 */
    772 AHRSControl_Avg_Value(rtb_TmpSignalConversionAtAvg__o,
    773 rtb_TmpSignalConversionAtAvg__d, rtb_MultiportSwitch,
    774 rtu_AHRS1->valid, rtu_AHRS2->valid, rtu_AHRS3->valid,
    775 rtb_Avg_Value_caller);
    776
    777 /* FunctionCaller: '<S3>/Mid_Value_caller' */
    778 AHRSControl_Mid_Value(rtb_TmpSignalConversionAtAvg__o,
    779 rtb_TmpSignalConversionAtAvg__d, rtb_MultiportSwitch,
    780 rty_voted_fb);
    781
    782 /* MultiPortSwitch: '<S3>/MultiportSwitch' incorporates:
    783 * SignalConversion generated from: '<S3>/AHRS1'
    784 * SignalConversion generated from: '<S3>/AHRS2'
    785 * SignalConversion generated from: '<S3>/AHRS3'
    786 * Sum: '<S3>/Sum'
    787 */
    788 switch ((((uint32_T)(rtu_AHRS1->valid ? 1U : 0U)) + (rtu_AHRS2->valid ? 1U :
    789 0U)) + (rtu_AHRS3->valid ? 1U : 0U)) {
    790 case 0:
    791 /* SignalConversion generated from: '<S3>/voted_fb' */
    792 for (i = 0; i < 5; i++) {
    793 rty_voted_fb[i] = 0.0;
    794 }
    795 break;
    796
    797 case 1:
    798 /* SignalConversion generated from: '<S3>/voted_fb' */
    799 for (i = 0; i < 5; i++) {
    800 rty_voted_fb[i] = rtb_Single_Value_caller[i];
    801 }
    802 break;
    803
    804 case 2:
    805 /* SignalConversion generated from: '<S3>/voted_fb' */
    806 for (i = 0; i < 5; i++) {
    807 rty_voted_fb[i] = rtb_Avg_Value_caller[i];
    808 }
    809 break;
    810
    811 default:
    812 /* no actions */
    813 break;
    814 }
    815
    816 /* End of MultiPortSwitch: '<S3>/MultiportSwitch' */
    817}
    818
    819/* Disable for referenced model: 'AHRSControl' */
    820void AHRSControl_Disable(void)
    821{
    822 /* Disable for S-Function (sfun_private_function_caller) generated from: '<Root>/AHRS_Control' incorporates:
    823 * SubSystem: '<Root>/AHRS_Control'
    824 */
    825 /* Disable for S-Function (sfun_private_function_caller) generated from: '<S1>/AHRSLoopCtrl' incorporates:
    826 * SubSystem: '<S1>/AHRSLoopCtrl'
    827 */
    828 AHRSContro_AHRSLoopCtrl_Disable();
    829
    830 /* End of Disable for S-Function (sfun_private_function_caller) generated from: '<S1>/AHRSLoopCtrl' */
    831 /* End of Disable for S-Function (sfun_private_function_caller) generated from: '<Root>/AHRS_Control' */
    832}
    833
    834/* Output and update for referenced model: 'AHRSControl' */
    835void AHRSControl_AHRS_Control(const int16_T rtu_Pilot_theta_cmd, const int16_T
    836 rtu_Pilot_phi_cmd, const int16_T rtu_Pilot_r_cmd, const AHRS_Bus *rtu_AHRS1,
    837 const AHRS_Bus *rtu_AHRS2, const AHRS_Bus *rtu_AHRS3, real_T
    838 rty_actuator_commands[3])
    839{
    840 AHRS_Bus rtb_TmpSignalConversionAtAHRS_c;
    841 AHRS_Bus rtb_TmpSignalConversionAtAHRS_i;
    842 AHRS_Bus rtb_TmpSignalConversionAtAHRS_e;
    843 real_T rtb_AHRS_voter_caller[5];
    844
    845 /* Outputs for Function Call SubSystem: '<Root>/AHRS_Control' */
    846 /* SignalConversion generated from: '<S1>/AHRS1' */
    847 rtb_TmpSignalConversionAtAHRS_c = *rtu_AHRS1;
    848
    849 /* SignalConversion generated from: '<S1>/AHRS2' */
    850 rtb_TmpSignalConversionAtAHRS_i = *rtu_AHRS2;
    851
    852 /* SignalConversion generated from: '<S1>/AHRS3' */
    853 rtb_TmpSignalConversionAtAHRS_e = *rtu_AHRS3;
    854
    855 /* FunctionCaller: '<S1>/AHRS_voter_caller' */
    856 AHRSControl_AHRS_voter(&rtb_TmpSignalConversionAtAHRS_c,
    857 &rtb_TmpSignalConversionAtAHRS_i, &rtb_TmpSignalConversionAtAHRS_e,
    858 rtb_AHRS_voter_caller);
    859
    860 /* SignalConversion generated from: '<S1>/actuator_commands' incorporates:
    861 * FunctionCaller: '<S1>/AHRSLoopCtrl_caller'
    862 * SignalConversion generated from: '<S1>/Pilot_phi_cmd'
    863 * SignalConversion generated from: '<S1>/Pilot_r_cmd'
    864 * SignalConversion generated from: '<S1>/Pilot_theta_cmd'
    865 */
    866 AHRSControl_AHRSLoopCtrl(rtu_Pilot_theta_cmd, rtu_Pilot_phi_cmd,
    867 rtu_Pilot_r_cmd, rtb_AHRS_voter_caller, rty_actuator_commands);
    868
    869 /* End of Outputs for SubSystem: '<Root>/AHRS_Control' */
    870}
    871
    872/* Model initialize function */
    873void AHRSControl_initialize(const char_T **rt_errorStatus)
    874{
    875 RT_MODEL_AHRSControl_T *const AHRSControl_M = &(AHRSControl_MdlrefDW.rtm);
    876
    877 /* Registration code */
    878
    879 /* initialize error status */
    880 rtmSetErrorStatusPointer(AHRSControl_M, rt_errorStatus);
    881}
    882
    883/*
    884 * File trailer for generated code.
    885 *
    886 * [EOF]
    887 */
    888
    -
    - - diff --git a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_codegen_rpt.html b/src/validation/slprj/ert/AHRSControl/html/AHRSControl_codegen_rpt.html deleted file mode 100644 index c0700ec07c68d32e00f0ecf99b63da42542bd4c2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_codegen_rpt.html +++ /dev/null @@ -1,33 +0,0 @@ - - - -AHRSControl Code Generation Report - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_coderassumptions.html b/src/validation/slprj/ert/AHRSControl/html/AHRSControl_coderassumptions.html deleted file mode 100644 index 08731fb603308b2398791e24fdad595f84b1ee5f..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_coderassumptions.html +++ /dev/null @@ -1,377 +0,0 @@ - - - -Coder Assumptions for 'AHRSControl' - - - - -

    -Coder Assumptions for 'AHRSControl' -

    -
    -

    -List of assumptions that you can check and expected results for selected target environment. For more information see, Verification of Code Generation Assumptions. -

    -
    -
    - -
    -

    -C Language Configuration for Intel->x86-32 (Windows32) Target Hardware -

    - - - - - - -
    -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -BitPerChar - -8 -
    -BitPerShort - -16 -
    -BitPerInt - -32 -
    -BitPerLong - -32 -
    -BitPerLongLong - -64 -
    -BitPerFloat - -32 -
    -BitPerDouble - -64 -
    -BitPerPointer - -32 -
    -BitPerSizeT - -32 -
    -BitPerPtrDiffT - -32 -
    -
    - - - - - - - - - - - - - - - - -
    -Endianess - -LittleEndian -
    -Shift right for signed integer is arithmetic shift - -True -
    -Signed integer division rounds to - -Zero -
    - -

    - -
    -

    -C Language Configuration for Development Computer -

    - - - - - - -
    -

    -Expected values are used only if the code has been compiled with PORTABLE_WORDSIZES defined, i.e. when you run a SIL simulation with PortableWordSizes set to 'on'. -

    -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -BitPerChar - -8 -
    -BitPerShort - -16 -
    -BitPerInt - -32 -
    -BitPerLong - -32 -
    -BitPerLongLong - -64 -
    -BitPerFloat - -32 -
    -BitPerDouble - -64 -
    -BitPerPointer - -64 -
    -BitPerSizeT - -64 -
    -BitPerPtrDiffT - -64 -
    -
    - - - - - - - - - - - - - - - - -
    -Endianess - -LittleEndian -
    -Shift right for signed integer is arithmetic shift - -True -
    -Signed integer division rounds to - -Zero -
    - -

    - -
    -

    -C Language Standard -

    - - - - - - -
    -

    -Zero initialization code has been optimized for model 'AHRSControl'. -

    -

    - - - - - - - -
    -Initial value of a global integer variable is zero - -True -
    - -

    -

    -If the assumption is not correct, remove the optimization through the Configuration Parameters > Code Generation > Optimization settings. Alternatively, configure your target environment to make the assumption hold. -

    - -
    -

    -Floating-Point Numbers -

    - - - - - - -
    -

    -Code generation is configured to support floating-point numbers, therefore your target environment might perform subnormal number calculations. -

    -

    - - - - - - - - - - - - -
    -Flush-to-zero computed subnormal values (FTZ) - -False -
    -Flush-to-zero incoming subnormal values (DAZ) - -False -
    - -

    -

    -If the assumptions are not correct, subnormal numbers might cause mismatches between model and generated code simulation results. For more information see, Subnormal Number Performance. -

    - -
    - - - - diff --git a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_contents.html b/src/validation/slprj/ert/AHRSControl/html/AHRSControl_contents.html deleted file mode 100644 index 2ec27453efe426c5ae650070e9b6a89490079651..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_contents.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -Contents - - -
    - - -
    - -Summary - - -
    - -Subsystem Report - - -
    - -Traceability Report - - -
    - -Static Code Metrics Report - - -
    - -Code Replacements Report - - -
    - -Coder Assumptions - - -
    -
    - - - - - - - - - - - - - - - - - -
    - -Generated Code - - -
    - - - - - - - - - - - - -
    -[-] - -Model files -
    - - - - - - - - - - - - -
    - -AHRSControl.c - - -
    - -AHRSControl.h - - -
    - -
    - -
    - - - - - - - - - - - - -
    -[-] - -Data files -
    - - - - - - - - -
    - -AHRSControl_data.c - - -
    - -
    - -
    - - - - - - - - - - - - -
    -[+] - -Shared files (3) -
    - - - - - - - - - - - - - - - - - - -
    - -
    -
    - - - diff --git a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_data_c.html b/src/validation/slprj/ert/AHRSControl/html/AHRSControl_data_c.html deleted file mode 100644 index e3fe0e3c8231aaf6f8c68792af6f6232ca730b60..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_data_c.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * Academic License - for use in teaching, academic research, and meeting
    3 * course requirements at degree granting institutions only. Not for
    4 * government, commercial, or other organizational use.
    5 *
    6 * File: AHRSControl_data.c
    7 *
    8 * Code generated for Simulink model 'AHRSControl'.
    9 *
    10 * Model version : 1.131
    11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
    12 * C/C++ source code generated on : Thu Jul 16 18:50:39 2020
    13 *
    14 * Target selection: ert.tlc
    15 * Embedded hardware selection: Intel->x86-32 (Windows32)
    16 * Code generation objectives:
    17 * 1. Execution efficiency
    18 * 2. RAM efficiency
    19 * Validation result: Not run
    20 */
    21
    22#include "AHRSControl.h"
    23
    24/* Constant parameters (default storage) */
    25const ConstP_AHRSControl_T AHRSControl_ConstP = {
    26 /* Expression: [2.395,-0.3609,-0.002145,0.808700,-0.0205;;]
    27 * Referenced by: '<S8>/Gain'
    28 */
    29 { 2.395, -0.3609, -0.002145, 0.8087, -0.0205 },
    30
    31 /* Expression: [;-0.1427,-1.115,0.04573,-0.04318,-0.1007;]
    32 * Referenced by: '<S9>/Gain'
    33 */
    34 { -0.1427, -1.115, 0.04573, -0.04318, -0.1007 },
    35
    36 /* Expression: [;;-0.02792,-0.02229,-2.25,-0.06152,0.03151]
    37 * Referenced by: '<S10>/Gain'
    38 */
    39 { -0.02792, -0.02229, -2.25, -0.06152, 0.03151 }
    40};
    41
    42/*
    43 * File trailer for generated code.
    44 *
    45 * [EOF]
    46 */
    47
    -
    - - diff --git a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_h.html b/src/validation/slprj/ert/AHRSControl/html/AHRSControl_h.html deleted file mode 100644 index 2ef96e8553186b38e3d5603c9e7df8aaa8aab8ae..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_h.html +++ /dev/null @@ -1,438 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * Academic License - for use in teaching, academic research, and meeting
    3 * course requirements at degree granting institutions only. Not for
    4 * government, commercial, or other organizational use.
    5 *
    6 * File: AHRSControl.h
    7 *
    8 * Code generated for Simulink model 'AHRSControl'.
    9 *
    10 * Model version : 1.131
    11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
    12 * C/C++ source code generated on : Thu Jul 16 18:50:39 2020
    13 *
    14 * Target selection: ert.tlc
    15 * Embedded hardware selection: Intel->x86-32 (Windows32)
    16 * Code generation objectives:
    17 * 1. Execution efficiency
    18 * 2. RAM efficiency
    19 * Validation result: Not run
    20 */
    21
    22#ifndef RTW_HEADER_AHRSControl_h_
    23#define RTW_HEADER_AHRSControl_h_
    24#include <math.h>
    25#include "AHRS_Bus.h"
    26#ifndef AHRSControl_COMMON_INCLUDES_
    27# define AHRSControl_COMMON_INCLUDES_
    28#include "rtwtypes.h"
    29#include "rtw_continuous.h"
    30#include "rtw_solver.h"
    31#endif /* AHRSControl_COMMON_INCLUDES_ */
    32
    33/* Child system includes */
    34#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    35#include "AHRSControl_AHRS_Control.h"
    36#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    37
    38#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    39#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    40
    41#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    42#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    43
    44#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    45#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    46
    47#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    48#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    49
    50#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    51#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    52
    53#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    54#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    55
    56#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    57#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    58
    59#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    60#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    61
    62#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    63#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    64
    65#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    66#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    67
    68#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    69#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    70
    71#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    72#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    73
    74#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    75#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    76
    77#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    78#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    79
    80/* Model Code Variants */
    81
    82/* Forward declaration for rtModel */
    83typedef struct tag_RTM_AHRSControl_T RT_MODEL_AHRSControl_T;
    84
    85/* Block signals and states (default storage) for model 'AHRSControl' */
    86#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    87
    88typedef struct {
    89 real_T Integrator2; /* '<S14>/Integrator2' */
    90 real_T Integrator1; /* '<S13>/Integrator1' */
    91 real_T Integrator; /* '<S12>/Integrator' */
    92 real_T Integrator2_DSTATE; /* '<S14>/Integrator2' */
    93 real_T Integrator1_DSTATE; /* '<S13>/Integrator1' */
    94 real_T Integrator_DSTATE; /* '<S12>/Integrator' */
    95 real_T UnitDelay_DSTATE; /* '<S10>/Unit Delay' */
    96 real_T UnitDelay_DSTATE_f; /* '<S9>/Unit Delay' */
    97 real_T UnitDelay_DSTATE_j; /* '<S8>/Unit Delay' */
    98} DW_AHRSControl_f_T;
    99
    100#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    101
    102#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    103
    104/* Real-time Model Data Structure */
    105struct tag_RTM_AHRSControl_T {
    106 const char_T **errorStatus;
    107};
    108
    109#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    110
    111/* Constant parameters (default storage) */
    112typedef struct {
    113 /* Expression: [2.395,-0.3609,-0.002145,0.808700,-0.0205;;]
    114 * Referenced by: '<S8>/Gain'
    115 */
    116 real_T Gain_Gain[5];
    117
    118 /* Expression: [;-0.1427,-1.115,0.04573,-0.04318,-0.1007;]
    119 * Referenced by: '<S9>/Gain'
    120 */
    121 real_T Gain_Gain_d[5];
    122
    123 /* Expression: [;;-0.02792,-0.02229,-2.25,-0.06152,0.03151]
    124 * Referenced by: '<S10>/Gain'
    125 */
    126 real_T Gain_Gain_b[5];
    127} ConstP_AHRSControl_T;
    128
    129#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    130
    131typedef struct {
    132 RT_MODEL_AHRSControl_T rtm;
    133} MdlrefDW_AHRSControl_T;
    134
    135#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    136
    137#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    138
    139/* Constant parameters (default storage) */
    140extern const ConstP_AHRSControl_T AHRSControl_ConstP;
    141
    142#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    143
    144extern void AHRSControl_Disable(void);
    145extern void AHRSControl_AHRS_Control(const int16_T rtu_Pilot_theta_cmd, const
    146 int16_T rtu_Pilot_phi_cmd, const int16_T rtu_Pilot_r_cmd, const AHRS_Bus
    147 *rtu_AHRS1, const AHRS_Bus *rtu_AHRS2, const AHRS_Bus *rtu_AHRS3, real_T
    148 rty_actuator_commands[3]);
    149
    150/* Model reference registration function */
    151extern void AHRSControl_initialize(const char_T **rt_errorStatus);
    152
    153#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    154
    155extern MdlrefDW_AHRSControl_T AHRSControl_MdlrefDW;
    156
    157#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    158
    159#ifndef AHRSControl_MDLREF_HIDE_CHILD_
    160
    161/* Block states (default storage) */
    162extern DW_AHRSControl_f_T AHRSControl_DW;
    163
    164#endif /*AHRSControl_MDLREF_HIDE_CHILD_*/
    165
    166/*-
    167 * The generated code includes comments that allow you to trace directly
    168 * back to the appropriate location in the model. The basic format
    169 * is <system>/block_name, where system is the system number (uniquely
    170 * assigned by Simulink) and block_name is the name of the block.
    171 *
    172 * Use the MATLAB hilite_system command to trace the generated code back
    173 * to the model. For example,
    174 *
    175 * hilite_system('<S3>') - opens system 3
    176 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
    177 *
    178 * Here is the system hierarchy for this model
    179 *
    180 * '<Root>' : 'AHRSControl'
    181 * '<S1>' : 'AHRSControl/AHRS_Control'
    182 * '<S2>' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl'
    183 * '<S3>' : 'AHRSControl/AHRS_Control/AHRS_voter'
    184 * '<S4>' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop'
    185 * '<S5>' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop'
    186 * '<S6>' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Filter'
    187 * '<S7>' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/ModelInfo'
    188 * '<S8>' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback'
    189 * '<S9>' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback'
    190 * '<S10>' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback'
    191 * '<S11>' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/ModelInfo'
    192 * '<S12>' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop'
    193 * '<S13>' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop'
    194 * '<S14>' : 'AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop'
    195 * '<S15>' : 'AHRSControl/AHRS_Control/AHRS_voter/Avg_Value'
    196 * '<S16>' : 'AHRSControl/AHRS_Control/AHRS_voter/Mid_Value'
    197 * '<S17>' : 'AHRSControl/AHRS_Control/AHRS_voter/ModelInfo'
    198 * '<S18>' : 'AHRSControl/AHRS_Control/AHRS_voter/Single_Value'
    199 */
    200
    201/*-
    202 * Requirements for '<Root>': AHRSControl
    203 */
    204#endif /* RTW_HEADER_AHRSControl_h_ */
    205
    206/*
    207 * File trailer for generated code.
    208 *
    209 * [EOF]
    210 */
    211
    -
    - - diff --git a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_metrics.html b/src/validation/slprj/ert/AHRSControl/html/AHRSControl_metrics.html deleted file mode 100644 index 7c84f5febd595d150c84019a262d0cdc662a42ed..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_metrics.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -Static Code Metrics Report - - - - -

    -Static Code Metrics Report -

    -
    - -
    -Static Code Metrics report is not generated. On the Configuration Parameters > Code Generation > Report pane, select Generate static code metrics. On the model diagram window, select Code > C/C++ Code > Code Generation Report > Open Model Report or rebuild the model. - - - diff --git a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_replacements.html b/src/validation/slprj/ert/AHRSControl/html/AHRSControl_replacements.html deleted file mode 100644 index ee20b9aa33e1c90d3b6b59a61764744208a993ef..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_replacements.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -Code replacements in AHRSControl - - - - -

    -Code replacements in AHRSControl -

    -
    - -
    -Code replacements report not generated. Select 'Summarize which blocks triggered code replacements'. - - - diff --git a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_subsystems.html b/src/validation/slprj/ert/AHRSControl/html/AHRSControl_subsystems.html deleted file mode 100644 index 97512d2d342b0c4b67b7160486dbf1a6e252e1ee..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_subsystems.html +++ /dev/null @@ -1,339 +0,0 @@ - - - -Non-virtual subsystems in AHRSControl - - - - -

    -Non-virtual subsystems in AHRSControl -

    -
    - -
    -
    - -
    -

    -1. Code Mapping [hide] -

    - - - - - - - - - - -
    -

    -The following table:

      -
    • -provides a mapping from the non-virtual subsystems in the model to functions or reusable functions in the generated code and -
    • -
    • -notes exceptions that caused some non-virtual subsystems to not reuse code even though they were assigned a function packaging setting ('Function packaging' entry on the Subsystem Block Dialog) of 'Auto' or 'Reusable function'. -
    • - -
    - -

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -Subsystem - - - - -Reuse Setting - - - - -Reuse Outcome - - - - -Outcome Diagnostic - - -
    -<S6> - -Function - -Function(S6) - -normal -
    -<S8> - -Function - -Function(S8) - -normal -
    -<S9> - -Function - -Function(S9) - -normal -
    -<S10> - -Function - -Function(S10) - -normal -
    -<S4> - -Function - -Function(S4) - -normal -
    -<S12> - -Function - -Function(S12) - -normal -
    -<S13> - -Function - -Function(S13) - -normal -
    -<S14> - -Function - -Function(S14) - -normal -
    -<S5> - -Function - -Function(S5) - -normal -
    -<S2> - -Function - -Function(S2) - -normal -
    -<S15> - -Function - -Function(S15) - -normal -
    -<S16> - -Function - -Function(S16) - -normal -
    -<S18> - -Function - -Function(S18) - -normal -
    -<S3> - -Function - -Function(S3) - -normal -
    -<S1> - -Function - -Function(S1) - -normal -
    - -
    -

    -2. Code Reuse Exceptions [hide] -

    - - - - - - - - - - -
    -

    -The following section provides details on each exception that caused a non-virtual subsystem with a function packaging setting of

      -
    • -'Auto' to become an inlined code segment, -
    • -
    • -'Auto' to become a non-reusable function without arguments, or -
    • -
    • -'Reusable function' to become a non-reusable function without arguments. -
    • - -
    -Note:This section does not report graphically identical non-virtual subsystems marked as 'Auto' that were not reused due to differences in their functional properties (such as dimensions, datatypes, work vectors, parameters, etc.). You may identify reasons for non-reuse in such cases by inspecting the differences in the functional attributes of the subsystems in the model or in the inlined generated code. -

    - -
    -
    No reuse exception in model -
    - - - - diff --git a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_survey.html b/src/validation/slprj/ert/AHRSControl/html/AHRSControl_survey.html deleted file mode 100644 index 85efc41dcfc99f7c8910e01908f31c615b289f04..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_survey.html +++ /dev/null @@ -1,177 +0,0 @@ - - - -Code Generation Report for 'AHRSControl' - - - - -

    -Code Generation Report for 'AHRSControl' -

    -
    - -
    -
    - -
    -

    -Model Information -

    - - - - - - -
    -

    - - - - - - - - - - - - - - - - - -
    -Author - -bpotter -
    -Last Modified By - -super -
    -Model Version - -1.131 -
    -
    - -Configuration settings at time of code generation - - -

    - -
    -

    -Code Information -

    - - - - - - -
    -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -System Target File - -ert.tlc -
    -Hardware Device Type - -Intel->x86-32 (Windows32) -
    -Simulink Coder Version - -9.3 (R2020a) 18-Nov-2019 -
    -Timestamp of Generated Source Code - -Thu Jul 16 18:50:39 2020 -
    - - - -
    -Type of Build - -Exported Model Reference -
    -Objectives Specified - -Execution efficiency, RAM efficiency -
    - -

    - -
    -

    -Additional Information -

    - - - - - - -
    - - - - - - - -
    -Code Generation Advisor - -Not run -
    - -
    - - - - diff --git a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_trace.html b/src/validation/slprj/ert/AHRSControl/html/AHRSControl_trace.html deleted file mode 100644 index 133978f484b4d186121e20b96ed7bb822d5d728d..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_trace.html +++ /dev/null @@ -1,21 +0,0 @@ -Traceability Report for AHRSControl - - -

    Eliminated / Virtual Blocks

    Block NameComment
    <S1>/AHRS_Control

    TriggerPort

    <S2>/AHRSLoopCtrl

    TriggerPort

    <S3>/AHRS_voter

    TriggerPort

    <S3>/BusSelector

    BusSelector

    <S3>/BusSelector1

    BusSelector

    <S3>/BusSelector2

    BusSelector

    <S3>/Constant

    Not traceable

    <S3>/ModelInfo

    Masked SubSystem

    <S3>/Mux

    Mux

    <S3>/Mux1

    Mux

    <S3>/Mux2

    Mux

    <S4>/Heli_inner_loop

    TriggerPort

    <S4>/ModelInfo

    Masked SubSystem

    <S4>/Mux3

    Mux

    <S5>/Heli_outer_loop

    TriggerPort

    <S5>/Demux1

    Demux

    <S5>/ModelInfo

    Masked SubSystem

    <S5>/Selector

    Selector

    <S6>/Filter

    TriggerPort

    <S7>/EmptySubsystem

    Empty SubSystem

    <S8>/pitch_feedback

    TriggerPort

    <S9>/roll_feedback

    TriggerPort

    <S10>/yaw_feedback

    TriggerPort

    <S11>/EmptySubsystem

    Empty SubSystem

    <S12>/Pitch_loop

    TriggerPort

    <S13>/Roll_loop

    TriggerPort

    <S14>/Yaw_loop

    TriggerPort

    <S15>/f

    TriggerPort

    <S15>/Constant

    Not traceable

    <S16>/f

    TriggerPort

    <S17>/EmptySubsystem

    Empty SubSystem

    <S18>/f

    TriggerPort

    <S18>/Constant

    Not traceable

    Traceable Simulink Blocks / Stateflow Objects / MATLAB Functions

    Root system: AHRSControl

    Object NameCode Location
    <Root>/AHRS_ControlAHRSControl.c:822, 823, 831, 845, 869

    Subsystem: AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/ModelInfo

    No traceable objects in this Subsystem.

    Subsystem: AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/ModelInfo

    No traceable objects in this Subsystem.

    Subsystem: AHRSControl/AHRS_Control/AHRS_voter/ModelInfo

    No traceable objects in this Subsystem.

    \ No newline at end of file diff --git a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_traceInfo.js b/src/validation/slprj/ert/AHRSControl/html/AHRSControl_traceInfo.js deleted file mode 100644 index fe423881632cf25e82ac94b5bb48274653a8aa33..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/AHRSControl_traceInfo.js +++ /dev/null @@ -1,423 +0,0 @@ -function RTW_rtwnameSIDMap() { - this.rtwnameHashMap = new Array(); - this.sidHashMap = new Array(); - this.rtwnameHashMap[""] = {sid: "AHRSControl"}; - this.sidHashMap["AHRSControl"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:172"}; - this.sidHashMap["AHRSControl:172"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:226"}; - this.sidHashMap["AHRSControl:226"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:59"}; - this.sidHashMap["AHRSControl:59"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:110"}; - this.sidHashMap["AHRSControl:110"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:130"}; - this.sidHashMap["AHRSControl:130"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:339"}; - this.sidHashMap["AHRSControl:339"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:117"}; - this.sidHashMap["AHRSControl:117"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:352"}; - this.sidHashMap["AHRSControl:352"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:360"}; - this.sidHashMap["AHRSControl:360"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:368"}; - this.sidHashMap["AHRSControl:368"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:145"}; - this.sidHashMap["AHRSControl:145"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:293"}; - this.sidHashMap["AHRSControl:293"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:283"}; - this.sidHashMap["AHRSControl:283"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:286"}; - this.sidHashMap["AHRSControl:286"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:63"}; - this.sidHashMap["AHRSControl:63"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:81"}; - this.sidHashMap["AHRSControl:81"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:90"}; - this.sidHashMap["AHRSControl:90"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "AHRSControl:95"}; - this.sidHashMap["AHRSControl:95"] = {rtwname: ""}; - this.rtwnameHashMap["/AHRS_Control"] = {sid: "AHRSControl:172"}; - this.sidHashMap["AHRSControl:172"] = {rtwname: "/AHRS_Control"}; - this.rtwnameHashMap["/AHRS_Control"] = {sid: "AHRSControl:180"}; - this.sidHashMap["AHRSControl:180"] = {rtwname: "/AHRS_Control"}; - this.rtwnameHashMap["/AHRSLoopCtrl"] = {sid: "AHRSControl:226"}; - this.sidHashMap["AHRSControl:226"] = {rtwname: "/AHRSLoopCtrl"}; - this.rtwnameHashMap["/AHRSLoopCtrl_caller"] = {sid: "AHRSControl:238"}; - this.sidHashMap["AHRSControl:238"] = {rtwname: "/AHRSLoopCtrl_caller"}; - this.rtwnameHashMap["/AHRS_voter"] = {sid: "AHRSControl:59"}; - this.sidHashMap["AHRSControl:59"] = {rtwname: "/AHRS_voter"}; - this.rtwnameHashMap["/AHRS_voter_caller"] = {sid: "AHRSControl:251"}; - this.sidHashMap["AHRSControl:251"] = {rtwname: "/AHRS_voter_caller"}; - this.rtwnameHashMap["/Pilot_theta_cmd"] = {sid: "AHRSControl:181"}; - this.sidHashMap["AHRSControl:181"] = {rtwname: "/Pilot_theta_cmd"}; - this.rtwnameHashMap["/Pilot_phi_cmd"] = {sid: "AHRSControl:182"}; - this.sidHashMap["AHRSControl:182"] = {rtwname: "/Pilot_phi_cmd"}; - this.rtwnameHashMap["/Pilot_r_cmd"] = {sid: "AHRSControl:183"}; - this.sidHashMap["AHRSControl:183"] = {rtwname: "/Pilot_r_cmd"}; - this.rtwnameHashMap["/AHRS1"] = {sid: "AHRSControl:184"}; - this.sidHashMap["AHRSControl:184"] = {rtwname: "/AHRS1"}; - this.rtwnameHashMap["/AHRS2"] = {sid: "AHRSControl:185"}; - this.sidHashMap["AHRSControl:185"] = {rtwname: "/AHRS2"}; - this.rtwnameHashMap["/AHRS3"] = {sid: "AHRSControl:186"}; - this.sidHashMap["AHRSControl:186"] = {rtwname: "/AHRS3"}; - this.rtwnameHashMap["/actuator_commands"] = {sid: "AHRSControl:187"}; - this.sidHashMap["AHRSControl:187"] = {rtwname: "/actuator_commands"}; - this.rtwnameHashMap["/AHRSLoopCtrl"] = {sid: "AHRSControl:232"}; - this.sidHashMap["AHRSControl:232"] = {rtwname: "/AHRSLoopCtrl"}; - this.rtwnameHashMap["/Heli_inner_loop"] = {sid: "AHRSControl:110"}; - this.sidHashMap["AHRSControl:110"] = {rtwname: "/Heli_inner_loop"}; - this.rtwnameHashMap["/Heli_inner_loop_caller"] = {sid: "AHRSControl:214"}; - this.sidHashMap["AHRSControl:214"] = {rtwname: "/Heli_inner_loop_caller"}; - this.rtwnameHashMap["/Heli_outer_loop"] = {sid: "AHRSControl:130"}; - this.sidHashMap["AHRSControl:130"] = {rtwname: "/Heli_outer_loop"}; - this.rtwnameHashMap["/Heli_outer_loop_caller"] = {sid: "AHRSControl:224"}; - this.sidHashMap["AHRSControl:224"] = {rtwname: "/Heli_outer_loop_caller"}; - this.rtwnameHashMap["/Pilot_theta_cmd"] = {sid: "AHRSControl:240"}; - this.sidHashMap["AHRSControl:240"] = {rtwname: "/Pilot_theta_cmd"}; - this.rtwnameHashMap["/Pilot_phi_cmd"] = {sid: "AHRSControl:241"}; - this.sidHashMap["AHRSControl:241"] = {rtwname: "/Pilot_phi_cmd"}; - this.rtwnameHashMap["/Pilot_r_cmd"] = {sid: "AHRSControl:242"}; - this.sidHashMap["AHRSControl:242"] = {rtwname: "/Pilot_r_cmd"}; - this.rtwnameHashMap["/voted_fb"] = {sid: "AHRSControl:243"}; - this.sidHashMap["AHRSControl:243"] = {rtwname: "/voted_fb"}; - this.rtwnameHashMap["/actuator_commands"] = {sid: "AHRSControl:244"}; - this.sidHashMap["AHRSControl:244"] = {rtwname: "/actuator_commands"}; - this.rtwnameHashMap["/AHRS_voter"] = {sid: "AHRSControl:245"}; - this.sidHashMap["AHRSControl:245"] = {rtwname: "/AHRS_voter"}; - this.rtwnameHashMap["/Avg_Value"] = {sid: "AHRSControl:63"}; - this.sidHashMap["AHRSControl:63"] = {rtwname: "/Avg_Value"}; - this.rtwnameHashMap["/Avg_Value_caller"] = {sid: "AHRSControl:268"}; - this.sidHashMap["AHRSControl:268"] = {rtwname: "/Avg_Value_caller"}; - this.rtwnameHashMap["/BusSelector"] = {sid: "AHRSControl:77"}; - this.sidHashMap["AHRSControl:77"] = {rtwname: "/BusSelector"}; - this.rtwnameHashMap["/BusSelector1"] = {sid: "AHRSControl:78"}; - this.sidHashMap["AHRSControl:78"] = {rtwname: "/BusSelector1"}; - this.rtwnameHashMap["/BusSelector2"] = {sid: "AHRSControl:79"}; - this.sidHashMap["AHRSControl:79"] = {rtwname: "/BusSelector2"}; - this.rtwnameHashMap["/Constant"] = {sid: "AHRSControl:80"}; - this.sidHashMap["AHRSControl:80"] = {rtwname: "/Constant"}; - this.rtwnameHashMap["/Mid_Value"] = {sid: "AHRSControl:81"}; - this.sidHashMap["AHRSControl:81"] = {rtwname: "/Mid_Value"}; - this.rtwnameHashMap["/Mid_Value_caller"] = {sid: "AHRSControl:258"}; - this.sidHashMap["AHRSControl:258"] = {rtwname: "/Mid_Value_caller"}; - this.rtwnameHashMap["/ModelInfo"] = {sid: "AHRSControl:90"}; - this.sidHashMap["AHRSControl:90"] = {rtwname: "/ModelInfo"}; - this.rtwnameHashMap["/MultiportSwitch"] = {sid: "AHRSControl:91"}; - this.sidHashMap["AHRSControl:91"] = {rtwname: "/MultiportSwitch"}; - this.rtwnameHashMap["/Mux"] = {sid: "AHRSControl:92"}; - this.sidHashMap["AHRSControl:92"] = {rtwname: "/Mux"}; - this.rtwnameHashMap["/Mux1"] = {sid: "AHRSControl:93"}; - this.sidHashMap["AHRSControl:93"] = {rtwname: "/Mux1"}; - this.rtwnameHashMap["/Mux2"] = {sid: "AHRSControl:94"}; - this.sidHashMap["AHRSControl:94"] = {rtwname: "/Mux2"}; - this.rtwnameHashMap["/Single_Value"] = {sid: "AHRSControl:95"}; - this.sidHashMap["AHRSControl:95"] = {rtwname: "/Single_Value"}; - this.rtwnameHashMap["/Single_Value_caller"] = {sid: "AHRSControl:278"}; - this.sidHashMap["AHRSControl:278"] = {rtwname: "/Single_Value_caller"}; - this.rtwnameHashMap["/Sum"] = {sid: "AHRSControl:108"}; - this.sidHashMap["AHRSControl:108"] = {rtwname: "/Sum"}; - this.rtwnameHashMap["/AHRS1"] = {sid: "AHRSControl:246"}; - this.sidHashMap["AHRSControl:246"] = {rtwname: "/AHRS1"}; - this.rtwnameHashMap["/AHRS2"] = {sid: "AHRSControl:247"}; - this.sidHashMap["AHRSControl:247"] = {rtwname: "/AHRS2"}; - this.rtwnameHashMap["/AHRS3"] = {sid: "AHRSControl:248"}; - this.sidHashMap["AHRSControl:248"] = {rtwname: "/AHRS3"}; - this.rtwnameHashMap["/voted_fb"] = {sid: "AHRSControl:249"}; - this.sidHashMap["AHRSControl:249"] = {rtwname: "/voted_fb"}; - this.rtwnameHashMap["/Heli_inner_loop"] = {sid: "AHRSControl:208"}; - this.sidHashMap["AHRSControl:208"] = {rtwname: "/Heli_inner_loop"}; - this.rtwnameHashMap["/Filter"] = {sid: "AHRSControl:339"}; - this.sidHashMap["AHRSControl:339"] = {rtwname: "/Filter"}; - this.rtwnameHashMap["/Gain"] = {sid: "AHRSControl:116"}; - this.sidHashMap["AHRSControl:116"] = {rtwname: "/Gain"}; - this.rtwnameHashMap["/ModelInfo"] = {sid: "AHRSControl:117"}; - this.sidHashMap["AHRSControl:117"] = {rtwname: "/ModelInfo"}; - this.rtwnameHashMap["/Mux3"] = {sid: "AHRSControl:118"}; - this.sidHashMap["AHRSControl:118"] = {rtwname: "/Mux3"}; - this.rtwnameHashMap["/Saturation"] = {sid: "AHRSControl:123"}; - this.sidHashMap["AHRSControl:123"] = {rtwname: "/Saturation"}; - this.rtwnameHashMap["/pitch_feedback"] = {sid: "AHRSControl:352"}; - this.sidHashMap["AHRSControl:352"] = {rtwname: "/pitch_feedback"}; - this.rtwnameHashMap["/pitch_feedback_caller"] = {sid: "AHRSControl:380"}; - this.sidHashMap["AHRSControl:380"] = {rtwname: "/pitch_feedback_caller"}; - this.rtwnameHashMap["/roll_feedback"] = {sid: "AHRSControl:360"}; - this.sidHashMap["AHRSControl:360"] = {rtwname: "/roll_feedback"}; - this.rtwnameHashMap["/roll_feedback_caller"] = {sid: "AHRSControl:386"}; - this.sidHashMap["AHRSControl:386"] = {rtwname: "/roll_feedback_caller"}; - this.rtwnameHashMap["/yaw_feedback"] = {sid: "AHRSControl:368"}; - this.sidHashMap["AHRSControl:368"] = {rtwname: "/yaw_feedback"}; - this.rtwnameHashMap["/yaw_feedback_caller"] = {sid: "AHRSControl:392"}; - this.sidHashMap["AHRSControl:392"] = {rtwname: "/yaw_feedback_caller"}; - this.rtwnameHashMap["/theta_cmd"] = {sid: "AHRSControl:209"}; - this.sidHashMap["AHRSControl:209"] = {rtwname: "/theta_cmd"}; - this.rtwnameHashMap["/phi_cmd"] = {sid: "AHRSControl:210"}; - this.sidHashMap["AHRSControl:210"] = {rtwname: "/phi_cmd"}; - this.rtwnameHashMap["/r_cmd"] = {sid: "AHRSControl:211"}; - this.sidHashMap["AHRSControl:211"] = {rtwname: "/r_cmd"}; - this.rtwnameHashMap["/voted_fb"] = {sid: "AHRSControl:212"}; - this.sidHashMap["AHRSControl:212"] = {rtwname: "/voted_fb"}; - this.rtwnameHashMap["/actuator_commands"] = {sid: "AHRSControl:213"}; - this.sidHashMap["AHRSControl:213"] = {rtwname: "/actuator_commands"}; - this.rtwnameHashMap["/Heli_outer_loop"] = {sid: "AHRSControl:216"}; - this.sidHashMap["AHRSControl:216"] = {rtwname: "/Heli_outer_loop"}; - this.rtwnameHashMap["/Demux1"] = {sid: "AHRSControl:135"}; - this.sidHashMap["AHRSControl:135"] = {rtwname: "/Demux1"}; - this.rtwnameHashMap["/ModelInfo"] = {sid: "AHRSControl:145"}; - this.sidHashMap["AHRSControl:145"] = {rtwname: "/ModelInfo"}; - this.rtwnameHashMap["/Pitch_loop"] = {sid: "AHRSControl:293"}; - this.sidHashMap["AHRSControl:293"] = {rtwname: "/Pitch_loop"}; - this.rtwnameHashMap["/Pitch_loop_caller"] = {sid: "AHRSControl:316"}; - this.sidHashMap["AHRSControl:316"] = {rtwname: "/Pitch_loop_caller"}; - this.rtwnameHashMap["/Roll_loop"] = {sid: "AHRSControl:283"}; - this.sidHashMap["AHRSControl:283"] = {rtwname: "/Roll_loop"}; - this.rtwnameHashMap["/Roll_loop_caller"] = {sid: "AHRSControl:322"}; - this.sidHashMap["AHRSControl:322"] = {rtwname: "/Roll_loop_caller"}; - this.rtwnameHashMap["/Saturation"] = {sid: "AHRSControl:300"}; - this.sidHashMap["AHRSControl:300"] = {rtwname: "/Saturation"}; - this.rtwnameHashMap["/Saturation1"] = {sid: "AHRSControl:147"}; - this.sidHashMap["AHRSControl:147"] = {rtwname: "/Saturation1"}; - this.rtwnameHashMap["/Saturation2"] = {sid: "AHRSControl:148"}; - this.sidHashMap["AHRSControl:148"] = {rtwname: "/Saturation2"}; - this.rtwnameHashMap["/Scaling"] = {sid: "AHRSControl:301"}; - this.sidHashMap["AHRSControl:301"] = {rtwname: "/Scaling"}; - this.rtwnameHashMap["/Scaling1"] = {sid: "AHRSControl:150"}; - this.sidHashMap["AHRSControl:150"] = {rtwname: "/Scaling1"}; - this.rtwnameHashMap["/Scaling2"] = {sid: "AHRSControl:151"}; - this.sidHashMap["AHRSControl:151"] = {rtwname: "/Scaling2"}; - this.rtwnameHashMap["/Selector"] = {sid: "AHRSControl:152"}; - this.sidHashMap["AHRSControl:152"] = {rtwname: "/Selector"}; - this.rtwnameHashMap["/TypeConversion"] = {sid: "AHRSControl:303"}; - this.sidHashMap["AHRSControl:303"] = {rtwname: "/TypeConversion"}; - this.rtwnameHashMap["/TypeConversion1"] = {sid: "AHRSControl:160"}; - this.sidHashMap["AHRSControl:160"] = {rtwname: "/TypeConversion1"}; - this.rtwnameHashMap["/TypeConversion2"] = {sid: "AHRSControl:161"}; - this.sidHashMap["AHRSControl:161"] = {rtwname: "/TypeConversion2"}; - this.rtwnameHashMap["/Yaw_loop"] = {sid: "AHRSControl:286"}; - this.sidHashMap["AHRSControl:286"] = {rtwname: "/Yaw_loop"}; - this.rtwnameHashMap["/Yaw_loop_caller"] = {sid: "AHRSControl:405"}; - this.sidHashMap["AHRSControl:405"] = {rtwname: "/Yaw_loop_caller"}; - this.rtwnameHashMap["/Pilot_theta_cmd"] = {sid: "AHRSControl:217"}; - this.sidHashMap["AHRSControl:217"] = {rtwname: "/Pilot_theta_cmd"}; - this.rtwnameHashMap["/Pilot_phi_cmd"] = {sid: "AHRSControl:218"}; - this.sidHashMap["AHRSControl:218"] = {rtwname: "/Pilot_phi_cmd"}; - this.rtwnameHashMap["/Pilot_r_cmd"] = {sid: "AHRSControl:219"}; - this.sidHashMap["AHRSControl:219"] = {rtwname: "/Pilot_r_cmd"}; - this.rtwnameHashMap["/voted_fb"] = {sid: "AHRSControl:220"}; - this.sidHashMap["AHRSControl:220"] = {rtwname: "/voted_fb"}; - this.rtwnameHashMap["/theta_cmd"] = {sid: "AHRSControl:221"}; - this.sidHashMap["AHRSControl:221"] = {rtwname: "/theta_cmd"}; - this.rtwnameHashMap["/phi_cmd"] = {sid: "AHRSControl:222"}; - this.sidHashMap["AHRSControl:222"] = {rtwname: "/phi_cmd"}; - this.rtwnameHashMap["/r_cmd"] = {sid: "AHRSControl:223"}; - this.sidHashMap["AHRSControl:223"] = {rtwname: "/r_cmd"}; - this.rtwnameHashMap["/Filter"] = {sid: "AHRSControl:347"}; - this.sidHashMap["AHRSControl:347"] = {rtwname: "/Filter"}; - this.rtwnameHashMap["/SumA21"] = {sid: "AHRSControl:341"}; - this.sidHashMap["AHRSControl:341"] = {rtwname: "/SumA21"}; - this.rtwnameHashMap["/SumB21"] = {sid: "AHRSControl:342"}; - this.sidHashMap["AHRSControl:342"] = {rtwname: "/SumB21"}; - this.rtwnameHashMap["/a_2_1"] = {sid: "AHRSControl:344"}; - this.sidHashMap["AHRSControl:344"] = {rtwname: "/a_2_1"}; - this.rtwnameHashMap["/s_1"] = {sid: "AHRSControl:345"}; - this.sidHashMap["AHRSControl:345"] = {rtwname: "/s_1"}; - this.rtwnameHashMap["/Signal"] = {sid: "AHRSControl:348"}; - this.sidHashMap["AHRSControl:348"] = {rtwname: "/Signal"}; - this.rtwnameHashMap["/prev_FeedbackSum"] = {sid: "AHRSControl:350"}; - this.sidHashMap["AHRSControl:350"] = {rtwname: "/prev_FeedbackSum"}; - this.rtwnameHashMap["/filtered_Signal"] = {sid: "AHRSControl:349"}; - this.sidHashMap["AHRSControl:349"] = {rtwname: "/filtered_Signal"}; - this.rtwnameHashMap["/FeedbackSum"] = {sid: "AHRSControl:351"}; - this.sidHashMap["AHRSControl:351"] = {rtwname: "/FeedbackSum"}; - this.rtwnameHashMap["/EmptySubsystem"] = {sid: "AHRSControl:117:1"}; - this.sidHashMap["AHRSControl:117:1"] = {rtwname: "/EmptySubsystem"}; - this.rtwnameHashMap["/pitch_feedback"] = {sid: "AHRSControl:376"}; - this.sidHashMap["AHRSControl:376"] = {rtwname: "/pitch_feedback"}; - this.rtwnameHashMap["/Filter_caller"] = {sid: "AHRSControl:357"}; - this.sidHashMap["AHRSControl:357"] = {rtwname: "/Filter_caller"}; - this.rtwnameHashMap["/Gain"] = {sid: "AHRSControl:356"}; - this.sidHashMap["AHRSControl:356"] = {rtwname: "/Gain"}; - this.rtwnameHashMap["/Sum5"] = {sid: "AHRSControl:125"}; - this.sidHashMap["AHRSControl:125"] = {rtwname: "/Sum5"}; - this.rtwnameHashMap["/Unit Delay"] = {sid: "AHRSControl:359"}; - this.sidHashMap["AHRSControl:359"] = {rtwname: "/Unit Delay"}; - this.rtwnameHashMap["/theta_cmd"] = {sid: "AHRSControl:377"}; - this.sidHashMap["AHRSControl:377"] = {rtwname: "/theta_cmd"}; - this.rtwnameHashMap["/voted_fb"] = {sid: "AHRSControl:378"}; - this.sidHashMap["AHRSControl:378"] = {rtwname: "/voted_fb"}; - this.rtwnameHashMap["/ds"] = {sid: "AHRSControl:379"}; - this.sidHashMap["AHRSControl:379"] = {rtwname: "/ds"}; - this.rtwnameHashMap["/roll_feedback"] = {sid: "AHRSControl:382"}; - this.sidHashMap["AHRSControl:382"] = {rtwname: "/roll_feedback"}; - this.rtwnameHashMap["/Filter_caller"] = {sid: "AHRSControl:363"}; - this.sidHashMap["AHRSControl:363"] = {rtwname: "/Filter_caller"}; - this.rtwnameHashMap["/Gain"] = {sid: "AHRSControl:364"}; - this.sidHashMap["AHRSControl:364"] = {rtwname: "/Gain"}; - this.rtwnameHashMap["/Sum5"] = {sid: "AHRSControl:365"}; - this.sidHashMap["AHRSControl:365"] = {rtwname: "/Sum5"}; - this.rtwnameHashMap["/Unit Delay"] = {sid: "AHRSControl:366"}; - this.sidHashMap["AHRSControl:366"] = {rtwname: "/Unit Delay"}; - this.rtwnameHashMap["/phi_cmd"] = {sid: "AHRSControl:383"}; - this.sidHashMap["AHRSControl:383"] = {rtwname: "/phi_cmd"}; - this.rtwnameHashMap["/voted_fb"] = {sid: "AHRSControl:384"}; - this.sidHashMap["AHRSControl:384"] = {rtwname: "/voted_fb"}; - this.rtwnameHashMap["/dc"] = {sid: "AHRSControl:385"}; - this.sidHashMap["AHRSControl:385"] = {rtwname: "/dc"}; - this.rtwnameHashMap["/yaw_feedback"] = {sid: "AHRSControl:388"}; - this.sidHashMap["AHRSControl:388"] = {rtwname: "/yaw_feedback"}; - this.rtwnameHashMap["/Filter_caller"] = {sid: "AHRSControl:371"}; - this.sidHashMap["AHRSControl:371"] = {rtwname: "/Filter_caller"}; - this.rtwnameHashMap["/Gain"] = {sid: "AHRSControl:372"}; - this.sidHashMap["AHRSControl:372"] = {rtwname: "/Gain"}; - this.rtwnameHashMap["/Sum5"] = {sid: "AHRSControl:373"}; - this.sidHashMap["AHRSControl:373"] = {rtwname: "/Sum5"}; - this.rtwnameHashMap["/Unit Delay"] = {sid: "AHRSControl:374"}; - this.sidHashMap["AHRSControl:374"] = {rtwname: "/Unit Delay"}; - this.rtwnameHashMap["/r_cmd"] = {sid: "AHRSControl:389"}; - this.sidHashMap["AHRSControl:389"] = {rtwname: "/r_cmd"}; - this.rtwnameHashMap["/voted_fb"] = {sid: "AHRSControl:390"}; - this.sidHashMap["AHRSControl:390"] = {rtwname: "/voted_fb"}; - this.rtwnameHashMap["/dT"] = {sid: "AHRSControl:391"}; - this.sidHashMap["AHRSControl:391"] = {rtwname: "/dT"}; - this.rtwnameHashMap["/EmptySubsystem"] = {sid: "AHRSControl:145:1"}; - this.sidHashMap["AHRSControl:145:1"] = {rtwname: "/EmptySubsystem"}; - this.rtwnameHashMap["/Pitch_loop"] = {sid: "AHRSControl:313"}; - this.sidHashMap["AHRSControl:313"] = {rtwname: "/Pitch_loop"}; - this.rtwnameHashMap["/Gain"] = {sid: "AHRSControl:295"}; - this.sidHashMap["AHRSControl:295"] = {rtwname: "/Gain"}; - this.rtwnameHashMap["/Gain1"] = {sid: "AHRSControl:331"}; - this.sidHashMap["AHRSControl:331"] = {rtwname: "/Gain1"}; - this.rtwnameHashMap["/Gain2"] = {sid: "AHRSControl:296"}; - this.sidHashMap["AHRSControl:296"] = {rtwname: "/Gain2"}; - this.rtwnameHashMap["/Integrator"] = {sid: "AHRSControl:297"}; - this.sidHashMap["AHRSControl:297"] = {rtwname: "/Integrator"}; - this.rtwnameHashMap["/Sum"] = {sid: "AHRSControl:399"}; - this.sidHashMap["AHRSControl:399"] = {rtwname: "/Sum"}; - this.rtwnameHashMap["/Sum3"] = {sid: "AHRSControl:298"}; - this.sidHashMap["AHRSControl:298"] = {rtwname: "/Sum3"}; - this.rtwnameHashMap["/Pilot_theta_cmd"] = {sid: "AHRSControl:314"}; - this.sidHashMap["AHRSControl:314"] = {rtwname: "/Pilot_theta_cmd"}; - this.rtwnameHashMap["/theta"] = {sid: "AHRSControl:400"}; - this.sidHashMap["AHRSControl:400"] = {rtwname: "/theta"}; - this.rtwnameHashMap["/theta_cmd"] = {sid: "AHRSControl:315"}; - this.sidHashMap["AHRSControl:315"] = {rtwname: "/theta_cmd"}; - this.rtwnameHashMap["/Roll_loop"] = {sid: "AHRSControl:319"}; - this.sidHashMap["AHRSControl:319"] = {rtwname: "/Roll_loop"}; - this.rtwnameHashMap["/Gain1"] = {sid: "AHRSControl:137"}; - this.sidHashMap["AHRSControl:137"] = {rtwname: "/Gain1"}; - this.rtwnameHashMap["/Gain2"] = {sid: "AHRSControl:332"}; - this.sidHashMap["AHRSControl:332"] = {rtwname: "/Gain2"}; - this.rtwnameHashMap["/Gain3"] = {sid: "AHRSControl:139"}; - this.sidHashMap["AHRSControl:139"] = {rtwname: "/Gain3"}; - this.rtwnameHashMap["/Integrator1"] = {sid: "AHRSControl:143"}; - this.sidHashMap["AHRSControl:143"] = {rtwname: "/Integrator1"}; - this.rtwnameHashMap["/Sum"] = {sid: "AHRSControl:401"}; - this.sidHashMap["AHRSControl:401"] = {rtwname: "/Sum"}; - this.rtwnameHashMap["/Sum4"] = {sid: "AHRSControl:157"}; - this.sidHashMap["AHRSControl:157"] = {rtwname: "/Sum4"}; - this.rtwnameHashMap["/Pilot_phi_cmd"] = {sid: "AHRSControl:320"}; - this.sidHashMap["AHRSControl:320"] = {rtwname: "/Pilot_phi_cmd"}; - this.rtwnameHashMap["/phi"] = {sid: "AHRSControl:402"}; - this.sidHashMap["AHRSControl:402"] = {rtwname: "/phi"}; - this.rtwnameHashMap["/phi_cmd"] = {sid: "AHRSControl:321"}; - this.sidHashMap["AHRSControl:321"] = {rtwname: "/phi_cmd"}; - this.rtwnameHashMap["/Yaw_loop"] = {sid: "AHRSControl:324"}; - this.sidHashMap["AHRSControl:324"] = {rtwname: "/Yaw_loop"}; - this.rtwnameHashMap["/Gain1"] = {sid: "AHRSControl:333"}; - this.sidHashMap["AHRSControl:333"] = {rtwname: "/Gain1"}; - this.rtwnameHashMap["/Gain4"] = {sid: "AHRSControl:140"}; - this.sidHashMap["AHRSControl:140"] = {rtwname: "/Gain4"}; - this.rtwnameHashMap["/Gain5"] = {sid: "AHRSControl:141"}; - this.sidHashMap["AHRSControl:141"] = {rtwname: "/Gain5"}; - this.rtwnameHashMap["/Integrator2"] = {sid: "AHRSControl:144"}; - this.sidHashMap["AHRSControl:144"] = {rtwname: "/Integrator2"}; - this.rtwnameHashMap["/Sum"] = {sid: "AHRSControl:403"}; - this.sidHashMap["AHRSControl:403"] = {rtwname: "/Sum"}; - this.rtwnameHashMap["/Sum5"] = {sid: "AHRSControl:158"}; - this.sidHashMap["AHRSControl:158"] = {rtwname: "/Sum5"}; - this.rtwnameHashMap["/Pilot_r_cmd"] = {sid: "AHRSControl:325"}; - this.sidHashMap["AHRSControl:325"] = {rtwname: "/Pilot_r_cmd"}; - this.rtwnameHashMap["/r"] = {sid: "AHRSControl:404"}; - this.sidHashMap["AHRSControl:404"] = {rtwname: "/r"}; - this.rtwnameHashMap["/r_cmd"] = {sid: "AHRSControl:326"}; - this.sidHashMap["AHRSControl:326"] = {rtwname: "/r_cmd"}; - this.rtwnameHashMap["/f"] = {sid: "AHRSControl:260"}; - this.sidHashMap["AHRSControl:260"] = {rtwname: "/f"}; - this.rtwnameHashMap["/Constant"] = {sid: "AHRSControl:70"}; - this.sidHashMap["AHRSControl:70"] = {rtwname: "/Constant"}; - this.rtwnameHashMap["/Gain"] = {sid: "AHRSControl:71"}; - this.sidHashMap["AHRSControl:71"] = {rtwname: "/Gain"}; - this.rtwnameHashMap["/Sum"] = {sid: "AHRSControl:72"}; - this.sidHashMap["AHRSControl:72"] = {rtwname: "/Sum"}; - this.rtwnameHashMap["/Switch"] = {sid: "AHRSControl:73"}; - this.sidHashMap["AHRSControl:73"] = {rtwname: "/Switch"}; - this.rtwnameHashMap["/Switch1"] = {sid: "AHRSControl:74"}; - this.sidHashMap["AHRSControl:74"] = {rtwname: "/Switch1"}; - this.rtwnameHashMap["/Switch2"] = {sid: "AHRSControl:75"}; - this.sidHashMap["AHRSControl:75"] = {rtwname: "/Switch2"}; - this.rtwnameHashMap["/AHRS1"] = {sid: "AHRSControl:261"}; - this.sidHashMap["AHRSControl:261"] = {rtwname: "/AHRS1"}; - this.rtwnameHashMap["/AHRS2"] = {sid: "AHRSControl:262"}; - this.sidHashMap["AHRSControl:262"] = {rtwname: "/AHRS2"}; - this.rtwnameHashMap["/AHRS3"] = {sid: "AHRSControl:263"}; - this.sidHashMap["AHRSControl:263"] = {rtwname: "/AHRS3"}; - this.rtwnameHashMap["/AHRS1_Valid"] = {sid: "AHRSControl:264"}; - this.sidHashMap["AHRSControl:264"] = {rtwname: "/AHRS1_Valid"}; - this.rtwnameHashMap["/AHRS2_Valid"] = {sid: "AHRSControl:265"}; - this.sidHashMap["AHRSControl:265"] = {rtwname: "/AHRS2_Valid"}; - this.rtwnameHashMap["/AHRS3_Valid"] = {sid: "AHRSControl:266"}; - this.sidHashMap["AHRSControl:266"] = {rtwname: "/AHRS3_Valid"}; - this.rtwnameHashMap["/Avg_Value"] = {sid: "AHRSControl:267"}; - this.sidHashMap["AHRSControl:267"] = {rtwname: "/Avg_Value"}; - this.rtwnameHashMap["/f"] = {sid: "AHRSControl:253"}; - this.sidHashMap["AHRSControl:253"] = {rtwname: "/f"}; - this.rtwnameHashMap["/MinMax"] = {sid: "AHRSControl:85"}; - this.sidHashMap["AHRSControl:85"] = {rtwname: "/MinMax"}; - this.rtwnameHashMap["/MinMax1"] = {sid: "AHRSControl:86"}; - this.sidHashMap["AHRSControl:86"] = {rtwname: "/MinMax1"}; - this.rtwnameHashMap["/MinMax2"] = {sid: "AHRSControl:87"}; - this.sidHashMap["AHRSControl:87"] = {rtwname: "/MinMax2"}; - this.rtwnameHashMap["/MinMax3"] = {sid: "AHRSControl:88"}; - this.sidHashMap["AHRSControl:88"] = {rtwname: "/MinMax3"}; - this.rtwnameHashMap["/AHRS1"] = {sid: "AHRSControl:254"}; - this.sidHashMap["AHRSControl:254"] = {rtwname: "/AHRS1"}; - this.rtwnameHashMap["/AHRS2"] = {sid: "AHRSControl:255"}; - this.sidHashMap["AHRSControl:255"] = {rtwname: "/AHRS2"}; - this.rtwnameHashMap["/AHRS3"] = {sid: "AHRSControl:256"}; - this.sidHashMap["AHRSControl:256"] = {rtwname: "/AHRS3"}; - this.rtwnameHashMap["/Mid_Value"] = {sid: "AHRSControl:257"}; - this.sidHashMap["AHRSControl:257"] = {rtwname: "/Mid_Value"}; - this.rtwnameHashMap["/EmptySubsystem"] = {sid: "AHRSControl:90:1"}; - this.sidHashMap["AHRSControl:90:1"] = {rtwname: "/EmptySubsystem"}; - this.rtwnameHashMap["/f"] = {sid: "AHRSControl:270"}; - this.sidHashMap["AHRSControl:270"] = {rtwname: "/f"}; - this.rtwnameHashMap["/Constant"] = {sid: "AHRSControl:102"}; - this.sidHashMap["AHRSControl:102"] = {rtwname: "/Constant"}; - this.rtwnameHashMap["/Sum"] = {sid: "AHRSControl:103"}; - this.sidHashMap["AHRSControl:103"] = {rtwname: "/Sum"}; - this.rtwnameHashMap["/Switch"] = {sid: "AHRSControl:104"}; - this.sidHashMap["AHRSControl:104"] = {rtwname: "/Switch"}; - this.rtwnameHashMap["/Switch1"] = {sid: "AHRSControl:105"}; - this.sidHashMap["AHRSControl:105"] = {rtwname: "/Switch1"}; - this.rtwnameHashMap["/Switch2"] = {sid: "AHRSControl:106"}; - this.sidHashMap["AHRSControl:106"] = {rtwname: "/Switch2"}; - this.rtwnameHashMap["/AHRS1"] = {sid: "AHRSControl:271"}; - this.sidHashMap["AHRSControl:271"] = {rtwname: "/AHRS1"}; - this.rtwnameHashMap["/AHRS2"] = {sid: "AHRSControl:272"}; - this.sidHashMap["AHRSControl:272"] = {rtwname: "/AHRS2"}; - this.rtwnameHashMap["/AHRS3"] = {sid: "AHRSControl:273"}; - this.sidHashMap["AHRSControl:273"] = {rtwname: "/AHRS3"}; - this.rtwnameHashMap["/AHRS1_Valid"] = {sid: "AHRSControl:274"}; - this.sidHashMap["AHRSControl:274"] = {rtwname: "/AHRS1_Valid"}; - this.rtwnameHashMap["/AHRS2_Valid"] = {sid: "AHRSControl:275"}; - this.sidHashMap["AHRSControl:275"] = {rtwname: "/AHRS2_Valid"}; - this.rtwnameHashMap["/AHRS3_Valid"] = {sid: "AHRSControl:276"}; - this.sidHashMap["AHRSControl:276"] = {rtwname: "/AHRS3_Valid"}; - this.rtwnameHashMap["/Single_Value"] = {sid: "AHRSControl:277"}; - this.sidHashMap["AHRSControl:277"] = {rtwname: "/Single_Value"}; - this.getSID = function(rtwname) { return this.rtwnameHashMap[rtwname];} - this.getRtwname = function(sid) { return this.sidHashMap[sid];} -} -RTW_rtwnameSIDMap.instance = new RTW_rtwnameSIDMap(); diff --git a/src/validation/slprj/ert/AHRSControl/html/css/coder_app.css b/src/validation/slprj/ert/AHRSControl/html/css/coder_app.css deleted file mode 100644 index d47cf0edddb4a21ffda06a2cbf05275f7fa4747d..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/css/coder_app.css +++ /dev/null @@ -1,184 +0,0 @@ -/* Copyright 2013-2018 The MathWorks, Inc. */ -pre#code { - font-family: Consolas, Courier; - font-size: small; -} - -.ct { - font-style: italic; - color: #117755 -} /* comment */ -.pp { - font-weight:bold; - color: #992211 -} /* preprocessor */ -.kw, .br { - font-weight:bold; - color: #112266 -} /* keyword or brace */ -.dt { - font-weight:bold; - color: #112266 -} /* data type */ -.tk { - font-style: normal; - color: #112266 -} /* regular token */ -pre#code a.req { - text-decoration: none; - color: #112266 -} -pre#code a.req_active { - cursor: pointer; - text-decoration: underline; -} -pre#code a.req_active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} -pre#code a.blk { - text-decoration: none; -} -pre#code a.blk_active { - cursor: pointer; - text-decoration: underline; -} -pre#code a.blk_active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} -a.hilite { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); -} /* highlight token */ -tr.hilite { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); -} /* highlight row */ -a.hiliteToken, tr.hiliteToken, td.hiliteToken { - background-color: #ffff99; -} -.hiliteCurrentLine, tr.hiliteCurrentLine > td { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); - box-shadow: inset 0 1px 0 0 rgba(150, 12, 116, 0.25), inset 0 -1px 0 0 rgba(150, 12, 116, 0.25); -} -span.hiliteTotalLine { - font-style: normal; - color: #aff; -} -a.tk { - text-decoration: none; -} -a.tk:hover { - text-decoration: none; -} -a.active { - text-decoration: underline; -} -a.active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} /* hyperlink */ -table.code { - border: 0px -} -table.code td { - vertical-align: top; -} -table.code td.highlightedCurrent { - background-color: rgba(150, 12, 116, 0.1); -} -table.code > tr:first { - text-align: right; -} /* hyperlink */ - -ul.popup_attrib_list { - list-style-type:none; - display: block; - margin: 0; - padding: 0; -} -ul.popup_attrib_list li { - list-style-type:none; - display: inline; - margin: 0 18px 0 0; - padding: 0; -} -.highlighted { - background-color:yellow; -} -a:class1 { - color: -webkit-link; - text-decoration: underline; - cursor: hand; -} -.scroll -{ - height:80px; - overflow:scroll; - overflow-x:hidden; -} -div#popup_window { - position: absolute; - background-color: rgb(203,203,255); - border: solid 3px #ECECEC; - border-radius: 5px; - /* shadow box around the window*/ - -moz-box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - -webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - padding: 2px; -} -div#popup_window a { - text-decoration: none; - color: green; -} -div#popup_window a:hover { - cursor: pointer; - text-decoration: underline; - color: blue; -} -div#popup_window tr.selected { - background-color: #ffff99; -} -div#token_usage_nav { - border-bottom: 1px solid gray; -} -table#token_usage_details { - cellpadding: 100px; - table-layout:fixed; - border: 0px; -} -.token_usage_details_tabrow { - width: 40px; -} -table#token_usage_details td { - padding-right: 5em; - padding-left: 1em; -} -.token_usage_details_tabrow:hover { - background-color: gray; -} -.nav_table td.hidden { - display: none; -} -table#codeTbl tr td { - color: #112266 -} -table#codeTbl tr td { - padding-left: 10px; -} -table#codeTbl tr td:first-child { - font-style: italic; - color: #888888; - text-align: right; - padding-left:0px; -} - diff --git a/src/validation/slprj/ert/AHRSControl/html/define.js b/src/validation/slprj/ert/AHRSControl/html/define.js deleted file mode 100644 index 3f3f2862d8a51ba942e3bac9363f448a1488fed6..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/define.js +++ /dev/null @@ -1,110 +0,0 @@ -function CodeDefine() { -this.def = new Array(); -this.def["AHRSControl_MdlrefDW"] = {file: "AHRSControl_c.html",line:41,type:"var"}; -this.def["AHRSControl_DW"] = {file: "AHRSControl_c.html",line:44,type:"var"}; -this.def["AHRSControl_Filter"] = {file: "AHRSControl_c.html",line:84,type:"fcn"}; -this.def["AHRSControl_pitch_feedback"] = {file: "AHRSControl_c.html",line:109,type:"fcn"}; -this.def["AHRSControl_roll_feedback"] = {file: "AHRSControl_c.html",line:144,type:"fcn"}; -this.def["AHRSControl_yaw_feedback"] = {file: "AHRSControl_c.html",line:179,type:"fcn"}; -this.def["AHRSControl_Heli_inner_loop"] = {file: "AHRSControl_c.html",line:214,type:"fcn"}; -this.def["AHRSControl_Pitch_loop_Disable"] = {file: "AHRSControl_c.html",line:304,type:"fcn"}; -this.def["AHRSControl_Pitch_loop"] = {file: "AHRSControl_c.html",line:311,type:"fcn"}; -this.def["AHRSControl_Roll_loop_Disable"] = {file: "AHRSControl_c.html",line:348,type:"fcn"}; -this.def["AHRSControl_Roll_loop"] = {file: "AHRSControl_c.html",line:355,type:"fcn"}; -this.def["AHRSControl_Yaw_loop_Disable"] = {file: "AHRSControl_c.html",line:392,type:"fcn"}; -this.def["AHRSControl_Yaw_loop"] = {file: "AHRSControl_c.html",line:399,type:"fcn"}; -this.def["AHRSCon_Heli_outer_loop_Disable"] = {file: "AHRSControl_c.html",line:436,type:"fcn"}; -this.def["AHRSControl_Heli_outer_loop"] = {file: "AHRSControl_c.html",line:461,type:"fcn"}; -this.def["AHRSContro_AHRSLoopCtrl_Disable"] = {file: "AHRSControl_c.html",line:544,type:"fcn"}; -this.def["AHRSControl_AHRSLoopCtrl"] = {file: "AHRSControl_c.html",line:555,type:"fcn"}; -this.def["AHRSControl_Avg_Value"] = {file: "AHRSControl_c.html",line:591,type:"fcn"}; -this.def["AHRSControl_Mid_Value"] = {file: "AHRSControl_c.html",line:645,type:"fcn"}; -this.def["AHRSControl_Single_Value"] = {file: "AHRSControl_c.html",line:668,type:"fcn"}; -this.def["AHRSControl_AHRS_voter"] = {file: "AHRSControl_c.html",line:721,type:"fcn"}; -this.def["AHRSControl_Disable"] = {file: "AHRSControl_c.html",line:820,type:"fcn"}; -this.def["AHRSControl_AHRS_Control"] = {file: "AHRSControl_c.html",line:835,type:"fcn"}; -this.def["AHRSControl_initialize"] = {file: "AHRSControl_c.html",line:873,type:"fcn"}; -this.def["RT_MODEL_AHRSControl_T"] = {file: "AHRSControl_h.html",line:83,type:"type"}; -this.def["DW_AHRSControl_f_T"] = {file: "AHRSControl_h.html",line:98,type:"type"}; -this.def["ConstP_AHRSControl_T"] = {file: "AHRSControl_h.html",line:127,type:"type"}; -this.def["MdlrefDW_AHRSControl_T"] = {file: "AHRSControl_h.html",line:133,type:"type"}; -this.def["AHRSControl_ConstP"] = {file: "AHRSControl_data_c.html",line:25,type:"var"}; -this.def["AHRS_Bus"] = {file: "../../_sharedutils/html/AHRS_Bus_h.html",line:38,type:"type"}; -this.def["int8_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:55,type:"type"}; -this.def["uint8_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:56,type:"type"}; -this.def["int16_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:57,type:"type"}; -this.def["uint16_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:58,type:"type"}; -this.def["int32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:59,type:"type"}; -this.def["uint32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:60,type:"type"}; -this.def["real32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:61,type:"type"}; -this.def["real64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:62,type:"type"}; -this.def["real_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:68,type:"type"}; -this.def["time_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:69,type:"type"}; -this.def["boolean_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:70,type:"type"}; -this.def["int_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:71,type:"type"}; -this.def["uint_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:72,type:"type"}; -this.def["ulong_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:73,type:"type"}; -this.def["ulonglong_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:74,type:"type"}; -this.def["char_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:75,type:"type"}; -this.def["uchar_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:76,type:"type"}; -this.def["byte_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:77,type:"type"}; -this.def["int64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:78,type:"type"}; -this.def["uint64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:79,type:"type"}; -this.def["int8_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:89,type:"type"}; -this.def["uint8_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:90,type:"type"}; -this.def["int16_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:91,type:"type"}; -this.def["uint16_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:92,type:"type"}; -this.def["int32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:93,type:"type"}; -this.def["uint32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:94,type:"type"}; -this.def["int64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:95,type:"type"}; -this.def["uint64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:96,type:"type"}; -this.def["real32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:97,type:"type"}; -this.def["real64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:98,type:"type"}; -this.def["real_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:104,type:"type"}; -this.def["time_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:105,type:"type"}; -this.def["boolean_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:106,type:"type"}; -this.def["int_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:107,type:"type"}; -this.def["uint_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:108,type:"type"}; -this.def["ulong_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:109,type:"type"}; -this.def["ulonglong_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:110,type:"type"}; -this.def["char_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:111,type:"type"}; -this.def["uchar_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:112,type:"type"}; -this.def["byte_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:113,type:"type"}; -this.def["pointer_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:136,type:"type"}; -} -CodeDefine.instance = new CodeDefine(); -var testHarnessInfo = {OwnerFileName: "", HarnessOwner: "", HarnessName: "", IsTestHarness: "0"}; -var relPathToBuildDir = "../ert_main.c"; -var fileSep = "\\"; -var isPC = true; -function Html2SrcLink() { - this.html2SrcPath = new Array; - this.html2Root = new Array; - this.html2SrcPath["AHRSControl_c.html"] = "../AHRSControl.c"; - this.html2Root["AHRSControl_c.html"] = "AHRSControl_c.html"; - this.html2SrcPath["AHRSControl_h.html"] = "../AHRSControl.h"; - this.html2Root["AHRSControl_h.html"] = "AHRSControl_h.html"; - this.html2SrcPath["AHRSControl_data_c.html"] = "../AHRSControl_data.c"; - this.html2Root["AHRSControl_data_c.html"] = "AHRSControl_data_c.html"; - this.html2SrcPath["AHRSControl_AHRS_Control_h.html"] = "../AHRSControl_AHRS_Control.h"; - this.html2Root["AHRSControl_AHRS_Control_h.html"] = "../../_sharedutils/html/AHRSControl_AHRS_Control_h.html"; - this.html2SrcPath["AHRS_Bus_h.html"] = "../AHRS_Bus.h"; - this.html2Root["AHRS_Bus_h.html"] = "../../_sharedutils/html/AHRS_Bus_h.html"; - this.html2SrcPath["rtwtypes_h.html"] = "../rtwtypes.h"; - this.html2Root["rtwtypes_h.html"] = "../../_sharedutils/html/rtwtypes_h.html"; - this.getLink2Src = function (htmlFileName) { - if (this.html2SrcPath[htmlFileName]) - return this.html2SrcPath[htmlFileName]; - else - return null; - } - this.getLinkFromRoot = function (htmlFileName) { - if (this.html2Root[htmlFileName]) - return this.html2Root[htmlFileName]; - else - return null; - } -} -Html2SrcLink.instance = new Html2SrcLink(); -var fileList = [ -"AHRSControl_c.html","AHRSControl_h.html","AHRSControl_data_c.html","AHRSControl_AHRS_Control_h.html","AHRS_Bus_h.html","rtwtypes_h.html"]; diff --git a/src/validation/slprj/ert/AHRSControl/html/hilite_warning.png b/src/validation/slprj/ert/AHRSControl/html/hilite_warning.png deleted file mode 100644 index f013f815ae58acfcb9112170c871851d666b820f..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/html/hilite_warning.png and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/html/inspect.html b/src/validation/slprj/ert/AHRSControl/html/inspect.html deleted file mode 100644 index b628c7a9b9bb6b35d1d71511d01fcff40959fe1b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/inspect.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - -
    - - diff --git a/src/validation/slprj/ert/AHRSControl/html/js/coder_app.js b/src/validation/slprj/ert/AHRSControl/html/js/coder_app.js deleted file mode 100644 index 3c34823e1b5445bb6421e4f73479ca3bc4f50299..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/js/coder_app.js +++ /dev/null @@ -1,525 +0,0 @@ -/* Copyright 2013-2018 The MathWorks, Inc. */ -function queryByClassName(className, elem) { - if (!elem) elem = document.body; - if (typeof elem.querySelectorAll === "function") { - return elem.querySelectorAll("."+className); - } else { - return elem.getElementsByClass(className); - } -} - -function nav_token_usage_details(direction) { - var els = queryByClassName("token_usage_details_tabrow"); - var selectedIdx = 0; - var selectedClassName = "selected"; - for (selectedIdx; selectedIdx < els.length; selectedIdx++) { - if (els[selectedIdx].classList.contains(selectedClassName)) { - break; - } - } - var nextIdx = selectedIdx; - if (direction === -1 && selectedIdx > 0) { - nextIdx = selectedIdx-1; - } else if (direction === 1 && selectedIdx < els.length - 1) { - nextIdx = selectedIdx + 1; - } - if (nextIdx !== selectedIdx) { - els[selectedIdx].classList.remove(selectedClassName); - els[nextIdx].classList.add(selectedClassName); - els[nextIdx].scrollIntoView(alignWithTop=false); - } - return false; -} - -function tabrowClicked(event) { -} - -function popupOnload() { - var els = queryByClassName("token_usage_details_tabrow"); - for (var i=0; i" + - top.rtwGetFileName(link2Src) + ""; - var bodyNode = document.body; - bodyNode.insertBefore(link, bodyNode.firstElementChild); - } - top.updateHyperlinks(); - // update fileSelector frame - if (top.fileSelector) { - var o = top.fileSelector.document.getElementById('fileSelector'); - if (o) { - o.value = filename; - } - } - // add links to line numbers - var hasLineFlag = null; - if (top.TraceInfoLineFlag && top.TraceInfoLineFlag.instance) { - hasLineFlag = true; - } else { - hasLineFlag = false; - } - - if(hasLineFlag) { - var lines = queryByClassName("ln", codeElement); - var lineTraceFlag = top.TraceInfoLineFlag.instance.lineTraceFlag; - var lineNo = null; - for (var i=0; i= 0; --i) { - var childNode = trNode.childNodes[i]; - if (childNode.tagName.toUpperCase() === "TD") { - return childNode.childNodes; - } - } - return null; -} - -// see g1225075 -function fixBoxStyleFnHeaderLineWidths() { - // Match strings like "/**********/" which is the top line of - // a box-style function comment header - var reBoxHeader = /\/\*+\//; - - // Match strings like "' */" which is the contents of the text - // element originally generated in the report to pad the width of - // the line. - var rePadding = /'\s*\*\//; - - // All block identifier elements in the report page - blkLineElts = queryByClassName("blk"); - for (var i = 0; i < blkLineElts.length; ++i) { - var origPadding = blkLineElts[i].nextSibling; - if (origPadding.textContent.match(rePadding)) { - var spanElt = findParent(blkLineElts[i], { tagName: "span", className: "ct" }); - if (!spanElt) { - continue; - } - - // The numbered line in the report containing block identifier "i" - var tableRowElt = findParent(spanElt, { tagName: "tr" }); - if (!tableRowElt) { - continue; - } - - // Loop backward through table rows (i.e., report lines) looking - // for the "/***************/" start of the header. When found save - // its pixel width. Not actually the width of the itself but - // the span inside its last . This is will determine the real - // padding that is needed for proper alignment regardless of font - // or CKJ characters. - var targetWidth = 0; - var sanity = Number.MAX_VALUE; - var node = tableRowElt.previousSibling; - while (node && (sanity-- > 0)) { - var lastCellContents = getLastTableCellContents(node); - if (lastCellContents) { - if (lastCellContents.length === 0) { - break; - } - if (lastCellContents[0].textContent.match(reBoxHeader)) { - targetWidth = lastCellContents[0].offsetWidth; - break; - } - } - node = node.previousSibling; - } - - // If applying a new padding (i.e., targetWidth > 0), replace - // the original padding "' */' (a single text element) with - // two text elements and a span in between. The span will be the - // new pixel-accurate padding. - if (targetWidth > 0) { - var singleQuoteNode = document.createTextNode("'"); - var spacerNode = document.createElement('span'); - origPadding.textContent = "*/"; - origPadding.parentNode.insertBefore(spacerNode, origPadding); - origPadding.parentNode.insertBefore(singleQuoteNode, spacerNode); - - var padWidth = targetWidth - spanElt.offsetWidth; - spacerNode.style.display = 'inline-block'; - spacerNode.style.width = String(padWidth) + "px"; - spacerNode.style.height = '1em'; // cursor won't work w/o some height - spacerNode.style.cursor = 'text'; - } - } - } -} - -// the onload function for source file -function srcFileOnload() { - var codeElement = document.getElementById("codeTbl"); - var insertFunction = getInsertFunction(codeElement); - try { - var els = codeElement.getElementsByTagName("tr"); - for (var i = 0; i < els.length; i++) { - registerDelayedOnMouseOver(els[i], lineOnMouseIn, lineOnMouseOut); - } - updateToken(codeElement); - } catch (err) {}; - insertFunction(); - // add code to model hyperlinks for all tokens - var filename = location.pathname.split(/\//); - filename = filename[filename.length-1]; - // highlight the filename in the TOC frame - if (top.rtwreport_contents_frame && top.hiliteByFileName(top.rtwreport_document_frame.document.location.href)) { - // remove the highlights in the TOC frame if filename is hilite successfully - top.removeHiliteTOC(top.rtwreport_contents_frame); - } - - // annotate code with code coverage data - if (typeof rtwannotate === 'function') { - rtwannotate(filename.replace(/.html$/,"_cov.xml")); - } - - fixBoxStyleFnHeaderLineWidths(); - - // highlight token and row - if (top.RTW_TraceInfo.instance && top.RTW_TraceArgs.instance) { - var i; - // find the highlight file name - var fileIdx = top.RTW_TraceArgs.instance.getFileIdx(filename); - var ids=[], rows=[]; - if (typeof fileIdx !== "undefined") { - ids = top.RTW_TraceArgs.instance.getIDs(fileIdx); - rows = top.RTW_TraceArgs.instance.getRows(fileIdx); - // highlight rows in file - for (i=0; i 0) - top.RTW_TraceInfo.instance.setInitLocation(filename,rows[0]); - else { - top.toggleNavSideBar("off"); - return; - } - } - - // display navigation side bar - if (top.rtwreport_nav_frame) top.rtwreport_nav_frame.location.reload(); - if (rows.length>0) { - top.toggleNavSideBar("on"); - top.toggleNavToolBar("on"); - } else { - top.toggleNavSideBar("off"); - } - } - top.scrollToLineBasedOnHash(document.location.hash); - function getHash() { - var loc; - var aHash=""; - var topDocObj = top.window.document; - // get the hash value from location. - loc = topDocObj.location; - loc = loc.search || loc.hash; - aHash = loc.substring(1); - aHash = decodeURI(aHash); - return aHash; - } -} - -function createPopup(filename, evt) { - var anchorObj = evt.currentTarget; - if (anchorObj.children.length > 0) - return; - var filename = location.pathname.split(/\//); - filename = filename[filename.length-1]; - var windowObj = top.getInspectWindow(); - var propObj = top.getInspectData(filename, anchorObj); - var navObj = top.getInspectLink(filename, location.pathname, anchorObj); - if (propObj) { - windowObj.appendChild(propObj); - windowObj.style.left = "0px"; - if (anchorObj.parentElement.nodeName === "TD" && - anchorObj.parentElement.parentElement.nodeName === "TR") { - anchorObj.parentElement.parentElement.lastChild.insertBefore(windowObj, - anchorObj.parentElement.parentElement.lastChild.lastChild.nextSibling); - var left = Math.min(evt.clientX , window.innerWidth - windowObj.scrollWidth - 30); - left = Math.max(0, left); - windowObj.style.left = "" + left + "px"; - } - } -}; - -function destroyPopup(anchorObj) { - var popWindow = document.getElementById("popup_window"); - if (popWindow) { - popWindow.parentElement.removeChild(popWindow); - } -}; diff --git a/src/validation/slprj/ert/AHRSControl/html/nav.html b/src/validation/slprj/ert/AHRSControl/html/nav.html deleted file mode 100644 index 64f68dbc1980c5d6eaedcb14230e0eff7a1e2ee2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/nav.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - diff --git a/src/validation/slprj/ert/AHRSControl/html/navToolbar.html b/src/validation/slprj/ert/AHRSControl/html/navToolbar.html deleted file mode 100644 index d07c72e0a8141cd7e044a11304c611d8c30999fc..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/navToolbar.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/validation/slprj/ert/AHRSControl/html/rtwhilite.js b/src/validation/slprj/ert/AHRSControl/html/rtwhilite.js deleted file mode 100644 index bb368a11264d4adae9ce2732cfb978ce099d3d68..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/rtwhilite.js +++ /dev/null @@ -1,2081 +0,0 @@ -// Copyright 2006-2019 The MathWorks, Inc. - -// Class RTW_Hash ------------------------------------------------------------ -// Internal web browser doesn't change window.location.hash if the link points -// to the same page. -// RTW_Hash remembers the hash value when the page is loaded in the first time -// or a link is clicked. -// removeHiliteByHash cleans the high lighted elements according to the stored -// hash value -function RTW_Hash(aHash) { - if (aHash == null) { - this.fHash = ""; - } else { - this.fHash = aHash; - }; - - this.getHash = function() { - return this.fHash; - } - - this.setHash = function(aHash) { - this.fHash = aHash; - } -} - -RTW_Hash.instance = null; - -// Class RTW_TraceInfo -------------------------------------------------------- -function RTW_TraceInfo(aFileLinks) { - this.fFileLinks = aFileLinks; - this.fLines = new Array(); - this.fTotalLines = 0; // total number of highlighted lines - this.fNumLines = new Array(); - this.fFileIdxCache = new Array(); - this.fDisablePanel = false; - this.fCurrFileIdx = -1; - this.fCurrLineIdx = -1; - this.fCurrCodeNode = null; - this.getHtmlFileName = function(aIndex) { - if (aIndex < this.fFileLinks.length) { - var href = this.fFileLinks[aIndex].href; - return href.substring(href.lastIndexOf('/')+1); - } - } - this.getSrcFileName = function(aIndex) { - var name = this.getHtmlFileName(aIndex); - if (name) - name = RTW_TraceInfo.toSrcFileName(name); - return name; - } - this.getNumFileLinks = function() { - return this.fFileLinks.length; - } - this.setFileLinkColor = function(aIndex, aColor) { - var link = this.fFileLinks[aIndex]; - if (link && link.parentNode && link.parentNode.style) - link.parentNode.style.backgroundColor = aColor; - } - this.highlightFileLink = function(aIndex, aColor) { - for (var i = 0; i < this.fFileLinks.length; ++i) { - this.setFileLinkColor(i, i == aIndex ? aColor : ""); - } - } - this.highlightCurrFileLink = function(aColor) { - this.highlightFileLink(this.fCurrFileIdx); - } - this.highlightLines = function(aCodeNode,aColor) { - this.fCurrCodeNode = aCodeNode; - var lines = this.fLines[this.getHtmlFileName(this.fCurrFileIdx)]; - if (lines && aCodeNode) { - for (var i = 0; i < lines.length; ++i) { - var lineObj = aCodeNode.childNodes[lines[i]-1]; - if (lineObj) - lineObj.style.backgroundColor=aColor; - } - } - } - this.getFileIdx = function(aFile) { - if (this.fFileIdxCache[aFile] != null) - return this.fFileIdxCache[aFile]; - for (var i = 0; i < this.fFileLinks.length; ++i) { - if (this.getHtmlFileName(i) == aFile) { - this.fFileIdxCache[aFile] = i; - return i; - } - } - return null; - } - this.getCurrFileIdx = function() { return this.fCurrFileIdx; } - this.setNumHighlightedLines = function(aFileIdx, aNumLines) { - this.fNumLines[aFileIdx] = aNumLines; - updateNumHighlightedLines(this.fFileLinks[aFileIdx], aNumLines); - } - this.getNumLines = function(aFileIdx) { - return this.fNumLines[aFileIdx] != null ? this.fNumLines[aFileIdx] : 0; - } - this.getNumLinesAll = function() { - var sum = 0; - var len = this.fNumLines.length; - for (var i = 0; i < len; ++i) { - sum += this.getNumLines(i); - } - return sum; - } - this.getPrevButton = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdButtonPrev"); - else - return document.getElementById("rtwIdButtonPrev"); - } - this.getNextButton = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdButtonNext"); - else - return document.getElementById("rtwIdButtonNext"); - } - this.getPanel = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdTracePanel"); - else - return document.getElementById("rtwIdTracePanel"); - } - this.removeHighlighting = function() { - for (var i = 0; i < this.fFileLinks.length; ++i) { - this.setFileLinkColor(i, ""); - this.setNumHighlightedLines(i, 0); - } - // remove highlight and reset current code node - try { - if (this.fCurrCodeNode != null) - this.highlightLines(getCodeNode(),""); - } catch (e) {}; - this.fCurrCodeNode = null; - if (this.getPrevButton()) { this.getPrevButton().disabled = true; } - if (this.getNextButton()) { this.getNextButton().disabled = true; } - if (this.getPanel()) { this.getPanel().style.display = "none"; } - this.fCurrFileIdx = -1; - this.fCurrLineIdx = -1; - } - this.setCurrLineIdx = function(aLineIdx) { - this.fCurrLineIdx = aLineIdx; - } - this.getCurrLineIdx = function() { return this.fCurrLineIdx; } - this.setCurrent = function(aFileIdx, aLineIdx) { - this.fCurrFileIdx = aFileIdx; - var numLines = this.getNumLines(aFileIdx); - if (!numLines || aLineIdx >= numLines) - this.fCurrLineIdx = -1; - else - this.fCurrLineIdx = aLineIdx; - var allNumLines = this.getNumLinesAll(); - if (this.getPrevButton()) { - this.getPrevButton().disabled = (allNumLines <= 1 || !this.hasPrev()); - } - if (this.getNextButton()) { - this.getNextButton().disabled = (allNumLines <= 1 || !this.hasNext()); - } - if (this.getPanel() && !this.fDisablePanel) { - this.getPanel().style.display = 'block'; - } - } - this.setDisablePanel = function(aDisable) { - this.fDisablePanel = aDisable; - } - this.getPrevFileIdx = function() { - if (this.fCurrLineIdx > 0) - return this.fCurrFileIdx; - for (var i = this.fCurrFileIdx - 1; i >= 0; --i) - if (this.fNumLines[i] > 0) - return i; - return null; - } - // update the navigation bar state - this.updateNavState = function() { - if (this.getPrevButton()) - this.getPrevButton().disabled = !this.hasPrev(); - if (this.getNextButton()) - this.getNextButton().disabled = !this.hasNext(); - setTraceNumber(); - } - this.hasPrev = function() { - return this.getPrevFileIdx() != null; - } - this.getFirstFileIdx = function() { - for (var i = 0; i < this.getNumFileLinks(); ++i) - if (this.fNumLines[i] > 0) - return i; - } - this.getLastFileIdx = function() { - for (var i = this.getNumFileLinks(); i >= 0; --i) - if (this.fNumLines[i] > 0) - return i; - } - this.goFirst = function() { - this.fCurrFileIdx = this.getFirstFileIdx(); - this.fCurrLineIdx = 0; - this.updateNavState(); - } - this.goLast = function() { - this.fCurrFileIdx = this.getLastFileIdx();; - this.fCurrLineIdx = this.getNumLines(this.fCurrFileIdx) - 1; - this.updateNavState(); - } - this.goPrev = function() { - var fileIdx = this.getPrevFileIdx(); - if (fileIdx == null) - return; - if (fileIdx == this.fCurrFileIdx) - --this.fCurrLineIdx; - else { - this.fCurrFileIdx = fileIdx; - this.fCurrLineIdx = this.getNumLines(fileIdx) - 1; - } - this.updateNavState(); - } - this.getNextFileIdx = function() { - if (this.fCurrLineIdx < this.getNumLines(this.fCurrFileIdx) - 1 && this.getNumLines(this.fCurrFileIdx) > 0) - return this.fCurrFileIdx; - for (var i = this.fCurrFileIdx + 1; i < this.getNumFileLinks(); ++i) - if (this.fNumLines[i] > 0) - return i; - return null; - } - this.hasNext = function() { - return this.getNextFileIdx() != null; - } - this.goNext = function() { - var fileIdx = this.getNextFileIdx(); - if (fileIdx == null) - return; - if (fileIdx == this.fCurrFileIdx) - ++this.fCurrLineIdx; - else { - this.fCurrFileIdx = fileIdx; - this.fCurrLineIdx = 0; - } - this.updateNavState(); - } - this.setTotalLines = function(num) { - this.fTotalLines = num; - } - this.getTotalLines = function() { return this.fTotalLines;} - this.setLines = function(aFile, aLines) { - this.fLines[aFile] = aLines; - var index = this.getFileIdx(aFile); - if (index != null) - this.setNumHighlightedLines(index,aLines.length); - } - this.getLines = function(aFile) { - return this.fLines[aFile]; - } - // get current on focus line number - this.getCurrLine = function() { - var file = this.getHtmlFileName(this.getCurrFileIdx()); - var lines = this.fLines[file]; - var line = null; - if (lines) { - var line = lines[this.fCurrLineIdx]; - } - return line; - } - this.getHRef = function(aFileIdx, aLineIdx, offset) { - var file = this.getHtmlFileName(aFileIdx); - var lines = this.fLines[file]; - if (lines) { - var line = lines[aLineIdx]; - line = offset_line(line, offset); - file = file+"#"+line; - } - return file; - } - - this.getCurrentHRef = function(offset) { - return this.getHRef(this.fCurrFileIdx, this.fCurrLineIdx, offset); - } - this.setInitLocation = function(aFile, aLine) { - var fileIdx = this.getFileIdx(aFile); - var lineIdx = null; - if (fileIdx != null && aLine) { - var lines = this.getLines(aFile); - for (var i = 0; i < lines.length; ++i) { - if (lines[i] == aLine) { - lineIdx = i; - break; - } - } - } - if (fileIdx == null || lineIdx == null) - this.setCurrent(-1,-1); - else - this.setCurrent(fileIdx,lineIdx); - } -} - -// Static methods in RTW_TraceInfo - -RTW_TraceInfo.getFileLinks = function(docObj) { - var links; - if (docObj && docObj.getElementsByName) - links = docObj.getElementsByName("rtwIdGenFileLinks"); - return links ? links : new Array(); -} - -RTW_TraceInfo.toSrcFileName = function(aHtmlFileName) { - aHtmlFileName = aHtmlFileName.replace(/_c.html$/,".c"); - aHtmlFileName = aHtmlFileName.replace(/_h.html$/,".h"); - aHtmlFileName = aHtmlFileName.replace(/_cpp.html$/,".cpp"); - aHtmlFileName = aHtmlFileName.replace(/_hpp.html$/,".hpp"); - aHtmlFileName = aHtmlFileName.replace(/_cc.html$/,".hpp"); - return aHtmlFileName; -} - -RTW_TraceInfo.instance = null; - -// Class RTW_TraceArgs -------------------------------------------------------- -// file.c:10,20,30&file.h:10,20,30[&color=value] or -// sid=model:1[&color=value] -RTW_TraceArgs = function(aHash) { - this.fColor = null; - this.fFontSize = null; - this.fInitFile = null; - this.fInitLine = null; - this.fSID = null; - this.fFiles = new Array(); - this.fLines = new Array(); - this.fMessage = null; - this.fBlock = null; - this.fNumBlocks = 0; - this.fUseExternalBrowser = true; - this.fInStudio = false; - this.fModel2CodeSrc = null; - this.fInCodeTrace = false; - this.fTraceData = null; - this.fFileIdx = []; // filename to fileId - this.fRows = []; // highlighted rows indexed by fileId - this.fIDs = []; // highlighted IDs indexed by fileId - - this.hasSid = function() { - return !(this.fSID == null); - } - this.parseCommand = function(aHash) { - var args = new Array(); - args = aHash.split('&'); - for (var i = 0; i < args.length; ++i) { - var arg = args[i]; - sep = arg.indexOf('='); - if (sep != -1) { - var cmd = arg.substring(0,sep); - var opt = arg.substring(sep+1); - switch (cmd.toLowerCase()) { - case "color": - this.fColor = opt; - break; - case "fontsize": - this.fFontSize = opt; - break; - case "initfile": - this.fInitFile = RTW_TraceArgs.toHtmlFileName(opt); - break; - case "initline": - this.fInitLine = opt; - break; - case "msg": - this.fMessage = opt; - break; - case "block": - this.fBlock = unescape(opt); - break; - case "numblocks": - this.fNumBlocks = parseInt(opt); - break; - case "sid": - this.fSID = opt; - // convert sid to code location - break; - case "model2code_src": - // model2code_src from model or webview - this.fModel2CodeSrc = opt; - break; - case "useexternalbrowser": - this.fUseExternalBrowser = (opt=="true"); - break; - case "instudio": - this.fInStudio = (opt=="true"); - break; - case "incodetrace": - this.fInCodeTrace = (opt=="true"); - break; - case "tracedata": - this.fTraceData = decodeURI(opt); - break; - } - } - } - } - this.parseUrlHash = function(aHash) { - var rows, sep, assignSep; - if (aHash) { - args = aHash.split('&'); - for (var i = 0; i < args.length; ++i) { - var arg = args[i]; - sep = arg.indexOf(':'); - assignSep = arg.indexOf('='); - if (sep !== -1 && assignSep === -1) { - var fileLines = arg.split(':'); - var htmlFileName = RTW_TraceArgs.toHtmlFileName(fileLines[0]); - this.fFileIdx[htmlFileName] = i; - this.fFiles.push(htmlFileName); - if (fileLines[1]) { - rows = fileLines[1].split(','); - rows = uniqueRows(rows); - this.fLines.push(rows); - this.fRows[i] = rows; - } - } - } - if (this.fInitFile == null && this.fFiles.length > 0) { - this.fInitFile = this.fFiles[0]; - this.fInitLine = (this.fLines[0] == null ? -1 : this.fLines[0][0]); - } - } - } - this.parseUrlHash2 = function(aHash) { - aHash = decodeURI(aHash); - var rows; - var ids; - if (aHash && aHash.length > 0 && aHash[0] === "[") { - var input = eval(aHash); - var i; - var j; - // set highlight files from url - for (i=0; i 0 - && top.rtwreport_document_frame.location.href !== "about:blank" && forceReload !== true) { - updateHyperlinks(); - return; - } - - // modify modelref links - update_modelref_report_link(top.rtwreport_contents_frame.document); - try { - // ignore browser security error - update_modelref_report_link(top.rtwreport_document_frame.document); - } catch(e) {}; - - // redirect the page based on the url - var initPage = null; - if (RTW_TraceArgs.instance.getNumFiles()) { - var fileLinks = RTW_TraceInfo.getFileLinks(tocDocObj); - RTW_TraceInfo.instance = new RTW_TraceInfo(fileLinks); - RTW_TraceInfo.instance.removeHighlighting() - var numFiles = RTW_TraceArgs.instance.getNumFiles(); - var tLines = 0; - for (var i = 0; i < numFiles; ++i) { - RTW_TraceInfo.instance.setLines(RTW_TraceArgs.instance.getFile(i),RTW_TraceArgs.instance.getLines(i)); - tLines += RTW_TraceArgs.instance.getLines(i).length; - } - RTW_TraceInfo.instance.setTotalLines(tLines); - if (aPanel == false) { - RTW_TraceInfo.instance.setDisablePanel(true); - } - var initFile = RTW_TraceArgs.instance.getInitFile(); - RTW_TraceInfo.instance.setInitLocation(initFile,RTW_TraceArgs.instance.getInitLine()); - if (!hasInCodeTrace()) { - initPage = RTW_TraceInfo.instance.getCurrentHRef(); - } else { - initPage = initFile; - } - } else { - // catch error that document frame is in another domain - try { - var fileDocObj = top.rtwreport_document_frame.document; - if (fileDocObj.location && (!fileDocObj.location.href || fileDocObj.location.href == "about:blank")) { - var summaryPage = tocDocObj.getElementById("rtwIdSummaryPage"); - var tracePage = tocDocObj.getElementById("rtwIdTraceability"); - if (summaryPage) { - initPage = summaryPage.href; - } else if (tracePage) { - initPage = tracePage; - } - } - } catch(e) {}; - } - if (RTW_TraceArgs.instance && RTW_TraceArgs.instance.fMessage) { - // display diagnostic message - var linkId = "rtwIdMsgFileLink"; - var msgFile = tocDocObj.getElementById(linkId); - if (msgFile && msgFile.style) { - msgFile.style.display = "block"; - // Highlight the background of msg link - tocHiliteById(linkId); - } - initPage = "rtwmsg.html"; - } - if (initPage) { - var is_same_page = false; - try { - var fileDocObj = top.rtwreport_document_frame.document; - is_same_page = isSamePage(fileDocObj.location.href, initPage); - } catch(e) {}; - if (document.getElementById("rtwreport_document_frame")) { - document.getElementById("rtwreport_document_frame").setAttribute("src", initPage); - } else { - top.rtwreport_document_frame.location.href = initPage; - } - - if (is_same_page) { - // Goto the same page won't trigger onload function. - // Call it manuelly to highligh new code location. - rtwFileOnLoad(top.rtwreport_document_frame.document); - } - } -} - -// Compare if href1(i.e. file:///path/file1.html#222) and href2(i.e.file2.html) are same pages. -// isSamePage return true if file1 == file2. -function isSamePage(href1, href2) { - var page1 = href1.substring(href1.lastIndexOf('/')+1,href1.lastIndexOf('.html')); - var page2 = href2.substring(href2.lastIndexOf('/')+1,href2.lastIndexOf('.html')); - return (page1 == page2); -} - -// Callback for main document loading -function rtwMainOnLoad() { - rtwMainOnLoadFcn(document,null,true, false); - var newUrl; - // modify history state to avoid reload from pressing back - if (RTW_TraceArgs.instance && !RTW_TraceArgs.instance.getUseExternalBrowser() && - typeof window.history.replaceState === "function") { - if (window.location.search.length > 0) { - if (window.location.search.indexOf("loaded=true") === -1) { - newUrl = document.location.pathname + window.location.search + '&loaded=true'; - } else { - newUrl = document.location.pathname + window.location.search; - } - } else { - newUrl = document.location.pathname + window.location.search + '?loaded=true'; - } - window.history.replaceState("","",newUrl); - } -} - -// Helper function for traceability report -function rtwMainReload(location) { - // remove highlight filename and lines before reloading the page - if (RTW_TraceInfo.instance) - RTW_TraceInfo.instance.removeHighlighting(); - rtwMainOnLoadFcn(document,location,true,true); -} - -function rtwMainReloadNoPanel(location) { - rtwMainOnLoadFcn(document,location,false,true); -} - -// Callback for hyperlink "Remove Highlighting" -function rtwRemoveHighlighting() { - if (RTW_TraceInfo.instance) - RTW_TraceInfo.instance.removeHighlighting(); - if (rtwSrcFrame()) { - rtwSrcFrame().focus(); - } - if (hasInCodeTrace()) { - removeInCodeTraceHighlight(); - } -} - -// Display diagnostic message in document frame -function rtwDisplayMessage() { - var docObj = top.rtwreport_document_frame.document; - var msg = docObj.getElementById(RTW_TraceArgs.instance.fMessage); - if (!msg) { - msg = docObj.getElementById("rtwMsg_notTraceable"); - } - if (msg && msg.style) { - msg.style.display = "block"; // make message visible - var msgstr = msg.innerHTML; - // replace '%s' in message with block name - if (top.RTW_TraceArgs.instance) { - var sid = top.RTW_TraceArgs.instance.getBlock(); - if (sid) { - var block = sid; - if (top.RTW_rtwnameSIDMap && top.RTW_rtwnameSIDMap.instance && top.RTW_rtwnameSIDMap.instance.getRtwname(sid)) { - block = top.RTW_rtwnameSIDMap.instance.getRtwname(sid).rtwname; - block = block.replace("<", "<").replace(">", ">"); - } else { - block = sid; - } - if (block) { - msgstr = msgstr.replace("%s", block); - } - } - } - msg.innerHTML = msgstr; - } -} - -function updateHyperlinks() { - docObj = top.rtwreport_document_frame; - if (docObj && docObj.document) { - if (RTW_TraceArgs.instance === null || !RTW_TraceArgs.instance.getUseExternalBrowser()) { - var plain_link = docObj.document.getElementById("linkToText_plain"); - if (plain_link && plain_link.href && plain_link.href.indexOf("matlab:coder.internal.editUrlTextFile") === -1 ) { - plain_link.href = "matlab:coder.internal.editUrlTextFile('" + str2StrVar(plain_link.href) + "')"; - } - var alink = docObj.document.getElementById("linkToCS"); - var linkCmd = "matlab:coder.internal.viewCodeConfigsetFromReport"; - if (alink && alink.href && alink.href.indexOf(linkCmd) === -1) { - alink.href = linkCmd+ "('" + str2StrVar(alink.href) + "');"; - if(alink.style) { - alink.style.display = ""; - hidden_link = docObj.document.getElementById("linkToCS_disabled"); - if (hidden_link) { - hidden_link.style.display = "none"; - } - } - } - } else { - var alink = docObj.document.getElementById("linkToCS"); - if (alink && alink.style) { - alink.style.display = "none"; - hidden_link = docObj.document.getElementById("linkToCS_disabled"); - if (hidden_link) - hidden_link.style.display = ""; - } - if (typeof docObj.document.getElementsByClassName === "function") { - alinks = docObj.document.getElementsByClassName("callMATLAB"); - } else if (typeof docObj.document.getElementsByName === "function") { - alinks = docObj.document.getElementsByName("callMATLAB"); - } else { - alinks = []; - } - alink = docObj.document.getElementById("CodeGenAdvCheck"); - if (alink && alink.href && alink.href.indexOf("externalweb=true")===-1) { - alink.href = alink.href + "?externalweb=true"; - } - - if (typeof docObj.document.getElementsByName === "function") - var objs = docObj.document.getElementsByName("MATLAB_link"); - else - objs = []; - for (var objIndex = 0; objIndex < objs.length; ++objIndex) { - objs[objIndex].style.display = "none"; - } - } - } - updateCode2ModelLinks(docObj.document); - // modify modelref links - update_modelref_report_link(top.rtwreport_contents_frame.document); - try { - // ignore browser security error - update_modelref_report_link(top.rtwreport_document_frame.document); - } catch(e) {}; -} - -function update_modelref_report_link(docObj) { - if (docObj.getElementsByName) { - var arg = ""; - if (RTW_TraceArgs.instance && !RTW_TraceArgs.instance.getUseExternalBrowser()) { - arg = "?useExternalBrowser=false"; - } - if (RTW_TraceArgs && RTW_TraceArgs.instance && RTW_TraceArgs.instance.getModel2CodeSrc() != null) { - if (arg.length > 0) - arg = arg + "&model2code_src=" + RTW_TraceArgs.instance.getModel2CodeSrc(); - else - arg = "?model2code_src=" + RTW_TraceArgs.instance.getModel2CodeSrc(); - } - if (arg.length > 0) { - links = docObj.getElementsByName('external_link'); - for (var link_idx = 0; link_idx < links.length; ++link_idx) { - links[link_idx].href = links[link_idx].href + arg; - } - } - } -} - -function rtwResizeFrame(f) { - if (f) { - f.style.height = f.contentWindow.document.body.scrollHeight + "px"; - } -} - -function rtwPageOnLoad(id) { - // highlight toc entry - tocHiliteById(id); - // restore elements state - if (top && top.restoreState) { - if (top.rtwreport_contents_frame && top.rtwreport_contents_frame.document) - top.restoreState(top.rtwreport_contents_frame.document); - if (top.rtwreport_document_frame && top.rtwreport_document_frame.document) { - top.restoreState(top.rtwreport_document_frame.document); - rtwResizeFrame(top.rtwreport_document_frame.document.getElementById("rtwIdContentsIframe")); - } - } - updateHyperlinks(); -} - -// highlight code after changeSys -function rtwChangeSysCallback(sid) { - if (sid == "" || typeof RTW_Sid2UrlHash == "undefined" || !RTW_Sid2UrlHash.instance) - return false; - urlHash = RTW_Sid2UrlHash.instance.getUrlHash(sid); - if (urlHash != undefined) { - if (RTW_TraceArgs && RTW_TraceArgs.instance && - !RTW_TraceArgs.instance.getUseExternalBrowser()) - urlHash = (urlHash == "")? "?useExternalBrowser=false" : - urlHash+"&useExternalBrowser=false"; - rtwMainReload(urlHash, true); - return true; - } else { - // remove highlighting from traceinfo - rtwRemoveHighlighting(); - return false; - } -} - -function emlFileOnload(docObj) { - var loc = docObj.location; - if (loc.hash) { - var line = loc.hash.substring(1); - hiliteEmlLine(docObj, line); - } -} - -function hiliteEmlLine(docObj, line) { - var bgColor; - if (top.HiliteCodeStatus) - bgColor = "#66CCFF"; - else - bgColor = "#E8D152"; - // unhighlight - if (typeof docObj.HiliteLine != "undefined") { - trObj = docObj.getElementById("LN_"+docObj.HiliteLine); - if (trObj != null) { - trObj.style.backgroundColor = ""; - } - } - // hilighlight - trObj = docObj.getElementById("LN_"+line); - if (trObj != null) { - trObj.style.backgroundColor = bgColor; - docObj.HiliteLine = line; - } -} - -function emlLineOnClick(docObj,sid,line) { - if (top) { - top.HiliteCodeStatus = top.rtwChangeSysCallback(sid); - } - hiliteEmlLine(docObj, line); -} - -function updateCode2ModelLinks(docObj) { - var webviewFrame = top.document.getElementById('rtw_webviewMidFrame'); - var link2model = false; - var isTestHarness = false; - if (top.testHarnessInfo && top.testHarnessInfo.IsTestHarness === "1") { - isTestHarness = true; - } - if (webviewFrame || isTestHarness) { - if (webviewFrame && RTW_TraceArgs.instance && - (RTW_TraceArgs.instance.getModel2CodeSrc() !== "model" || - RTW_TraceArgs.instance.getUseExternalBrowser()) - ) { - hiliteCmd = "javascript:top.rtwHilite("; - } else { - hiliteCmd = "matlab:coder.internal.code2model("; - link2model = true; - } - var objs = docObj.getElementsByName('code2model'); - var o = null; - var str = ''; - var sid = ''; - var pattern = "'code2model',"; - for (var objIndex = 0; objIndex < objs.length; ++objIndex) { - o = objs[objIndex]; - str = o.href.substring(o.href.indexOf('(')+1); - if (str.indexOf(pattern) > -1) { - str = str.substring(str.indexOf(pattern) + pattern.length); - } - o.href = hiliteCmd + str; - if (link2model && isTestHarness) { - sid = str.substring(0, str.indexOf(")")); - o.href = hiliteCmd + sid + ",'" + - top.testHarnessInfo.HarnessName+ "','" + - top.testHarnessInfo.HarnessOwner+ "','" + - top.testHarnessInfo.OwnerFileName + "');"; - } - } - } -} - -function rtwHilite(aBlock,aParentSID) { - if (aBlock.indexOf('-') !== -1) { - // remove sid range: model:sid:2-10 => model:sid - var s; - s = aBlock.split(':'); - if (s.length > 0) { - s = s[s.length-1]; - if (s.indexOf('-') != -1) { - aBlock = aBlock.substring(0, aBlock.lastIndexOf(':')); - } - } - } - if (typeof aParentSID === "undefined") { - if (top.RTW_SidParentMap && top.RTW_SidParentMap.instance) - aParentSID = top.RTW_SidParentMap.instance.getParentSid(aBlock); - else - aParentSID = aBlock; - } - top.HiliteCodeStatus = true; - - // webview 2 defines an interface api, call slwebview. - if (top.slwebview) { - // webview 2.x - if (top.codeToWebView(aBlock, aParentSID) === -1) { - alert("Cannot highlight block in model Web view. It may not be exported."); - } - - } else { - // webview 1.x - if (hiliteBlockForRTWReport(aBlock,aParentSID) === false) { - if (hiliteBlockForRTWReport(aBlock, aBlock) === false) { - rtwHilite(aParentSID); - } - } - } -} - -function str2StrVar(str) { - return str.replace(/'/g,"''"); -} -window.onload=rtwMainOnLoad; - -// handle incode traceability highlighting -function inCodeTraceOnload() { - var tocDocObj = top.rtwreport_contents_frame.document; - if (!top.RTW_TraceArgs.instance) { - var summaryPage = tocDocObj.getElementById("rtwIdSummaryPage"); - top.rtwreport_document_frame.location.href = summaryPage.href; - return; - } - - var files = top.RTW_TraceArgs.instance.getFile(); - if (files.length === 0) { - if (top.RTW_TraceArgs.instance) { - var block = top.RTW_TraceArgs.instance.getBlock(); - block = block.replace("<", "<").replace(">", ">"); - } - top.rtwreport_document_frame.document.write("
    No traceability information for block " + block + ".
    "); - return; - }; - - var fileLinks = RTW_TraceInfo.getFileLinks(tocDocObj); - RTW_TraceInfo.instance = new RTW_TraceInfo(fileLinks); - - // update filelist with num of highlighted lines - var tocDoc = top.rtwreport_contents_frame.document; - var tLines = 0; - for (var i=0; i 1) { - var spanNodes = parent.getElementsByTagName('span'); - var len = spanNodes.length; - if (len > 0) { - if (aNumLines > 0) { - /* display number of matches */ - spanNodes.item(len-1).innerHTML = " ("+aNumLines+")"; - } else { - /* clear number of matches */ - spanNodes.item(len-1).innerHTML = ""; - } - } - } -} - -function setupInStudio() { - if (top.whole) { - var tmp = top.whole.rows.split(","); - tmp[0] = "35px"; - top.whole.rows = tmp.join(); - } - if (top.main) { - var tmp = top.main.cols.split(","); - tmp[0] = "0"; - top.main.cols = tmp.join(); - } - // add file list to source file - if (top.Html2SrcLink && top.Html2SrcLink.instance && top.fileSelector) { - var myDoc = top.fileSelector.document; - var fileSelector = myDoc.createElement("select"); - fileSelector.id = "fileSelector"; - fileSelector.onchange = top.fileSelectorOnChange; - var filename; - var filelink; - fileSelector.innerHTML += ""; - for (var i=0; i < top.fileList.length; i++) { - filename = top.fileList[i]; - filelink = top.Html2SrcLink.instance.getLink2Src(filename); - fileSelector.innerHTML += ""; - } - var bodyNode = myDoc.body; - bodyNode.insertBefore(fileSelector, bodyNode.firstElementChild); - var textNode = myDoc.createElement("span"); - textNode.innerHTML = "Goto: "; - bodyNode.insertBefore(textNode, fileSelector); - var myCss = myDoc.createElement("link"); - myCss.type = "text/css"; - myCss.rel = "stylesheet"; - myCss.href = "rtwreport.css"; - myDoc.getElementsByTagName("head")[0].appendChild(myCss); - } -} - -function toggleNavSideBar(val) { - if (top.main) { - var tmp = top.main.cols.split(","); - - if (val === "on") { - tmp[tmp.length-1] = "15px"; - } else { - tmp[tmp.length-1] = "0"; - } - top.main.cols = tmp.join(); - if (top.rtwreport_nav_frame) - top.rtwreport_nav_frame.location.href = "nav.html"; - } -}; - -function toggleNavToolBar(val) -{ - var midFrame = rtwMidFrame(); - if (midFrame) { - var tmp1 = midFrame.rows.split(","); - var frameIdx = getNavToolbarFrameIdx(); - if (val === "on") { - tmp1[frameIdx] = "40px"; - } else { - tmp1[frameIdx] = "0"; - } - midFrame.rows = tmp1.join(); - if (top.rtwreport_navToolbar_frame) { - top.rtwreport_navToolbar_frame.location.href = "navToolbar.html"; - } - } -}; - -var GlobalConfig = { - navHiliteColor: "#0000ff", - fileLinkHiliteColor: "#ffff99", - navToolbarBgcolor: "ivory", - offset: 10, - hiliteToken: false -}; -var NavSideBarState = { - calLineHeight: 0, - overLink: false, - linkTarget: null, - lastLinkTarget: null, - linkTargetIdx: 0 -} -function drawNavSideBar() { - var rectHeight = 1; - if (!top || !top.rtwreport_document_frame || !top.rtwreport_nav_frame) return; - - if (!top.RTW_TraceArgs.instance) return; - var fileIdx = top.RTW_TraceArgs.instance.getFileIdx(); - if (fileIdx === undefined) return; - var rows = top.RTW_TraceArgs.instance.getRows(fileIdx); - if (rows.length === 0) return; // no highlighted line - - var codeTbl = top.rtwreport_document_frame.document.getElementById("codeTbl"); - if (!codeTbl) return; // no code table - - var nRows = codeTbl.rows.length + 1; - var canvas = top.rtwreport_nav_frame.document.getElementById("canvas"); - canvas.width = top.rtwreport_nav_frame.innerWidth; - canvas.height = top.rtwreport_nav_frame.innerHeight-2; - NavSideBarState.calLineHeight = canvas.height/nRows; - if (canvas.getContext) { - var ctx = canvas.getContext("2d"); - ctx.clearRect(0, 0, canvas.width, canvas.height); - // fill background - ctx.fillStyle = GlobalConfig.navToolbarBgcolor; - ctx.fillRect(0, 0, canvas.width, canvas.height); - ctx.fillStyle = GlobalConfig.navHiliteColor; - for (var i=0;i" + anchorObj.text + "
  • "+ - size + "
  • "; - } - propObj.appendChild(ulObj); - - return propObj; -} -function getInspectLink(file, pathname, anchorObj) { - var model = top.reportModel; - var tokenId = anchorObj.id; - var navObj = document.createElement("div"); - navObj.id = "token_usage_nav"; - ulObj = document.createElement("ul"); - ulObj.id = "token_nav_links"; - ulObj.className="popup_attrib_list"; - var srcFileName = RTW_TraceInfo.toSrcFileName(file); - var defObj; - if (top.CodeDefine.instance.def[srcFileName + ":" + anchorObj.text]) { - defObj = top.CodeDefine.instance.def[srcFileName + ":" + anchorObj.text]; - } else if (top.CodeDefine.instance.def[anchorObj.text]) { - defObj = top.CodeDefine.instance.def[anchorObj.text]; - } - var line = anchorObj.id.substring(0,anchorObj.id.indexOf("c")); - // link to model - if (top.TraceInfoFlag && top.TraceInfoFlag.instance && - top.TraceInfoFlag.instance.traceFlag[srcFileName+":"+anchorObj.id]) { - return null; - } - // link to def/decl - if (defObj) { - var filename = defObj.file.split(/\//); - filename = filename[filename.length-1]; - ulObj.innerHTML += "
  • " + anchorObj.text + " defined at " + RTW_TraceInfo.toSrcFileName(filename) + " line " + defObj.line + "
  • "; - } - navObj.appendChild(ulObj); - return navObj; -} - -var LastHiliteTokenId = null; -function rmHiliteClickedToken() { - if (LastHiliteTokenId) { - var o = top.rtwreport_document_frame.document.getElementById(LastHiliteTokenId); - if (o) { - o.className = o.className.replace("hiliteToken", ""); - } - } -} -function hiliteClickedToken(elem) { - rmHiliteClickedToken(); - LastHiliteTokenId = elem.id; - elem.className += " hiliteToken"; -} - -var initLine = null; -function scrollToInitLine() { - if (initLine) { - var lineElem = top.rtwreport_document_frame.document.getElementById(initLine); - if (lineElem) { - lineElem.scrollIntoView(); - } - } -} - -function scrollToLineBasedOnHash(hashValue) { - // move to the current highlight line if the hash is not empty - if (hashValue === "") { - if (top.RTW_TraceInfo.instance && top.RTW_TraceInfo.instance.getCurrLine() !== null) { - top.rtwreport_document_frame.document.location.href=top.RTW_TraceInfo.instance.getCurrentHRef(); - top.initLine = top.rtwreport_document_frame.document.location.hash.substr(1); - } - } else { - // scroll and hilite line - hashValue = hashValue.substr(1); - if (isNaN(hashValue)) { - // #fcn_name - var pattern = "+newPage"; - if (hashValue.indexOf(pattern) != -1) { - hashValue = hashValue.replace(pattern, ''); - var lineElem = top.rtwreport_document_frame.document.getElementById(hashValue); - initLine = hashValue; // save initLine in case the dom is updated later by anootation - if (lineElem) { - lineElem.scrollIntoView(); - addTagToCurrentLine(); - } - - } else { - var token = null; - pattern = ["var_", "fcn_", "type_"]; - for (var i =0; i < pattern.length; i++) { - if (hashValue.indexOf(pattern[i]) === 0) { - token = hashValue.substr(pattern[i].length); - break; - } - } - if (token !== null && top.CodeDefine && top.CodeDefine.instance) { - var addr; - var filename = location.pathname.split(/\//); - filename = filename[filename.length-1]; - var srcFileName; - if (top.RTW_TraceInfo) { - srcFileName = top.RTW_TraceInfo.toSrcFileName(filename); - } - if (top.CodeDefine.instance.def[srcFileName + ":" + token]) { - addr = top.CodeDefine.instance.def[srcFileName + ":" + token]; - } else { - addr = top.CodeDefine.instance.def[token]; - } - if (addr) { - hilite_line(addr.line); - } - } else { // token id like #line"c"#col - if (hashValue.indexOf("c") !== -1) { - hilite_line(hashValue.substr(0, hashValue.indexOf("c")), hashValue); - } - } - } - } else { // #line - hilite_line(hashValue); - } - } - return false; - // hilite line number and scroll with an offset - function hilite_line(line, tokenId) { - if (isNaN(line)) return; - if (!tokenId) { - tokenId = line; - } - var elem = top.rtwreport_document_frame.document.getElementById(tokenId); - hiliteClickedToken(elem); - initLine = offset_line(line); - scrollToInitLine(); - } -} - -function tokenLinkOnClick(event) { - var alink = event.currentTarget; - if (alink.pathname === top.rtwreport_document_frame.location.pathname) { - event.preventDefault(); - scrollToLineBasedOnHash(alink.hash); - } - return false; -} -function inspectToken(file, pathname, event) { - var height = "70px"; - // show inspect data - if (top.rtwreport_inspect_frame) { - var windowObj = getInspectWindow(); - var propObj = getInspectData(file, event.currentTarget); - var navObj = getInspectLink(file, pathname, event.currentTarget); - if (navObj === null) { - closeInspectWindow(); - return false; - } - if (propObj === null) { - height = "50px"; - } else { - windowObj.appendChild(propObj); - } - windowObj.appendChild(navObj); - var data = top.rtwreport_inspect_frame.document.getElementById("popup_window"); - if (data) { - data.parentNode.replaceChild(windowObj.cloneNode(true), data); - } - } - var offsetHeight = 0; - var docHeight = 0; - if (typeof(top.rtwInspectFrame().document.body.offsetHeight) === "number") { - offsetHeight = top.rtwInspectFrame().document.body.offsetHeight; - } - if (typeof(top.rtwInspectFrame().document.height) === "number") { - docHeight = top.rtwInspectFrame().document.height; - } - if (offsetHeight > 0) { - height = ""+offsetHeight+"px"; - } else if (docHeight > 0) { - height = ""+docHeight+"px"; - } - setInspectWindow(height); - return false; -} -function setInspectWindow(height) { - // show inspect code frame - var midFrame = rtwMidFrame(); - if (midFrame) { - var tmp = midFrame.rows.split(","); - tmp[getInspectFrameIdx()] = height; - midFrame.rows = tmp.join(); - } -} -function closeInspectWindow() { - setInspectWindow(0); - return false; -} - -// set the trace number in the navigation toolbar -function setTraceNumber() { - if (RTW_TraceInfo.instance) { - var aFrame = rtwNavToolbarFrame(); - if (aFrame) { - var node = aFrame.document.getElementById("rtwIdTraceNumber"); - // calculate current line index over total highlighted lines - var currNum = RTW_TraceInfo.instance.getCurrLineIdx(); - for (var idx=0;idx 0) - line = (line > GlobalConfig.offset ? line - GlobalConfig.offset : 1); - return line; -} - -function load_js(frame, file) { - var h = frame.document.getElementsByTagName("head")[0]; - var o = h.getElementsByTagName('script'); - for (var i=0;iBlock-to-Code Highlighting Message - - - -

    Block-to-Code Highlighting Message

    - - \ No newline at end of file diff --git a/src/validation/slprj/ert/AHRSControl/html/rtwreport.css b/src/validation/slprj/ert/AHRSControl/html/rtwreport.css deleted file mode 100644 index 54b994a6f2bac912ba0b2173a60c9788d7de7aa2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/rtwreport.css +++ /dev/null @@ -1,257 +0,0 @@ -/* Copyright 2011-2016 The MathWorks, Inc. */ -body,p,table {font-family: calibri, verdana, sans-serif;} -button,.buton {font-family: calibri, verdana, sans-serif;} -button,.button {font-size: small;} -.small_font {font-size: small;} -h1 { font-weight: normal; color: #000066; } -td { vertical-align: top } -th { background-color: #eeeeee; text-align: left; } -a:link { color: #0033cc; } -a:visited { color: #666666; } -input { font-family: sans-serif, verdana, calibri; } -table { - background-color: #ffffff; - width: 100%; -} - -table.toc, table.button, table.panel { - border-style: none; -} - -/* LineNumber */ -.LN { - font-style: italic; - color: #888888; -} - -/* Comment */ -.CT { - font-style: italic; - color: #117755; -} - -/* PreProcessor */ -PP { - /* font-weight: bold; */ - color: #992211; -} - -/* Keyword */ -.KW { - /* font-weight: bold; */ - color: #0000FF; -} - -/* Datatype */ -.DT { - /* font-weight: bold; */ - color: #112266 -} - -.highlighted { - background-color: yellow; -} - -.highlightedCurrent { - background-color: rgba(150, 12, 116, 0.1); -} - -input.search { - background-color: #ffffff; -} - -input.failedSearch { - background-color: #F78181; -} - -/* ensure that code2model links are comment green */ -a.code2model:link { - color: #117755; - font-style: italic; -} -a.code2model:visited{ - color: #117755; - font-style: italic; -} - -.toc td, .button td, .panel td { - border-style: none; - padding: 4px; -} - -h1 { font-weight: normal; color: #000066; } -td { vertical-align: top } -th { background-color: #eeeeee; text-align: left; } -a:link { color: #0033cc; } -a:visited { color: #666666; } - -/******* table *******/ -/* default table style */ -table.AltRow { - border-collapse: collapse; border: none; border-spacing: 0pt; - border-top: solid #4F81BD 1.0pt; border-bottom: solid #4F81BD 1.0pt; -} -table.AltRow th, table.AltRow td { padding: 2pt 8pt 2pt 2pt } -/* default alternating row style */ -table.AltRow tr.even td { background-color:#D3DFEE; border:none;} -table.AltRow tr.odd td { background-color:#FFFFFF; border:none;} -/* tr class="heading" */ -table.AltRow tr.heading td, table.AltRow th { - background-color:#FFFFFF; font-weight:bold; border:none; - border-bottom: solid #4F81BD 1.0pt; -} -/* table class="FirstColumn" */ -table.FirstColumn td:first-child { font-weight:bold } -/* table class="TotalRow" */ -table.TotalRow tr:last-child { font-weight:bold } -table.TotalRow tr:last-child td { border-top: solid #4F81BD 1.0pt } - -a.closeButton { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) ); - background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9'); - background-color:#f9f9f9; - -webkit-border-top-left-radius:20px; - -moz-border-radius-topleft:20px; - border-top-left-radius:20px; - -webkit-border-top-right-radius:20px; - -moz-border-radius-topright:20px; - border-top-right-radius:20px; - -webkit-border-bottom-right-radius:20px; - -moz-border-radius-bottomright:20px; - border-bottom-right-radius:20px; - -webkit-border-bottom-left-radius:20px; - -moz-border-radius-bottomleft:20px; - border-bottom-left-radius:20px; - text-indent:0; - border:2px solid #dcdcdc; - display:inline-block; - color:#454143; - font-family:Arial; - font-size:15px; - font-weight:bold; - font-style:normal; - height:20px; - line-height:20px; - width:20px; - text-decoration:none; - text-align:center; - cursor: pointer; -} -a.closeButton:hover { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #e9e9e9), color-stop(1, #f9f9f9) ); - background:-moz-linear-gradient( center top, #e9e9e9 5%, #f9f9f9 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#f9f9f9'); - background-color:#e9e9e9; -} -a.closeButton:active { - position:relative; - top:1px; -} - -.button { - -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; - -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; - box-shadow:inset 0px 1px 0px 0px #ffffff; - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); - background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); - background-color:#ededed; - -webkit-border-top-left-radius:5px; - -moz-border-radius-topleft:5px; - border-top-left-radius:5px; - -webkit-border-top-right-radius:5px; - -moz-border-radius-topright:5px; - border-top-right-radius:5px; - -webkit-border-bottom-right-radius:5px; - -moz-border-radius-bottomright:5px; - border-bottom-right-radius:5px; - -webkit-border-bottom-left-radius:5px; - -moz-border-radius-bottomleft:5px; - border-bottom-left-radius:5px; - text-indent:0px; - border:1px solid #dcdcdc; - display:inline-block; - color:black; - font-family:Arial; - font-size:12px; - font-weight:bold; - font-style:normal; - height:12px; - line-height:12px; - width:45px; - text-decoration:none; - text-align:center; - text-shadow:1px 1px 0px #ffffff; -} -.button:hover { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) ); - background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed'); - background-color:#dfdfdf; -}.button:active { - position:relative; - top:1px; -}.button:disabled { - color:#777777; -} - -ul.nav_list { - list-style-type:none; - display: block; - margin: 0; - padding: 0; -} -ul.nav_list li { - list-style-type:none; - display: inline; - margin: 0 18px 0 0; - padding: 0; -} - -.nav_toolbar { - background-color: ivory; - margin-top: 0; -} - -.inspect_body { - margin: 0; - margin-bottom: 0; - display: inline; - vertical-align:middle; -} - -table.nav_table { - background-color: ivory; - border: none; - width: 100%; - display: inline; - vertical-align:middle; -} - -table#rtwIdTracePanel > tr > td { - white-space: nowrap; - table-layout:fixed; - vertical-align:middle; -} - -table.nav_table > button { - height: 20px; -} -select#fileSelector { - padding: 5px; - font-size: 16px; - line-height: 1; - border-radius: 0; - height: 34px; -} - -.treeTable table{ - table-layout: fixed; -} -.treeTable td:first-child > span{ - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - width: 100%; -} diff --git a/src/validation/slprj/ert/AHRSControl/html/rtwreport_utils.js b/src/validation/slprj/ert/AHRSControl/html/rtwreport_utils.js deleted file mode 100644 index f58fb496cf4f81b357b1ab8f7fab93e17954488b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/rtwreport_utils.js +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright 2011-2013 The MathWorks, Inc. - - -function local_onload() { - if (typeof top.rtwreport_document_frame !== "undefined") { - var docObj = window.document; - var alink = docObj.getElementById("linkToText_plain"); - if (alink) { - alink.href = "matlab:coder.internal.editUrlTextFile('" + alink.href + "')"; - } - alink = docObj.getElementById("linkToCS"); - if (alink) { - alink.href = "matlab:coder.internal.viewCodeConfigsetFromReport('" + alink.href + "');"; - } - } -} - -var utils = (function() { - - // Load via Microsoft.XMLDOM--for older versions of IE - function loadXML_MSXMLDOM(filename, callback, async) { - if (navigator.appName == "Microsoft Internet Explorer") { - // Internet Explorer 5/6 - try { - var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); - xmlDoc.async = async; - xmlDoc.onreadystatechange = function() { - if (xmlDoc.readyState == 4) { - callback(xmlDoc); - } - } - xmlDoc.load(filename); - return true; - } catch(e) { - } - } - return false; - } - - // Load via XMLHttpRequest - function loadXML_XHR(filename, callback, async) { - if (window.XMLHttpRequest) { - try { - var xhr = new XMLHttpRequest(); - xhr.onreadystatechange = function() { - if (this.readyState == 4) { - callback(this.responseXML); - } - } - xhr.open("GET", filename, async); - xhr.send(""); - return true; - } catch(e) { - if (navigator.appName === "Netscape" && e.code === 1012) { - // file not found: ignore - return true; - } - } - } - return false; - } - - return { - trimText: function(s) { - // In IE9, String.trim not present - if (s && s.trim) { - return s.trim(); - } - else { - return s; - } - }, - getText: function(elt) { - // In IE9, use 'text' property rather than 'textContent' - return elt.textContent ? elt.textContent : elt.text; - }, - loadXML: function(filename, callback, options) { - var async = !!options && typeof(options["async"]) !== "undefined" ? options.async : true; - if (!loadXML_XHR(filename, callback, async)) { - if (!loadXML_MSXMLDOM(filename, callback, async)) { - return false; - } - } - return true; - } - }; -})(); - -function code2model(sid) { - utils.loadXML("http://localhost:31415/matlab/feval/coder.internal.code2model?arguments=[\"" + sid + "\"]", function() {}); - //window.location.href = "matlab:coder.internal.code2model('" + sid + "')"; -} diff --git a/src/validation/slprj/ert/AHRSControl/html/rtwshrink.js b/src/validation/slprj/ert/AHRSControl/html/rtwshrink.js deleted file mode 100644 index 8e2affbfbd2119cffdbdbb58eeaf5670e7b04da2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/rtwshrink.js +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright 2011-2017 The MathWorks, Inc. - -function RTW_STRUCT(prop, value) { - this.prop = prop; - if (typeof(value) == 'undefined') { - this.value = ""; - } else { - this.value = value; - } -} - -// initialize the cache when code generation report is first loaded -function RTW_BOOK() { - this.length = 0; - this.rtw_pages = new Array(); - this.getPage = function(file) { - return this.rtw_pages[file]; - }; - this.addPage = function(file) { - var page; - if (this.hasPage(file)) { - page = this.rtw_pages[file]; - } else { - page = new RTW_PAGE(file); - this.rtw_pages[file] = page; - } - return page; - }; - this.hasPage = function(file) { - return typeof(this.rtw_pages[file]) != 'undefined'; - }; - this.removePage = function(file) { - var tmp; - if (typeof(this.rtw_pages[file]) != 'undefined') { - tmp = this.rtw_pages[file]; - delete this.rtw_pages[file]; - this.length--; - } - return tmp; - }; -} - -if (!RTW_BOOK.instance) { - RTW_BOOK.instance = new RTW_BOOK(); -} - -function RTW_PAGE() { - this.length = 0; - this.items = new Array(); - this.pagename = ''; - if (arguments.length > 0 && typeof(arguments[1]) != 'undefined') { - this.pagename = arguments[1]; - } - - this.getItem = function(id) { - return this.items[id]; - }; - this.getItems = function() { - return this.items; - }; - this.addItem = function(id, value) { - var tmp; - if (typeof(value) != 'undefined') { - if (typeof(this.items[id]) != 'undefined') { - this.length++; - } else { - tmp = this.items[id]; - } - this.items[id] = value; - this.length++; - } - return tmp; - }; - this.hasItem = function(id) { - return typeof(this.items[id]) != 'undefined'; - }; - this.removeItem = function(id) { - var tmp; - if (typeof(this.items[id]) != 'undefined') { - tmp = this.items[id]; - delete this.items[id]; - this.length--; - } - return tmp; - }; -} - -function rtwTableShrink(doc, obj, id, isSymbol) { - var hide, hide_text, show, show_text; - if (isSymbol) { - hide = "[-]"; - hide_text = hide; - show = "[+]"; - show_text = show; - } else { - hide = "[hide]"; - hide_text = "[hide]"; - show = "[show]"; - show_text = "[show]"; - } - hide = "" + hide + ""; - show = "" + show + ""; - if (doc.getElementsByName) { - var o = doc.getElementsByName(id); - for (var oid = 0; oid < o.length; ++oid) { - if (o[oid].style.display === "none") { - o[oid].style.display = ""; - } else { - o[oid].style.display = "none"; - } - } - if (o.length >= 0 && addToPage) { - addToPage(doc, o[0], 'display'); - } - } - - // IE supports innerText while other browsers support textContent - if (obj.textContent) { - var objText = obj.textContent; - } else { - var objText = obj.innerText; - } - - if (objText.toLowerCase() === show_text.toLowerCase()) { - obj.innerHTML = hide; - } else { - obj.innerHTML = show; - } - - if (addToPage) { - addToPage(doc, obj, 'innerHTML'); - } -} - -function rtwTableExpand(doc, controlObj, id) { - if (doc.getElementById) { - var obj = doc.getElementById(id); - if (obj && obj.style.display === "none") { - rtwTableShrink(doc, controlObj, id, false); - } - } -} - -function restoreState(docObj) { - var filename = docObj.location.href; - if (RTW_BOOK.instance && RTW_BOOK.instance.hasPage(filename)) { - var page = RTW_BOOK.instance.getPage(filename); - var items = page.getItems(); - var elem; - if (docObj.getElementsByName) { - for (var i in items) { - var o = docObj.getElementsByName(i); - for (var oid = 0; oid < o.length; ++oid) { - elem = o[oid]; - if (items[i].prop === 'display') { - if (elem.style.display === 'none') { - elem.style.display = ''; - } else { - elem.style.display = 'none'; - } - } else if (items[i].prop === 'innerHTML') { - elem.innerHTML = items[i].value; - } - } - } - } - } -} - -function addToPage(docObj, obj, prop) { - var filename = docObj.location.href; - if (RTW_BOOK.instance) { - var page; - if (RTW_BOOK.instance.hasPage(filename)) { - page = RTW_BOOK.instance.getPage(filename); - } else { - page = RTW_BOOK.instance.addPage(filename); - } - if (page.hasItem(obj.id)) { - page.removeItem(obj.id); - } else { - var my_struct; - if (prop === "display") { - my_struct = new RTW_STRUCT(prop, obj.style.display); - } else { - my_struct = new RTW_STRUCT(prop, obj.innerHTML); - } - page.addItem(obj.id, my_struct); - } - } -} - -function rtwSwitchView(doc, obj1, obj2) { - if (doc.getElementsByName) { - var o = doc.getElementsByName(obj1); - for (var oid = 0; oid < o.length; ++oid) { - o[oid].style.display = "none"; - } - if (o.length >= 0 && addToPage) { - addToPage(doc, o[0], 'display'); - } - var o = doc.getElementsByName(obj2); - for (var oid = 0; oid < o.length; ++oid) { - o[oid].style.display = ""; - } - if (o.length >= 0 && addToPage) { - addToPage(doc, o[0], 'display'); - } - } -} diff --git a/src/validation/slprj/ert/AHRSControl/html/search.js b/src/validation/slprj/ert/AHRSControl/html/search.js deleted file mode 100644 index 816380f81409e4e52d0992bb3e317d0e25fd465a..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/search.js +++ /dev/null @@ -1,559 +0,0 @@ -// Copyright 2007-2012 The MathWorks, Inc. - -function createHighlightSpanStart(num) -{ - return ""; -} - -var str2pos; // This is a map between a tag stripped string and the original string. -function getTagStrippedStringAndMap(aString) -{ - var tagStrippedString = new String(); - - str2pos = new Array(); - - var inTag = false; - var inScript = false; - - for (var strPos = 0; strPos < aString.length; strPos++) { - if (inTag && aString.charAt(strPos) == '>') { - inTag = false; - if (inScript && (strPos > 8) && (aString.slice(strPos, strPos - 8) == '/script>')) { - inScript = false; - } - continue; - } else if (!inTag && aString.charAt(strPos) == '<') { - inTag = true; - if (!inScript && aString.slice(strPos, strPos + 7) == ' str2posprev+1) // we have jumped some text, so there must be a tag - { - // insert end tag - newText += highlightEndTag; - - // insert intermediate body text tags - newText += bodyText.slice(str2posprev+1, str2pos[cnt]); - - // insert start tag - newText += highlightStartTag; - } - newText += bodyText.charAt(str2pos[cnt]); - str2posprev=str2pos[cnt]; - } - - // insert end - newText += highlightEndTag; - return newText; - -} - -// check to see if the sequence at position 'i' in taglessString is actually in -// the middle of an escape sequence. We assume escape sequences follow the pattern -// &;. We check for  , <, > and & -function isInEscapedSequence(i, taglessString, searchTerm) -{ - var escapeSeq = / |<|>|&/gi; - var maxEscapeSeqLength = 6; - var startPos = 0; - var endPos = 0; - - // exit if the search term has an escape sequence inside it - if (escapeSeq.test(searchTerm)) { - return false; - } - - // reset the escape sequence - escapeSeq = / |<|>|&/gi; - - // go back in the string until we find an ampersand or we hit maxEscapeSeqLength characters - tempI = i; - var bFound = false; - while (tempI >= 0 && tempI > (i-maxEscapeSeqLength)) { - if (taglessString.charAt(tempI) == "&") { - startPos = tempI; - bFound = true; - break; - } - tempI = tempI-1; - - // if we hit a ';' in any position other than the first while searching - // for an ampersand, then we cannot be inside an escape sequence - if (tempI >= 0 && taglessString.charAt(tempI) == ";") { - return false; - } - } - if (!bFound) { - return false; - } - // reset the escape sequence - escapeSeq = / |<|>|&/gi; - - var subString = taglessString.substring(startPos, startPos + maxEscapeSeqLength); - return escapeSeq.test(subString); -} - -// Adds highlighting to bodyText around searchTerm. Case sensitivity is optional. -// hitCount is used to a) count the number of search matches and b) Generate unique -// name strings for each highlighting SPAN element. -function addHighlight(bodyText, searchTerm, caseSensitive, hitCount) -{ - var highlightStartTag = ""; - var highlightEndTag = ""; - - var newText = ""; - var i = 0; - var previ = 0; - var bodyTextUC = bodyText.toUpperCase(); - - if (caseSensitive) { - var taglessString = getTagStrippedStringAndMap(bodyText); - } else { - var taglessString = getTagStrippedStringAndMap(bodyTextUC); - } - - // escape the search term in case the user input '<' or '>' etc - searchTerm = escapeSpecialChars(searchTerm); - - if (!caseSensitive) { - var searchTermUC = searchTerm.toUpperCase(); - } - - // search for subsequent matches - while (true) { - if (caseSensitive) { - i = taglessString.indexOf(searchTerm, i); - } else { - i = taglessString.indexOf(searchTermUC, i); - } - if (i < 0) break; - - // we have a match! - - // make sure that the match is not inside an escaped sequence of text - // such as   - if (isInEscapedSequence(i, taglessString, searchTerm)) { - i=i+1; - continue; - } - - // insert highlight tags that cross tag boundaries - highlightStartTag = createHighlightSpanStart(hitCount); - hitCount = hitCount+1; - newText += insertHighlighting(bodyText, previ, i, searchTerm.length, highlightStartTag, highlightEndTag); - previ = str2pos[i+searchTerm.length-1]+1; - - i = i + searchTerm.length; - } - - newText += bodyText.slice(previ, bodyText.length); - return [newText, hitCount]; -} - -function removeHighlight(bodyText) -{ - // We use regular expressions here rather than a straight text search because - // some browsers actually insert double quotes and capitalize. Also, each highlight - // name is uniquely numbered in order of discovery - var highlightStartTag = //i; - var highlightEndTag = /<\/span>/i; - - var newText = ""; - - var startPatternFirstIndex = -1; - var startPatternLastIndex = -1; - - var endPatternFirstIndex = -1; - var endPatternLastIndex = -1; - - while (highlightStartTag.test(bodyText) === true) { - startPatternFirstIndex = bodyText.search(highlightStartTag); - newText += bodyText.substring(0, startPatternFirstIndex); - startPatternLastIndex = bodyText.indexOf('>', startPatternFirstIndex+1); - - bodyText = bodyText.substr(startPatternLastIndex+1); - endPatternFirstIndex = bodyText.search(highlightEndTag); - newText += bodyText.substring(0, endPatternFirstIndex); - endPatternLastIndex = endPatternFirstIndex+7; - - bodyText = bodyText.substr(endPatternLastIndex); - } - if (startPatternFirstIndex < 0) { - return bodyText; - } else { - return newText+bodyText; - } -} - -function removeHighlightInAllDocs() -{ - if (top) { - for (var i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var currentDoc = top.frames[i].document; - if (typeof currentDoc.body !== "undefined" && currentDoc.body !== null) - currentDoc.body.innerHTML=removeHighlight(currentDoc.body.innerHTML); - } - } - } -} - -function findInDoc(searchStringFromSubmitBox, doc, caseSensitive, hitCount) -{ - var searchBody = doc.body.innerHTML; - // if the document is empty, or the documents is invalid, return - if (!doc.body || typeof(searchBody) === "undefined") { - return [false, hitCount]; - } - - // inject highlighting code into html - var result = addHighlight(searchBody, searchStringFromSubmitBox, caseSensitive, hitCount); - doc.body.innerHTML = result[0]; - - return [true, result[1]]; -} - -var currentlyHighlightedHit; - -function getSpansByName(name) -{ - var allSpans = []; - for (i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var currentDoc = top.frames[i].document; - var highlightedSpans = currentDoc.getElementsByName(name); - if (highlightedSpans && highlightedSpans.length && highlightedSpans.length > 0) { - for (j = 0; j < highlightedSpans.length; j++) { - allSpans = allSpans.concat(highlightedSpans[j]); - } - } - } - } - return allSpans; -} - -function isVisibleElement(elementID) -{ - if (elementID) - return elementID.offsetWidth > 0 || elementID.offsetHeight > 0; - else - return false; -} - -function areAllSpansVisible(spans) -{ - isVisible = true; - for (i = 0; i < highlightedSpans.length; i++) { - isVisible = isVisible && isVisibleElement(highlightedSpans[i]); - } - return isVisible; -} - -function getNextVisible() -{ - var isVisible = false; - var foundVisible = false; - while (!isVisible) { - currentlyHighlightedHit = currentlyHighlightedHit + 1; - highlightedSpans = setCurrentSearchMatchIfVisible(currentlyHighlightedHit); - if (highlightedSpans && highlightedSpans.length > 0) { - isVisible = true; - } else if (currentlyHighlightedHit < totalHits) { - continue; - } else { - // we have reached the end - isVisible = false; - currentlyHighlightedHit = 0; - highlightedSpans = null; - break; - } - } - - return highlightedSpans; -} - -function clearCurrentSearchMatch() -{ - // clear prior highlighting - spanName = "highlight" + currentlyHighlightedHit; - highlightedSpans = getSpansByName(spanName); - if (highlightedSpans && highlightedSpans.length) { - for (i = 0; i < highlightedSpans.length; i++) { - if (highlightedSpans[i]) { - highlightedSpans[i].setAttribute("class", "highlighted"); - } - } - } -} - -function setCurrentSearchMatchIfVisible(hitNum){ - currentlyHighlightedHit = hitNum; - var spanName = "highlight" + currentlyHighlightedHit; - var highlightedSpans = getSpansByName(spanName); - if (highlightedSpans && highlightedSpans.length) { - for (i = 0; i < highlightedSpans.length; i++) { - if (!isVisibleElement(highlightedSpans[i])) { - highlightedSpans = null; - break; - } - } - } - return highlightedSpans; -} - -// this takes in an option integer 'hitNum'. If not specified, it scrolls -// to the next hit -function scrollToNextHit(hitNum) -{ - var i = 0; - var found = false; - var spanName = ""; - var highlightedSpans; - var searchBox = findElement('searchTxtBox'); - - clearCurrentSearchMatch(); - - if (hitNum) { - // if a number is provided, use it - highlightedSpans = setCurrentSearchMatchIfVisible(hitNum); - } else { - // start working on next element to highlight - highlightedSpans = getNextVisible(); - } - - // we found the current - if (highlightedSpans && highlightedSpans.length > 0) { - highlightedSpans[0].scrollIntoView(); - for (i = 0; i < highlightedSpans.length; i++) { - highlightedSpans[i].setAttribute("class", "highlightedCurrent"); - } - searchBox.setAttribute("class", "search"); - - // if highlightedSpans is invalid, then we did not find any valid, visible subsequent matches - // wrap to beginning or indicate no matches - } else { - // Element not found. Scroll to first visible element - currentlyHighlightedHit = 0; - var highlightedSpans = getNextVisible(currentlyHighlightedHit); - if (highlightedSpans && highlightedSpans.length > 0) { - highlightedSpans[0].scrollIntoView(); - for (i = 0; i < highlightedSpans.length; i++) { - highlightedSpans[i].setAttribute("class", "highlightedCurrent"); - } - searchBox.setAttribute("class", "search"); - } else { - // there aren't any matches - searchBox.setAttribute("class", "failedSearch"); - } - } -} - -// find search box -function findElement(element) -{ - var i = 0; - for (i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var elem = top.frames[i].document.getElementById(element); - if (elem) { - return elem; - } - } - } -} - -// Restore search term once form is submitted -function initSearchBox(strInitValue) -{ - var txtBox = findElement('searchTxtBox'); - if (txtBox) { - txtBox.value = strInitValue; - } -} - -// Sets focus back on to the text box -function setFocusOnTxtBox() -{ - var txtBox = findElement('searchTxtBox'); - if (txtBox) { - txtBox.focus(); - txtBox.select(); - } - return txtBox; -} - -var previousSearchString; -var totalHits; -function findInAllDocs(searchStringFromSubmitBox, caseSensitive) -{ - if (previousSearchString != searchStringFromSubmitBox) { - // If the search string has changed or a new page has been loaded, do a new search - var hitCount = 1; - var i = 0; - var success = false; - previousSearchString = searchStringFromSubmitBox; - - // start by removing traceinfo highlighting - rtwRemoveHighlighting(); - - // remove all previous search highlighting - removeHighlightInAllDocs(); - - // 1. Iterate through all frames in window and search - for (i = 0; i < top.frames.length; i++) { - var currentDoc = top.frames[i].document; - - // if we have no search term, restore - if (searchStringFromSubmitBox !== "") { - // search and highlight in all frames - var srchResult = findInDoc(searchStringFromSubmitBox, currentDoc, caseSensitive, hitCount); - hitCount = srchResult[1]; - totalHits = srchResult[1]; - } - } - - // 2. Restore search term once form is submitted and text highlighted - if (searchStringFromSubmitBox != "") { - strInitValue = searchStringFromSubmitBox; - } - initSearchBox(strInitValue); - - // 3. Scroll to the first hit encountered - scrollToNextHit(1); - - // 4. Set focus back to text box and select text - var txtBox = setFocusOnTxtBox(); - if (txtBox) { - txtBox.select(); - } - - } else { - // If the search string is the same, then scroll to the next - // hit if the hit is valid. Else wrap back. - scrollToNextHit(); - } - return false; -} - -// if the search box is empty, clear highlighting -function clearIfEmpty() -{ - txtBox = findElement('searchTxtBox'); - if (txtBox.value == "") { - txtBox.setAttribute("class", "search"); - removeHighlightInAllDocs(); - previousSearchString=""; - setFocusOnTxtBox(); - } -} - -function keyPressSwitchyard(keyPressEvent) -{ - var kc; - keyPressEvent = (keyPressEvent == null ? window.keyPressEvent : keyPressEvent); - - // typically IE does not support this - if (!keyPressEvent || (typeof keyPressEvent == "undefined")) { - return; - } - - if (keyPressEvent.keyCode) { - kc=keyPressEvent.keyCode; - } else if (keyPressEvent.which) { - kc=keyPressEvent.which; - } else { - return; - } - - // we do not care about the browser find appearing. If it does appear, then - // we are running an external browser and that is okay. - - // handle Ctrl-Key combinations - if (keyPressEvent.ctrlKey) { - switch (kc) { - case 70: // Ctrl-F - { - setFocusOnTxtBox(); - break; - } - - default: break; - } - } -} - -function installDocumentKeyPressHandler() -{ - var i = 0; - for (i = 0; i < top.frames.length; i++) { - var currentDoc = top.frames[i].document; - currentDoc.onkeydown = keyPressSwitchyard; - } - top.document.onkeydown = keyPressSwitchyard; - - // This also clears search related highlighting - removeHighlightInAllDocs(); - currentlyHighlightedHit = 0; - if (previousSearchString) initSearchBox(previousSearchString); - previousSearchString = ""; -} - -// This function is a onresize callback for the rtwreport_contents_frame -// It is used to dynamically resize the searchbox based on the size of the frame. -function setWidthDynamic(frameID, elementID, extraSpace, minSize) -{ - var frame = document.getElementById(frameID); - - // sanity check input args - if (frame && extraSpace > 0 && minSize > 0) { - var frameWidth = frame.scrollWidth; - var newSize = extraSpace + minSize + 40; // 40 is the extra whitespace - var element = findElement(elementID); - if (element) - { - if (frameWidth < newSize) { - element.style.width = minSize; - } else { - element.style.width = frameWidth - extraSpace - 40; - } - } - } -} diff --git a/src/validation/slprj/ert/AHRSControl/html/spinner.gif b/src/validation/slprj/ert/AHRSControl/html/spinner.gif deleted file mode 100644 index e4ab78302c5d6ff92def7688c291999a4fcbd70d..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/html/spinner.gif and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/html/traceInfo.mat b/src/validation/slprj/ert/AHRSControl/html/traceInfo.mat deleted file mode 100644 index 83637a4972458b42213f4e774575d51d393ae446..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/html/traceInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/html/traceInfo_flag.js b/src/validation/slprj/ert/AHRSControl/html/traceInfo_flag.js deleted file mode 100644 index 45ba57eb94006d80cda3f223f2cc33ddec56bdb3..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/html/traceInfo_flag.js +++ /dev/null @@ -1,269 +0,0 @@ -function TraceInfoFlag() { - this.traceFlag = new Array(); - this.traceFlag["AHRSControl.c:95c37"]=1; - this.traceFlag["AHRSControl.c:95c51"]=1; - this.traceFlag["AHRSControl.c:95c54"]=1; - this.traceFlag["AHRSControl.c:95c75"]=1; - this.traceFlag["AHRSControl.c:105c37"]=1; - this.traceFlag["AHRSControl.c:120c23"]=1; - this.traceFlag["AHRSControl.c:121c12"]=1; - this.traceFlag["AHRSControl.c:121c47"]=1; - this.traceFlag["AHRSControl.c:128c26"]=1; - this.traceFlag["AHRSControl.c:155c23"]=1; - this.traceFlag["AHRSControl.c:156c12"]=1; - this.traceFlag["AHRSControl.c:156c49"]=1; - this.traceFlag["AHRSControl.c:163c24"]=1; - this.traceFlag["AHRSControl.c:190c23"]=1; - this.traceFlag["AHRSControl.c:191c12"]=1; - this.traceFlag["AHRSControl.c:191c49"]=1; - this.traceFlag["AHRSControl.c:198c22"]=1; - this.traceFlag["AHRSControl.c:258c29"]=1; - this.traceFlag["AHRSControl.c:261c33"]=1; - this.traceFlag["AHRSControl.c:264c40"]=1; - this.traceFlag["AHRSControl.c:264c42"]=1; - this.traceFlag["AHRSControl.c:266c32"]=1; - this.traceFlag["AHRSControl.c:273c53"]=1; - this.traceFlag["AHRSControl.c:276c33"]=1; - this.traceFlag["AHRSControl.c:279c40"]=1; - this.traceFlag["AHRSControl.c:279c42"]=1; - this.traceFlag["AHRSControl.c:281c32"]=1; - this.traceFlag["AHRSControl.c:288c53"]=1; - this.traceFlag["AHRSControl.c:291c33"]=1; - this.traceFlag["AHRSControl.c:294c40"]=1; - this.traceFlag["AHRSControl.c:294c42"]=1; - this.traceFlag["AHRSControl.c:296c32"]=1; - this.traceFlag["AHRSControl.c:323c33"]=1; - this.traceFlag["AHRSControl.c:330c26"]=1; - this.traceFlag["AHRSControl.c:330c55"]=1; - this.traceFlag["AHRSControl.c:330c63"]=1; - this.traceFlag["AHRSControl.c:335c36"]=1; - this.traceFlag["AHRSControl.c:335c44"]=1; - this.traceFlag["AHRSControl.c:336c40"]=1; - this.traceFlag["AHRSControl.c:339c42"]=1; - this.traceFlag["AHRSControl.c:339c45"]=1; - this.traceFlag["AHRSControl.c:340c42"]=1; - this.traceFlag["AHRSControl.c:367c31"]=1; - this.traceFlag["AHRSControl.c:374c24"]=1; - this.traceFlag["AHRSControl.c:374c54"]=1; - this.traceFlag["AHRSControl.c:374c57"]=1; - this.traceFlag["AHRSControl.c:374c64"]=1; - this.traceFlag["AHRSControl.c:379c37"]=1; - this.traceFlag["AHRSControl.c:379c40"]=1; - this.traceFlag["AHRSControl.c:379c46"]=1; - this.traceFlag["AHRSControl.c:380c41"]=1; - this.traceFlag["AHRSControl.c:383c43"]=1; - this.traceFlag["AHRSControl.c:383c46"]=1; - this.traceFlag["AHRSControl.c:384c43"]=1; - this.traceFlag["AHRSControl.c:411c29"]=1; - this.traceFlag["AHRSControl.c:418c22"]=1; - this.traceFlag["AHRSControl.c:418c52"]=1; - this.traceFlag["AHRSControl.c:418c60"]=1; - this.traceFlag["AHRSControl.c:423c37"]=1; - this.traceFlag["AHRSControl.c:423c40"]=1; - this.traceFlag["AHRSControl.c:423c46"]=1; - this.traceFlag["AHRSControl.c:424c41"]=1; - this.traceFlag["AHRSControl.c:427c43"]=1; - this.traceFlag["AHRSControl.c:427c46"]=1; - this.traceFlag["AHRSControl.c:428c43"]=1; - this.traceFlag["AHRSControl.c:471c45"]=1; - this.traceFlag["AHRSControl.c:479c24"]=1; - this.traceFlag["AHRSControl.c:482c31"]=1; - this.traceFlag["AHRSControl.c:482c33"]=1; - this.traceFlag["AHRSControl.c:484c20"]=1; - this.traceFlag["AHRSControl.c:496c45"]=1; - this.traceFlag["AHRSControl.c:504c24"]=1; - this.traceFlag["AHRSControl.c:507c31"]=1; - this.traceFlag["AHRSControl.c:507c33"]=1; - this.traceFlag["AHRSControl.c:509c18"]=1; - this.traceFlag["AHRSControl.c:521c45"]=1; - this.traceFlag["AHRSControl.c:529c24"]=1; - this.traceFlag["AHRSControl.c:532c31"]=1; - this.traceFlag["AHRSControl.c:532c33"]=1; - this.traceFlag["AHRSControl.c:534c22"]=1; - this.traceFlag["AHRSControl.c:598c23"]=1; - this.traceFlag["AHRSControl.c:639c43"]=1; - this.traceFlag["AHRSControl.c:639c64"]=1; - this.traceFlag["AHRSControl.c:640c44"]=1; - this.traceFlag["AHRSControl.c:675c23"]=1; - this.traceFlag["AHRSControl.c:715c48"]=1; - this.traceFlag["AHRSControl.c:715c69"]=1; - this.traceFlag["AHRSControl.c:788c53"]=1; - this.traceFlag["AHRSControl.c:789c18"]=1; - this.traceFlag["AHRSControl.c:792c25"]=1; - this.traceFlag["AHRSControl.c:799c25"]=1; - this.traceFlag["AHRSControl.c:806c25"]=1; -} -top.TraceInfoFlag.instance = new TraceInfoFlag(); -function TraceInfoLineFlag() { - this.lineTraceFlag = new Array(); - this.lineTraceFlag["AHRSControl.c:95"]=1; - this.lineTraceFlag["AHRSControl.c:105"]=1; - this.lineTraceFlag["AHRSControl.c:119"]=1; - this.lineTraceFlag["AHRSControl.c:120"]=1; - this.lineTraceFlag["AHRSControl.c:121"]=1; - this.lineTraceFlag["AHRSControl.c:128"]=1; - this.lineTraceFlag["AHRSControl.c:133"]=1; - this.lineTraceFlag["AHRSControl.c:134"]=1; - this.lineTraceFlag["AHRSControl.c:140"]=1; - this.lineTraceFlag["AHRSControl.c:154"]=1; - this.lineTraceFlag["AHRSControl.c:155"]=1; - this.lineTraceFlag["AHRSControl.c:156"]=1; - this.lineTraceFlag["AHRSControl.c:163"]=1; - this.lineTraceFlag["AHRSControl.c:168"]=1; - this.lineTraceFlag["AHRSControl.c:169"]=1; - this.lineTraceFlag["AHRSControl.c:175"]=1; - this.lineTraceFlag["AHRSControl.c:189"]=1; - this.lineTraceFlag["AHRSControl.c:190"]=1; - this.lineTraceFlag["AHRSControl.c:191"]=1; - this.lineTraceFlag["AHRSControl.c:198"]=1; - this.lineTraceFlag["AHRSControl.c:203"]=1; - this.lineTraceFlag["AHRSControl.c:204"]=1; - this.lineTraceFlag["AHRSControl.c:210"]=1; - this.lineTraceFlag["AHRSControl.c:236"]=1; - this.lineTraceFlag["AHRSControl.c:237"]=1; - this.lineTraceFlag["AHRSControl.c:245"]=1; - this.lineTraceFlag["AHRSControl.c:246"]=1; - this.lineTraceFlag["AHRSControl.c:254"]=1; - this.lineTraceFlag["AHRSControl.c:255"]=1; - this.lineTraceFlag["AHRSControl.c:258"]=1; - this.lineTraceFlag["AHRSControl.c:261"]=1; - this.lineTraceFlag["AHRSControl.c:263"]=1; - this.lineTraceFlag["AHRSControl.c:264"]=1; - this.lineTraceFlag["AHRSControl.c:266"]=1; - this.lineTraceFlag["AHRSControl.c:269"]=1; - this.lineTraceFlag["AHRSControl.c:273"]=1; - this.lineTraceFlag["AHRSControl.c:276"]=1; - this.lineTraceFlag["AHRSControl.c:278"]=1; - this.lineTraceFlag["AHRSControl.c:279"]=1; - this.lineTraceFlag["AHRSControl.c:281"]=1; - this.lineTraceFlag["AHRSControl.c:284"]=1; - this.lineTraceFlag["AHRSControl.c:288"]=1; - this.lineTraceFlag["AHRSControl.c:291"]=1; - this.lineTraceFlag["AHRSControl.c:293"]=1; - this.lineTraceFlag["AHRSControl.c:294"]=1; - this.lineTraceFlag["AHRSControl.c:296"]=1; - this.lineTraceFlag["AHRSControl.c:299"]=1; - this.lineTraceFlag["AHRSControl.c:307"]=1; - this.lineTraceFlag["AHRSControl.c:317"]=1; - this.lineTraceFlag["AHRSControl.c:323"]=1; - this.lineTraceFlag["AHRSControl.c:330"]=1; - this.lineTraceFlag["AHRSControl.c:335"]=1; - this.lineTraceFlag["AHRSControl.c:336"]=1; - this.lineTraceFlag["AHRSControl.c:337"]=1; - this.lineTraceFlag["AHRSControl.c:339"]=1; - this.lineTraceFlag["AHRSControl.c:340"]=1; - this.lineTraceFlag["AHRSControl.c:351"]=1; - this.lineTraceFlag["AHRSControl.c:361"]=1; - this.lineTraceFlag["AHRSControl.c:367"]=1; - this.lineTraceFlag["AHRSControl.c:374"]=1; - this.lineTraceFlag["AHRSControl.c:379"]=1; - this.lineTraceFlag["AHRSControl.c:380"]=1; - this.lineTraceFlag["AHRSControl.c:381"]=1; - this.lineTraceFlag["AHRSControl.c:383"]=1; - this.lineTraceFlag["AHRSControl.c:384"]=1; - this.lineTraceFlag["AHRSControl.c:395"]=1; - this.lineTraceFlag["AHRSControl.c:405"]=1; - this.lineTraceFlag["AHRSControl.c:411"]=1; - this.lineTraceFlag["AHRSControl.c:418"]=1; - this.lineTraceFlag["AHRSControl.c:423"]=1; - this.lineTraceFlag["AHRSControl.c:424"]=1; - this.lineTraceFlag["AHRSControl.c:425"]=1; - this.lineTraceFlag["AHRSControl.c:427"]=1; - this.lineTraceFlag["AHRSControl.c:428"]=1; - this.lineTraceFlag["AHRSControl.c:441"]=1; - this.lineTraceFlag["AHRSControl.c:448"]=1; - this.lineTraceFlag["AHRSControl.c:455"]=1; - this.lineTraceFlag["AHRSControl.c:471"]=1; - this.lineTraceFlag["AHRSControl.c:476"]=1; - this.lineTraceFlag["AHRSControl.c:479"]=1; - this.lineTraceFlag["AHRSControl.c:481"]=1; - this.lineTraceFlag["AHRSControl.c:482"]=1; - this.lineTraceFlag["AHRSControl.c:484"]=1; - this.lineTraceFlag["AHRSControl.c:487"]=1; - this.lineTraceFlag["AHRSControl.c:496"]=1; - this.lineTraceFlag["AHRSControl.c:501"]=1; - this.lineTraceFlag["AHRSControl.c:504"]=1; - this.lineTraceFlag["AHRSControl.c:506"]=1; - this.lineTraceFlag["AHRSControl.c:507"]=1; - this.lineTraceFlag["AHRSControl.c:509"]=1; - this.lineTraceFlag["AHRSControl.c:512"]=1; - this.lineTraceFlag["AHRSControl.c:521"]=1; - this.lineTraceFlag["AHRSControl.c:526"]=1; - this.lineTraceFlag["AHRSControl.c:529"]=1; - this.lineTraceFlag["AHRSControl.c:531"]=1; - this.lineTraceFlag["AHRSControl.c:532"]=1; - this.lineTraceFlag["AHRSControl.c:534"]=1; - this.lineTraceFlag["AHRSControl.c:537"]=1; - this.lineTraceFlag["AHRSControl.c:549"]=1; - this.lineTraceFlag["AHRSControl.c:577"]=1; - this.lineTraceFlag["AHRSControl.c:578"]=1; - this.lineTraceFlag["AHRSControl.c:579"]=1; - this.lineTraceFlag["AHRSControl.c:580"]=1; - this.lineTraceFlag["AHRSControl.c:585"]=1; - this.lineTraceFlag["AHRSControl.c:586"]=1; - this.lineTraceFlag["AHRSControl.c:587"]=1; - this.lineTraceFlag["AHRSControl.c:598"]=1; - this.lineTraceFlag["AHRSControl.c:603"]=1; - this.lineTraceFlag["AHRSControl.c:604"]=1; - this.lineTraceFlag["AHRSControl.c:606"]=1; - this.lineTraceFlag["AHRSControl.c:615"]=1; - this.lineTraceFlag["AHRSControl.c:616"]=1; - this.lineTraceFlag["AHRSControl.c:618"]=1; - this.lineTraceFlag["AHRSControl.c:627"]=1; - this.lineTraceFlag["AHRSControl.c:628"]=1; - this.lineTraceFlag["AHRSControl.c:630"]=1; - this.lineTraceFlag["AHRSControl.c:639"]=1; - this.lineTraceFlag["AHRSControl.c:640"]=1; - this.lineTraceFlag["AHRSControl.c:660"]=1; - this.lineTraceFlag["AHRSControl.c:661"]=1; - this.lineTraceFlag["AHRSControl.c:675"]=1; - this.lineTraceFlag["AHRSControl.c:680"]=1; - this.lineTraceFlag["AHRSControl.c:681"]=1; - this.lineTraceFlag["AHRSControl.c:683"]=1; - this.lineTraceFlag["AHRSControl.c:692"]=1; - this.lineTraceFlag["AHRSControl.c:693"]=1; - this.lineTraceFlag["AHRSControl.c:695"]=1; - this.lineTraceFlag["AHRSControl.c:704"]=1; - this.lineTraceFlag["AHRSControl.c:705"]=1; - this.lineTraceFlag["AHRSControl.c:707"]=1; - this.lineTraceFlag["AHRSControl.c:715"]=1; - this.lineTraceFlag["AHRSControl.c:716"]=1; - this.lineTraceFlag["AHRSControl.c:763"]=1; - this.lineTraceFlag["AHRSControl.c:764"]=1; - this.lineTraceFlag["AHRSControl.c:765"]=1; - this.lineTraceFlag["AHRSControl.c:772"]=1; - this.lineTraceFlag["AHRSControl.c:773"]=1; - this.lineTraceFlag["AHRSControl.c:775"]=1; - this.lineTraceFlag["AHRSControl.c:778"]=1; - this.lineTraceFlag["AHRSControl.c:779"]=1; - this.lineTraceFlag["AHRSControl.c:788"]=1; - this.lineTraceFlag["AHRSControl.c:789"]=1; - this.lineTraceFlag["AHRSControl.c:790"]=1; - this.lineTraceFlag["AHRSControl.c:792"]=1; - this.lineTraceFlag["AHRSControl.c:793"]=1; - this.lineTraceFlag["AHRSControl.c:797"]=1; - this.lineTraceFlag["AHRSControl.c:799"]=1; - this.lineTraceFlag["AHRSControl.c:800"]=1; - this.lineTraceFlag["AHRSControl.c:804"]=1; - this.lineTraceFlag["AHRSControl.c:806"]=1; - this.lineTraceFlag["AHRSControl.c:807"]=1; - this.lineTraceFlag["AHRSControl.c:828"]=1; - this.lineTraceFlag["AHRSControl.c:856"]=1; - this.lineTraceFlag["AHRSControl.c:857"]=1; - this.lineTraceFlag["AHRSControl.c:858"]=1; - this.lineTraceFlag["AHRSControl.c:866"]=1; - this.lineTraceFlag["AHRSControl.c:867"]=1; - this.lineTraceFlag["AHRSControl.h:89"]=1; - this.lineTraceFlag["AHRSControl.h:90"]=1; - this.lineTraceFlag["AHRSControl.h:91"]=1; - this.lineTraceFlag["AHRSControl.h:92"]=1; - this.lineTraceFlag["AHRSControl.h:93"]=1; - this.lineTraceFlag["AHRSControl.h:94"]=1; - this.lineTraceFlag["AHRSControl.h:95"]=1; - this.lineTraceFlag["AHRSControl.h:96"]=1; - this.lineTraceFlag["AHRSControl.h:97"]=1; - this.lineTraceFlag["AHRSControl.h:116"]=1; - this.lineTraceFlag["AHRSControl.h:121"]=1; - this.lineTraceFlag["AHRSControl.h:126"]=1; -} -top.TraceInfoLineFlag.instance = new TraceInfoLineFlag(); diff --git a/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl.bat b/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl.bat deleted file mode 100644 index 5d6815fd94b87f5ac268b41ce22484d5a6ac010b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl.bat +++ /dev/null @@ -1,15 +0,0 @@ -@if not "%MINGW_ROOT%" == "" (@set "PATH=%PATH%;%MINGW_ROOT%") - - -call "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a\bin\win64\checkMATLABRootForDriveMap.exe" "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a" > mlEnv.txt -for /f %%a in (mlEnv.txt) do set "%%a"\n -cd . - -if "%1"=="" ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f AHRSControl.mk all) else ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f AHRSControl.mk %1) -@if errorlevel 1 goto error_exit - -exit 0 - -:error_exit -echo The make command returned an error of %errorlevel% -exit 1 diff --git a/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl.mk b/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl.mk deleted file mode 100644 index 303e0c4a3a2019e08ac0265ab4dd009ec2de03c2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl.mk +++ /dev/null @@ -1,414 +0,0 @@ -########################################################################### -## Makefile generated for Simulink model 'AHRSControl'. -## -## Makefile : AHRSControl.mk -## Generated on : Thu Jul 16 18:50:58 2020 -## MATLAB Coder version: 5.0 (R2020a) -## -## Build Info: -## -## Final product: ./AHRSControl_rtwlib.lib -## Product type : static library -## Build type : Model Reference Library -## -########################################################################### - -########################################################################### -## MACROS -########################################################################### - -# Macro Descriptions: -# PRODUCT_NAME Name of the system to build -# MAKEFILE Name of this makefile -# COMPILER_COMMAND_FILE Compiler command listing model reference header paths -# CMD_FILE Command file -# MODELLIB Static library target - -PRODUCT_NAME = AHRSControl -MAKEFILE = AHRSControl.mk -MATLAB_ROOT = D:/Program Files/MATLAB/R2020a -MATLAB_BIN = D:/Program Files/MATLAB/R2020a/bin -MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64 -MASTER_ANCHOR_DIR = -START_DIR = D:/Documents/SCHOOL/McSCert/do178/src/validation -SOLVER = -SOLVER_OBJ = -CLASSIC_INTERFACE = 0 -TGT_FCN_LIB = ISO_C -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0 -RELATIVE_PATH_TO_ANCHOR = ../../../.. -COMPILER_COMMAND_FILE = AHRSControl_comp.rsp -CMD_FILE = AHRSControl.rsp -C_STANDARD_OPTS = -fwrapv -CPP_STANDARD_OPTS = -fwrapv -MODELLIB = AHRSControl_rtwlib.lib - -########################################################################### -## TOOLCHAIN SPECIFICATIONS -########################################################################### - -# Toolchain Name: MinGW64 | gmake (64-bit Windows) -# Supported Version(s): 6.x -# ToolchainInfo Version: 2020a -# Specification Revision: 1.0 -# -#------------------------------------------- -# Macros assumed to be defined elsewhere -#------------------------------------------- - -# C_STANDARD_OPTS -# CPP_STANDARD_OPTS -# MINGW_ROOT -# MINGW_C_STANDARD_OPTS - -#----------- -# MACROS -#----------- - -WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -WARN_FLAGS_MAX = $(WARN_FLAGS) -Wcast-qual -Wshadow -CPP_WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wpointer-arith -Wcast-align -CPP_WARN_FLAGS_MAX = $(CPP_WARN_FLAGS) -Wcast-qual -Wshadow -MW_EXTERNLIB_DIR = $(MATLAB_ROOT)/extern/lib/win64/mingw64 -SHELL = %SystemRoot%/system32/cmd.exe - -TOOLCHAIN_SRCS = -TOOLCHAIN_INCS = -TOOLCHAIN_LIBS = -lws2_32 - -#------------------------ -# BUILD TOOL COMMANDS -#------------------------ - -# C Compiler: GNU C Compiler -CC_PATH = $(MINGW_ROOT) -CC = "$(CC_PATH)/gcc" - -# Linker: GNU Linker -LD_PATH = $(MINGW_ROOT) -LD = "$(LD_PATH)/g++" - -# C++ Compiler: GNU C++ Compiler -CPP_PATH = $(MINGW_ROOT) -CPP = "$(CPP_PATH)/g++" - -# C++ Linker: GNU C++ Linker -CPP_LD_PATH = $(MINGW_ROOT) -CPP_LD = "$(CPP_LD_PATH)/g++" - -# Archiver: GNU Archiver -AR_PATH = $(MINGW_ROOT) -AR = "$(AR_PATH)/ar" - -# MEX Tool: MEX Tool -MEX_PATH = $(MATLAB_ARCH_BIN) -MEX = "$(MEX_PATH)/mex" - -# Download: Download -DOWNLOAD = - -# Execute: Execute -EXECUTE = $(PRODUCT) - -# Builder: GMAKE Utility -MAKE_PATH = %MATLAB%/bin/win64 -MAKE = "$(MAKE_PATH)/gmake" - - -#------------------------- -# Directives/Utilities -#------------------------- - -CDEBUG = -g -C_OUTPUT_FLAG = -o -LDDEBUG = -g -OUTPUT_FLAG = -o -CPPDEBUG = -g -CPP_OUTPUT_FLAG = -o -CPPLDDEBUG = -g -OUTPUT_FLAG = -o -ARDEBUG = -STATICLIB_OUTPUT_FLAG = -MEX_DEBUG = -g -RM = @del -ECHO = @echo -MV = @move -RUN = - -#---------------------------------------- -# "Faster Builds" Build Configuration -#---------------------------------------- - -ARFLAGS = ruvs -CFLAGS = -c $(MINGW_C_STANDARD_OPTS) -m64 \ - -O0 -CPPFLAGS = -c $(CPP_STANDARD_OPTS) -m64 -std=c++11 \ - -O0 -CPP_LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -CPP_SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib -DOWNLOAD_FLAGS = -EXECUTE_FLAGS = -LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -MEX_CPPFLAGS = -MEX_CPPLDFLAGS = -MEX_CFLAGS = -MEX_LDFLAGS = -MAKE_FLAGS = -f $(MAKEFILE) -SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib - - - -########################################################################### -## OUTPUT INFO -########################################################################### - -PRODUCT = ./AHRSControl_rtwlib.lib -PRODUCT_TYPE = "static library" -BUILD_TYPE = "Model Reference Library" - -########################################################################### -## INCLUDE PATHS -########################################################################### - -INCLUDES_BUILDINFO = - -INCLUDES = $(INCLUDES_BUILDINFO) - -########################################################################### -## DEFINES -########################################################################### - -DEFINES_BUILD_ARGS = -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DEFINES_CUSTOM = -DEFINES_OPTS = -DTID01EQ=0 -DPORTABLE_WORDSIZES -DEFINES_STANDARD = -DMODEL=AHRSControl -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 - -DEFINES = $(DEFINES_BUILD_ARGS) $(DEFINES_CUSTOM) $(DEFINES_OPTS) $(DEFINES_STANDARD) - -########################################################################### -## SOURCE FILES -########################################################################### - -SRCS = $(START_DIR)/slprj/ert/AHRSControl/AHRSControl.c $(START_DIR)/slprj/ert/AHRSControl/AHRSControl_data.c - -ALL_SRCS = $(SRCS) - -########################################################################### -## OBJECTS -########################################################################### - -OBJS = AHRSControl.obj AHRSControl_data.obj - -ALL_OBJS = $(OBJS) - -########################################################################### -## PREBUILT OBJECT FILES -########################################################################### - -PREBUILT_OBJS = - -########################################################################### -## LIBRARIES -########################################################################### - -LIBS = - -########################################################################### -## SYSTEM LIBRARIES -########################################################################### - -SYSTEM_LIBS = - -########################################################################### -## ADDITIONAL TOOLCHAIN FLAGS -########################################################################### - -#--------------- -# C Compiler -#--------------- - -CFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CFLAGS += $(CFLAGS_BASIC) - -#----------------- -# C++ Compiler -#----------------- - -CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CPPFLAGS += $(CPPFLAGS_BASIC) - -#--------------------- -# MEX C++ Compiler -#--------------------- - -MEX_CPP_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CPPFLAGS += $(MEX_CPP_Compiler_BASIC) - -#----------------- -# MEX Compiler -#----------------- - -MEX_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CFLAGS += $(MEX_Compiler_BASIC) - -########################################################################### -## INLINED COMMANDS -########################################################################### - - -MINGW_C_STANDARD_OPTS = $(C_STANDARD_OPTS) - - -########################################################################### -## PHONY TARGETS -########################################################################### - -.PHONY : all build clean info prebuild download execute - - -all : build - @echo "### Successfully generated all binary outputs." - - -build : prebuild $(PRODUCT) - - -prebuild : - - -download : $(PRODUCT) - - -execute : download - - -########################################################################### -## FINAL TARGET -########################################################################### - -#--------------------------------- -# Create a static library -#--------------------------------- - -$(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) - @echo "### Creating static library "$(PRODUCT)" ..." - $(AR) $(ARFLAGS) $(PRODUCT) @$(CMD_FILE) - @echo "### Created: $(PRODUCT)" - - -########################################################################### -## INTERMEDIATE TARGETS -########################################################################### - -#--------------------- -# SOURCE-TO-OBJECT -#--------------------- - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/slprj/ert/AHRSControl/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/slprj/ert/AHRSControl/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : ../%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : ../%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -AHRSControl.obj : $(START_DIR)/slprj/ert/AHRSControl/AHRSControl.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -AHRSControl_data.obj : $(START_DIR)/slprj/ert/AHRSControl/AHRSControl_data.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -########################################################################### -## DEPENDENCIES -########################################################################### - -$(ALL_OBJS) : rtw_proj.tmw $(COMPILER_COMMAND_FILE) $(MAKEFILE) - - -########################################################################### -## MISCELLANEOUS TARGETS -########################################################################### - -info : - @echo "### PRODUCT = $(PRODUCT)" - @echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)" - @echo "### BUILD_TYPE = $(BUILD_TYPE)" - @echo "### INCLUDES = $(INCLUDES)" - @echo "### DEFINES = $(DEFINES)" - @echo "### ALL_SRCS = $(ALL_SRCS)" - @echo "### ALL_OBJS = $(ALL_OBJS)" - @echo "### LIBS = $(LIBS)" - @echo "### MODELREF_LIBS = $(MODELREF_LIBS)" - @echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)" - @echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)" - @echo "### CFLAGS = $(CFLAGS)" - @echo "### LDFLAGS = $(LDFLAGS)" - @echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)" - @echo "### CPPFLAGS = $(CPPFLAGS)" - @echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)" - @echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)" - @echo "### ARFLAGS = $(ARFLAGS)" - @echo "### MEX_CFLAGS = $(MEX_CFLAGS)" - @echo "### MEX_CPPFLAGS = $(MEX_CPPFLAGS)" - @echo "### MEX_LDFLAGS = $(MEX_LDFLAGS)" - @echo "### MEX_CPPLDFLAGS = $(MEX_CPPLDFLAGS)" - @echo "### DOWNLOAD_FLAGS = $(DOWNLOAD_FLAGS)" - @echo "### EXECUTE_FLAGS = $(EXECUTE_FLAGS)" - @echo "### MAKE_FLAGS = $(MAKE_FLAGS)" - - -clean : - $(ECHO) "### Deleting all derived files..." - $(RM) $(subst /,\,$(PRODUCT)) - $(RM) $(subst /,\,$(ALL_OBJS)) - $(ECHO) "### Deleted all derived files." - - diff --git a/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl.rsp b/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl.rsp deleted file mode 100644 index a269e927692f9d9fdc882f923f950534553ab255..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl.rsp +++ /dev/null @@ -1,2 +0,0 @@ -AHRSControl.obj -AHRSControl_data.obj diff --git a/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl_comp.rsp b/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl_comp.rsp deleted file mode 100644 index 56bc620a2ebb8f0142f11126ea393040f0dd5dc8..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl_comp.rsp +++ /dev/null @@ -1,8 +0,0 @@ --ID:/Documents/SCHOOL/McSCert/do178/src/validation --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl --ID:/Program\ Files/MATLAB/R2020a/extern/include --ID:/Program\ Files/MATLAB/R2020a/simulink/include --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src/ext_mode/common --ID:/Program\ Files/MATLAB/R2020a/rtw/c/ert --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/_sharedutils diff --git a/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl_ref.rsp b/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl_ref.rsp deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/src/validation/slprj/ert/AHRSControl/instrumented/buildInfo.mat b/src/validation/slprj/ert/AHRSControl/instrumented/buildInfo.mat deleted file mode 100644 index 7533146287d9bf411d003e1fec075f4066945f26..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/instrumented/buildInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/instrumented/compileInfo.mat b/src/validation/slprj/ert/AHRSControl/instrumented/compileInfo.mat deleted file mode 100644 index 9c4691577e1dbc96cb4d30f0720e83cbc44b21c8..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/instrumented/compileInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/instrumented/defines.txt b/src/validation/slprj/ert/AHRSControl/instrumented/defines.txt deleted file mode 100644 index 32c8635417ec98996436cf5436fcb05244a5a7e5..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/instrumented/defines.txt +++ /dev/null @@ -1,15 +0,0 @@ -MODEL=AHRSControl -NUMST=1 -NCSTATES=0 -HAVESTDIO -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -CLASSIC_INTERFACE=0 -ALLOCATIONFCN=0 -TID01EQ=0 -PORTABLE_WORDSIZES -TERMFCN=0 -ONESTEPFCN=1 -MAT_FILE=0 -MULTI_INSTANCE_CODE=0 -INTEGER_CODE=0 -MT=1 diff --git a/src/validation/slprj/ert/AHRSControl/instrumented/instrumentationInfo.mat b/src/validation/slprj/ert/AHRSControl/instrumented/instrumentationInfo.mat deleted file mode 100644 index c40ede2dc96f63e6fc860889e05bab36d2c6c433..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/instrumented/instrumentationInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/instrumented/profiling_info.mat b/src/validation/slprj/ert/AHRSControl/instrumented/profiling_info.mat deleted file mode 100644 index 7c35343d5d05c55258f2efa28fbf5297c1d3edaa..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/instrumented/profiling_info.mat and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/instrumented/rtw_proj.tmw b/src/validation/slprj/ert/AHRSControl/instrumented/rtw_proj.tmw deleted file mode 100644 index 91857528664acdd5877a60b5685fb300beaf6352..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/instrumented/rtw_proj.tmw +++ /dev/null @@ -1,4 +0,0 @@ -Simulink Coder project for AHRSControl using . MATLAB root = D:\Program Files\MATLAB\R2020a. SimStruct date: 18-Nov-2019 20:54:47 -This file is generated by Simulink Coder for use by the make utility -to determine when to rebuild objects when the name of the current Simulink Coder project changes. -The rtwinfomat located at: ..\..\..\..\slprj\ert\AHRSControl\tmwinternal\binfo_mdlref.mat diff --git a/src/validation/slprj/ert/AHRSControl/modelsources.txt b/src/validation/slprj/ert/AHRSControl/modelsources.txt deleted file mode 100644 index eeba083cc215f3d6e00abaf810f906cc65b0db02..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/modelsources.txt +++ /dev/null @@ -1,2 +0,0 @@ - AHRSControl.c - diff --git a/src/validation/slprj/ert/AHRSControl/rtw_proj.tmw b/src/validation/slprj/ert/AHRSControl/rtw_proj.tmw deleted file mode 100644 index bcc010201fee0c8f64162daf11128ddd9d7604cb..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/rtw_proj.tmw +++ /dev/null @@ -1,4 +0,0 @@ -Simulink Coder project for AHRSControl using . MATLAB root = D:\Program Files\MATLAB\R2020a. SimStruct date: 18-Nov-2019 20:54:47 -This file is generated by Simulink Coder for use by the make utility -to determine when to rebuild objects when the name of the current Simulink Coder project changes. -The rtwinfomat located at: ..\..\..\slprj\ert\AHRSControl\tmwinternal\binfo_mdlref.mat diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl.bat b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl.bat deleted file mode 100644 index 5d6815fd94b87f5ac268b41ce22484d5a6ac010b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl.bat +++ /dev/null @@ -1,15 +0,0 @@ -@if not "%MINGW_ROOT%" == "" (@set "PATH=%PATH%;%MINGW_ROOT%") - - -call "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a\bin\win64\checkMATLABRootForDriveMap.exe" "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a" > mlEnv.txt -for /f %%a in (mlEnv.txt) do set "%%a"\n -cd . - -if "%1"=="" ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f AHRSControl.mk all) else ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f AHRSControl.mk %1) -@if errorlevel 1 goto error_exit - -exit 0 - -:error_exit -echo The make command returned an error of %errorlevel% -exit 1 diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl.mk b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl.mk deleted file mode 100644 index 42899a41cf4f6ff4c3195777a6ba3daddffa631a..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl.mk +++ /dev/null @@ -1,414 +0,0 @@ -########################################################################### -## Makefile generated for Simulink model 'AHRSControl'. -## -## Makefile : AHRSControl.mk -## Generated on : Thu Jul 16 18:55:17 2020 -## MATLAB Coder version: 5.0 (R2020a) -## -## Build Info: -## -## Final product: ./AHRSControl_rtwlib.lib -## Product type : static library -## Build type : Model Reference Library -## -########################################################################### - -########################################################################### -## MACROS -########################################################################### - -# Macro Descriptions: -# PRODUCT_NAME Name of the system to build -# MAKEFILE Name of this makefile -# COMPILER_COMMAND_FILE Compiler command listing model reference header paths -# CMD_FILE Command file -# MODELLIB Static library target - -PRODUCT_NAME = AHRSControl -MAKEFILE = AHRSControl.mk -MATLAB_ROOT = D:/Program Files/MATLAB/R2020a -MATLAB_BIN = D:/Program Files/MATLAB/R2020a/bin -MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64 -MASTER_ANCHOR_DIR = -START_DIR = D:/Documents/SCHOOL/McSCert/do178/src/validation -SOLVER = -SOLVER_OBJ = -CLASSIC_INTERFACE = 0 -TGT_FCN_LIB = ISO_C -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0 -RELATIVE_PATH_TO_ANCHOR = ../../../../../.. -COMPILER_COMMAND_FILE = AHRSControl_comp.rsp -CMD_FILE = AHRSControl.rsp -C_STANDARD_OPTS = -fwrapv -CPP_STANDARD_OPTS = -fwrapv -MODELLIB = AHRSControl_rtwlib.lib - -########################################################################### -## TOOLCHAIN SPECIFICATIONS -########################################################################### - -# Toolchain Name: MinGW64 | gmake (64-bit Windows) -# Supported Version(s): 6.x -# ToolchainInfo Version: 2020a -# Specification Revision: 1.0 -# -#------------------------------------------- -# Macros assumed to be defined elsewhere -#------------------------------------------- - -# C_STANDARD_OPTS -# CPP_STANDARD_OPTS -# MINGW_ROOT -# MINGW_C_STANDARD_OPTS - -#----------- -# MACROS -#----------- - -WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -WARN_FLAGS_MAX = $(WARN_FLAGS) -Wcast-qual -Wshadow -CPP_WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wpointer-arith -Wcast-align -CPP_WARN_FLAGS_MAX = $(CPP_WARN_FLAGS) -Wcast-qual -Wshadow -MW_EXTERNLIB_DIR = $(MATLAB_ROOT)/extern/lib/win64/mingw64 -SHELL = %SystemRoot%/system32/cmd.exe - -TOOLCHAIN_SRCS = -TOOLCHAIN_INCS = -TOOLCHAIN_LIBS = -lws2_32 - -#------------------------ -# BUILD TOOL COMMANDS -#------------------------ - -# C Compiler: GNU C Compiler -CC_PATH = $(MINGW_ROOT) -CC = "$(CC_PATH)/gcc" - -# Linker: GNU Linker -LD_PATH = $(MINGW_ROOT) -LD = "$(LD_PATH)/g++" - -# C++ Compiler: GNU C++ Compiler -CPP_PATH = $(MINGW_ROOT) -CPP = "$(CPP_PATH)/g++" - -# C++ Linker: GNU C++ Linker -CPP_LD_PATH = $(MINGW_ROOT) -CPP_LD = "$(CPP_LD_PATH)/g++" - -# Archiver: GNU Archiver -AR_PATH = $(MINGW_ROOT) -AR = "$(AR_PATH)/ar" - -# MEX Tool: MEX Tool -MEX_PATH = $(MATLAB_ARCH_BIN) -MEX = "$(MEX_PATH)/mex" - -# Download: Download -DOWNLOAD = - -# Execute: Execute -EXECUTE = $(PRODUCT) - -# Builder: GMAKE Utility -MAKE_PATH = %MATLAB%/bin/win64 -MAKE = "$(MAKE_PATH)/gmake" - - -#------------------------- -# Directives/Utilities -#------------------------- - -CDEBUG = -g -C_OUTPUT_FLAG = -o -LDDEBUG = -g -OUTPUT_FLAG = -o -CPPDEBUG = -g -CPP_OUTPUT_FLAG = -o -CPPLDDEBUG = -g -OUTPUT_FLAG = -o -ARDEBUG = -STATICLIB_OUTPUT_FLAG = -MEX_DEBUG = -g -RM = @del -ECHO = @echo -MV = @move -RUN = - -#---------------------------------------- -# "Faster Builds" Build Configuration -#---------------------------------------- - -ARFLAGS = ruvs -CFLAGS = -c $(MINGW_C_STANDARD_OPTS) -m64 \ - -O0 -CPPFLAGS = -c $(CPP_STANDARD_OPTS) -m64 -std=c++11 \ - -O0 -CPP_LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -CPP_SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib -DOWNLOAD_FLAGS = -EXECUTE_FLAGS = -LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -MEX_CPPFLAGS = -MEX_CPPLDFLAGS = -MEX_CFLAGS = -MEX_LDFLAGS = -MAKE_FLAGS = -f $(MAKEFILE) -SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib - - - -########################################################################### -## OUTPUT INFO -########################################################################### - -PRODUCT = ./AHRSControl_rtwlib.lib -PRODUCT_TYPE = "static library" -BUILD_TYPE = "Model Reference Library" - -########################################################################### -## INCLUDE PATHS -########################################################################### - -INCLUDES_BUILDINFO = - -INCLUDES = $(INCLUDES_BUILDINFO) - -########################################################################### -## DEFINES -########################################################################### - -DEFINES_BUILD_ARGS = -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DEFINES_CUSTOM = -DEFINES_OPTS = -DTID01EQ=0 -DPORTABLE_WORDSIZES -DEFINES_STANDARD = -DMODEL=AHRSControl -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 - -DEFINES = $(DEFINES_BUILD_ARGS) $(DEFINES_CUSTOM) $(DEFINES_OPTS) $(DEFINES_STANDARD) - -########################################################################### -## SOURCE FILES -########################################################################### - -SRCS = $(START_DIR)/slprj/ert/AHRSControl/AHRSControl.c $(START_DIR)/slprj/ert/AHRSControl/AHRSControl_data.c - -ALL_SRCS = $(SRCS) - -########################################################################### -## OBJECTS -########################################################################### - -OBJS = AHRSControl.obj AHRSControl_data.obj - -ALL_OBJS = $(OBJS) - -########################################################################### -## PREBUILT OBJECT FILES -########################################################################### - -PREBUILT_OBJS = - -########################################################################### -## LIBRARIES -########################################################################### - -LIBS = - -########################################################################### -## SYSTEM LIBRARIES -########################################################################### - -SYSTEM_LIBS = - -########################################################################### -## ADDITIONAL TOOLCHAIN FLAGS -########################################################################### - -#--------------- -# C Compiler -#--------------- - -CFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CFLAGS += $(CFLAGS_BASIC) - -#----------------- -# C++ Compiler -#----------------- - -CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CPPFLAGS += $(CPPFLAGS_BASIC) - -#--------------------- -# MEX C++ Compiler -#--------------------- - -MEX_CPP_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CPPFLAGS += $(MEX_CPP_Compiler_BASIC) - -#----------------- -# MEX Compiler -#----------------- - -MEX_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CFLAGS += $(MEX_Compiler_BASIC) - -########################################################################### -## INLINED COMMANDS -########################################################################### - - -MINGW_C_STANDARD_OPTS = $(C_STANDARD_OPTS) - - -########################################################################### -## PHONY TARGETS -########################################################################### - -.PHONY : all build clean info prebuild download execute - - -all : build - @echo "### Successfully generated all binary outputs." - - -build : prebuild $(PRODUCT) - - -prebuild : - - -download : $(PRODUCT) - - -execute : download - - -########################################################################### -## FINAL TARGET -########################################################################### - -#--------------------------------- -# Create a static library -#--------------------------------- - -$(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) - @echo "### Creating static library "$(PRODUCT)" ..." - $(AR) $(ARFLAGS) $(PRODUCT) @$(CMD_FILE) - @echo "### Created: $(PRODUCT)" - - -########################################################################### -## INTERMEDIATE TARGETS -########################################################################### - -#--------------------- -# SOURCE-TO-OBJECT -#--------------------- - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/slprj/ert/AHRSControl/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/slprj/ert/AHRSControl/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : ../../../%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : ../../../%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -AHRSControl.obj : $(START_DIR)/slprj/ert/AHRSControl/AHRSControl.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -AHRSControl_data.obj : $(START_DIR)/slprj/ert/AHRSControl/AHRSControl_data.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -########################################################################### -## DEPENDENCIES -########################################################################### - -$(ALL_OBJS) : rtw_proj.tmw $(COMPILER_COMMAND_FILE) $(MAKEFILE) - - -########################################################################### -## MISCELLANEOUS TARGETS -########################################################################### - -info : - @echo "### PRODUCT = $(PRODUCT)" - @echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)" - @echo "### BUILD_TYPE = $(BUILD_TYPE)" - @echo "### INCLUDES = $(INCLUDES)" - @echo "### DEFINES = $(DEFINES)" - @echo "### ALL_SRCS = $(ALL_SRCS)" - @echo "### ALL_OBJS = $(ALL_OBJS)" - @echo "### LIBS = $(LIBS)" - @echo "### MODELREF_LIBS = $(MODELREF_LIBS)" - @echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)" - @echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)" - @echo "### CFLAGS = $(CFLAGS)" - @echo "### LDFLAGS = $(LDFLAGS)" - @echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)" - @echo "### CPPFLAGS = $(CPPFLAGS)" - @echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)" - @echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)" - @echo "### ARFLAGS = $(ARFLAGS)" - @echo "### MEX_CFLAGS = $(MEX_CFLAGS)" - @echo "### MEX_CPPFLAGS = $(MEX_CPPFLAGS)" - @echo "### MEX_LDFLAGS = $(MEX_LDFLAGS)" - @echo "### MEX_CPPLDFLAGS = $(MEX_CPPLDFLAGS)" - @echo "### DOWNLOAD_FLAGS = $(DOWNLOAD_FLAGS)" - @echo "### EXECUTE_FLAGS = $(EXECUTE_FLAGS)" - @echo "### MAKE_FLAGS = $(MAKE_FLAGS)" - - -clean : - $(ECHO) "### Deleting all derived files..." - $(RM) $(subst /,\,$(PRODUCT)) - $(RM) $(subst /,\,$(ALL_OBJS)) - $(ECHO) "### Deleted all derived files." - - diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl.obj b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl.obj deleted file mode 100644 index d50b2076b3776514d95bf33832d2141f95952de8..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl.obj and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl.rsp b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl.rsp deleted file mode 100644 index a269e927692f9d9fdc882f923f950534553ab255..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl.rsp +++ /dev/null @@ -1,2 +0,0 @@ -AHRSControl.obj -AHRSControl_data.obj diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_comp.rsp b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_comp.rsp deleted file mode 100644 index 56bc620a2ebb8f0142f11126ea393040f0dd5dc8..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_comp.rsp +++ /dev/null @@ -1,8 +0,0 @@ --ID:/Documents/SCHOOL/McSCert/do178/src/validation --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl --ID:/Program\ Files/MATLAB/R2020a/extern/include --ID:/Program\ Files/MATLAB/R2020a/simulink/include --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src/ext_mode/common --ID:/Program\ Files/MATLAB/R2020a/rtw/c/ert --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/_sharedutils diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_data.obj b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_data.obj deleted file mode 100644 index c5dc7e5c737035de3d8889ec1412b39339b3aca0..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_data.obj and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_ref.rsp b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_ref.rsp deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_rtwlib.lib b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_rtwlib.lib deleted file mode 100644 index 896a542ae8cb66a85c12c6100bdc0b7645fc93e0..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_rtwlib.lib and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/buildInfo.mat b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/buildInfo.mat deleted file mode 100644 index 3e533435b3eb5e9678b1c321a02c5ccbc1d20350..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/buildInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/compileInfo.mat b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/compileInfo.mat deleted file mode 100644 index eb12f8d1d5b4d78c2472978e4ce0fead0976a73b..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/compileInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/defines.txt b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/defines.txt deleted file mode 100644 index 32c8635417ec98996436cf5436fcb05244a5a7e5..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/defines.txt +++ /dev/null @@ -1,15 +0,0 @@ -MODEL=AHRSControl -NUMST=1 -NCSTATES=0 -HAVESTDIO -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -CLASSIC_INTERFACE=0 -ALLOCATIONFCN=0 -TID01EQ=0 -PORTABLE_WORDSIZES -TERMFCN=0 -ONESTEPFCN=1 -MAT_FILE=0 -MULTI_INSTANCE_CODE=0 -INTEGER_CODE=0 -MT=1 diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/instrumentationInfo.mat b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/instrumentationInfo.mat deleted file mode 100644 index 0166785fda9727cd61ec68715bf3ada87f4990de..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/instrumentationInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/mlEnv.txt b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/mlEnv.txt deleted file mode 100644 index 4dd92c55ba21f6d084f4d56da9e810007d42794a..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/mlEnv.txt +++ /dev/null @@ -1,4 +0,0 @@ -MATLAB_ROOT=E: -ALT_MATLAB_ROOT=E: -MATLAB_BIN=E:\bin -ALT_MATLAB_BIN=E:\bin diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/profiling_info.mat b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/profiling_info.mat deleted file mode 100644 index ced0786e68ca7225baec5a51dc6a95cf01dc1896..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/profiling_info.mat and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/rtw_proj.tmw b/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/rtw_proj.tmw deleted file mode 100644 index c2f500c82514186baccb4e3f73038e1d14338883..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/rtw_proj.tmw +++ /dev/null @@ -1,4 +0,0 @@ -Simulink Coder project for AHRSControl using . MATLAB root = D:\Program Files\MATLAB\R2020a. SimStruct date: 18-Nov-2019 20:54:47 -This file is generated by Simulink Coder for use by the make utility -to determine when to rebuild objects when the name of the current Simulink Coder project changes. -The rtwinfomat located at: ..\..\..\..\..\..\slprj\ert\AHRSControl\tmwinternal\binfo_mdlref.mat diff --git a/src/validation/slprj/ert/AHRSControl/tmwinternal/ModelRefCompileInfo.xml b/src/validation/slprj/ert/AHRSControl/tmwinternal/ModelRefCompileInfo.xml deleted file mode 100644 index 63b97c6801e9427289f8abe82bab25b6e5e41588..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/tmwinternal/ModelRefCompileInfo.xml +++ /dev/null @@ -1,1919 +0,0 @@ - - - - 323 - - true - AHRSControl - AHRSControl - - false - false - HeliSystemDD_New.sldd - HeliSystemDD_New.sldd - HeliSystemDD_New.sldd - AAFJTQAAAAAOAAAAOAAAAAYAAAAIAAAAAgAAAAAAAAAFAAAACAAAAAAAAAABAAAAAQAAAAAAAAAFAAQAAQAAAAEAAAAAAAAA - {"Inports":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","Outports":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","LocalParameters":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","ParameterArguments":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","GlobalParameters":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","SharedLocalDataStores":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","GlobalDataStores":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","InternalData":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","Constants":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","DataTransfers":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","ModelData":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","InitializeTerminate":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","Execution":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","SharedUtility":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}"} - - -2 - true - true - true - 2147483647 - -1 - 1 - - -1 - - - AHRS_Control - - - 0.01 - #AHRS_Bus#HeliSystemDD_New.sldd# - true - true - false - false - true - true - false - true - true - false - false - false - 4 - -1 - 6 - 6 - 0 - 1 - 1 - 2 - false - true - true - - true - true - 0.01 - 40 - 0 - - 2 - <?xml version="1.0"?> -<slexec_sto version="1.1" packageUris="http://schema.mathworks.com/mf0/slexec_mm_sto/R2019b_201902271317"> - <sto.Registry type="sto.Registry" uuid="80835fee-2687-4103-a59e-73986936be10"> - <clocks type="sto.Timer" uuid="fd82a8af-a1a7-49fc-bcee-9612f5ab4645"> - <needsToProvideTimeDuringExecution>true</needsToProvideTimeDuringExecution> - <clockTickConstraint>PeriodicWithFixedResolution</clockTickConstraint> - <resolution>0.01</resolution> - <specifiedTaskingMode>ClassicMultiTasking</specifiedTaskingMode> - <timeAdvanceMode>FixedStep</timeAdvanceMode> - <clockDomain type="sto.ClockDomain" uuid="bad96da0-d041-4e2e-8083-43ce9124f00a"> - <baseTaskID>_task0</baseTaskID> - <computedFundamentalStepSize>0.01</computedFundamentalStepSize> - <rates type="sto.Rate" uuid="37f16e0a-3553-4abc-a7ca-799de31145c2"/> - <rootTaskHierarchyElements type="sto.Task" uuid="40d05976-9d84-49c1-ae9b-04f409a76726"> - <isExecutable>true</isExecutable> - <rates type="sto.Rate" uuid="37f16e0a-3553-4abc-a7ca-799de31145c2"> - <annotation>D1</annotation> - <colorIndex>2</colorIndex> - <description>Discrete 1</description> - <eventSourceType>UNSPECIFIED_EVENT_SOURCE</eventSourceType> - <registry type="sto.Registry" uuid="80835fee-2687-4103-a59e-73986936be10"/> - <taskId>_task0</taskId> - <rateSpec type="sto.RateSpec" uuid="4712e563-5bc0-435d-b80d-bf10514eef3d"> - <period>0.01</period> - <rateType>ClassicPeriodicDiscrete</rateType> - </rateSpec> - </rates> - <elementType>Task</elementType> - <identifier>_task0</identifier> - <priority>40</priority> - </rootTaskHierarchyElements> - </clockDomain> - </clocks> - <clocks type="sto.Event" uuid="c1250580-b058-4e80-bb50-f511582fb955"> - <eventType>EXPORT_ASYNCHRONOUS</eventType> - <cNum>1</cNum> - <clockType>Event</clockType> - <identifier>AHRSControl/AHRS_Control,0,0</identifier> - <resolution>-1</resolution> - <specifiedTaskingMode>ExplicitTasking</specifiedTaskingMode> - <timeAdvanceMode>None</timeAdvanceMode> - <clockDomain type="sto.ClockDomain" uuid="be985961-dfaa-4922-8e51-293977c08e99"> - <computedFundamentalStepSize>-1</computedFundamentalStepSize> - <rates type="sto.Rate" uuid="b26aaddb-3b73-468d-a360-ae80e7382b3a"/> - <rootTaskHierarchyElements type="sto.Task" uuid="f0780fff-4303-400c-aa49-7e9fc4a9b57f"> - <isExecutable>true</isExecutable> - <isExplicit>true</isExplicit> - <rates type="sto.Rate" uuid="b26aaddb-3b73-468d-a360-ae80e7382b3a"> - <annotation>F-1</annotation> - <colorIndex>23</colorIndex> - <description>Exported Inherit</description> - <eventSourceType>EXPORT_ASYNCHRONOUS</eventSourceType> - <rateIDX>1</rateIDX> - <registry type="sto.Registry" uuid="80835fee-2687-4103-a59e-73986936be10"/> - <stringID>AHRSControl/AHRS_Control,0,0</stringID> - <taskId>ExplicitTask0</taskId> - <rateSpec type="sto.RateSpec" uuid="782e7e54-f169-4f5c-99aa-fa9558413b07"> - <offset>-2</offset> - <period>-1</period> - <rateType>LegacyAsync</rateType> - </rateSpec> - </rates> - <tNum>1</tNum> - <elementType>Task</elementType> - <identifier>ExplicitTask0</identifier> - <priority>40</priority> - <schedulingClockID>AHRSControl/AHRS_Control,0,0</schedulingClockID> - </rootTaskHierarchyElements> - </clockDomain> - </clocks> - <clocks type="sto.Event" uuid="77a82fcc-bba1-48d2-9451-0b06a9949208"> - <eventType>PARAMETER_CHANGE_EVENT</eventType> - <cNum>2</cNum> - <clockType>Event</clockType> - <identifier>ParameterChangeEvent</identifier> - <resolution>-1</resolution> - <specifiedTaskingMode>ExplicitTasking</specifiedTaskingMode> - <timeAdvanceMode>None</timeAdvanceMode> - <clockDomain type="sto.ClockDomain" uuid="86b0f00f-a7f6-4ade-93fe-1987a7e08385"> - <computedFundamentalStepSize>-1</computedFundamentalStepSize> - <rates type="sto.Rate" uuid="d230b61b-8c56-4a8f-afd7-6bf0f5ab776e"/> - <rootTaskHierarchyElements type="sto.Task" uuid="767a646f-2e18-497d-89a8-dbe69d58c175"> - <isExplicit>true</isExplicit> - <rates type="sto.Rate" uuid="d230b61b-8c56-4a8f-afd7-6bf0f5ab776e"> - <eventSourceType>PARAMETER_CHANGE_EVENT</eventSourceType> - <rateIDX>-1</rateIDX> - <registry type="sto.Registry" uuid="80835fee-2687-4103-a59e-73986936be10"/> - <stringID>ParameterChangeEvent</stringID> - <taskId>ModelWideParameterChangeEvent</taskId> - <useForExecution>NotForExecution</useForExecution> - <rateSpec type="sto.RateSpec" uuid="2dc31d54-8f58-4f7c-b5b1-c47c199c8524"> - <period>inf</period> - <rateType>ModelWideParameterChangeEvent</rateType> - </rateSpec> - </rates> - <tNum>2</tNum> - <elementType>Task</elementType> - <identifier>ModelWideParameterChangeEvent</identifier> - <priority>-1</priority> - <schedulingClockID>ParameterChangeEvent</schedulingClockID> - </rootTaskHierarchyElements> - </clockDomain> - </clocks> - <clocks type="sto.Event" uuid="23098b52-81f0-40ec-ab86-b934a8c0e96c"> - <eventType>UNSPECIFIED_EVENT_SOURCE</eventType> - <cNum>3</cNum> - <clockType>Event</clockType> - <identifier>NonTunableParameterChangeEvent</identifier> - <resolution>-1</resolution> - <specifiedTaskingMode>ExplicitTasking</specifiedTaskingMode> - <timeAdvanceMode>None</timeAdvanceMode> - <clockDomain type="sto.ClockDomain" uuid="81c04aab-dfe0-4659-938b-aabd42ca35b5"> - <computedFundamentalStepSize>-1</computedFundamentalStepSize> - </clockDomain> - </clocks> - <executionSpec>Undetermined</executionSpec> - <hasUnknownEdges>true</hasUnknownEdges> - <taskDependencyGraph type="sto.SerializedTaskConnectionList" uuid="3b218494-9158-4ece-98bb-be71a93ab6fa"> - <taskIdentifier>_task0</taskIdentifier> - </taskDependencyGraph> - <taskDependencyGraph type="sto.SerializedTaskConnectionList" uuid="19182155-a547-42d0-b064-b49f4b7101fc"> - <clockIdentifier>AHRSControl/AHRS_Control,0,0</clockIdentifier> - <taskIdentifier>ExplicitTask0</taskIdentifier> - </taskDependencyGraph> - <taskDependencyGraph type="sto.SerializedTaskConnectionList" uuid="ee55b105-6407-49c1-a72b-d9ca8c7889ed"> - <clockIdentifier>ParameterChangeEvent</clockIdentifier> - <taskIdentifier>ModelWideParameterChangeEvent</taskIdentifier> - </taskDependencyGraph> - <taskPriorityDirection>HighNumberLast</taskPriorityDirection> - <taskingMode>ClassicMultiTasking</taskingMode> - <tasks type="sto.Task" uuid="40d05976-9d84-49c1-ae9b-04f409a76726"/> - <tasks type="sto.Task" uuid="f0780fff-4303-400c-aa49-7e9fc4a9b57f"/> - <tasks type="sto.Task" uuid="767a646f-2e18-497d-89a8-dbe69d58c175"/> - <timeAdvanceMode>FixedStep</timeAdvanceMode> - </sto.Registry> -</slexec_sto> - false - 0.01 - true - - - MdlrefDW_AHRSControl_T - - - true - 0.01 - 2 - true - true - true - 2 - SOLVER_MODE_MULTITASKING - FixedStepDiscrete - SOLVER_TYPE_FIXEDSTEP - 2 - - 8 - 64 - 32 - 32 - 32 - 64 - 32 - 32 - 16 - 32 - 1 - true - true - 32 - - - - - - - - - true - true - true - true - true - - - - - - - - - - - AHRS_Control - true - - AHRSControl/AHRS_Control/AHRSLoopCtrl_caller - AHRS_Control - AHRSLoopCtrl - - - AHRSControl/AHRS_Control/AHRS_voter_caller - AHRS_Control - AHRS_voter - - AHRSControl/AHRS_Control - AHRS_Control - - 14 - 325.0003662109375 - - - 14 - 327.0003662109375 - - - 14 - 329.0003662109375 - - - 14 - 354.000244140625 - - - 1 - 359.000244140625 - - - 14 - 372.000244140625 - - - 1 - 377.000244140625 - - - 14 - 390.000244140625 - - - 1 - 395.000244140625 - - - 14 - 429.000244140625 - - true - AHRSControl - AHRSControl/AHRS_Control - - ({true}_0) - - Scoped Export - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - I4 - 4 - - - I5 - 5 - - - O0 - 6 - - - AHRS1 - 3 - - - AHRS2 - 4 - - - AHRS3 - 5 - - - Pilot_phi_cmd - 1 - - - Pilot_r_cmd - 2 - - - Pilot_theta_cmd - - - actuator_commands - 6 - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Bus - AHRS_Bus - - - - 1 - - Bus - AHRS_Bus - - - - 1 - - Bus - AHRS_Bus - - - - 3 - - Numeric - numerictype('double') - - - -1 - - - - AHRS_voter - true - AHRSControl/AHRS_Control/AHRS_voter_caller - - AHRSControl/AHRS_Control/AHRS_voter/Avg_Value_caller - AHRS_Control/AHRS_voter - Avg_Value - - - AHRSControl/AHRS_Control/AHRS_voter/Mid_Value_caller - AHRS_Control/AHRS_voter - Mid_Value - - - AHRSControl/AHRS_Control/AHRS_voter/Single_Value_caller - AHRS_Control/AHRS_voter - Single_Value - - AHRS_Control - AHRSControl/AHRS_Control/AHRS_voter - AHRS_voter - - 14 - 561.00048828125 - - - 14 - 598.00048828125 - - - 14 - 628.00048828125 - - true - AHRSControl/AHRS_Control/AHRS_voter_caller - AHRS_Control - AHRSControl - - AHRSControl/AHRS_Control/AHRS_voter_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRS_voter - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - O0 - 3 - - - AHRS1 - - - AHRS2 - 1 - - - AHRS3 - 2 - - - voted_fb - 3 - - - 1 - - Bus - AHRS_Bus - - - - 1 - - Bus - AHRS_Bus - - - - 1 - - Bus - AHRS_Bus - - - - 5 - - Numeric - numerictype('double') - - - -1 - - - - Heli_outer_loop - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop_caller - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop_caller - AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - Pitch_loop - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop_caller - AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - Roll_loop - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop_caller - AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - Yaw_loop - - AHRS_Control/AHRSLoopCtrl - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - Heli_outer_loop - - 14 - 433.000244140625 - - - 1 - 438.000244140625 - - - 14 - 456.000244140625 - - - 1 - 461.000244140625 - - - 14 - 489.000244140625 - - - 1 - 494.000244140625 - - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop_caller - AHRSLoopCtrl - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - O0 - 4 - - - O1 - 5 - - - O2 - 6 - - - Pilot_phi_cmd - 1 - - - Pilot_r_cmd - 2 - - - Pilot_theta_cmd - - - phi_cmd - 5 - - - r_cmd - 6 - - - theta_cmd - 4 - - - voted_fb - 3 - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Single_Value - true - AHRSControl/AHRS_Control/AHRS_voter/Single_Value_caller - AHRS_Control/AHRS_voter - AHRSControl/AHRS_Control/AHRS_voter/Single_Value - Single_Value - true - AHRSControl/AHRS_Control/AHRS_voter/Single_Value_caller - AHRS_voter - AHRSControl - - AHRSControl/AHRS_Control/AHRS_voter/Single_Value_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRS_voter/Single_Value - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - I4 - 4 - - - I5 - 5 - - - O0 - 6 - - - AHRS1 - - - AHRS1_Valid - 3 - - - AHRS2 - 1 - - - AHRS2_Valid - 4 - - - AHRS3 - 2 - - - AHRS3_Valid - 5 - - - Single_Value - 6 - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('boolean') - - - - 1 - - Numeric - numerictype('boolean') - - - - 1 - - Numeric - numerictype('boolean') - - - - 5 - - Numeric - numerictype('double') - - - -1 - - - - Yaw_loop - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop_caller - AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop - Yaw_loop - - 1 - 494.000244140625 - - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop_caller - Heli_outer_loop - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Pilot_r_cmd - - - r - 1 - - - r_cmd - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Roll_loop - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop_caller - AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop - Roll_loop - - 1 - 461.000244140625 - - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop_caller - Heli_outer_loop - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Pilot_phi_cmd - - - phi - 1 - - - phi_cmd - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Pitch_loop - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop_caller - AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop - Pitch_loop - - 1 - 438.000244140625 - - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop_caller - Heli_outer_loop - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Pilot_theta_cmd - - - theta - 1 - - - theta_cmd - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Avg_Value - true - AHRSControl/AHRS_Control/AHRS_voter/Avg_Value_caller - AHRS_Control/AHRS_voter - AHRSControl/AHRS_Control/AHRS_voter/Avg_Value - Avg_Value - true - AHRSControl/AHRS_Control/AHRS_voter/Avg_Value_caller - AHRS_voter - AHRSControl - - AHRSControl/AHRS_Control/AHRS_voter/Avg_Value_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRS_voter/Avg_Value - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - I4 - 4 - - - I5 - 5 - - - O0 - 6 - - - AHRS1 - - - AHRS1_Valid - 3 - - - AHRS2 - 1 - - - AHRS2_Valid - 4 - - - AHRS3 - 2 - - - AHRS3_Valid - 5 - - - Avg_Value - 6 - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('boolean') - - - - 1 - - Numeric - numerictype('boolean') - - - - 1 - - Numeric - numerictype('boolean') - - - - 5 - - Numeric - numerictype('double') - - - -1 - - - - Heli_inner_loop - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop_caller - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback_caller - AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - pitch_feedback - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback_caller - AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - roll_feedback - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback_caller - AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - yaw_feedback - - AHRS_Control/AHRSLoopCtrl - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - Heli_inner_loop - - 14 - 329.0003662109375 - - - 14 - 354.000244140625 - - - 1 - 359.000244140625 - - - 14 - 372.000244140625 - - - 1 - 377.000244140625 - - - 14 - 390.000244140625 - - - 1 - 395.000244140625 - - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop_caller - AHRSLoopCtrl - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - O0 - 4 - - - actuator_commands - 4 - - - phi_cmd - 1 - - - r_cmd - 2 - - - theta_cmd - - - voted_fb - 3 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 3 - - Numeric - numerictype('double') - - - -1 - - - - yaw_feedback - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback_caller - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback/Filter_caller - AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - Filter - - AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback - yaw_feedback - - 1 - 395.000244140625 - - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback_caller - Heli_inner_loop - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - dT - 2 - - - r_cmd - - - voted_fb - 1 - - - 1 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Mid_Value - true - AHRSControl/AHRS_Control/AHRS_voter/Mid_Value_caller - AHRS_Control/AHRS_voter - AHRSControl/AHRS_Control/AHRS_voter/Mid_Value - Mid_Value - true - AHRSControl/AHRS_Control/AHRS_voter/Mid_Value_caller - AHRS_voter - AHRSControl - - AHRSControl/AHRS_Control/AHRS_voter/Mid_Value_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRS_voter/Mid_Value - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - O0 - 3 - - - AHRS1 - - - AHRS2 - 1 - - - AHRS3 - 2 - - - Mid_Value - 3 - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - -1 - - - - AHRSLoopCtrl - true - AHRSControl/AHRS_Control/AHRSLoopCtrl_caller - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop_caller - AHRS_Control/AHRSLoopCtrl - Heli_inner_loop - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop_caller - AHRS_Control/AHRSLoopCtrl - Heli_outer_loop - - AHRS_Control - AHRSControl/AHRS_Control/AHRSLoopCtrl - AHRSLoopCtrl - - 14 - 327.0003662109375 - - - 14 - 329.0003662109375 - - - 14 - 354.000244140625 - - - 1 - 359.000244140625 - - - 14 - 372.000244140625 - - - 1 - 377.000244140625 - - - 14 - 390.000244140625 - - - 1 - 395.000244140625 - - - 14 - 429.000244140625 - - - 14 - 433.000244140625 - - true - AHRSControl/AHRS_Control/AHRSLoopCtrl_caller - AHRS_Control - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - O0 - 4 - - - Pilot_phi_cmd - 1 - - - Pilot_r_cmd - 2 - - - Pilot_theta_cmd - - - actuator_commands - 4 - - - voted_fb - 3 - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 5 - - Numeric - numerictype('double') - - - - 3 - - Numeric - numerictype('double') - - - -1 - - - - pitch_feedback - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback_caller - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback/Filter_caller - AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - Filter - - AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback - pitch_feedback - - 1 - 359.000244140625 - - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback_caller - Heli_inner_loop - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - ds - 2 - - - theta_cmd - - - voted_fb - 1 - - - 1 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - roll_feedback - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback_caller - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback/Filter_caller - AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - Filter - - AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback - roll_feedback - - 1 - 377.000244140625 - - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback_caller - Heli_inner_loop - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - dc - 2 - - - phi_cmd - - - voted_fb - 1 - - - 1 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Filter - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback/Filter_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback/Filter_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback/Filter_caller - AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Filter - Filter - true - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback/Filter_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback/Filter_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback/Filter_caller - Heli_inner_loop - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback/Filter_caller - - ({true}_0) - - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback/Filter_caller - - ({true}_0) - - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback/Filter_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Filter - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - O1 - 3 - - - FeedbackSum - 3 - - - Signal - - - filtered_Signal - 2 - - - prev_FeedbackSum - 1 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - - true - - - - - - sltpEvents - - - sltpTaskGroups - - - - - AHRS_Control - - - AHRSControl/AHRS_Control,0,0 - ExplicitTask0 - - - sltpTasks - - - - - \ No newline at end of file diff --git a/src/validation/slprj/ert/AHRSControl/tmwinternal/binfo_mdlref.mat b/src/validation/slprj/ert/AHRSControl/tmwinternal/binfo_mdlref.mat deleted file mode 100644 index da805219979cad41f1faf714f993db8c8373c878..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/tmwinternal/binfo_mdlref.mat and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/tmwinternal/minfo_mdlref.mat b/src/validation/slprj/ert/AHRSControl/tmwinternal/minfo_mdlref.mat deleted file mode 100644 index 2fd021a054076e27d6a846f35fb19b23bde5676a..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/tmwinternal/minfo_mdlref.mat and /dev/null differ diff --git a/src/validation/slprj/ert/AHRSControl/tmwinternal/simulink_cache.xml b/src/validation/slprj/ert/AHRSControl/tmwinternal/simulink_cache.xml deleted file mode 100644 index 122ef65471598a4add57b38db9efc7305a19ffe3..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/AHRSControl/tmwinternal/simulink_cache.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - FUxhDso/1GfPwnfseTpPcQ== - - \ No newline at end of file diff --git a/src/validation/slprj/ert/AHRSControl/tmwinternal/tr b/src/validation/slprj/ert/AHRSControl/tmwinternal/tr deleted file mode 100644 index 0a820c3d3a4cbbb7289f4d9f18837b3b34d3b21b..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/AHRSControl/tmwinternal/tr and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/ActuatorControl.c b/src/validation/slprj/ert/ActuatorControl/ActuatorControl.c deleted file mode 100644 index a591c45d032895070fb2b7f01df57deaf0f0ec3d..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/ActuatorControl.c +++ /dev/null @@ -1,404 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: ActuatorControl.c - * - * Code generated for Simulink model 'ActuatorControl'. - * - * Model version : 1.72 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:02 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#include "ActuatorControl.h" - -/* Macros for accessing real-time model data structure */ -#ifndef rtmGetErrorStatus -# define rtmGetErrorStatus(rtm) (*((rtm)->errorStatus)) -#endif - -#ifndef rtmSetErrorStatus -# define rtmSetErrorStatus(rtm, val) (*((rtm)->errorStatus) = (val)) -#endif - -#ifndef rtmGetErrorStatusPointer -# define rtmGetErrorStatusPointer(rtm) (rtm)->errorStatus -#endif - -#ifndef rtmSetErrorStatusPointer -# define rtmSetErrorStatusPointer(rtm, val) ((rtm)->errorStatus = (val)) -#endif - -MdlrefDW_ActuatorControl_T ActuatorControl_MdlrefDW; - -/* Block states (default storage) */ -DW_ActuatorControl_f_T ActuatorControl_DW; -extern void Actuator_Actuator1_loop_Disable(void); -extern void ActuatorControl_Actuator1_loop(real_T rtu_Act1_pos, real_T - rtu_Act1_cmd, real_T *rty_Actuator1); -extern void Actuator_Actuator2_loop_Disable(void); -extern void ActuatorControl_Actuator2_loop(real_T rtu_Act2_pos, real_T - rtu_Act2_cmd, real_T *rty_Actuator2); -extern void Actuator_Actuator3_loop_Disable(void); -extern void ActuatorControl_Actuator3_loop(real_T rtu_Act3_pos, real_T - rtu_Act3_cmd, real_T *rty_Actuator3); - -/* Disable for Simulink Function: '/Actuaor1_loop' */ -void Actuator_Actuator1_loop_Disable(void) -{ - /* Disable for DiscreteIntegrator: '/Integrator' */ - ActuatorControl_DW.Integrator_DSTATE_h = ActuatorControl_DW.Integrator_f; -} - -/* Output and update for Simulink Function: '/Actuaor1_loop' */ -void ActuatorControl_Actuator1_loop(real_T rtu_Act1_pos, real_T rtu_Act1_cmd, - real_T *rty_Actuator1) -{ - real_T rtb_Sum; - - /* DiscreteIntegrator: '/Integrator' */ - ActuatorControl_DW.Integrator_f = ActuatorControl_DW.Integrator_DSTATE_h; - - /* Sum: '/Sum' incorporates: - * SignalConversion generated from: '/Act1_cmd' - * SignalConversion generated from: '/Act1_pos' - */ - rtb_Sum = rtu_Act1_cmd - rtu_Act1_pos; - - /* SignalConversion generated from: '/Actuator1' incorporates: - * Gain: '/Gain' - * Gain: '/Gain1' - * Gain: '/Gain3' - * Gain: '/Gain4' - * Sum: '/Sum1' - * Sum: '/Diff' - * UnitDelay: '/UD' - * - * Block description for '/Diff': - * - * Add in CPU - * - * Block description for '/UD': - * - * Store in Global RAM - */ - *rty_Actuator1 = ((0.001 * ActuatorControl_DW.Integrator_f) + (0.339 * rtb_Sum)) - - (((rtb_Sum - ActuatorControl_DW.UD_DSTATE_j) * 0.00272) * 0.001); - - /* Update for DiscreteIntegrator: '/Integrator' incorporates: - * Gain: '/Gain2' - */ - ActuatorControl_DW.Integrator_DSTATE_h += 2.73 * rtb_Sum; - if (ActuatorControl_DW.Integrator_DSTATE_h >= 0.1) { - ActuatorControl_DW.Integrator_DSTATE_h = 0.1; - } else { - if (ActuatorControl_DW.Integrator_DSTATE_h <= -0.1) { - ActuatorControl_DW.Integrator_DSTATE_h = -0.1; - } - } - - /* End of Update for DiscreteIntegrator: '/Integrator' */ - - /* Update for UnitDelay: '/UD' - * - * Block description for '/UD': - * - * Store in Global RAM - */ - ActuatorControl_DW.UD_DSTATE_j = rtb_Sum; -} - -/* Disable for Simulink Function: '/Actuaor2_loop' */ -void Actuator_Actuator2_loop_Disable(void) -{ - /* Disable for DiscreteIntegrator: '/Integrator' */ - ActuatorControl_DW.Integrator_DSTATE_n = ActuatorControl_DW.Integrator_i; -} - -/* Output and update for Simulink Function: '/Actuaor2_loop' */ -void ActuatorControl_Actuator2_loop(real_T rtu_Act2_pos, real_T rtu_Act2_cmd, - real_T *rty_Actuator2) -{ - real_T rtb_Sum; - - /* DiscreteIntegrator: '/Integrator' */ - ActuatorControl_DW.Integrator_i = ActuatorControl_DW.Integrator_DSTATE_n; - - /* Sum: '/Sum' incorporates: - * SignalConversion generated from: '/Act2_cmd' - * SignalConversion generated from: '/Act2_pos' - */ - rtb_Sum = rtu_Act2_cmd - rtu_Act2_pos; - - /* SignalConversion generated from: '/Actuator2' incorporates: - * Gain: '/Gain' - * Gain: '/Gain1' - * Gain: '/Gain3' - * Gain: '/Gain4' - * Sum: '/Sum1' - * Sum: '/Diff' - * UnitDelay: '/UD' - * - * Block description for '/Diff': - * - * Add in CPU - * - * Block description for '/UD': - * - * Store in Global RAM - */ - *rty_Actuator2 = ((0.001 * ActuatorControl_DW.Integrator_i) + (0.339 * rtb_Sum)) - - (((rtb_Sum - ActuatorControl_DW.UD_DSTATE_o) * 0.00272) * 0.001); - - /* Update for DiscreteIntegrator: '/Integrator' incorporates: - * Gain: '/Gain2' - */ - ActuatorControl_DW.Integrator_DSTATE_n += 2.73 * rtb_Sum; - if (ActuatorControl_DW.Integrator_DSTATE_n >= 0.1) { - ActuatorControl_DW.Integrator_DSTATE_n = 0.1; - } else { - if (ActuatorControl_DW.Integrator_DSTATE_n <= -0.1) { - ActuatorControl_DW.Integrator_DSTATE_n = -0.1; - } - } - - /* End of Update for DiscreteIntegrator: '/Integrator' */ - - /* Update for UnitDelay: '/UD' - * - * Block description for '/UD': - * - * Store in Global RAM - */ - ActuatorControl_DW.UD_DSTATE_o = rtb_Sum; -} - -/* Disable for Simulink Function: '/Actuaor3_loop' */ -void Actuator_Actuator3_loop_Disable(void) -{ - /* Disable for DiscreteIntegrator: '/Integrator' */ - ActuatorControl_DW.Integrator_DSTATE = ActuatorControl_DW.Integrator; -} - -/* Output and update for Simulink Function: '/Actuaor3_loop' */ -void ActuatorControl_Actuator3_loop(real_T rtu_Act3_pos, real_T rtu_Act3_cmd, - real_T *rty_Actuator3) -{ - real_T rtb_Sum; - - /* DiscreteIntegrator: '/Integrator' */ - ActuatorControl_DW.Integrator = ActuatorControl_DW.Integrator_DSTATE; - - /* Sum: '/Sum' incorporates: - * SignalConversion generated from: '/Act3_cmd' - * SignalConversion generated from: '/Act3_pos' - */ - rtb_Sum = rtu_Act3_cmd - rtu_Act3_pos; - - /* SignalConversion generated from: '/Actuator3' incorporates: - * Gain: '/Gain' - * Gain: '/Gain1' - * Gain: '/Gain3' - * Gain: '/Gain4' - * Sum: '/Sum1' - * Sum: '/Diff' - * UnitDelay: '/UD' - * - * Block description for '/Diff': - * - * Add in CPU - * - * Block description for '/UD': - * - * Store in Global RAM - */ - *rty_Actuator3 = ((0.001 * ActuatorControl_DW.Integrator) + (0.339 * rtb_Sum)) - - (((rtb_Sum - ActuatorControl_DW.UD_DSTATE) * 0.00272) * 0.001); - - /* Update for DiscreteIntegrator: '/Integrator' incorporates: - * Gain: '/Gain2' - */ - ActuatorControl_DW.Integrator_DSTATE += 2.73 * rtb_Sum; - if (ActuatorControl_DW.Integrator_DSTATE >= 0.1) { - ActuatorControl_DW.Integrator_DSTATE = 0.1; - } else { - if (ActuatorControl_DW.Integrator_DSTATE <= -0.1) { - ActuatorControl_DW.Integrator_DSTATE = -0.1; - } - } - - /* End of Update for DiscreteIntegrator: '/Integrator' */ - - /* Update for UnitDelay: '/UD' - * - * Block description for '/UD': - * - * Store in Global RAM - */ - ActuatorControl_DW.UD_DSTATE = rtb_Sum; -} - -/* Disable for referenced model: 'ActuatorControl' */ -void ActuatorControl_Disable(void) -{ - /* Disable for S-Function (sfun_private_function_caller) generated from: '/Actuator_Control' incorporates: - * SubSystem: '/Actuator_Control' - */ - /* Disable for S-Function (sfun_private_function_caller) generated from: '/Actuaor3_loop' incorporates: - * SubSystem: '/Actuaor3_loop' - */ - Actuator_Actuator3_loop_Disable(); - - /* End of Disable for S-Function (sfun_private_function_caller) generated from: '/Actuaor3_loop' */ - - /* Disable for S-Function (sfun_private_function_caller) generated from: '/Actuaor2_loop' incorporates: - * SubSystem: '/Actuaor2_loop' - */ - Actuator_Actuator2_loop_Disable(); - - /* End of Disable for S-Function (sfun_private_function_caller) generated from: '/Actuaor2_loop' */ - - /* Disable for S-Function (sfun_private_function_caller) generated from: '/Actuaor1_loop' incorporates: - * SubSystem: '/Actuaor1_loop' - */ - Actuator_Actuator1_loop_Disable(); - - /* End of Disable for S-Function (sfun_private_function_caller) generated from: '/Actuaor1_loop' */ - /* End of Disable for S-Function (sfun_private_function_caller) generated from: '/Actuator_Control' */ -} - -/* Output and update for referenced model: 'ActuatorControl' */ -void Actuator_Control(const int16_T rtu_Act1_pos, const real_T rtu_Act1_cmd, - const int16_T rtu_Act2_pos, const real_T rtu_Act2_cmd, - const int16_T rtu_Act3_pos, const real_T rtu_Act3_cmd, - int16_T *rty_Actuator1, int16_T *rty_Actuator2, int16_T - *rty_Actuator3) -{ - real_T rtb_TmpSignalConversionAtAct1_c; - - /* Outputs for Function Call SubSystem: '/Actuator_Control' */ - /* Gain: '/Scaling4' incorporates: - * DataTypeConversion: '/TypeConversion4' - * SignalConversion generated from: '/Act3_pos' - */ - rtb_TmpSignalConversionAtAct1_c = 3.0518509475997192E-6 * ((real_T) - rtu_Act3_pos); - - /* FunctionCaller: '/Actuator3_loop_caller' incorporates: - * SignalConversion generated from: '/Act3_cmd' - */ - ActuatorControl_Actuator3_loop(rtb_TmpSignalConversionAtAct1_c, rtu_Act3_cmd, - &rtb_TmpSignalConversionAtAct1_c); - - /* Saturate: '/Saturation2' */ - if (rtb_TmpSignalConversionAtAct1_c > 0.3) { - rtb_TmpSignalConversionAtAct1_c = 0.3; - } else { - if (rtb_TmpSignalConversionAtAct1_c < -0.3) { - rtb_TmpSignalConversionAtAct1_c = -0.3; - } - } - - /* End of Saturate: '/Saturation2' */ - - /* Gain: '/Scaling5' */ - rtb_TmpSignalConversionAtAct1_c *= 109223.33333333334; - - /* SignalConversion generated from: '/Actuator3' incorporates: - * DataTypeConversion: '/TypeConversion5' - */ - *rty_Actuator3 = (int16_T)floor(rtb_TmpSignalConversionAtAct1_c); - - /* Gain: '/Scaling2' incorporates: - * DataTypeConversion: '/TypeConversion2' - * SignalConversion generated from: '/Act2_pos' - */ - rtb_TmpSignalConversionAtAct1_c = 3.0518509475997192E-6 * ((real_T) - rtu_Act2_pos); - - /* FunctionCaller: '/Actuator2_loop_caller' incorporates: - * SignalConversion generated from: '/Act2_cmd' - */ - ActuatorControl_Actuator2_loop(rtb_TmpSignalConversionAtAct1_c, rtu_Act2_cmd, - &rtb_TmpSignalConversionAtAct1_c); - - /* Saturate: '/Saturation1' */ - if (rtb_TmpSignalConversionAtAct1_c > 0.3) { - rtb_TmpSignalConversionAtAct1_c = 0.3; - } else { - if (rtb_TmpSignalConversionAtAct1_c < -0.3) { - rtb_TmpSignalConversionAtAct1_c = -0.3; - } - } - - /* End of Saturate: '/Saturation1' */ - - /* Gain: '/Scaling3' */ - rtb_TmpSignalConversionAtAct1_c *= 109223.33333333334; - - /* SignalConversion generated from: '/Actuator2' incorporates: - * DataTypeConversion: '/TypeConversion3' - */ - *rty_Actuator2 = (int16_T)floor(rtb_TmpSignalConversionAtAct1_c); - - /* Gain: '/Scaling' incorporates: - * DataTypeConversion: '/TypeConversion' - * SignalConversion generated from: '/Act1_pos' - */ - rtb_TmpSignalConversionAtAct1_c = 3.0518509475997192E-6 * ((real_T) - rtu_Act1_pos); - - /* FunctionCaller: '/Actuator1_loop_caller' incorporates: - * SignalConversion generated from: '/Act1_cmd' - */ - ActuatorControl_Actuator1_loop(rtb_TmpSignalConversionAtAct1_c, rtu_Act1_cmd, - &rtb_TmpSignalConversionAtAct1_c); - - /* Saturate: '/Saturation' */ - if (rtb_TmpSignalConversionAtAct1_c > 0.3) { - rtb_TmpSignalConversionAtAct1_c = 0.3; - } else { - if (rtb_TmpSignalConversionAtAct1_c < -0.3) { - rtb_TmpSignalConversionAtAct1_c = -0.3; - } - } - - /* End of Saturate: '/Saturation' */ - - /* Gain: '/Scaling1' */ - rtb_TmpSignalConversionAtAct1_c *= 109223.33333333334; - - /* SignalConversion generated from: '/Actuator1' incorporates: - * DataTypeConversion: '/TypeConversion1' - */ - *rty_Actuator1 = (int16_T)floor(rtb_TmpSignalConversionAtAct1_c); - - /* End of Outputs for SubSystem: '/Actuator_Control' */ -} - -/* Model initialize function */ -void ActuatorControl_initialize(const char_T **rt_errorStatus) -{ - RT_MODEL_ActuatorControl_T *const ActuatorControl_M = - &(ActuatorControl_MdlrefDW.rtm); - - /* Registration code */ - - /* initialize error status */ - rtmSetErrorStatusPointer(ActuatorControl_M, rt_errorStatus); -} - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/slprj/ert/ActuatorControl/ActuatorControl.h b/src/validation/slprj/ert/ActuatorControl/ActuatorControl.h deleted file mode 100644 index a00973df17722949526d4867cc1cde13decde368..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/ActuatorControl.h +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: ActuatorControl.h - * - * Code generated for Simulink model 'ActuatorControl'. - * - * Model version : 1.72 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:02 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#ifndef RTW_HEADER_ActuatorControl_h_ -#define RTW_HEADER_ActuatorControl_h_ -#include -#ifndef ActuatorControl_COMMON_INCLUDES_ -# define ActuatorControl_COMMON_INCLUDES_ -#include "rtwtypes.h" -#include "rtw_continuous.h" -#include "rtw_solver.h" -#endif /* ActuatorControl_COMMON_INCLUDES_ */ - -/* Child system includes */ -#ifndef ActuatorControl_MDLREF_HIDE_CHILD_ -#include "Actuator_Control.h" -#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/ - -#ifndef ActuatorControl_MDLREF_HIDE_CHILD_ -#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/ - -#ifndef ActuatorControl_MDLREF_HIDE_CHILD_ -#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/ - -#ifndef ActuatorControl_MDLREF_HIDE_CHILD_ -#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/ - -/* Model Code Variants */ - -/* Forward declaration for rtModel */ -typedef struct tag_RTM_ActuatorControl_T RT_MODEL_ActuatorControl_T; - -/* Block signals and states (default storage) for model 'ActuatorControl' */ -#ifndef ActuatorControl_MDLREF_HIDE_CHILD_ - -typedef struct { - real_T Integrator; /* '/Integrator' */ - real_T Integrator_i; /* '/Integrator' */ - real_T Integrator_f; /* '/Integrator' */ - real_T Integrator_DSTATE; /* '/Integrator' */ - real_T UD_DSTATE; /* '/UD' */ - real_T Integrator_DSTATE_n; /* '/Integrator' */ - real_T UD_DSTATE_o; /* '/UD' */ - real_T Integrator_DSTATE_h; /* '/Integrator' */ - real_T UD_DSTATE_j; /* '/UD' */ -} DW_ActuatorControl_f_T; - -#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/ - -#ifndef ActuatorControl_MDLREF_HIDE_CHILD_ - -/* Real-time Model Data Structure */ -struct tag_RTM_ActuatorControl_T { - const char_T **errorStatus; -}; - -#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/ - -#ifndef ActuatorControl_MDLREF_HIDE_CHILD_ - -typedef struct { - RT_MODEL_ActuatorControl_T rtm; -} MdlrefDW_ActuatorControl_T; - -#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/ - -extern void ActuatorControl_Disable(void); -extern void Actuator_Control(const int16_T rtu_Act1_pos, const real_T - rtu_Act1_cmd, const int16_T rtu_Act2_pos, const real_T rtu_Act2_cmd, const - int16_T rtu_Act3_pos, const real_T rtu_Act3_cmd, int16_T *rty_Actuator1, - int16_T *rty_Actuator2, int16_T *rty_Actuator3); - -/* Model reference registration function */ -extern void ActuatorControl_initialize(const char_T **rt_errorStatus); - -#ifndef ActuatorControl_MDLREF_HIDE_CHILD_ - -extern MdlrefDW_ActuatorControl_T ActuatorControl_MdlrefDW; - -#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/ - -#ifndef ActuatorControl_MDLREF_HIDE_CHILD_ - -/* Block states (default storage) */ -extern DW_ActuatorControl_f_T ActuatorControl_DW; - -#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/ - -/*- - * The generated code includes comments that allow you to trace directly - * back to the appropriate location in the model. The basic format - * is /block_name, where system is the system number (uniquely - * assigned by Simulink) and block_name is the name of the block. - * - * Use the MATLAB hilite_system command to trace the generated code back - * to the model. For example, - * - * hilite_system('') - opens system 3 - * hilite_system('/Kp') - opens and selects block Kp which resides in S3 - * - * Here is the system hierarchy for this model - * - * '' : 'ActuatorControl' - * '' : 'ActuatorControl/Actuator_Control' - * '' : 'ActuatorControl/Actuator_Control/Actuaor1_loop' - * '' : 'ActuatorControl/Actuator_Control/Actuaor2_loop' - * '' : 'ActuatorControl/Actuator_Control/Actuaor3_loop' - * '' : 'ActuatorControl/Actuator_Control/Actuaor1_loop/Difference' - * '' : 'ActuatorControl/Actuator_Control/Actuaor2_loop/Difference' - * '' : 'ActuatorControl/Actuator_Control/Actuaor3_loop/Difference' - */ - -/*- - * Requirements for '': ActuatorControl - */ -#endif /* RTW_HEADER_ActuatorControl_h_ */ - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/slprj/ert/ActuatorControl/ActuatorControl_mr_codeInfo.mat b/src/validation/slprj/ert/ActuatorControl/ActuatorControl_mr_codeInfo.mat deleted file mode 100644 index 55819895a4619ec5d8d039bb1b42e418738f57ff..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/ActuatorControl_mr_codeInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/buildInfo.mat b/src/validation/slprj/ert/ActuatorControl/buildInfo.mat deleted file mode 100644 index 4ed3ea9d19f5ab994d2bc9911e705d474dd4d67b..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/buildInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/codedescriptor.dmr b/src/validation/slprj/ert/ActuatorControl/codedescriptor.dmr deleted file mode 100644 index 96761721c4a7a40306dfa608eae788d2bcb62886..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/codedescriptor.dmr and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/defines.txt b/src/validation/slprj/ert/ActuatorControl/defines.txt deleted file mode 100644 index e230bb22626946320b4db04cbdb0120c8da46d7b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/defines.txt +++ /dev/null @@ -1,15 +0,0 @@ -MODEL=ActuatorControl -NUMST=1 -NCSTATES=0 -HAVESTDIO -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -CLASSIC_INTERFACE=0 -ALLOCATIONFCN=0 -TID01EQ=0 -PORTABLE_WORDSIZES -TERMFCN=0 -ONESTEPFCN=1 -MAT_FILE=0 -MULTI_INSTANCE_CODE=0 -INTEGER_CODE=0 -MT=1 diff --git a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_c.html b/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_c.html deleted file mode 100644 index 7a47a09559c79ce6b8c7b11c265062fdbd23bcd8..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_c.html +++ /dev/null @@ -1,826 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * Academic License - for use in teaching, academic research, and meeting
    3 * course requirements at degree granting institutions only. Not for
    4 * government, commercial, or other organizational use.
    5 *
    6 * File: ActuatorControl.c
    7 *
    8 * Code generated for Simulink model 'ActuatorControl'.
    9 *
    10 * Model version : 1.72
    11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
    12 * C/C++ source code generated on : Thu Jul 16 18:51:02 2020
    13 *
    14 * Target selection: ert.tlc
    15 * Embedded hardware selection: Intel->x86-32 (Windows32)
    16 * Code generation objectives:
    17 * 1. Execution efficiency
    18 * 2. RAM efficiency
    19 * Validation result: Not run
    20 */
    21
    22#include "ActuatorControl.h"
    23
    24/* Macros for accessing real-time model data structure */
    25#ifndef rtmGetErrorStatus
    26# define rtmGetErrorStatus(rtm) (*((rtm)->errorStatus))
    27#endif
    28
    29#ifndef rtmSetErrorStatus
    30# define rtmSetErrorStatus(rtm, val) (*((rtm)->errorStatus) = (val))
    31#endif
    32
    33#ifndef rtmGetErrorStatusPointer
    34# define rtmGetErrorStatusPointer(rtm) (rtm)->errorStatus
    35#endif
    36
    37#ifndef rtmSetErrorStatusPointer
    38# define rtmSetErrorStatusPointer(rtm, val) ((rtm)->errorStatus = (val))
    39#endif
    40
    41MdlrefDW_ActuatorControl_T ActuatorControl_MdlrefDW;
    42
    43/* Block states (default storage) */
    44DW_ActuatorControl_f_T ActuatorControl_DW;
    45extern void Actuator_Actuator1_loop_Disable(void);
    46extern void ActuatorControl_Actuator1_loop(real_T rtu_Act1_pos, real_T
    47 rtu_Act1_cmd, real_T *rty_Actuator1);
    48extern void Actuator_Actuator2_loop_Disable(void);
    49extern void ActuatorControl_Actuator2_loop(real_T rtu_Act2_pos, real_T
    50 rtu_Act2_cmd, real_T *rty_Actuator2);
    51extern void Actuator_Actuator3_loop_Disable(void);
    52extern void ActuatorControl_Actuator3_loop(real_T rtu_Act3_pos, real_T
    53 rtu_Act3_cmd, real_T *rty_Actuator3);
    54
    55/* Disable for Simulink Function: '<S1>/Actuaor1_loop' */
    56void Actuator_Actuator1_loop_Disable(void)
    57{
    58 /* Disable for DiscreteIntegrator: '<S2>/Integrator' */
    59 ActuatorControl_DW.Integrator_DSTATE_h = ActuatorControl_DW.Integrator_f;
    60}
    61
    62/* Output and update for Simulink Function: '<S1>/Actuaor1_loop' */
    63void ActuatorControl_Actuator1_loop(real_T rtu_Act1_pos, real_T rtu_Act1_cmd,
    64 real_T *rty_Actuator1)
    65{
    66 real_T rtb_Sum;
    67
    68 /* DiscreteIntegrator: '<S2>/Integrator' */
    69 ActuatorControl_DW.Integrator_f = ActuatorControl_DW.Integrator_DSTATE_h;
    70
    71 /* Sum: '<S2>/Sum' incorporates:
    72 * SignalConversion generated from: '<S2>/Act1_cmd'
    73 * SignalConversion generated from: '<S2>/Act1_pos'
    74 */
    75 rtb_Sum = rtu_Act1_cmd - rtu_Act1_pos;
    76
    77 /* SignalConversion generated from: '<S2>/Actuator1' incorporates:
    78 * Gain: '<S2>/Gain'
    79 * Gain: '<S2>/Gain1'
    80 * Gain: '<S2>/Gain3'
    81 * Gain: '<S2>/Gain4'
    82 * Sum: '<S2>/Sum1'
    83 * Sum: '<S5>/Diff'
    84 * UnitDelay: '<S5>/UD'
    85 *
    86 * Block description for '<S5>/Diff':
    87 *
    88 * Add in CPU
    89 *
    90 * Block description for '<S5>/UD':
    91 *
    92 * Store in Global RAM
    93 */
    94 *rty_Actuator1 = ((0.001 * ActuatorControl_DW.Integrator_f) + (0.339 * rtb_Sum))
    95 - (((rtb_Sum - ActuatorControl_DW.UD_DSTATE_j) * 0.00272) * 0.001);
    96
    97 /* Update for DiscreteIntegrator: '<S2>/Integrator' incorporates:
    98 * Gain: '<S2>/Gain2'
    99 */
    100 ActuatorControl_DW.Integrator_DSTATE_h += 2.73 * rtb_Sum;
    101 if (ActuatorControl_DW.Integrator_DSTATE_h >= 0.1) {
    102 ActuatorControl_DW.Integrator_DSTATE_h = 0.1;
    103 } else {
    104 if (ActuatorControl_DW.Integrator_DSTATE_h <= -0.1) {
    105 ActuatorControl_DW.Integrator_DSTATE_h = -0.1;
    106 }
    107 }
    108
    109 /* End of Update for DiscreteIntegrator: '<S2>/Integrator' */
    110
    111 /* Update for UnitDelay: '<S5>/UD'
    112 *
    113 * Block description for '<S5>/UD':
    114 *
    115 * Store in Global RAM
    116 */
    117 ActuatorControl_DW.UD_DSTATE_j = rtb_Sum;
    118}
    119
    120/* Disable for Simulink Function: '<S1>/Actuaor2_loop' */
    121void Actuator_Actuator2_loop_Disable(void)
    122{
    123 /* Disable for DiscreteIntegrator: '<S3>/Integrator' */
    124 ActuatorControl_DW.Integrator_DSTATE_n = ActuatorControl_DW.Integrator_i;
    125}
    126
    127/* Output and update for Simulink Function: '<S1>/Actuaor2_loop' */
    128void ActuatorControl_Actuator2_loop(real_T rtu_Act2_pos, real_T rtu_Act2_cmd,
    129 real_T *rty_Actuator2)
    130{
    131 real_T rtb_Sum;
    132
    133 /* DiscreteIntegrator: '<S3>/Integrator' */
    134 ActuatorControl_DW.Integrator_i = ActuatorControl_DW.Integrator_DSTATE_n;
    135
    136 /* Sum: '<S3>/Sum' incorporates:
    137 * SignalConversion generated from: '<S3>/Act2_cmd'
    138 * SignalConversion generated from: '<S3>/Act2_pos'
    139 */
    140 rtb_Sum = rtu_Act2_cmd - rtu_Act2_pos;
    141
    142 /* SignalConversion generated from: '<S3>/Actuator2' incorporates:
    143 * Gain: '<S3>/Gain'
    144 * Gain: '<S3>/Gain1'
    145 * Gain: '<S3>/Gain3'
    146 * Gain: '<S3>/Gain4'
    147 * Sum: '<S3>/Sum1'
    148 * Sum: '<S6>/Diff'
    149 * UnitDelay: '<S6>/UD'
    150 *
    151 * Block description for '<S6>/Diff':
    152 *
    153 * Add in CPU
    154 *
    155 * Block description for '<S6>/UD':
    156 *
    157 * Store in Global RAM
    158 */
    159 *rty_Actuator2 = ((0.001 * ActuatorControl_DW.Integrator_i) + (0.339 * rtb_Sum))
    160 - (((rtb_Sum - ActuatorControl_DW.UD_DSTATE_o) * 0.00272) * 0.001);
    161
    162 /* Update for DiscreteIntegrator: '<S3>/Integrator' incorporates:
    163 * Gain: '<S3>/Gain2'
    164 */
    165 ActuatorControl_DW.Integrator_DSTATE_n += 2.73 * rtb_Sum;
    166 if (ActuatorControl_DW.Integrator_DSTATE_n >= 0.1) {
    167 ActuatorControl_DW.Integrator_DSTATE_n = 0.1;
    168 } else {
    169 if (ActuatorControl_DW.Integrator_DSTATE_n <= -0.1) {
    170 ActuatorControl_DW.Integrator_DSTATE_n = -0.1;
    171 }
    172 }
    173
    174 /* End of Update for DiscreteIntegrator: '<S3>/Integrator' */
    175
    176 /* Update for UnitDelay: '<S6>/UD'
    177 *
    178 * Block description for '<S6>/UD':
    179 *
    180 * Store in Global RAM
    181 */
    182 ActuatorControl_DW.UD_DSTATE_o = rtb_Sum;
    183}
    184
    185/* Disable for Simulink Function: '<S1>/Actuaor3_loop' */
    186void Actuator_Actuator3_loop_Disable(void)
    187{
    188 /* Disable for DiscreteIntegrator: '<S4>/Integrator' */
    189 ActuatorControl_DW.Integrator_DSTATE = ActuatorControl_DW.Integrator;
    190}
    191
    192/* Output and update for Simulink Function: '<S1>/Actuaor3_loop' */
    193void ActuatorControl_Actuator3_loop(real_T rtu_Act3_pos, real_T rtu_Act3_cmd,
    194 real_T *rty_Actuator3)
    195{
    196 real_T rtb_Sum;
    197
    198 /* DiscreteIntegrator: '<S4>/Integrator' */
    199 ActuatorControl_DW.Integrator = ActuatorControl_DW.Integrator_DSTATE;
    200
    201 /* Sum: '<S4>/Sum' incorporates:
    202 * SignalConversion generated from: '<S4>/Act3_cmd'
    203 * SignalConversion generated from: '<S4>/Act3_pos'
    204 */
    205 rtb_Sum = rtu_Act3_cmd - rtu_Act3_pos;
    206
    207 /* SignalConversion generated from: '<S4>/Actuator3' incorporates:
    208 * Gain: '<S4>/Gain'
    209 * Gain: '<S4>/Gain1'
    210 * Gain: '<S4>/Gain3'
    211 * Gain: '<S4>/Gain4'
    212 * Sum: '<S4>/Sum1'
    213 * Sum: '<S7>/Diff'
    214 * UnitDelay: '<S7>/UD'
    215 *
    216 * Block description for '<S7>/Diff':
    217 *
    218 * Add in CPU
    219 *
    220 * Block description for '<S7>/UD':
    221 *
    222 * Store in Global RAM
    223 */
    224 *rty_Actuator3 = ((0.001 * ActuatorControl_DW.Integrator) + (0.339 * rtb_Sum))
    225 - (((rtb_Sum - ActuatorControl_DW.UD_DSTATE) * 0.00272) * 0.001);
    226
    227 /* Update for DiscreteIntegrator: '<S4>/Integrator' incorporates:
    228 * Gain: '<S4>/Gain2'
    229 */
    230 ActuatorControl_DW.Integrator_DSTATE += 2.73 * rtb_Sum;
    231 if (ActuatorControl_DW.Integrator_DSTATE >= 0.1) {
    232 ActuatorControl_DW.Integrator_DSTATE = 0.1;
    233 } else {
    234 if (ActuatorControl_DW.Integrator_DSTATE <= -0.1) {
    235 ActuatorControl_DW.Integrator_DSTATE = -0.1;
    236 }
    237 }
    238
    239 /* End of Update for DiscreteIntegrator: '<S4>/Integrator' */
    240
    241 /* Update for UnitDelay: '<S7>/UD'
    242 *
    243 * Block description for '<S7>/UD':
    244 *
    245 * Store in Global RAM
    246 */
    247 ActuatorControl_DW.UD_DSTATE = rtb_Sum;
    248}
    249
    250/* Disable for referenced model: 'ActuatorControl' */
    251void ActuatorControl_Disable(void)
    252{
    253 /* Disable for S-Function (sfun_private_function_caller) generated from: '<Root>/Actuator_Control' incorporates:
    254 * SubSystem: '<Root>/Actuator_Control'
    255 */
    256 /* Disable for S-Function (sfun_private_function_caller) generated from: '<S1>/Actuaor3_loop' incorporates:
    257 * SubSystem: '<S1>/Actuaor3_loop'
    258 */
    259 Actuator_Actuator3_loop_Disable();
    260
    261 /* End of Disable for S-Function (sfun_private_function_caller) generated from: '<S1>/Actuaor3_loop' */
    262
    263 /* Disable for S-Function (sfun_private_function_caller) generated from: '<S1>/Actuaor2_loop' incorporates:
    264 * SubSystem: '<S1>/Actuaor2_loop'
    265 */
    266 Actuator_Actuator2_loop_Disable();
    267
    268 /* End of Disable for S-Function (sfun_private_function_caller) generated from: '<S1>/Actuaor2_loop' */
    269
    270 /* Disable for S-Function (sfun_private_function_caller) generated from: '<S1>/Actuaor1_loop' incorporates:
    271 * SubSystem: '<S1>/Actuaor1_loop'
    272 */
    273 Actuator_Actuator1_loop_Disable();
    274
    275 /* End of Disable for S-Function (sfun_private_function_caller) generated from: '<S1>/Actuaor1_loop' */
    276 /* End of Disable for S-Function (sfun_private_function_caller) generated from: '<Root>/Actuator_Control' */
    277}
    278
    279/* Output and update for referenced model: 'ActuatorControl' */
    280void Actuator_Control(const int16_T rtu_Act1_pos, const real_T rtu_Act1_cmd,
    281 const int16_T rtu_Act2_pos, const real_T rtu_Act2_cmd,
    282 const int16_T rtu_Act3_pos, const real_T rtu_Act3_cmd,
    283 int16_T *rty_Actuator1, int16_T *rty_Actuator2, int16_T
    284 *rty_Actuator3)
    285{
    286 real_T rtb_TmpSignalConversionAtAct1_c;
    287
    288 /* Outputs for Function Call SubSystem: '<Root>/Actuator_Control' */
    289 /* Gain: '<S1>/Scaling4' incorporates:
    290 * DataTypeConversion: '<S1>/TypeConversion4'
    291 * SignalConversion generated from: '<S1>/Act3_pos'
    292 */
    293 rtb_TmpSignalConversionAtAct1_c = 3.0518509475997192E-6 * ((real_T)
    294 rtu_Act3_pos);
    295
    296 /* FunctionCaller: '<S1>/Actuator3_loop_caller' incorporates:
    297 * SignalConversion generated from: '<S1>/Act3_cmd'
    298 */
    299 ActuatorControl_Actuator3_loop(rtb_TmpSignalConversionAtAct1_c, rtu_Act3_cmd,
    300 &rtb_TmpSignalConversionAtAct1_c);
    301
    302 /* Saturate: '<S1>/Saturation2' */
    303 if (rtb_TmpSignalConversionAtAct1_c > 0.3) {
    304 rtb_TmpSignalConversionAtAct1_c = 0.3;
    305 } else {
    306 if (rtb_TmpSignalConversionAtAct1_c < -0.3) {
    307 rtb_TmpSignalConversionAtAct1_c = -0.3;
    308 }
    309 }
    310
    311 /* End of Saturate: '<S1>/Saturation2' */
    312
    313 /* Gain: '<S1>/Scaling5' */
    314 rtb_TmpSignalConversionAtAct1_c *= 109223.33333333334;
    315
    316 /* SignalConversion generated from: '<S1>/Actuator3' incorporates:
    317 * DataTypeConversion: '<S1>/TypeConversion5'
    318 */
    319 *rty_Actuator3 = (int16_T)floor(rtb_TmpSignalConversionAtAct1_c);
    320
    321 /* Gain: '<S1>/Scaling2' incorporates:
    322 * DataTypeConversion: '<S1>/TypeConversion2'
    323 * SignalConversion generated from: '<S1>/Act2_pos'
    324 */
    325 rtb_TmpSignalConversionAtAct1_c = 3.0518509475997192E-6 * ((real_T)
    326 rtu_Act2_pos);
    327
    328 /* FunctionCaller: '<S1>/Actuator2_loop_caller' incorporates:
    329 * SignalConversion generated from: '<S1>/Act2_cmd'
    330 */
    331 ActuatorControl_Actuator2_loop(rtb_TmpSignalConversionAtAct1_c, rtu_Act2_cmd,
    332 &rtb_TmpSignalConversionAtAct1_c);
    333
    334 /* Saturate: '<S1>/Saturation1' */
    335 if (rtb_TmpSignalConversionAtAct1_c > 0.3) {
    336 rtb_TmpSignalConversionAtAct1_c = 0.3;
    337 } else {
    338 if (rtb_TmpSignalConversionAtAct1_c < -0.3) {
    339 rtb_TmpSignalConversionAtAct1_c = -0.3;
    340 }
    341 }
    342
    343 /* End of Saturate: '<S1>/Saturation1' */
    344
    345 /* Gain: '<S1>/Scaling3' */
    346 rtb_TmpSignalConversionAtAct1_c *= 109223.33333333334;
    347
    348 /* SignalConversion generated from: '<S1>/Actuator2' incorporates:
    349 * DataTypeConversion: '<S1>/TypeConversion3'
    350 */
    351 *rty_Actuator2 = (int16_T)floor(rtb_TmpSignalConversionAtAct1_c);
    352
    353 /* Gain: '<S1>/Scaling' incorporates:
    354 * DataTypeConversion: '<S1>/TypeConversion'
    355 * SignalConversion generated from: '<S1>/Act1_pos'
    356 */
    357 rtb_TmpSignalConversionAtAct1_c = 3.0518509475997192E-6 * ((real_T)
    358 rtu_Act1_pos);
    359
    360 /* FunctionCaller: '<S1>/Actuator1_loop_caller' incorporates:
    361 * SignalConversion generated from: '<S1>/Act1_cmd'
    362 */
    363 ActuatorControl_Actuator1_loop(rtb_TmpSignalConversionAtAct1_c, rtu_Act1_cmd,
    364 &rtb_TmpSignalConversionAtAct1_c);
    365
    366 /* Saturate: '<S1>/Saturation' */
    367 if (rtb_TmpSignalConversionAtAct1_c > 0.3) {
    368 rtb_TmpSignalConversionAtAct1_c = 0.3;
    369 } else {
    370 if (rtb_TmpSignalConversionAtAct1_c < -0.3) {
    371 rtb_TmpSignalConversionAtAct1_c = -0.3;
    372 }
    373 }
    374
    375 /* End of Saturate: '<S1>/Saturation' */
    376
    377 /* Gain: '<S1>/Scaling1' */
    378 rtb_TmpSignalConversionAtAct1_c *= 109223.33333333334;
    379
    380 /* SignalConversion generated from: '<S1>/Actuator1' incorporates:
    381 * DataTypeConversion: '<S1>/TypeConversion1'
    382 */
    383 *rty_Actuator1 = (int16_T)floor(rtb_TmpSignalConversionAtAct1_c);
    384
    385 /* End of Outputs for SubSystem: '<Root>/Actuator_Control' */
    386}
    387
    388/* Model initialize function */
    389void ActuatorControl_initialize(const char_T **rt_errorStatus)
    390{
    391 RT_MODEL_ActuatorControl_T *const ActuatorControl_M =
    392 &(ActuatorControl_MdlrefDW.rtm);
    393
    394 /* Registration code */
    395
    396 /* initialize error status */
    397 rtmSetErrorStatusPointer(ActuatorControl_M, rt_errorStatus);
    398}
    399
    400/*
    401 * File trailer for generated code.
    402 *
    403 * [EOF]
    404 */
    405
    -
    - - diff --git a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_codegen_rpt.html b/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_codegen_rpt.html deleted file mode 100644 index 0804bc6223e71188b08ba9c27c0e6324a43c17cf..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_codegen_rpt.html +++ /dev/null @@ -1,33 +0,0 @@ - - - -ActuatorControl Code Generation Report - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_coderassumptions.html b/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_coderassumptions.html deleted file mode 100644 index 23e7dcfcc892c97f2e88ecc43df6636e177d069d..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_coderassumptions.html +++ /dev/null @@ -1,377 +0,0 @@ - - - -Coder Assumptions for 'ActuatorControl' - - - - -

    -Coder Assumptions for 'ActuatorControl' -

    -
    -

    -List of assumptions that you can check and expected results for selected target environment. For more information see, Verification of Code Generation Assumptions. -

    -
    -
    - -
    -

    -C Language Configuration for Intel->x86-32 (Windows32) Target Hardware -

    - - - - - - -
    -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -BitPerChar - -8 -
    -BitPerShort - -16 -
    -BitPerInt - -32 -
    -BitPerLong - -32 -
    -BitPerLongLong - -64 -
    -BitPerFloat - -32 -
    -BitPerDouble - -64 -
    -BitPerPointer - -32 -
    -BitPerSizeT - -32 -
    -BitPerPtrDiffT - -32 -
    -
    - - - - - - - - - - - - - - - - -
    -Endianess - -LittleEndian -
    -Shift right for signed integer is arithmetic shift - -True -
    -Signed integer division rounds to - -Zero -
    - -

    - -
    -

    -C Language Configuration for Development Computer -

    - - - - - - -
    -

    -Expected values are used only if the code has been compiled with PORTABLE_WORDSIZES defined, i.e. when you run a SIL simulation with PortableWordSizes set to 'on'. -

    -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -BitPerChar - -8 -
    -BitPerShort - -16 -
    -BitPerInt - -32 -
    -BitPerLong - -32 -
    -BitPerLongLong - -64 -
    -BitPerFloat - -32 -
    -BitPerDouble - -64 -
    -BitPerPointer - -64 -
    -BitPerSizeT - -64 -
    -BitPerPtrDiffT - -64 -
    -
    - - - - - - - - - - - - - - - - -
    -Endianess - -LittleEndian -
    -Shift right for signed integer is arithmetic shift - -True -
    -Signed integer division rounds to - -Zero -
    - -

    - -
    -

    -C Language Standard -

    - - - - - - -
    -

    -Zero initialization code has been optimized for model 'ActuatorControl'. -

    -

    - - - - - - - -
    -Initial value of a global integer variable is zero - -True -
    - -

    -

    -If the assumption is not correct, remove the optimization through the Configuration Parameters > Code Generation > Optimization settings. Alternatively, configure your target environment to make the assumption hold. -

    - -
    -

    -Floating-Point Numbers -

    - - - - - - -
    -

    -Code generation is configured to support floating-point numbers, therefore your target environment might perform subnormal number calculations. -

    -

    - - - - - - - - - - - - -
    -Flush-to-zero computed subnormal values (FTZ) - -False -
    -Flush-to-zero incoming subnormal values (DAZ) - -False -
    - -

    -

    -If the assumptions are not correct, subnormal numbers might cause mismatches between model and generated code simulation results. For more information see, Subnormal Number Performance. -

    - -
    - - - - diff --git a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_contents.html b/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_contents.html deleted file mode 100644 index 90f59e9c752e4587660f077b090a0277087ec4d0..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_contents.html +++ /dev/null @@ -1,220 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -Contents - - -
    - - -
    - -Summary - - -
    - -Subsystem Report - - -
    - -Traceability Report - - -
    - -Static Code Metrics Report - - -
    - -Code Replacements Report - - -
    - -Coder Assumptions - - -
    -
    - - - - - - - - - - - - - -
    - -Generated Code - - -
    - - - - - - - - - - - - -
    -[-] - -Model files -
    - - - - - - - - - - - - -
    - -ActuatorControl.c - - -
    - -ActuatorControl.h - - -
    - -
    - -
    - - - - - - - - - - - - -
    -[+] - -Shared files (3) -
    - - - - - - - - - - - - - - - - - - -
    - -
    -
    - - - diff --git a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_h.html b/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_h.html deleted file mode 100644 index ee7d4c104ac2cc47be441d7b1f9ef57efdd89411..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_h.html +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * Academic License - for use in teaching, academic research, and meeting
    3 * course requirements at degree granting institutions only. Not for
    4 * government, commercial, or other organizational use.
    5 *
    6 * File: ActuatorControl.h
    7 *
    8 * Code generated for Simulink model 'ActuatorControl'.
    9 *
    10 * Model version : 1.72
    11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
    12 * C/C++ source code generated on : Thu Jul 16 18:51:02 2020
    13 *
    14 * Target selection: ert.tlc
    15 * Embedded hardware selection: Intel->x86-32 (Windows32)
    16 * Code generation objectives:
    17 * 1. Execution efficiency
    18 * 2. RAM efficiency
    19 * Validation result: Not run
    20 */
    21
    22#ifndef RTW_HEADER_ActuatorControl_h_
    23#define RTW_HEADER_ActuatorControl_h_
    24#include <math.h>
    25#ifndef ActuatorControl_COMMON_INCLUDES_
    26# define ActuatorControl_COMMON_INCLUDES_
    27#include "rtwtypes.h"
    28#include "rtw_continuous.h"
    29#include "rtw_solver.h"
    30#endif /* ActuatorControl_COMMON_INCLUDES_ */
    31
    32/* Child system includes */
    33#ifndef ActuatorControl_MDLREF_HIDE_CHILD_
    34#include "Actuator_Control.h"
    35#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/
    36
    37#ifndef ActuatorControl_MDLREF_HIDE_CHILD_
    38#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/
    39
    40#ifndef ActuatorControl_MDLREF_HIDE_CHILD_
    41#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/
    42
    43#ifndef ActuatorControl_MDLREF_HIDE_CHILD_
    44#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/
    45
    46/* Model Code Variants */
    47
    48/* Forward declaration for rtModel */
    49typedef struct tag_RTM_ActuatorControl_T RT_MODEL_ActuatorControl_T;
    50
    51/* Block signals and states (default storage) for model 'ActuatorControl' */
    52#ifndef ActuatorControl_MDLREF_HIDE_CHILD_
    53
    54typedef struct {
    55 real_T Integrator; /* '<S4>/Integrator' */
    56 real_T Integrator_i; /* '<S3>/Integrator' */
    57 real_T Integrator_f; /* '<S2>/Integrator' */
    58 real_T Integrator_DSTATE; /* '<S4>/Integrator' */
    59 real_T UD_DSTATE; /* '<S7>/UD' */
    60 real_T Integrator_DSTATE_n; /* '<S3>/Integrator' */
    61 real_T UD_DSTATE_o; /* '<S6>/UD' */
    62 real_T Integrator_DSTATE_h; /* '<S2>/Integrator' */
    63 real_T UD_DSTATE_j; /* '<S5>/UD' */
    64} DW_ActuatorControl_f_T;
    65
    66#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/
    67
    68#ifndef ActuatorControl_MDLREF_HIDE_CHILD_
    69
    70/* Real-time Model Data Structure */
    71struct tag_RTM_ActuatorControl_T {
    72 const char_T **errorStatus;
    73};
    74
    75#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/
    76
    77#ifndef ActuatorControl_MDLREF_HIDE_CHILD_
    78
    79typedef struct {
    80 RT_MODEL_ActuatorControl_T rtm;
    81} MdlrefDW_ActuatorControl_T;
    82
    83#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/
    84
    85extern void ActuatorControl_Disable(void);
    86extern void Actuator_Control(const int16_T rtu_Act1_pos, const real_T
    87 rtu_Act1_cmd, const int16_T rtu_Act2_pos, const real_T rtu_Act2_cmd, const
    88 int16_T rtu_Act3_pos, const real_T rtu_Act3_cmd, int16_T *rty_Actuator1,
    89 int16_T *rty_Actuator2, int16_T *rty_Actuator3);
    90
    91/* Model reference registration function */
    92extern void ActuatorControl_initialize(const char_T **rt_errorStatus);
    93
    94#ifndef ActuatorControl_MDLREF_HIDE_CHILD_
    95
    96extern MdlrefDW_ActuatorControl_T ActuatorControl_MdlrefDW;
    97
    98#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/
    99
    100#ifndef ActuatorControl_MDLREF_HIDE_CHILD_
    101
    102/* Block states (default storage) */
    103extern DW_ActuatorControl_f_T ActuatorControl_DW;
    104
    105#endif /*ActuatorControl_MDLREF_HIDE_CHILD_*/
    106
    107/*-
    108 * The generated code includes comments that allow you to trace directly
    109 * back to the appropriate location in the model. The basic format
    110 * is <system>/block_name, where system is the system number (uniquely
    111 * assigned by Simulink) and block_name is the name of the block.
    112 *
    113 * Use the MATLAB hilite_system command to trace the generated code back
    114 * to the model. For example,
    115 *
    116 * hilite_system('<S3>') - opens system 3
    117 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
    118 *
    119 * Here is the system hierarchy for this model
    120 *
    121 * '<Root>' : 'ActuatorControl'
    122 * '<S1>' : 'ActuatorControl/Actuator_Control'
    123 * '<S2>' : 'ActuatorControl/Actuator_Control/Actuaor1_loop'
    124 * '<S3>' : 'ActuatorControl/Actuator_Control/Actuaor2_loop'
    125 * '<S4>' : 'ActuatorControl/Actuator_Control/Actuaor3_loop'
    126 * '<S5>' : 'ActuatorControl/Actuator_Control/Actuaor1_loop/Difference'
    127 * '<S6>' : 'ActuatorControl/Actuator_Control/Actuaor2_loop/Difference'
    128 * '<S7>' : 'ActuatorControl/Actuator_Control/Actuaor3_loop/Difference'
    129 */
    130
    131/*-
    132 * Requirements for '<Root>': ActuatorControl
    133 */
    134#endif /* RTW_HEADER_ActuatorControl_h_ */
    135
    136/*
    137 * File trailer for generated code.
    138 *
    139 * [EOF]
    140 */
    141
    -
    - - diff --git a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_metrics.html b/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_metrics.html deleted file mode 100644 index 7c84f5febd595d150c84019a262d0cdc662a42ed..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_metrics.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -Static Code Metrics Report - - - - -

    -Static Code Metrics Report -

    -
    - -
    -Static Code Metrics report is not generated. On the Configuration Parameters > Code Generation > Report pane, select Generate static code metrics. On the model diagram window, select Code > C/C++ Code > Code Generation Report > Open Model Report or rebuild the model. - - - diff --git a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_replacements.html b/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_replacements.html deleted file mode 100644 index 85ff6f0a2e6c9492327a8910bc774a143311acf6..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_replacements.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -Code replacements in ActuatorControl - - - - -

    -Code replacements in ActuatorControl -

    -
    - -
    -Code replacements report not generated. Select 'Summarize which blocks triggered code replacements'. - - - diff --git a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_subsystems.html b/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_subsystems.html deleted file mode 100644 index e3609270722596d23df002bf3a767931c603dc49..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_subsystems.html +++ /dev/null @@ -1,174 +0,0 @@ - - - -Non-virtual subsystems in ActuatorControl - - - - -

    -Non-virtual subsystems in ActuatorControl -

    -
    - -
    -
    - -
    -

    -1. Code Mapping [hide] -

    - - - - - - - - - - -
    -

    -The following table:

      -
    • -provides a mapping from the non-virtual subsystems in the model to functions or reusable functions in the generated code and -
    • -
    • -notes exceptions that caused some non-virtual subsystems to not reuse code even though they were assigned a function packaging setting ('Function packaging' entry on the Subsystem Block Dialog) of 'Auto' or 'Reusable function'. -
    • - -
    - -

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -Subsystem - - - - -Reuse Setting - - - - -Reuse Outcome - - - - -Outcome Diagnostic - - -
    -<S2> - -Function - -Function(S2) - -normal -
    -<S3> - -Function - -Function(S3) - -normal -
    -<S4> - -Function - -Function(S4) - -normal -
    -<S1> - -Function - -Function(S1) - -normal -
    - -
    -

    -2. Code Reuse Exceptions [hide] -

    - - - - - - - - - - -
    -

    -The following section provides details on each exception that caused a non-virtual subsystem with a function packaging setting of

      -
    • -'Auto' to become an inlined code segment, -
    • -
    • -'Auto' to become a non-reusable function without arguments, or -
    • -
    • -'Reusable function' to become a non-reusable function without arguments. -
    • - -
    -Note:This section does not report graphically identical non-virtual subsystems marked as 'Auto' that were not reused due to differences in their functional properties (such as dimensions, datatypes, work vectors, parameters, etc.). You may identify reasons for non-reuse in such cases by inspecting the differences in the functional attributes of the subsystems in the model or in the inlined generated code. -

    - -
    -
    No reuse exception in model -
    - - - - diff --git a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_survey.html b/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_survey.html deleted file mode 100644 index 52aa47ad3317834ec26f62018ac2db3c5aa62fd9..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_survey.html +++ /dev/null @@ -1,177 +0,0 @@ - - - -Code Generation Report for 'ActuatorControl' - - - - -

    -Code Generation Report for 'ActuatorControl' -

    -
    - -
    -
    - -
    -

    -Model Information -

    - - - - - - -
    -

    - - - - - - - - - - - - - - - - - -
    -Author - -bpotter -
    -Last Modified By - -super -
    -Model Version - -1.72 -
    -
    - -Configuration settings at time of code generation - - -

    - -
    -

    -Code Information -

    - - - - - - -
    -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -System Target File - -ert.tlc -
    -Hardware Device Type - -Intel->x86-32 (Windows32) -
    -Simulink Coder Version - -9.3 (R2020a) 18-Nov-2019 -
    -Timestamp of Generated Source Code - -Thu Jul 16 18:51:02 2020 -
    - - - -
    -Type of Build - -Exported Model Reference -
    -Objectives Specified - -Execution efficiency, RAM efficiency -
    - -

    - -
    -

    -Additional Information -

    - - - - - - -
    - - - - - - - -
    -Code Generation Advisor - -Not run -
    - -
    - - - - diff --git a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_trace.html b/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_trace.html deleted file mode 100644 index 416ac5eb6dfbd6d7e66b21890db10f1032010247..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_trace.html +++ /dev/null @@ -1,7 +0,0 @@ -Traceability Report for ActuatorControl - - - -

    Traceability Report for ActuatorControl

    -

    Traceability report is not generated. On the Configuration Parameters > Code Generation > Comments pane, select the Include comments parameter. On the Configuration Parameters dialog box, enter search keyword "GenerateTraceReport" and select the Traceability Report Contents parameters. Then, rebuild the model.

    - \ No newline at end of file diff --git a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_traceInfo.js b/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_traceInfo.js deleted file mode 100644 index 0e4640408c39b59a1a494a3ef7d64f022e219828..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/ActuatorControl_traceInfo.js +++ /dev/null @@ -1,189 +0,0 @@ -function RTW_rtwnameSIDMap() { - this.rtwnameHashMap = new Array(); - this.sidHashMap = new Array(); - this.rtwnameHashMap[""] = {sid: "ActuatorControl"}; - this.sidHashMap["ActuatorControl"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "ActuatorControl:37"}; - this.sidHashMap["ActuatorControl:37"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "ActuatorControl:252"}; - this.sidHashMap["ActuatorControl:252"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "ActuatorControl:344"}; - this.sidHashMap["ActuatorControl:344"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "ActuatorControl:359"}; - this.sidHashMap["ActuatorControl:359"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "ActuatorControl:254"}; - this.sidHashMap["ActuatorControl:254"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "ActuatorControl:346"}; - this.sidHashMap["ActuatorControl:346"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "ActuatorControl:361"}; - this.sidHashMap["ActuatorControl:361"] = {rtwname: ""}; - this.rtwnameHashMap["/Actuator_Control"] = {sid: "ActuatorControl:37"}; - this.sidHashMap["ActuatorControl:37"] = {rtwname: "/Actuator_Control"}; - this.rtwnameHashMap["/Actuator_Control"] = {sid: "ActuatorControl:47"}; - this.sidHashMap["ActuatorControl:47"] = {rtwname: "/Actuator_Control"}; - this.rtwnameHashMap["/Actuaor1_loop"] = {sid: "ActuatorControl:252"}; - this.sidHashMap["ActuatorControl:252"] = {rtwname: "/Actuaor1_loop"}; - this.rtwnameHashMap["/Actuaor2_loop"] = {sid: "ActuatorControl:344"}; - this.sidHashMap["ActuatorControl:344"] = {rtwname: "/Actuaor2_loop"}; - this.rtwnameHashMap["/Actuaor3_loop"] = {sid: "ActuatorControl:359"}; - this.sidHashMap["ActuatorControl:359"] = {rtwname: "/Actuaor3_loop"}; - this.rtwnameHashMap["/Actuator1_loop_caller"] = {sid: "ActuatorControl:374"}; - this.sidHashMap["ActuatorControl:374"] = {rtwname: "/Actuator1_loop_caller"}; - this.rtwnameHashMap["/Actuator2_loop_caller"] = {sid: "ActuatorControl:376"}; - this.sidHashMap["ActuatorControl:376"] = {rtwname: "/Actuator2_loop_caller"}; - this.rtwnameHashMap["/Actuator3_loop_caller"] = {sid: "ActuatorControl:377"}; - this.sidHashMap["ActuatorControl:377"] = {rtwname: "/Actuator3_loop_caller"}; - this.rtwnameHashMap["/Saturation"] = {sid: "ActuatorControl:261"}; - this.sidHashMap["ActuatorControl:261"] = {rtwname: "/Saturation"}; - this.rtwnameHashMap["/Saturation1"] = {sid: "ActuatorControl:277"}; - this.sidHashMap["ActuatorControl:277"] = {rtwname: "/Saturation1"}; - this.rtwnameHashMap["/Saturation2"] = {sid: "ActuatorControl:292"}; - this.sidHashMap["ActuatorControl:292"] = {rtwname: "/Saturation2"}; - this.rtwnameHashMap["/Scaling"] = {sid: "ActuatorControl:262"}; - this.sidHashMap["ActuatorControl:262"] = {rtwname: "/Scaling"}; - this.rtwnameHashMap["/Scaling1"] = {sid: "ActuatorControl:263"}; - this.sidHashMap["ActuatorControl:263"] = {rtwname: "/Scaling1"}; - this.rtwnameHashMap["/Scaling2"] = {sid: "ActuatorControl:278"}; - this.sidHashMap["ActuatorControl:278"] = {rtwname: "/Scaling2"}; - this.rtwnameHashMap["/Scaling3"] = {sid: "ActuatorControl:279"}; - this.sidHashMap["ActuatorControl:279"] = {rtwname: "/Scaling3"}; - this.rtwnameHashMap["/Scaling4"] = {sid: "ActuatorControl:293"}; - this.sidHashMap["ActuatorControl:293"] = {rtwname: "/Scaling4"}; - this.rtwnameHashMap["/Scaling5"] = {sid: "ActuatorControl:294"}; - this.sidHashMap["ActuatorControl:294"] = {rtwname: "/Scaling5"}; - this.rtwnameHashMap["/TypeConversion"] = {sid: "ActuatorControl:265"}; - this.sidHashMap["ActuatorControl:265"] = {rtwname: "/TypeConversion"}; - this.rtwnameHashMap["/TypeConversion1"] = {sid: "ActuatorControl:266"}; - this.sidHashMap["ActuatorControl:266"] = {rtwname: "/TypeConversion1"}; - this.rtwnameHashMap["/TypeConversion2"] = {sid: "ActuatorControl:281"}; - this.sidHashMap["ActuatorControl:281"] = {rtwname: "/TypeConversion2"}; - this.rtwnameHashMap["/TypeConversion3"] = {sid: "ActuatorControl:282"}; - this.sidHashMap["ActuatorControl:282"] = {rtwname: "/TypeConversion3"}; - this.rtwnameHashMap["/TypeConversion4"] = {sid: "ActuatorControl:296"}; - this.sidHashMap["ActuatorControl:296"] = {rtwname: "/TypeConversion4"}; - this.rtwnameHashMap["/TypeConversion5"] = {sid: "ActuatorControl:297"}; - this.sidHashMap["ActuatorControl:297"] = {rtwname: "/TypeConversion5"}; - this.rtwnameHashMap["/Act1_pos"] = {sid: "ActuatorControl:48"}; - this.sidHashMap["ActuatorControl:48"] = {rtwname: "/Act1_pos"}; - this.rtwnameHashMap["/Act1_cmd"] = {sid: "ActuatorControl:49"}; - this.sidHashMap["ActuatorControl:49"] = {rtwname: "/Act1_cmd"}; - this.rtwnameHashMap["/Act2_pos"] = {sid: "ActuatorControl:50"}; - this.sidHashMap["ActuatorControl:50"] = {rtwname: "/Act2_pos"}; - this.rtwnameHashMap["/Act2_cmd"] = {sid: "ActuatorControl:51"}; - this.sidHashMap["ActuatorControl:51"] = {rtwname: "/Act2_cmd"}; - this.rtwnameHashMap["/Act3_pos"] = {sid: "ActuatorControl:52"}; - this.sidHashMap["ActuatorControl:52"] = {rtwname: "/Act3_pos"}; - this.rtwnameHashMap["/Act3_cmd"] = {sid: "ActuatorControl:53"}; - this.sidHashMap["ActuatorControl:53"] = {rtwname: "/Act3_cmd"}; - this.rtwnameHashMap["/Actuator1"] = {sid: "ActuatorControl:54"}; - this.sidHashMap["ActuatorControl:54"] = {rtwname: "/Actuator1"}; - this.rtwnameHashMap["/Actuator2"] = {sid: "ActuatorControl:55"}; - this.sidHashMap["ActuatorControl:55"] = {rtwname: "/Actuator2"}; - this.rtwnameHashMap["/Actuator3"] = {sid: "ActuatorControl:56"}; - this.sidHashMap["ActuatorControl:56"] = {rtwname: "/Actuator3"}; - this.rtwnameHashMap["/Actuator1_loop"] = {sid: "ActuatorControl:318"}; - this.sidHashMap["ActuatorControl:318"] = {rtwname: "/Actuator1_loop"}; - this.rtwnameHashMap["/Difference"] = {sid: "ActuatorControl:254"}; - this.sidHashMap["ActuatorControl:254"] = {rtwname: "/Difference"}; - this.rtwnameHashMap["/Gain"] = {sid: "ActuatorControl:255"}; - this.sidHashMap["ActuatorControl:255"] = {rtwname: "/Gain"}; - this.rtwnameHashMap["/Gain1"] = {sid: "ActuatorControl:256"}; - this.sidHashMap["ActuatorControl:256"] = {rtwname: "/Gain1"}; - this.rtwnameHashMap["/Gain2"] = {sid: "ActuatorControl:257"}; - this.sidHashMap["ActuatorControl:257"] = {rtwname: "/Gain2"}; - this.rtwnameHashMap["/Gain3"] = {sid: "ActuatorControl:336"}; - this.sidHashMap["ActuatorControl:336"] = {rtwname: "/Gain3"}; - this.rtwnameHashMap["/Gain4"] = {sid: "ActuatorControl:337"}; - this.sidHashMap["ActuatorControl:337"] = {rtwname: "/Gain4"}; - this.rtwnameHashMap["/Integrator"] = {sid: "ActuatorControl:258"}; - this.sidHashMap["ActuatorControl:258"] = {rtwname: "/Integrator"}; - this.rtwnameHashMap["/Sum"] = {sid: "ActuatorControl:342"}; - this.sidHashMap["ActuatorControl:342"] = {rtwname: "/Sum"}; - this.rtwnameHashMap["/Sum1"] = {sid: "ActuatorControl:259"}; - this.sidHashMap["ActuatorControl:259"] = {rtwname: "/Sum1"}; - this.rtwnameHashMap["/Act1_pos"] = {sid: "ActuatorControl:319"}; - this.sidHashMap["ActuatorControl:319"] = {rtwname: "/Act1_pos"}; - this.rtwnameHashMap["/Act1_cmd"] = {sid: "ActuatorControl:343"}; - this.sidHashMap["ActuatorControl:343"] = {rtwname: "/Act1_cmd"}; - this.rtwnameHashMap["/Actuator1"] = {sid: "ActuatorControl:320"}; - this.sidHashMap["ActuatorControl:320"] = {rtwname: "/Actuator1"}; - this.rtwnameHashMap["/Actuator2_loop"] = {sid: "ActuatorControl:345"}; - this.sidHashMap["ActuatorControl:345"] = {rtwname: "/Actuator2_loop"}; - this.rtwnameHashMap["/Difference"] = {sid: "ActuatorControl:346"}; - this.sidHashMap["ActuatorControl:346"] = {rtwname: "/Difference"}; - this.rtwnameHashMap["/Gain"] = {sid: "ActuatorControl:347"}; - this.sidHashMap["ActuatorControl:347"] = {rtwname: "/Gain"}; - this.rtwnameHashMap["/Gain1"] = {sid: "ActuatorControl:348"}; - this.sidHashMap["ActuatorControl:348"] = {rtwname: "/Gain1"}; - this.rtwnameHashMap["/Gain2"] = {sid: "ActuatorControl:349"}; - this.sidHashMap["ActuatorControl:349"] = {rtwname: "/Gain2"}; - this.rtwnameHashMap["/Gain3"] = {sid: "ActuatorControl:350"}; - this.sidHashMap["ActuatorControl:350"] = {rtwname: "/Gain3"}; - this.rtwnameHashMap["/Gain4"] = {sid: "ActuatorControl:351"}; - this.sidHashMap["ActuatorControl:351"] = {rtwname: "/Gain4"}; - this.rtwnameHashMap["/Integrator"] = {sid: "ActuatorControl:352"}; - this.sidHashMap["ActuatorControl:352"] = {rtwname: "/Integrator"}; - this.rtwnameHashMap["/Sum"] = {sid: "ActuatorControl:353"}; - this.sidHashMap["ActuatorControl:353"] = {rtwname: "/Sum"}; - this.rtwnameHashMap["/Sum1"] = {sid: "ActuatorControl:354"}; - this.sidHashMap["ActuatorControl:354"] = {rtwname: "/Sum1"}; - this.rtwnameHashMap["/Act2_pos"] = {sid: "ActuatorControl:355"}; - this.sidHashMap["ActuatorControl:355"] = {rtwname: "/Act2_pos"}; - this.rtwnameHashMap["/Act2_cmd"] = {sid: "ActuatorControl:356"}; - this.sidHashMap["ActuatorControl:356"] = {rtwname: "/Act2_cmd"}; - this.rtwnameHashMap["/Actuator2"] = {sid: "ActuatorControl:357"}; - this.sidHashMap["ActuatorControl:357"] = {rtwname: "/Actuator2"}; - this.rtwnameHashMap["/Actuator3_loop"] = {sid: "ActuatorControl:360"}; - this.sidHashMap["ActuatorControl:360"] = {rtwname: "/Actuator3_loop"}; - this.rtwnameHashMap["/Difference"] = {sid: "ActuatorControl:361"}; - this.sidHashMap["ActuatorControl:361"] = {rtwname: "/Difference"}; - this.rtwnameHashMap["/Gain"] = {sid: "ActuatorControl:362"}; - this.sidHashMap["ActuatorControl:362"] = {rtwname: "/Gain"}; - this.rtwnameHashMap["/Gain1"] = {sid: "ActuatorControl:363"}; - this.sidHashMap["ActuatorControl:363"] = {rtwname: "/Gain1"}; - this.rtwnameHashMap["/Gain2"] = {sid: "ActuatorControl:364"}; - this.sidHashMap["ActuatorControl:364"] = {rtwname: "/Gain2"}; - this.rtwnameHashMap["/Gain3"] = {sid: "ActuatorControl:365"}; - this.sidHashMap["ActuatorControl:365"] = {rtwname: "/Gain3"}; - this.rtwnameHashMap["/Gain4"] = {sid: "ActuatorControl:366"}; - this.sidHashMap["ActuatorControl:366"] = {rtwname: "/Gain4"}; - this.rtwnameHashMap["/Integrator"] = {sid: "ActuatorControl:367"}; - this.sidHashMap["ActuatorControl:367"] = {rtwname: "/Integrator"}; - this.rtwnameHashMap["/Sum"] = {sid: "ActuatorControl:368"}; - this.sidHashMap["ActuatorControl:368"] = {rtwname: "/Sum"}; - this.rtwnameHashMap["/Sum1"] = {sid: "ActuatorControl:369"}; - this.sidHashMap["ActuatorControl:369"] = {rtwname: "/Sum1"}; - this.rtwnameHashMap["/Act3_pos"] = {sid: "ActuatorControl:370"}; - this.sidHashMap["ActuatorControl:370"] = {rtwname: "/Act3_pos"}; - this.rtwnameHashMap["/Act3_cmd"] = {sid: "ActuatorControl:371"}; - this.sidHashMap["ActuatorControl:371"] = {rtwname: "/Act3_cmd"}; - this.rtwnameHashMap["/Actuator3"] = {sid: "ActuatorControl:372"}; - this.sidHashMap["ActuatorControl:372"] = {rtwname: "/Actuator3"}; - this.rtwnameHashMap["/U"] = {sid: "ActuatorControl:254:1"}; - this.sidHashMap["ActuatorControl:254:1"] = {rtwname: "/U"}; - this.rtwnameHashMap["/Diff"] = {sid: "ActuatorControl:254:2"}; - this.sidHashMap["ActuatorControl:254:2"] = {rtwname: "/Diff"}; - this.rtwnameHashMap["/UD"] = {sid: "ActuatorControl:254:3"}; - this.sidHashMap["ActuatorControl:254:3"] = {rtwname: "/UD"}; - this.rtwnameHashMap["/Y"] = {sid: "ActuatorControl:254:4"}; - this.sidHashMap["ActuatorControl:254:4"] = {rtwname: "/Y"}; - this.rtwnameHashMap["/U"] = {sid: "ActuatorControl:346:1"}; - this.sidHashMap["ActuatorControl:346:1"] = {rtwname: "/U"}; - this.rtwnameHashMap["/Diff"] = {sid: "ActuatorControl:346:2"}; - this.sidHashMap["ActuatorControl:346:2"] = {rtwname: "/Diff"}; - this.rtwnameHashMap["/UD"] = {sid: "ActuatorControl:346:3"}; - this.sidHashMap["ActuatorControl:346:3"] = {rtwname: "/UD"}; - this.rtwnameHashMap["/Y"] = {sid: "ActuatorControl:346:4"}; - this.sidHashMap["ActuatorControl:346:4"] = {rtwname: "/Y"}; - this.rtwnameHashMap["/U"] = {sid: "ActuatorControl:361:1"}; - this.sidHashMap["ActuatorControl:361:1"] = {rtwname: "/U"}; - this.rtwnameHashMap["/Diff"] = {sid: "ActuatorControl:361:2"}; - this.sidHashMap["ActuatorControl:361:2"] = {rtwname: "/Diff"}; - this.rtwnameHashMap["/UD"] = {sid: "ActuatorControl:361:3"}; - this.sidHashMap["ActuatorControl:361:3"] = {rtwname: "/UD"}; - this.rtwnameHashMap["/Y"] = {sid: "ActuatorControl:361:4"}; - this.sidHashMap["ActuatorControl:361:4"] = {rtwname: "/Y"}; - this.getSID = function(rtwname) { return this.rtwnameHashMap[rtwname];} - this.getRtwname = function(sid) { return this.sidHashMap[sid];} -} -RTW_rtwnameSIDMap.instance = new RTW_rtwnameSIDMap(); diff --git a/src/validation/slprj/ert/ActuatorControl/html/css/coder_app.css b/src/validation/slprj/ert/ActuatorControl/html/css/coder_app.css deleted file mode 100644 index d47cf0edddb4a21ffda06a2cbf05275f7fa4747d..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/css/coder_app.css +++ /dev/null @@ -1,184 +0,0 @@ -/* Copyright 2013-2018 The MathWorks, Inc. */ -pre#code { - font-family: Consolas, Courier; - font-size: small; -} - -.ct { - font-style: italic; - color: #117755 -} /* comment */ -.pp { - font-weight:bold; - color: #992211 -} /* preprocessor */ -.kw, .br { - font-weight:bold; - color: #112266 -} /* keyword or brace */ -.dt { - font-weight:bold; - color: #112266 -} /* data type */ -.tk { - font-style: normal; - color: #112266 -} /* regular token */ -pre#code a.req { - text-decoration: none; - color: #112266 -} -pre#code a.req_active { - cursor: pointer; - text-decoration: underline; -} -pre#code a.req_active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} -pre#code a.blk { - text-decoration: none; -} -pre#code a.blk_active { - cursor: pointer; - text-decoration: underline; -} -pre#code a.blk_active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} -a.hilite { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); -} /* highlight token */ -tr.hilite { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); -} /* highlight row */ -a.hiliteToken, tr.hiliteToken, td.hiliteToken { - background-color: #ffff99; -} -.hiliteCurrentLine, tr.hiliteCurrentLine > td { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); - box-shadow: inset 0 1px 0 0 rgba(150, 12, 116, 0.25), inset 0 -1px 0 0 rgba(150, 12, 116, 0.25); -} -span.hiliteTotalLine { - font-style: normal; - color: #aff; -} -a.tk { - text-decoration: none; -} -a.tk:hover { - text-decoration: none; -} -a.active { - text-decoration: underline; -} -a.active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} /* hyperlink */ -table.code { - border: 0px -} -table.code td { - vertical-align: top; -} -table.code td.highlightedCurrent { - background-color: rgba(150, 12, 116, 0.1); -} -table.code > tr:first { - text-align: right; -} /* hyperlink */ - -ul.popup_attrib_list { - list-style-type:none; - display: block; - margin: 0; - padding: 0; -} -ul.popup_attrib_list li { - list-style-type:none; - display: inline; - margin: 0 18px 0 0; - padding: 0; -} -.highlighted { - background-color:yellow; -} -a:class1 { - color: -webkit-link; - text-decoration: underline; - cursor: hand; -} -.scroll -{ - height:80px; - overflow:scroll; - overflow-x:hidden; -} -div#popup_window { - position: absolute; - background-color: rgb(203,203,255); - border: solid 3px #ECECEC; - border-radius: 5px; - /* shadow box around the window*/ - -moz-box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - -webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - padding: 2px; -} -div#popup_window a { - text-decoration: none; - color: green; -} -div#popup_window a:hover { - cursor: pointer; - text-decoration: underline; - color: blue; -} -div#popup_window tr.selected { - background-color: #ffff99; -} -div#token_usage_nav { - border-bottom: 1px solid gray; -} -table#token_usage_details { - cellpadding: 100px; - table-layout:fixed; - border: 0px; -} -.token_usage_details_tabrow { - width: 40px; -} -table#token_usage_details td { - padding-right: 5em; - padding-left: 1em; -} -.token_usage_details_tabrow:hover { - background-color: gray; -} -.nav_table td.hidden { - display: none; -} -table#codeTbl tr td { - color: #112266 -} -table#codeTbl tr td { - padding-left: 10px; -} -table#codeTbl tr td:first-child { - font-style: italic; - color: #888888; - text-align: right; - padding-left:0px; -} - diff --git a/src/validation/slprj/ert/ActuatorControl/html/define.js b/src/validation/slprj/ert/ActuatorControl/html/define.js deleted file mode 100644 index 6a5517179864bc5fb047c198c469f826c0702fa5..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/define.js +++ /dev/null @@ -1,93 +0,0 @@ -function CodeDefine() { -this.def = new Array(); -this.def["ActuatorControl_MdlrefDW"] = {file: "ActuatorControl_c.html",line:41,type:"var"}; -this.def["ActuatorControl_DW"] = {file: "ActuatorControl_c.html",line:44,type:"var"}; -this.def["Actuator_Actuator1_loop_Disable"] = {file: "ActuatorControl_c.html",line:56,type:"fcn"}; -this.def["ActuatorControl_Actuator1_loop"] = {file: "ActuatorControl_c.html",line:63,type:"fcn"}; -this.def["Actuator_Actuator2_loop_Disable"] = {file: "ActuatorControl_c.html",line:121,type:"fcn"}; -this.def["ActuatorControl_Actuator2_loop"] = {file: "ActuatorControl_c.html",line:128,type:"fcn"}; -this.def["Actuator_Actuator3_loop_Disable"] = {file: "ActuatorControl_c.html",line:186,type:"fcn"}; -this.def["ActuatorControl_Actuator3_loop"] = {file: "ActuatorControl_c.html",line:193,type:"fcn"}; -this.def["ActuatorControl_Disable"] = {file: "ActuatorControl_c.html",line:251,type:"fcn"}; -this.def["Actuator_Control"] = {file: "ActuatorControl_c.html",line:280,type:"fcn"}; -this.def["ActuatorControl_initialize"] = {file: "ActuatorControl_c.html",line:389,type:"fcn"}; -this.def["RT_MODEL_ActuatorControl_T"] = {file: "ActuatorControl_h.html",line:49,type:"type"}; -this.def["DW_ActuatorControl_f_T"] = {file: "ActuatorControl_h.html",line:64,type:"type"}; -this.def["MdlrefDW_ActuatorControl_T"] = {file: "ActuatorControl_h.html",line:81,type:"type"}; -this.def["AHRS_Bus"] = {file: "../../_sharedutils/html/AHRS_Bus_h.html",line:38,type:"type"}; -this.def["int8_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:55,type:"type"}; -this.def["uint8_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:56,type:"type"}; -this.def["int16_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:57,type:"type"}; -this.def["uint16_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:58,type:"type"}; -this.def["int32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:59,type:"type"}; -this.def["uint32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:60,type:"type"}; -this.def["real32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:61,type:"type"}; -this.def["real64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:62,type:"type"}; -this.def["real_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:68,type:"type"}; -this.def["time_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:69,type:"type"}; -this.def["boolean_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:70,type:"type"}; -this.def["int_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:71,type:"type"}; -this.def["uint_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:72,type:"type"}; -this.def["ulong_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:73,type:"type"}; -this.def["ulonglong_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:74,type:"type"}; -this.def["char_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:75,type:"type"}; -this.def["uchar_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:76,type:"type"}; -this.def["byte_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:77,type:"type"}; -this.def["int64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:78,type:"type"}; -this.def["uint64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:79,type:"type"}; -this.def["int8_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:89,type:"type"}; -this.def["uint8_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:90,type:"type"}; -this.def["int16_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:91,type:"type"}; -this.def["uint16_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:92,type:"type"}; -this.def["int32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:93,type:"type"}; -this.def["uint32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:94,type:"type"}; -this.def["int64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:95,type:"type"}; -this.def["uint64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:96,type:"type"}; -this.def["real32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:97,type:"type"}; -this.def["real64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:98,type:"type"}; -this.def["real_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:104,type:"type"}; -this.def["time_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:105,type:"type"}; -this.def["boolean_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:106,type:"type"}; -this.def["int_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:107,type:"type"}; -this.def["uint_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:108,type:"type"}; -this.def["ulong_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:109,type:"type"}; -this.def["ulonglong_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:110,type:"type"}; -this.def["char_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:111,type:"type"}; -this.def["uchar_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:112,type:"type"}; -this.def["byte_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:113,type:"type"}; -this.def["pointer_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:136,type:"type"}; -} -CodeDefine.instance = new CodeDefine(); -var testHarnessInfo = {OwnerFileName: "", HarnessOwner: "", HarnessName: "", IsTestHarness: "0"}; -var relPathToBuildDir = "../ert_main.c"; -var fileSep = "\\"; -var isPC = true; -function Html2SrcLink() { - this.html2SrcPath = new Array; - this.html2Root = new Array; - this.html2SrcPath["ActuatorControl_c.html"] = "../ActuatorControl.c"; - this.html2Root["ActuatorControl_c.html"] = "ActuatorControl_c.html"; - this.html2SrcPath["ActuatorControl_h.html"] = "../ActuatorControl.h"; - this.html2Root["ActuatorControl_h.html"] = "ActuatorControl_h.html"; - this.html2SrcPath["AHRS_Bus_h.html"] = "../AHRS_Bus.h"; - this.html2Root["AHRS_Bus_h.html"] = "../../_sharedutils/html/AHRS_Bus_h.html"; - this.html2SrcPath["Actuator_Control_h.html"] = "../Actuator_Control.h"; - this.html2Root["Actuator_Control_h.html"] = "../../_sharedutils/html/Actuator_Control_h.html"; - this.html2SrcPath["rtwtypes_h.html"] = "../rtwtypes.h"; - this.html2Root["rtwtypes_h.html"] = "../../_sharedutils/html/rtwtypes_h.html"; - this.getLink2Src = function (htmlFileName) { - if (this.html2SrcPath[htmlFileName]) - return this.html2SrcPath[htmlFileName]; - else - return null; - } - this.getLinkFromRoot = function (htmlFileName) { - if (this.html2Root[htmlFileName]) - return this.html2Root[htmlFileName]; - else - return null; - } -} -Html2SrcLink.instance = new Html2SrcLink(); -var fileList = [ -"ActuatorControl_c.html","ActuatorControl_h.html","AHRS_Bus_h.html","Actuator_Control_h.html","rtwtypes_h.html"]; diff --git a/src/validation/slprj/ert/ActuatorControl/html/hilite_warning.png b/src/validation/slprj/ert/ActuatorControl/html/hilite_warning.png deleted file mode 100644 index f013f815ae58acfcb9112170c871851d666b820f..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/html/hilite_warning.png and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/html/inspect.html b/src/validation/slprj/ert/ActuatorControl/html/inspect.html deleted file mode 100644 index b628c7a9b9bb6b35d1d71511d01fcff40959fe1b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/inspect.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - -
    - - diff --git a/src/validation/slprj/ert/ActuatorControl/html/js/coder_app.js b/src/validation/slprj/ert/ActuatorControl/html/js/coder_app.js deleted file mode 100644 index 3c34823e1b5445bb6421e4f73479ca3bc4f50299..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/js/coder_app.js +++ /dev/null @@ -1,525 +0,0 @@ -/* Copyright 2013-2018 The MathWorks, Inc. */ -function queryByClassName(className, elem) { - if (!elem) elem = document.body; - if (typeof elem.querySelectorAll === "function") { - return elem.querySelectorAll("."+className); - } else { - return elem.getElementsByClass(className); - } -} - -function nav_token_usage_details(direction) { - var els = queryByClassName("token_usage_details_tabrow"); - var selectedIdx = 0; - var selectedClassName = "selected"; - for (selectedIdx; selectedIdx < els.length; selectedIdx++) { - if (els[selectedIdx].classList.contains(selectedClassName)) { - break; - } - } - var nextIdx = selectedIdx; - if (direction === -1 && selectedIdx > 0) { - nextIdx = selectedIdx-1; - } else if (direction === 1 && selectedIdx < els.length - 1) { - nextIdx = selectedIdx + 1; - } - if (nextIdx !== selectedIdx) { - els[selectedIdx].classList.remove(selectedClassName); - els[nextIdx].classList.add(selectedClassName); - els[nextIdx].scrollIntoView(alignWithTop=false); - } - return false; -} - -function tabrowClicked(event) { -} - -function popupOnload() { - var els = queryByClassName("token_usage_details_tabrow"); - for (var i=0; i" + - top.rtwGetFileName(link2Src) + ""; - var bodyNode = document.body; - bodyNode.insertBefore(link, bodyNode.firstElementChild); - } - top.updateHyperlinks(); - // update fileSelector frame - if (top.fileSelector) { - var o = top.fileSelector.document.getElementById('fileSelector'); - if (o) { - o.value = filename; - } - } - // add links to line numbers - var hasLineFlag = null; - if (top.TraceInfoLineFlag && top.TraceInfoLineFlag.instance) { - hasLineFlag = true; - } else { - hasLineFlag = false; - } - - if(hasLineFlag) { - var lines = queryByClassName("ln", codeElement); - var lineTraceFlag = top.TraceInfoLineFlag.instance.lineTraceFlag; - var lineNo = null; - for (var i=0; i= 0; --i) { - var childNode = trNode.childNodes[i]; - if (childNode.tagName.toUpperCase() === "TD") { - return childNode.childNodes; - } - } - return null; -} - -// see g1225075 -function fixBoxStyleFnHeaderLineWidths() { - // Match strings like "/**********/" which is the top line of - // a box-style function comment header - var reBoxHeader = /\/\*+\//; - - // Match strings like "' */" which is the contents of the text - // element originally generated in the report to pad the width of - // the line. - var rePadding = /'\s*\*\//; - - // All block identifier elements in the report page - blkLineElts = queryByClassName("blk"); - for (var i = 0; i < blkLineElts.length; ++i) { - var origPadding = blkLineElts[i].nextSibling; - if (origPadding.textContent.match(rePadding)) { - var spanElt = findParent(blkLineElts[i], { tagName: "span", className: "ct" }); - if (!spanElt) { - continue; - } - - // The numbered line in the report containing block identifier "i" - var tableRowElt = findParent(spanElt, { tagName: "tr" }); - if (!tableRowElt) { - continue; - } - - // Loop backward through table rows (i.e., report lines) looking - // for the "/***************/" start of the header. When found save - // its pixel width. Not actually the width of the itself but - // the span inside its last . This is will determine the real - // padding that is needed for proper alignment regardless of font - // or CKJ characters. - var targetWidth = 0; - var sanity = Number.MAX_VALUE; - var node = tableRowElt.previousSibling; - while (node && (sanity-- > 0)) { - var lastCellContents = getLastTableCellContents(node); - if (lastCellContents) { - if (lastCellContents.length === 0) { - break; - } - if (lastCellContents[0].textContent.match(reBoxHeader)) { - targetWidth = lastCellContents[0].offsetWidth; - break; - } - } - node = node.previousSibling; - } - - // If applying a new padding (i.e., targetWidth > 0), replace - // the original padding "' */' (a single text element) with - // two text elements and a span in between. The span will be the - // new pixel-accurate padding. - if (targetWidth > 0) { - var singleQuoteNode = document.createTextNode("'"); - var spacerNode = document.createElement('span'); - origPadding.textContent = "*/"; - origPadding.parentNode.insertBefore(spacerNode, origPadding); - origPadding.parentNode.insertBefore(singleQuoteNode, spacerNode); - - var padWidth = targetWidth - spanElt.offsetWidth; - spacerNode.style.display = 'inline-block'; - spacerNode.style.width = String(padWidth) + "px"; - spacerNode.style.height = '1em'; // cursor won't work w/o some height - spacerNode.style.cursor = 'text'; - } - } - } -} - -// the onload function for source file -function srcFileOnload() { - var codeElement = document.getElementById("codeTbl"); - var insertFunction = getInsertFunction(codeElement); - try { - var els = codeElement.getElementsByTagName("tr"); - for (var i = 0; i < els.length; i++) { - registerDelayedOnMouseOver(els[i], lineOnMouseIn, lineOnMouseOut); - } - updateToken(codeElement); - } catch (err) {}; - insertFunction(); - // add code to model hyperlinks for all tokens - var filename = location.pathname.split(/\//); - filename = filename[filename.length-1]; - // highlight the filename in the TOC frame - if (top.rtwreport_contents_frame && top.hiliteByFileName(top.rtwreport_document_frame.document.location.href)) { - // remove the highlights in the TOC frame if filename is hilite successfully - top.removeHiliteTOC(top.rtwreport_contents_frame); - } - - // annotate code with code coverage data - if (typeof rtwannotate === 'function') { - rtwannotate(filename.replace(/.html$/,"_cov.xml")); - } - - fixBoxStyleFnHeaderLineWidths(); - - // highlight token and row - if (top.RTW_TraceInfo.instance && top.RTW_TraceArgs.instance) { - var i; - // find the highlight file name - var fileIdx = top.RTW_TraceArgs.instance.getFileIdx(filename); - var ids=[], rows=[]; - if (typeof fileIdx !== "undefined") { - ids = top.RTW_TraceArgs.instance.getIDs(fileIdx); - rows = top.RTW_TraceArgs.instance.getRows(fileIdx); - // highlight rows in file - for (i=0; i 0) - top.RTW_TraceInfo.instance.setInitLocation(filename,rows[0]); - else { - top.toggleNavSideBar("off"); - return; - } - } - - // display navigation side bar - if (top.rtwreport_nav_frame) top.rtwreport_nav_frame.location.reload(); - if (rows.length>0) { - top.toggleNavSideBar("on"); - top.toggleNavToolBar("on"); - } else { - top.toggleNavSideBar("off"); - } - } - top.scrollToLineBasedOnHash(document.location.hash); - function getHash() { - var loc; - var aHash=""; - var topDocObj = top.window.document; - // get the hash value from location. - loc = topDocObj.location; - loc = loc.search || loc.hash; - aHash = loc.substring(1); - aHash = decodeURI(aHash); - return aHash; - } -} - -function createPopup(filename, evt) { - var anchorObj = evt.currentTarget; - if (anchorObj.children.length > 0) - return; - var filename = location.pathname.split(/\//); - filename = filename[filename.length-1]; - var windowObj = top.getInspectWindow(); - var propObj = top.getInspectData(filename, anchorObj); - var navObj = top.getInspectLink(filename, location.pathname, anchorObj); - if (propObj) { - windowObj.appendChild(propObj); - windowObj.style.left = "0px"; - if (anchorObj.parentElement.nodeName === "TD" && - anchorObj.parentElement.parentElement.nodeName === "TR") { - anchorObj.parentElement.parentElement.lastChild.insertBefore(windowObj, - anchorObj.parentElement.parentElement.lastChild.lastChild.nextSibling); - var left = Math.min(evt.clientX , window.innerWidth - windowObj.scrollWidth - 30); - left = Math.max(0, left); - windowObj.style.left = "" + left + "px"; - } - } -}; - -function destroyPopup(anchorObj) { - var popWindow = document.getElementById("popup_window"); - if (popWindow) { - popWindow.parentElement.removeChild(popWindow); - } -}; diff --git a/src/validation/slprj/ert/ActuatorControl/html/nav.html b/src/validation/slprj/ert/ActuatorControl/html/nav.html deleted file mode 100644 index 64f68dbc1980c5d6eaedcb14230e0eff7a1e2ee2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/nav.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - diff --git a/src/validation/slprj/ert/ActuatorControl/html/navToolbar.html b/src/validation/slprj/ert/ActuatorControl/html/navToolbar.html deleted file mode 100644 index d07c72e0a8141cd7e044a11304c611d8c30999fc..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/navToolbar.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/validation/slprj/ert/ActuatorControl/html/rtwhilite.js b/src/validation/slprj/ert/ActuatorControl/html/rtwhilite.js deleted file mode 100644 index bb368a11264d4adae9ce2732cfb978ce099d3d68..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/rtwhilite.js +++ /dev/null @@ -1,2081 +0,0 @@ -// Copyright 2006-2019 The MathWorks, Inc. - -// Class RTW_Hash ------------------------------------------------------------ -// Internal web browser doesn't change window.location.hash if the link points -// to the same page. -// RTW_Hash remembers the hash value when the page is loaded in the first time -// or a link is clicked. -// removeHiliteByHash cleans the high lighted elements according to the stored -// hash value -function RTW_Hash(aHash) { - if (aHash == null) { - this.fHash = ""; - } else { - this.fHash = aHash; - }; - - this.getHash = function() { - return this.fHash; - } - - this.setHash = function(aHash) { - this.fHash = aHash; - } -} - -RTW_Hash.instance = null; - -// Class RTW_TraceInfo -------------------------------------------------------- -function RTW_TraceInfo(aFileLinks) { - this.fFileLinks = aFileLinks; - this.fLines = new Array(); - this.fTotalLines = 0; // total number of highlighted lines - this.fNumLines = new Array(); - this.fFileIdxCache = new Array(); - this.fDisablePanel = false; - this.fCurrFileIdx = -1; - this.fCurrLineIdx = -1; - this.fCurrCodeNode = null; - this.getHtmlFileName = function(aIndex) { - if (aIndex < this.fFileLinks.length) { - var href = this.fFileLinks[aIndex].href; - return href.substring(href.lastIndexOf('/')+1); - } - } - this.getSrcFileName = function(aIndex) { - var name = this.getHtmlFileName(aIndex); - if (name) - name = RTW_TraceInfo.toSrcFileName(name); - return name; - } - this.getNumFileLinks = function() { - return this.fFileLinks.length; - } - this.setFileLinkColor = function(aIndex, aColor) { - var link = this.fFileLinks[aIndex]; - if (link && link.parentNode && link.parentNode.style) - link.parentNode.style.backgroundColor = aColor; - } - this.highlightFileLink = function(aIndex, aColor) { - for (var i = 0; i < this.fFileLinks.length; ++i) { - this.setFileLinkColor(i, i == aIndex ? aColor : ""); - } - } - this.highlightCurrFileLink = function(aColor) { - this.highlightFileLink(this.fCurrFileIdx); - } - this.highlightLines = function(aCodeNode,aColor) { - this.fCurrCodeNode = aCodeNode; - var lines = this.fLines[this.getHtmlFileName(this.fCurrFileIdx)]; - if (lines && aCodeNode) { - for (var i = 0; i < lines.length; ++i) { - var lineObj = aCodeNode.childNodes[lines[i]-1]; - if (lineObj) - lineObj.style.backgroundColor=aColor; - } - } - } - this.getFileIdx = function(aFile) { - if (this.fFileIdxCache[aFile] != null) - return this.fFileIdxCache[aFile]; - for (var i = 0; i < this.fFileLinks.length; ++i) { - if (this.getHtmlFileName(i) == aFile) { - this.fFileIdxCache[aFile] = i; - return i; - } - } - return null; - } - this.getCurrFileIdx = function() { return this.fCurrFileIdx; } - this.setNumHighlightedLines = function(aFileIdx, aNumLines) { - this.fNumLines[aFileIdx] = aNumLines; - updateNumHighlightedLines(this.fFileLinks[aFileIdx], aNumLines); - } - this.getNumLines = function(aFileIdx) { - return this.fNumLines[aFileIdx] != null ? this.fNumLines[aFileIdx] : 0; - } - this.getNumLinesAll = function() { - var sum = 0; - var len = this.fNumLines.length; - for (var i = 0; i < len; ++i) { - sum += this.getNumLines(i); - } - return sum; - } - this.getPrevButton = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdButtonPrev"); - else - return document.getElementById("rtwIdButtonPrev"); - } - this.getNextButton = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdButtonNext"); - else - return document.getElementById("rtwIdButtonNext"); - } - this.getPanel = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdTracePanel"); - else - return document.getElementById("rtwIdTracePanel"); - } - this.removeHighlighting = function() { - for (var i = 0; i < this.fFileLinks.length; ++i) { - this.setFileLinkColor(i, ""); - this.setNumHighlightedLines(i, 0); - } - // remove highlight and reset current code node - try { - if (this.fCurrCodeNode != null) - this.highlightLines(getCodeNode(),""); - } catch (e) {}; - this.fCurrCodeNode = null; - if (this.getPrevButton()) { this.getPrevButton().disabled = true; } - if (this.getNextButton()) { this.getNextButton().disabled = true; } - if (this.getPanel()) { this.getPanel().style.display = "none"; } - this.fCurrFileIdx = -1; - this.fCurrLineIdx = -1; - } - this.setCurrLineIdx = function(aLineIdx) { - this.fCurrLineIdx = aLineIdx; - } - this.getCurrLineIdx = function() { return this.fCurrLineIdx; } - this.setCurrent = function(aFileIdx, aLineIdx) { - this.fCurrFileIdx = aFileIdx; - var numLines = this.getNumLines(aFileIdx); - if (!numLines || aLineIdx >= numLines) - this.fCurrLineIdx = -1; - else - this.fCurrLineIdx = aLineIdx; - var allNumLines = this.getNumLinesAll(); - if (this.getPrevButton()) { - this.getPrevButton().disabled = (allNumLines <= 1 || !this.hasPrev()); - } - if (this.getNextButton()) { - this.getNextButton().disabled = (allNumLines <= 1 || !this.hasNext()); - } - if (this.getPanel() && !this.fDisablePanel) { - this.getPanel().style.display = 'block'; - } - } - this.setDisablePanel = function(aDisable) { - this.fDisablePanel = aDisable; - } - this.getPrevFileIdx = function() { - if (this.fCurrLineIdx > 0) - return this.fCurrFileIdx; - for (var i = this.fCurrFileIdx - 1; i >= 0; --i) - if (this.fNumLines[i] > 0) - return i; - return null; - } - // update the navigation bar state - this.updateNavState = function() { - if (this.getPrevButton()) - this.getPrevButton().disabled = !this.hasPrev(); - if (this.getNextButton()) - this.getNextButton().disabled = !this.hasNext(); - setTraceNumber(); - } - this.hasPrev = function() { - return this.getPrevFileIdx() != null; - } - this.getFirstFileIdx = function() { - for (var i = 0; i < this.getNumFileLinks(); ++i) - if (this.fNumLines[i] > 0) - return i; - } - this.getLastFileIdx = function() { - for (var i = this.getNumFileLinks(); i >= 0; --i) - if (this.fNumLines[i] > 0) - return i; - } - this.goFirst = function() { - this.fCurrFileIdx = this.getFirstFileIdx(); - this.fCurrLineIdx = 0; - this.updateNavState(); - } - this.goLast = function() { - this.fCurrFileIdx = this.getLastFileIdx();; - this.fCurrLineIdx = this.getNumLines(this.fCurrFileIdx) - 1; - this.updateNavState(); - } - this.goPrev = function() { - var fileIdx = this.getPrevFileIdx(); - if (fileIdx == null) - return; - if (fileIdx == this.fCurrFileIdx) - --this.fCurrLineIdx; - else { - this.fCurrFileIdx = fileIdx; - this.fCurrLineIdx = this.getNumLines(fileIdx) - 1; - } - this.updateNavState(); - } - this.getNextFileIdx = function() { - if (this.fCurrLineIdx < this.getNumLines(this.fCurrFileIdx) - 1 && this.getNumLines(this.fCurrFileIdx) > 0) - return this.fCurrFileIdx; - for (var i = this.fCurrFileIdx + 1; i < this.getNumFileLinks(); ++i) - if (this.fNumLines[i] > 0) - return i; - return null; - } - this.hasNext = function() { - return this.getNextFileIdx() != null; - } - this.goNext = function() { - var fileIdx = this.getNextFileIdx(); - if (fileIdx == null) - return; - if (fileIdx == this.fCurrFileIdx) - ++this.fCurrLineIdx; - else { - this.fCurrFileIdx = fileIdx; - this.fCurrLineIdx = 0; - } - this.updateNavState(); - } - this.setTotalLines = function(num) { - this.fTotalLines = num; - } - this.getTotalLines = function() { return this.fTotalLines;} - this.setLines = function(aFile, aLines) { - this.fLines[aFile] = aLines; - var index = this.getFileIdx(aFile); - if (index != null) - this.setNumHighlightedLines(index,aLines.length); - } - this.getLines = function(aFile) { - return this.fLines[aFile]; - } - // get current on focus line number - this.getCurrLine = function() { - var file = this.getHtmlFileName(this.getCurrFileIdx()); - var lines = this.fLines[file]; - var line = null; - if (lines) { - var line = lines[this.fCurrLineIdx]; - } - return line; - } - this.getHRef = function(aFileIdx, aLineIdx, offset) { - var file = this.getHtmlFileName(aFileIdx); - var lines = this.fLines[file]; - if (lines) { - var line = lines[aLineIdx]; - line = offset_line(line, offset); - file = file+"#"+line; - } - return file; - } - - this.getCurrentHRef = function(offset) { - return this.getHRef(this.fCurrFileIdx, this.fCurrLineIdx, offset); - } - this.setInitLocation = function(aFile, aLine) { - var fileIdx = this.getFileIdx(aFile); - var lineIdx = null; - if (fileIdx != null && aLine) { - var lines = this.getLines(aFile); - for (var i = 0; i < lines.length; ++i) { - if (lines[i] == aLine) { - lineIdx = i; - break; - } - } - } - if (fileIdx == null || lineIdx == null) - this.setCurrent(-1,-1); - else - this.setCurrent(fileIdx,lineIdx); - } -} - -// Static methods in RTW_TraceInfo - -RTW_TraceInfo.getFileLinks = function(docObj) { - var links; - if (docObj && docObj.getElementsByName) - links = docObj.getElementsByName("rtwIdGenFileLinks"); - return links ? links : new Array(); -} - -RTW_TraceInfo.toSrcFileName = function(aHtmlFileName) { - aHtmlFileName = aHtmlFileName.replace(/_c.html$/,".c"); - aHtmlFileName = aHtmlFileName.replace(/_h.html$/,".h"); - aHtmlFileName = aHtmlFileName.replace(/_cpp.html$/,".cpp"); - aHtmlFileName = aHtmlFileName.replace(/_hpp.html$/,".hpp"); - aHtmlFileName = aHtmlFileName.replace(/_cc.html$/,".hpp"); - return aHtmlFileName; -} - -RTW_TraceInfo.instance = null; - -// Class RTW_TraceArgs -------------------------------------------------------- -// file.c:10,20,30&file.h:10,20,30[&color=value] or -// sid=model:1[&color=value] -RTW_TraceArgs = function(aHash) { - this.fColor = null; - this.fFontSize = null; - this.fInitFile = null; - this.fInitLine = null; - this.fSID = null; - this.fFiles = new Array(); - this.fLines = new Array(); - this.fMessage = null; - this.fBlock = null; - this.fNumBlocks = 0; - this.fUseExternalBrowser = true; - this.fInStudio = false; - this.fModel2CodeSrc = null; - this.fInCodeTrace = false; - this.fTraceData = null; - this.fFileIdx = []; // filename to fileId - this.fRows = []; // highlighted rows indexed by fileId - this.fIDs = []; // highlighted IDs indexed by fileId - - this.hasSid = function() { - return !(this.fSID == null); - } - this.parseCommand = function(aHash) { - var args = new Array(); - args = aHash.split('&'); - for (var i = 0; i < args.length; ++i) { - var arg = args[i]; - sep = arg.indexOf('='); - if (sep != -1) { - var cmd = arg.substring(0,sep); - var opt = arg.substring(sep+1); - switch (cmd.toLowerCase()) { - case "color": - this.fColor = opt; - break; - case "fontsize": - this.fFontSize = opt; - break; - case "initfile": - this.fInitFile = RTW_TraceArgs.toHtmlFileName(opt); - break; - case "initline": - this.fInitLine = opt; - break; - case "msg": - this.fMessage = opt; - break; - case "block": - this.fBlock = unescape(opt); - break; - case "numblocks": - this.fNumBlocks = parseInt(opt); - break; - case "sid": - this.fSID = opt; - // convert sid to code location - break; - case "model2code_src": - // model2code_src from model or webview - this.fModel2CodeSrc = opt; - break; - case "useexternalbrowser": - this.fUseExternalBrowser = (opt=="true"); - break; - case "instudio": - this.fInStudio = (opt=="true"); - break; - case "incodetrace": - this.fInCodeTrace = (opt=="true"); - break; - case "tracedata": - this.fTraceData = decodeURI(opt); - break; - } - } - } - } - this.parseUrlHash = function(aHash) { - var rows, sep, assignSep; - if (aHash) { - args = aHash.split('&'); - for (var i = 0; i < args.length; ++i) { - var arg = args[i]; - sep = arg.indexOf(':'); - assignSep = arg.indexOf('='); - if (sep !== -1 && assignSep === -1) { - var fileLines = arg.split(':'); - var htmlFileName = RTW_TraceArgs.toHtmlFileName(fileLines[0]); - this.fFileIdx[htmlFileName] = i; - this.fFiles.push(htmlFileName); - if (fileLines[1]) { - rows = fileLines[1].split(','); - rows = uniqueRows(rows); - this.fLines.push(rows); - this.fRows[i] = rows; - } - } - } - if (this.fInitFile == null && this.fFiles.length > 0) { - this.fInitFile = this.fFiles[0]; - this.fInitLine = (this.fLines[0] == null ? -1 : this.fLines[0][0]); - } - } - } - this.parseUrlHash2 = function(aHash) { - aHash = decodeURI(aHash); - var rows; - var ids; - if (aHash && aHash.length > 0 && aHash[0] === "[") { - var input = eval(aHash); - var i; - var j; - // set highlight files from url - for (i=0; i 0 - && top.rtwreport_document_frame.location.href !== "about:blank" && forceReload !== true) { - updateHyperlinks(); - return; - } - - // modify modelref links - update_modelref_report_link(top.rtwreport_contents_frame.document); - try { - // ignore browser security error - update_modelref_report_link(top.rtwreport_document_frame.document); - } catch(e) {}; - - // redirect the page based on the url - var initPage = null; - if (RTW_TraceArgs.instance.getNumFiles()) { - var fileLinks = RTW_TraceInfo.getFileLinks(tocDocObj); - RTW_TraceInfo.instance = new RTW_TraceInfo(fileLinks); - RTW_TraceInfo.instance.removeHighlighting() - var numFiles = RTW_TraceArgs.instance.getNumFiles(); - var tLines = 0; - for (var i = 0; i < numFiles; ++i) { - RTW_TraceInfo.instance.setLines(RTW_TraceArgs.instance.getFile(i),RTW_TraceArgs.instance.getLines(i)); - tLines += RTW_TraceArgs.instance.getLines(i).length; - } - RTW_TraceInfo.instance.setTotalLines(tLines); - if (aPanel == false) { - RTW_TraceInfo.instance.setDisablePanel(true); - } - var initFile = RTW_TraceArgs.instance.getInitFile(); - RTW_TraceInfo.instance.setInitLocation(initFile,RTW_TraceArgs.instance.getInitLine()); - if (!hasInCodeTrace()) { - initPage = RTW_TraceInfo.instance.getCurrentHRef(); - } else { - initPage = initFile; - } - } else { - // catch error that document frame is in another domain - try { - var fileDocObj = top.rtwreport_document_frame.document; - if (fileDocObj.location && (!fileDocObj.location.href || fileDocObj.location.href == "about:blank")) { - var summaryPage = tocDocObj.getElementById("rtwIdSummaryPage"); - var tracePage = tocDocObj.getElementById("rtwIdTraceability"); - if (summaryPage) { - initPage = summaryPage.href; - } else if (tracePage) { - initPage = tracePage; - } - } - } catch(e) {}; - } - if (RTW_TraceArgs.instance && RTW_TraceArgs.instance.fMessage) { - // display diagnostic message - var linkId = "rtwIdMsgFileLink"; - var msgFile = tocDocObj.getElementById(linkId); - if (msgFile && msgFile.style) { - msgFile.style.display = "block"; - // Highlight the background of msg link - tocHiliteById(linkId); - } - initPage = "rtwmsg.html"; - } - if (initPage) { - var is_same_page = false; - try { - var fileDocObj = top.rtwreport_document_frame.document; - is_same_page = isSamePage(fileDocObj.location.href, initPage); - } catch(e) {}; - if (document.getElementById("rtwreport_document_frame")) { - document.getElementById("rtwreport_document_frame").setAttribute("src", initPage); - } else { - top.rtwreport_document_frame.location.href = initPage; - } - - if (is_same_page) { - // Goto the same page won't trigger onload function. - // Call it manuelly to highligh new code location. - rtwFileOnLoad(top.rtwreport_document_frame.document); - } - } -} - -// Compare if href1(i.e. file:///path/file1.html#222) and href2(i.e.file2.html) are same pages. -// isSamePage return true if file1 == file2. -function isSamePage(href1, href2) { - var page1 = href1.substring(href1.lastIndexOf('/')+1,href1.lastIndexOf('.html')); - var page2 = href2.substring(href2.lastIndexOf('/')+1,href2.lastIndexOf('.html')); - return (page1 == page2); -} - -// Callback for main document loading -function rtwMainOnLoad() { - rtwMainOnLoadFcn(document,null,true, false); - var newUrl; - // modify history state to avoid reload from pressing back - if (RTW_TraceArgs.instance && !RTW_TraceArgs.instance.getUseExternalBrowser() && - typeof window.history.replaceState === "function") { - if (window.location.search.length > 0) { - if (window.location.search.indexOf("loaded=true") === -1) { - newUrl = document.location.pathname + window.location.search + '&loaded=true'; - } else { - newUrl = document.location.pathname + window.location.search; - } - } else { - newUrl = document.location.pathname + window.location.search + '?loaded=true'; - } - window.history.replaceState("","",newUrl); - } -} - -// Helper function for traceability report -function rtwMainReload(location) { - // remove highlight filename and lines before reloading the page - if (RTW_TraceInfo.instance) - RTW_TraceInfo.instance.removeHighlighting(); - rtwMainOnLoadFcn(document,location,true,true); -} - -function rtwMainReloadNoPanel(location) { - rtwMainOnLoadFcn(document,location,false,true); -} - -// Callback for hyperlink "Remove Highlighting" -function rtwRemoveHighlighting() { - if (RTW_TraceInfo.instance) - RTW_TraceInfo.instance.removeHighlighting(); - if (rtwSrcFrame()) { - rtwSrcFrame().focus(); - } - if (hasInCodeTrace()) { - removeInCodeTraceHighlight(); - } -} - -// Display diagnostic message in document frame -function rtwDisplayMessage() { - var docObj = top.rtwreport_document_frame.document; - var msg = docObj.getElementById(RTW_TraceArgs.instance.fMessage); - if (!msg) { - msg = docObj.getElementById("rtwMsg_notTraceable"); - } - if (msg && msg.style) { - msg.style.display = "block"; // make message visible - var msgstr = msg.innerHTML; - // replace '%s' in message with block name - if (top.RTW_TraceArgs.instance) { - var sid = top.RTW_TraceArgs.instance.getBlock(); - if (sid) { - var block = sid; - if (top.RTW_rtwnameSIDMap && top.RTW_rtwnameSIDMap.instance && top.RTW_rtwnameSIDMap.instance.getRtwname(sid)) { - block = top.RTW_rtwnameSIDMap.instance.getRtwname(sid).rtwname; - block = block.replace("<", "<").replace(">", ">"); - } else { - block = sid; - } - if (block) { - msgstr = msgstr.replace("%s", block); - } - } - } - msg.innerHTML = msgstr; - } -} - -function updateHyperlinks() { - docObj = top.rtwreport_document_frame; - if (docObj && docObj.document) { - if (RTW_TraceArgs.instance === null || !RTW_TraceArgs.instance.getUseExternalBrowser()) { - var plain_link = docObj.document.getElementById("linkToText_plain"); - if (plain_link && plain_link.href && plain_link.href.indexOf("matlab:coder.internal.editUrlTextFile") === -1 ) { - plain_link.href = "matlab:coder.internal.editUrlTextFile('" + str2StrVar(plain_link.href) + "')"; - } - var alink = docObj.document.getElementById("linkToCS"); - var linkCmd = "matlab:coder.internal.viewCodeConfigsetFromReport"; - if (alink && alink.href && alink.href.indexOf(linkCmd) === -1) { - alink.href = linkCmd+ "('" + str2StrVar(alink.href) + "');"; - if(alink.style) { - alink.style.display = ""; - hidden_link = docObj.document.getElementById("linkToCS_disabled"); - if (hidden_link) { - hidden_link.style.display = "none"; - } - } - } - } else { - var alink = docObj.document.getElementById("linkToCS"); - if (alink && alink.style) { - alink.style.display = "none"; - hidden_link = docObj.document.getElementById("linkToCS_disabled"); - if (hidden_link) - hidden_link.style.display = ""; - } - if (typeof docObj.document.getElementsByClassName === "function") { - alinks = docObj.document.getElementsByClassName("callMATLAB"); - } else if (typeof docObj.document.getElementsByName === "function") { - alinks = docObj.document.getElementsByName("callMATLAB"); - } else { - alinks = []; - } - alink = docObj.document.getElementById("CodeGenAdvCheck"); - if (alink && alink.href && alink.href.indexOf("externalweb=true")===-1) { - alink.href = alink.href + "?externalweb=true"; - } - - if (typeof docObj.document.getElementsByName === "function") - var objs = docObj.document.getElementsByName("MATLAB_link"); - else - objs = []; - for (var objIndex = 0; objIndex < objs.length; ++objIndex) { - objs[objIndex].style.display = "none"; - } - } - } - updateCode2ModelLinks(docObj.document); - // modify modelref links - update_modelref_report_link(top.rtwreport_contents_frame.document); - try { - // ignore browser security error - update_modelref_report_link(top.rtwreport_document_frame.document); - } catch(e) {}; -} - -function update_modelref_report_link(docObj) { - if (docObj.getElementsByName) { - var arg = ""; - if (RTW_TraceArgs.instance && !RTW_TraceArgs.instance.getUseExternalBrowser()) { - arg = "?useExternalBrowser=false"; - } - if (RTW_TraceArgs && RTW_TraceArgs.instance && RTW_TraceArgs.instance.getModel2CodeSrc() != null) { - if (arg.length > 0) - arg = arg + "&model2code_src=" + RTW_TraceArgs.instance.getModel2CodeSrc(); - else - arg = "?model2code_src=" + RTW_TraceArgs.instance.getModel2CodeSrc(); - } - if (arg.length > 0) { - links = docObj.getElementsByName('external_link'); - for (var link_idx = 0; link_idx < links.length; ++link_idx) { - links[link_idx].href = links[link_idx].href + arg; - } - } - } -} - -function rtwResizeFrame(f) { - if (f) { - f.style.height = f.contentWindow.document.body.scrollHeight + "px"; - } -} - -function rtwPageOnLoad(id) { - // highlight toc entry - tocHiliteById(id); - // restore elements state - if (top && top.restoreState) { - if (top.rtwreport_contents_frame && top.rtwreport_contents_frame.document) - top.restoreState(top.rtwreport_contents_frame.document); - if (top.rtwreport_document_frame && top.rtwreport_document_frame.document) { - top.restoreState(top.rtwreport_document_frame.document); - rtwResizeFrame(top.rtwreport_document_frame.document.getElementById("rtwIdContentsIframe")); - } - } - updateHyperlinks(); -} - -// highlight code after changeSys -function rtwChangeSysCallback(sid) { - if (sid == "" || typeof RTW_Sid2UrlHash == "undefined" || !RTW_Sid2UrlHash.instance) - return false; - urlHash = RTW_Sid2UrlHash.instance.getUrlHash(sid); - if (urlHash != undefined) { - if (RTW_TraceArgs && RTW_TraceArgs.instance && - !RTW_TraceArgs.instance.getUseExternalBrowser()) - urlHash = (urlHash == "")? "?useExternalBrowser=false" : - urlHash+"&useExternalBrowser=false"; - rtwMainReload(urlHash, true); - return true; - } else { - // remove highlighting from traceinfo - rtwRemoveHighlighting(); - return false; - } -} - -function emlFileOnload(docObj) { - var loc = docObj.location; - if (loc.hash) { - var line = loc.hash.substring(1); - hiliteEmlLine(docObj, line); - } -} - -function hiliteEmlLine(docObj, line) { - var bgColor; - if (top.HiliteCodeStatus) - bgColor = "#66CCFF"; - else - bgColor = "#E8D152"; - // unhighlight - if (typeof docObj.HiliteLine != "undefined") { - trObj = docObj.getElementById("LN_"+docObj.HiliteLine); - if (trObj != null) { - trObj.style.backgroundColor = ""; - } - } - // hilighlight - trObj = docObj.getElementById("LN_"+line); - if (trObj != null) { - trObj.style.backgroundColor = bgColor; - docObj.HiliteLine = line; - } -} - -function emlLineOnClick(docObj,sid,line) { - if (top) { - top.HiliteCodeStatus = top.rtwChangeSysCallback(sid); - } - hiliteEmlLine(docObj, line); -} - -function updateCode2ModelLinks(docObj) { - var webviewFrame = top.document.getElementById('rtw_webviewMidFrame'); - var link2model = false; - var isTestHarness = false; - if (top.testHarnessInfo && top.testHarnessInfo.IsTestHarness === "1") { - isTestHarness = true; - } - if (webviewFrame || isTestHarness) { - if (webviewFrame && RTW_TraceArgs.instance && - (RTW_TraceArgs.instance.getModel2CodeSrc() !== "model" || - RTW_TraceArgs.instance.getUseExternalBrowser()) - ) { - hiliteCmd = "javascript:top.rtwHilite("; - } else { - hiliteCmd = "matlab:coder.internal.code2model("; - link2model = true; - } - var objs = docObj.getElementsByName('code2model'); - var o = null; - var str = ''; - var sid = ''; - var pattern = "'code2model',"; - for (var objIndex = 0; objIndex < objs.length; ++objIndex) { - o = objs[objIndex]; - str = o.href.substring(o.href.indexOf('(')+1); - if (str.indexOf(pattern) > -1) { - str = str.substring(str.indexOf(pattern) + pattern.length); - } - o.href = hiliteCmd + str; - if (link2model && isTestHarness) { - sid = str.substring(0, str.indexOf(")")); - o.href = hiliteCmd + sid + ",'" + - top.testHarnessInfo.HarnessName+ "','" + - top.testHarnessInfo.HarnessOwner+ "','" + - top.testHarnessInfo.OwnerFileName + "');"; - } - } - } -} - -function rtwHilite(aBlock,aParentSID) { - if (aBlock.indexOf('-') !== -1) { - // remove sid range: model:sid:2-10 => model:sid - var s; - s = aBlock.split(':'); - if (s.length > 0) { - s = s[s.length-1]; - if (s.indexOf('-') != -1) { - aBlock = aBlock.substring(0, aBlock.lastIndexOf(':')); - } - } - } - if (typeof aParentSID === "undefined") { - if (top.RTW_SidParentMap && top.RTW_SidParentMap.instance) - aParentSID = top.RTW_SidParentMap.instance.getParentSid(aBlock); - else - aParentSID = aBlock; - } - top.HiliteCodeStatus = true; - - // webview 2 defines an interface api, call slwebview. - if (top.slwebview) { - // webview 2.x - if (top.codeToWebView(aBlock, aParentSID) === -1) { - alert("Cannot highlight block in model Web view. It may not be exported."); - } - - } else { - // webview 1.x - if (hiliteBlockForRTWReport(aBlock,aParentSID) === false) { - if (hiliteBlockForRTWReport(aBlock, aBlock) === false) { - rtwHilite(aParentSID); - } - } - } -} - -function str2StrVar(str) { - return str.replace(/'/g,"''"); -} -window.onload=rtwMainOnLoad; - -// handle incode traceability highlighting -function inCodeTraceOnload() { - var tocDocObj = top.rtwreport_contents_frame.document; - if (!top.RTW_TraceArgs.instance) { - var summaryPage = tocDocObj.getElementById("rtwIdSummaryPage"); - top.rtwreport_document_frame.location.href = summaryPage.href; - return; - } - - var files = top.RTW_TraceArgs.instance.getFile(); - if (files.length === 0) { - if (top.RTW_TraceArgs.instance) { - var block = top.RTW_TraceArgs.instance.getBlock(); - block = block.replace("<", "<").replace(">", ">"); - } - top.rtwreport_document_frame.document.write("
    No traceability information for block " + block + ".
    "); - return; - }; - - var fileLinks = RTW_TraceInfo.getFileLinks(tocDocObj); - RTW_TraceInfo.instance = new RTW_TraceInfo(fileLinks); - - // update filelist with num of highlighted lines - var tocDoc = top.rtwreport_contents_frame.document; - var tLines = 0; - for (var i=0; i 1) { - var spanNodes = parent.getElementsByTagName('span'); - var len = spanNodes.length; - if (len > 0) { - if (aNumLines > 0) { - /* display number of matches */ - spanNodes.item(len-1).innerHTML = " ("+aNumLines+")"; - } else { - /* clear number of matches */ - spanNodes.item(len-1).innerHTML = ""; - } - } - } -} - -function setupInStudio() { - if (top.whole) { - var tmp = top.whole.rows.split(","); - tmp[0] = "35px"; - top.whole.rows = tmp.join(); - } - if (top.main) { - var tmp = top.main.cols.split(","); - tmp[0] = "0"; - top.main.cols = tmp.join(); - } - // add file list to source file - if (top.Html2SrcLink && top.Html2SrcLink.instance && top.fileSelector) { - var myDoc = top.fileSelector.document; - var fileSelector = myDoc.createElement("select"); - fileSelector.id = "fileSelector"; - fileSelector.onchange = top.fileSelectorOnChange; - var filename; - var filelink; - fileSelector.innerHTML += ""; - for (var i=0; i < top.fileList.length; i++) { - filename = top.fileList[i]; - filelink = top.Html2SrcLink.instance.getLink2Src(filename); - fileSelector.innerHTML += ""; - } - var bodyNode = myDoc.body; - bodyNode.insertBefore(fileSelector, bodyNode.firstElementChild); - var textNode = myDoc.createElement("span"); - textNode.innerHTML = "Goto: "; - bodyNode.insertBefore(textNode, fileSelector); - var myCss = myDoc.createElement("link"); - myCss.type = "text/css"; - myCss.rel = "stylesheet"; - myCss.href = "rtwreport.css"; - myDoc.getElementsByTagName("head")[0].appendChild(myCss); - } -} - -function toggleNavSideBar(val) { - if (top.main) { - var tmp = top.main.cols.split(","); - - if (val === "on") { - tmp[tmp.length-1] = "15px"; - } else { - tmp[tmp.length-1] = "0"; - } - top.main.cols = tmp.join(); - if (top.rtwreport_nav_frame) - top.rtwreport_nav_frame.location.href = "nav.html"; - } -}; - -function toggleNavToolBar(val) -{ - var midFrame = rtwMidFrame(); - if (midFrame) { - var tmp1 = midFrame.rows.split(","); - var frameIdx = getNavToolbarFrameIdx(); - if (val === "on") { - tmp1[frameIdx] = "40px"; - } else { - tmp1[frameIdx] = "0"; - } - midFrame.rows = tmp1.join(); - if (top.rtwreport_navToolbar_frame) { - top.rtwreport_navToolbar_frame.location.href = "navToolbar.html"; - } - } -}; - -var GlobalConfig = { - navHiliteColor: "#0000ff", - fileLinkHiliteColor: "#ffff99", - navToolbarBgcolor: "ivory", - offset: 10, - hiliteToken: false -}; -var NavSideBarState = { - calLineHeight: 0, - overLink: false, - linkTarget: null, - lastLinkTarget: null, - linkTargetIdx: 0 -} -function drawNavSideBar() { - var rectHeight = 1; - if (!top || !top.rtwreport_document_frame || !top.rtwreport_nav_frame) return; - - if (!top.RTW_TraceArgs.instance) return; - var fileIdx = top.RTW_TraceArgs.instance.getFileIdx(); - if (fileIdx === undefined) return; - var rows = top.RTW_TraceArgs.instance.getRows(fileIdx); - if (rows.length === 0) return; // no highlighted line - - var codeTbl = top.rtwreport_document_frame.document.getElementById("codeTbl"); - if (!codeTbl) return; // no code table - - var nRows = codeTbl.rows.length + 1; - var canvas = top.rtwreport_nav_frame.document.getElementById("canvas"); - canvas.width = top.rtwreport_nav_frame.innerWidth; - canvas.height = top.rtwreport_nav_frame.innerHeight-2; - NavSideBarState.calLineHeight = canvas.height/nRows; - if (canvas.getContext) { - var ctx = canvas.getContext("2d"); - ctx.clearRect(0, 0, canvas.width, canvas.height); - // fill background - ctx.fillStyle = GlobalConfig.navToolbarBgcolor; - ctx.fillRect(0, 0, canvas.width, canvas.height); - ctx.fillStyle = GlobalConfig.navHiliteColor; - for (var i=0;i" + anchorObj.text + "
  • "+ - size + "
  • "; - } - propObj.appendChild(ulObj); - - return propObj; -} -function getInspectLink(file, pathname, anchorObj) { - var model = top.reportModel; - var tokenId = anchorObj.id; - var navObj = document.createElement("div"); - navObj.id = "token_usage_nav"; - ulObj = document.createElement("ul"); - ulObj.id = "token_nav_links"; - ulObj.className="popup_attrib_list"; - var srcFileName = RTW_TraceInfo.toSrcFileName(file); - var defObj; - if (top.CodeDefine.instance.def[srcFileName + ":" + anchorObj.text]) { - defObj = top.CodeDefine.instance.def[srcFileName + ":" + anchorObj.text]; - } else if (top.CodeDefine.instance.def[anchorObj.text]) { - defObj = top.CodeDefine.instance.def[anchorObj.text]; - } - var line = anchorObj.id.substring(0,anchorObj.id.indexOf("c")); - // link to model - if (top.TraceInfoFlag && top.TraceInfoFlag.instance && - top.TraceInfoFlag.instance.traceFlag[srcFileName+":"+anchorObj.id]) { - return null; - } - // link to def/decl - if (defObj) { - var filename = defObj.file.split(/\//); - filename = filename[filename.length-1]; - ulObj.innerHTML += "
  • " + anchorObj.text + " defined at " + RTW_TraceInfo.toSrcFileName(filename) + " line " + defObj.line + "
  • "; - } - navObj.appendChild(ulObj); - return navObj; -} - -var LastHiliteTokenId = null; -function rmHiliteClickedToken() { - if (LastHiliteTokenId) { - var o = top.rtwreport_document_frame.document.getElementById(LastHiliteTokenId); - if (o) { - o.className = o.className.replace("hiliteToken", ""); - } - } -} -function hiliteClickedToken(elem) { - rmHiliteClickedToken(); - LastHiliteTokenId = elem.id; - elem.className += " hiliteToken"; -} - -var initLine = null; -function scrollToInitLine() { - if (initLine) { - var lineElem = top.rtwreport_document_frame.document.getElementById(initLine); - if (lineElem) { - lineElem.scrollIntoView(); - } - } -} - -function scrollToLineBasedOnHash(hashValue) { - // move to the current highlight line if the hash is not empty - if (hashValue === "") { - if (top.RTW_TraceInfo.instance && top.RTW_TraceInfo.instance.getCurrLine() !== null) { - top.rtwreport_document_frame.document.location.href=top.RTW_TraceInfo.instance.getCurrentHRef(); - top.initLine = top.rtwreport_document_frame.document.location.hash.substr(1); - } - } else { - // scroll and hilite line - hashValue = hashValue.substr(1); - if (isNaN(hashValue)) { - // #fcn_name - var pattern = "+newPage"; - if (hashValue.indexOf(pattern) != -1) { - hashValue = hashValue.replace(pattern, ''); - var lineElem = top.rtwreport_document_frame.document.getElementById(hashValue); - initLine = hashValue; // save initLine in case the dom is updated later by anootation - if (lineElem) { - lineElem.scrollIntoView(); - addTagToCurrentLine(); - } - - } else { - var token = null; - pattern = ["var_", "fcn_", "type_"]; - for (var i =0; i < pattern.length; i++) { - if (hashValue.indexOf(pattern[i]) === 0) { - token = hashValue.substr(pattern[i].length); - break; - } - } - if (token !== null && top.CodeDefine && top.CodeDefine.instance) { - var addr; - var filename = location.pathname.split(/\//); - filename = filename[filename.length-1]; - var srcFileName; - if (top.RTW_TraceInfo) { - srcFileName = top.RTW_TraceInfo.toSrcFileName(filename); - } - if (top.CodeDefine.instance.def[srcFileName + ":" + token]) { - addr = top.CodeDefine.instance.def[srcFileName + ":" + token]; - } else { - addr = top.CodeDefine.instance.def[token]; - } - if (addr) { - hilite_line(addr.line); - } - } else { // token id like #line"c"#col - if (hashValue.indexOf("c") !== -1) { - hilite_line(hashValue.substr(0, hashValue.indexOf("c")), hashValue); - } - } - } - } else { // #line - hilite_line(hashValue); - } - } - return false; - // hilite line number and scroll with an offset - function hilite_line(line, tokenId) { - if (isNaN(line)) return; - if (!tokenId) { - tokenId = line; - } - var elem = top.rtwreport_document_frame.document.getElementById(tokenId); - hiliteClickedToken(elem); - initLine = offset_line(line); - scrollToInitLine(); - } -} - -function tokenLinkOnClick(event) { - var alink = event.currentTarget; - if (alink.pathname === top.rtwreport_document_frame.location.pathname) { - event.preventDefault(); - scrollToLineBasedOnHash(alink.hash); - } - return false; -} -function inspectToken(file, pathname, event) { - var height = "70px"; - // show inspect data - if (top.rtwreport_inspect_frame) { - var windowObj = getInspectWindow(); - var propObj = getInspectData(file, event.currentTarget); - var navObj = getInspectLink(file, pathname, event.currentTarget); - if (navObj === null) { - closeInspectWindow(); - return false; - } - if (propObj === null) { - height = "50px"; - } else { - windowObj.appendChild(propObj); - } - windowObj.appendChild(navObj); - var data = top.rtwreport_inspect_frame.document.getElementById("popup_window"); - if (data) { - data.parentNode.replaceChild(windowObj.cloneNode(true), data); - } - } - var offsetHeight = 0; - var docHeight = 0; - if (typeof(top.rtwInspectFrame().document.body.offsetHeight) === "number") { - offsetHeight = top.rtwInspectFrame().document.body.offsetHeight; - } - if (typeof(top.rtwInspectFrame().document.height) === "number") { - docHeight = top.rtwInspectFrame().document.height; - } - if (offsetHeight > 0) { - height = ""+offsetHeight+"px"; - } else if (docHeight > 0) { - height = ""+docHeight+"px"; - } - setInspectWindow(height); - return false; -} -function setInspectWindow(height) { - // show inspect code frame - var midFrame = rtwMidFrame(); - if (midFrame) { - var tmp = midFrame.rows.split(","); - tmp[getInspectFrameIdx()] = height; - midFrame.rows = tmp.join(); - } -} -function closeInspectWindow() { - setInspectWindow(0); - return false; -} - -// set the trace number in the navigation toolbar -function setTraceNumber() { - if (RTW_TraceInfo.instance) { - var aFrame = rtwNavToolbarFrame(); - if (aFrame) { - var node = aFrame.document.getElementById("rtwIdTraceNumber"); - // calculate current line index over total highlighted lines - var currNum = RTW_TraceInfo.instance.getCurrLineIdx(); - for (var idx=0;idx 0) - line = (line > GlobalConfig.offset ? line - GlobalConfig.offset : 1); - return line; -} - -function load_js(frame, file) { - var h = frame.document.getElementsByTagName("head")[0]; - var o = h.getElementsByTagName('script'); - for (var i=0;iBlock-to-Code Highlighting Message - - - -

    Block-to-Code Highlighting Message

    - - \ No newline at end of file diff --git a/src/validation/slprj/ert/ActuatorControl/html/rtwreport.css b/src/validation/slprj/ert/ActuatorControl/html/rtwreport.css deleted file mode 100644 index 54b994a6f2bac912ba0b2173a60c9788d7de7aa2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/rtwreport.css +++ /dev/null @@ -1,257 +0,0 @@ -/* Copyright 2011-2016 The MathWorks, Inc. */ -body,p,table {font-family: calibri, verdana, sans-serif;} -button,.buton {font-family: calibri, verdana, sans-serif;} -button,.button {font-size: small;} -.small_font {font-size: small;} -h1 { font-weight: normal; color: #000066; } -td { vertical-align: top } -th { background-color: #eeeeee; text-align: left; } -a:link { color: #0033cc; } -a:visited { color: #666666; } -input { font-family: sans-serif, verdana, calibri; } -table { - background-color: #ffffff; - width: 100%; -} - -table.toc, table.button, table.panel { - border-style: none; -} - -/* LineNumber */ -.LN { - font-style: italic; - color: #888888; -} - -/* Comment */ -.CT { - font-style: italic; - color: #117755; -} - -/* PreProcessor */ -PP { - /* font-weight: bold; */ - color: #992211; -} - -/* Keyword */ -.KW { - /* font-weight: bold; */ - color: #0000FF; -} - -/* Datatype */ -.DT { - /* font-weight: bold; */ - color: #112266 -} - -.highlighted { - background-color: yellow; -} - -.highlightedCurrent { - background-color: rgba(150, 12, 116, 0.1); -} - -input.search { - background-color: #ffffff; -} - -input.failedSearch { - background-color: #F78181; -} - -/* ensure that code2model links are comment green */ -a.code2model:link { - color: #117755; - font-style: italic; -} -a.code2model:visited{ - color: #117755; - font-style: italic; -} - -.toc td, .button td, .panel td { - border-style: none; - padding: 4px; -} - -h1 { font-weight: normal; color: #000066; } -td { vertical-align: top } -th { background-color: #eeeeee; text-align: left; } -a:link { color: #0033cc; } -a:visited { color: #666666; } - -/******* table *******/ -/* default table style */ -table.AltRow { - border-collapse: collapse; border: none; border-spacing: 0pt; - border-top: solid #4F81BD 1.0pt; border-bottom: solid #4F81BD 1.0pt; -} -table.AltRow th, table.AltRow td { padding: 2pt 8pt 2pt 2pt } -/* default alternating row style */ -table.AltRow tr.even td { background-color:#D3DFEE; border:none;} -table.AltRow tr.odd td { background-color:#FFFFFF; border:none;} -/* tr class="heading" */ -table.AltRow tr.heading td, table.AltRow th { - background-color:#FFFFFF; font-weight:bold; border:none; - border-bottom: solid #4F81BD 1.0pt; -} -/* table class="FirstColumn" */ -table.FirstColumn td:first-child { font-weight:bold } -/* table class="TotalRow" */ -table.TotalRow tr:last-child { font-weight:bold } -table.TotalRow tr:last-child td { border-top: solid #4F81BD 1.0pt } - -a.closeButton { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) ); - background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9'); - background-color:#f9f9f9; - -webkit-border-top-left-radius:20px; - -moz-border-radius-topleft:20px; - border-top-left-radius:20px; - -webkit-border-top-right-radius:20px; - -moz-border-radius-topright:20px; - border-top-right-radius:20px; - -webkit-border-bottom-right-radius:20px; - -moz-border-radius-bottomright:20px; - border-bottom-right-radius:20px; - -webkit-border-bottom-left-radius:20px; - -moz-border-radius-bottomleft:20px; - border-bottom-left-radius:20px; - text-indent:0; - border:2px solid #dcdcdc; - display:inline-block; - color:#454143; - font-family:Arial; - font-size:15px; - font-weight:bold; - font-style:normal; - height:20px; - line-height:20px; - width:20px; - text-decoration:none; - text-align:center; - cursor: pointer; -} -a.closeButton:hover { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #e9e9e9), color-stop(1, #f9f9f9) ); - background:-moz-linear-gradient( center top, #e9e9e9 5%, #f9f9f9 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#f9f9f9'); - background-color:#e9e9e9; -} -a.closeButton:active { - position:relative; - top:1px; -} - -.button { - -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; - -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; - box-shadow:inset 0px 1px 0px 0px #ffffff; - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); - background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); - background-color:#ededed; - -webkit-border-top-left-radius:5px; - -moz-border-radius-topleft:5px; - border-top-left-radius:5px; - -webkit-border-top-right-radius:5px; - -moz-border-radius-topright:5px; - border-top-right-radius:5px; - -webkit-border-bottom-right-radius:5px; - -moz-border-radius-bottomright:5px; - border-bottom-right-radius:5px; - -webkit-border-bottom-left-radius:5px; - -moz-border-radius-bottomleft:5px; - border-bottom-left-radius:5px; - text-indent:0px; - border:1px solid #dcdcdc; - display:inline-block; - color:black; - font-family:Arial; - font-size:12px; - font-weight:bold; - font-style:normal; - height:12px; - line-height:12px; - width:45px; - text-decoration:none; - text-align:center; - text-shadow:1px 1px 0px #ffffff; -} -.button:hover { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) ); - background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed'); - background-color:#dfdfdf; -}.button:active { - position:relative; - top:1px; -}.button:disabled { - color:#777777; -} - -ul.nav_list { - list-style-type:none; - display: block; - margin: 0; - padding: 0; -} -ul.nav_list li { - list-style-type:none; - display: inline; - margin: 0 18px 0 0; - padding: 0; -} - -.nav_toolbar { - background-color: ivory; - margin-top: 0; -} - -.inspect_body { - margin: 0; - margin-bottom: 0; - display: inline; - vertical-align:middle; -} - -table.nav_table { - background-color: ivory; - border: none; - width: 100%; - display: inline; - vertical-align:middle; -} - -table#rtwIdTracePanel > tr > td { - white-space: nowrap; - table-layout:fixed; - vertical-align:middle; -} - -table.nav_table > button { - height: 20px; -} -select#fileSelector { - padding: 5px; - font-size: 16px; - line-height: 1; - border-radius: 0; - height: 34px; -} - -.treeTable table{ - table-layout: fixed; -} -.treeTable td:first-child > span{ - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - width: 100%; -} diff --git a/src/validation/slprj/ert/ActuatorControl/html/rtwreport_utils.js b/src/validation/slprj/ert/ActuatorControl/html/rtwreport_utils.js deleted file mode 100644 index f58fb496cf4f81b357b1ab8f7fab93e17954488b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/rtwreport_utils.js +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright 2011-2013 The MathWorks, Inc. - - -function local_onload() { - if (typeof top.rtwreport_document_frame !== "undefined") { - var docObj = window.document; - var alink = docObj.getElementById("linkToText_plain"); - if (alink) { - alink.href = "matlab:coder.internal.editUrlTextFile('" + alink.href + "')"; - } - alink = docObj.getElementById("linkToCS"); - if (alink) { - alink.href = "matlab:coder.internal.viewCodeConfigsetFromReport('" + alink.href + "');"; - } - } -} - -var utils = (function() { - - // Load via Microsoft.XMLDOM--for older versions of IE - function loadXML_MSXMLDOM(filename, callback, async) { - if (navigator.appName == "Microsoft Internet Explorer") { - // Internet Explorer 5/6 - try { - var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); - xmlDoc.async = async; - xmlDoc.onreadystatechange = function() { - if (xmlDoc.readyState == 4) { - callback(xmlDoc); - } - } - xmlDoc.load(filename); - return true; - } catch(e) { - } - } - return false; - } - - // Load via XMLHttpRequest - function loadXML_XHR(filename, callback, async) { - if (window.XMLHttpRequest) { - try { - var xhr = new XMLHttpRequest(); - xhr.onreadystatechange = function() { - if (this.readyState == 4) { - callback(this.responseXML); - } - } - xhr.open("GET", filename, async); - xhr.send(""); - return true; - } catch(e) { - if (navigator.appName === "Netscape" && e.code === 1012) { - // file not found: ignore - return true; - } - } - } - return false; - } - - return { - trimText: function(s) { - // In IE9, String.trim not present - if (s && s.trim) { - return s.trim(); - } - else { - return s; - } - }, - getText: function(elt) { - // In IE9, use 'text' property rather than 'textContent' - return elt.textContent ? elt.textContent : elt.text; - }, - loadXML: function(filename, callback, options) { - var async = !!options && typeof(options["async"]) !== "undefined" ? options.async : true; - if (!loadXML_XHR(filename, callback, async)) { - if (!loadXML_MSXMLDOM(filename, callback, async)) { - return false; - } - } - return true; - } - }; -})(); - -function code2model(sid) { - utils.loadXML("http://localhost:31415/matlab/feval/coder.internal.code2model?arguments=[\"" + sid + "\"]", function() {}); - //window.location.href = "matlab:coder.internal.code2model('" + sid + "')"; -} diff --git a/src/validation/slprj/ert/ActuatorControl/html/rtwshrink.js b/src/validation/slprj/ert/ActuatorControl/html/rtwshrink.js deleted file mode 100644 index 8e2affbfbd2119cffdbdbb58eeaf5670e7b04da2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/rtwshrink.js +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright 2011-2017 The MathWorks, Inc. - -function RTW_STRUCT(prop, value) { - this.prop = prop; - if (typeof(value) == 'undefined') { - this.value = ""; - } else { - this.value = value; - } -} - -// initialize the cache when code generation report is first loaded -function RTW_BOOK() { - this.length = 0; - this.rtw_pages = new Array(); - this.getPage = function(file) { - return this.rtw_pages[file]; - }; - this.addPage = function(file) { - var page; - if (this.hasPage(file)) { - page = this.rtw_pages[file]; - } else { - page = new RTW_PAGE(file); - this.rtw_pages[file] = page; - } - return page; - }; - this.hasPage = function(file) { - return typeof(this.rtw_pages[file]) != 'undefined'; - }; - this.removePage = function(file) { - var tmp; - if (typeof(this.rtw_pages[file]) != 'undefined') { - tmp = this.rtw_pages[file]; - delete this.rtw_pages[file]; - this.length--; - } - return tmp; - }; -} - -if (!RTW_BOOK.instance) { - RTW_BOOK.instance = new RTW_BOOK(); -} - -function RTW_PAGE() { - this.length = 0; - this.items = new Array(); - this.pagename = ''; - if (arguments.length > 0 && typeof(arguments[1]) != 'undefined') { - this.pagename = arguments[1]; - } - - this.getItem = function(id) { - return this.items[id]; - }; - this.getItems = function() { - return this.items; - }; - this.addItem = function(id, value) { - var tmp; - if (typeof(value) != 'undefined') { - if (typeof(this.items[id]) != 'undefined') { - this.length++; - } else { - tmp = this.items[id]; - } - this.items[id] = value; - this.length++; - } - return tmp; - }; - this.hasItem = function(id) { - return typeof(this.items[id]) != 'undefined'; - }; - this.removeItem = function(id) { - var tmp; - if (typeof(this.items[id]) != 'undefined') { - tmp = this.items[id]; - delete this.items[id]; - this.length--; - } - return tmp; - }; -} - -function rtwTableShrink(doc, obj, id, isSymbol) { - var hide, hide_text, show, show_text; - if (isSymbol) { - hide = "[-]"; - hide_text = hide; - show = "[+]"; - show_text = show; - } else { - hide = "[hide]"; - hide_text = "[hide]"; - show = "[show]"; - show_text = "[show]"; - } - hide = "" + hide + ""; - show = "" + show + ""; - if (doc.getElementsByName) { - var o = doc.getElementsByName(id); - for (var oid = 0; oid < o.length; ++oid) { - if (o[oid].style.display === "none") { - o[oid].style.display = ""; - } else { - o[oid].style.display = "none"; - } - } - if (o.length >= 0 && addToPage) { - addToPage(doc, o[0], 'display'); - } - } - - // IE supports innerText while other browsers support textContent - if (obj.textContent) { - var objText = obj.textContent; - } else { - var objText = obj.innerText; - } - - if (objText.toLowerCase() === show_text.toLowerCase()) { - obj.innerHTML = hide; - } else { - obj.innerHTML = show; - } - - if (addToPage) { - addToPage(doc, obj, 'innerHTML'); - } -} - -function rtwTableExpand(doc, controlObj, id) { - if (doc.getElementById) { - var obj = doc.getElementById(id); - if (obj && obj.style.display === "none") { - rtwTableShrink(doc, controlObj, id, false); - } - } -} - -function restoreState(docObj) { - var filename = docObj.location.href; - if (RTW_BOOK.instance && RTW_BOOK.instance.hasPage(filename)) { - var page = RTW_BOOK.instance.getPage(filename); - var items = page.getItems(); - var elem; - if (docObj.getElementsByName) { - for (var i in items) { - var o = docObj.getElementsByName(i); - for (var oid = 0; oid < o.length; ++oid) { - elem = o[oid]; - if (items[i].prop === 'display') { - if (elem.style.display === 'none') { - elem.style.display = ''; - } else { - elem.style.display = 'none'; - } - } else if (items[i].prop === 'innerHTML') { - elem.innerHTML = items[i].value; - } - } - } - } - } -} - -function addToPage(docObj, obj, prop) { - var filename = docObj.location.href; - if (RTW_BOOK.instance) { - var page; - if (RTW_BOOK.instance.hasPage(filename)) { - page = RTW_BOOK.instance.getPage(filename); - } else { - page = RTW_BOOK.instance.addPage(filename); - } - if (page.hasItem(obj.id)) { - page.removeItem(obj.id); - } else { - var my_struct; - if (prop === "display") { - my_struct = new RTW_STRUCT(prop, obj.style.display); - } else { - my_struct = new RTW_STRUCT(prop, obj.innerHTML); - } - page.addItem(obj.id, my_struct); - } - } -} - -function rtwSwitchView(doc, obj1, obj2) { - if (doc.getElementsByName) { - var o = doc.getElementsByName(obj1); - for (var oid = 0; oid < o.length; ++oid) { - o[oid].style.display = "none"; - } - if (o.length >= 0 && addToPage) { - addToPage(doc, o[0], 'display'); - } - var o = doc.getElementsByName(obj2); - for (var oid = 0; oid < o.length; ++oid) { - o[oid].style.display = ""; - } - if (o.length >= 0 && addToPage) { - addToPage(doc, o[0], 'display'); - } - } -} diff --git a/src/validation/slprj/ert/ActuatorControl/html/search.js b/src/validation/slprj/ert/ActuatorControl/html/search.js deleted file mode 100644 index 816380f81409e4e52d0992bb3e317d0e25fd465a..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/search.js +++ /dev/null @@ -1,559 +0,0 @@ -// Copyright 2007-2012 The MathWorks, Inc. - -function createHighlightSpanStart(num) -{ - return ""; -} - -var str2pos; // This is a map between a tag stripped string and the original string. -function getTagStrippedStringAndMap(aString) -{ - var tagStrippedString = new String(); - - str2pos = new Array(); - - var inTag = false; - var inScript = false; - - for (var strPos = 0; strPos < aString.length; strPos++) { - if (inTag && aString.charAt(strPos) == '>') { - inTag = false; - if (inScript && (strPos > 8) && (aString.slice(strPos, strPos - 8) == '/script>')) { - inScript = false; - } - continue; - } else if (!inTag && aString.charAt(strPos) == '<') { - inTag = true; - if (!inScript && aString.slice(strPos, strPos + 7) == ' str2posprev+1) // we have jumped some text, so there must be a tag - { - // insert end tag - newText += highlightEndTag; - - // insert intermediate body text tags - newText += bodyText.slice(str2posprev+1, str2pos[cnt]); - - // insert start tag - newText += highlightStartTag; - } - newText += bodyText.charAt(str2pos[cnt]); - str2posprev=str2pos[cnt]; - } - - // insert end - newText += highlightEndTag; - return newText; - -} - -// check to see if the sequence at position 'i' in taglessString is actually in -// the middle of an escape sequence. We assume escape sequences follow the pattern -// &;. We check for  , <, > and & -function isInEscapedSequence(i, taglessString, searchTerm) -{ - var escapeSeq = / |<|>|&/gi; - var maxEscapeSeqLength = 6; - var startPos = 0; - var endPos = 0; - - // exit if the search term has an escape sequence inside it - if (escapeSeq.test(searchTerm)) { - return false; - } - - // reset the escape sequence - escapeSeq = / |<|>|&/gi; - - // go back in the string until we find an ampersand or we hit maxEscapeSeqLength characters - tempI = i; - var bFound = false; - while (tempI >= 0 && tempI > (i-maxEscapeSeqLength)) { - if (taglessString.charAt(tempI) == "&") { - startPos = tempI; - bFound = true; - break; - } - tempI = tempI-1; - - // if we hit a ';' in any position other than the first while searching - // for an ampersand, then we cannot be inside an escape sequence - if (tempI >= 0 && taglessString.charAt(tempI) == ";") { - return false; - } - } - if (!bFound) { - return false; - } - // reset the escape sequence - escapeSeq = / |<|>|&/gi; - - var subString = taglessString.substring(startPos, startPos + maxEscapeSeqLength); - return escapeSeq.test(subString); -} - -// Adds highlighting to bodyText around searchTerm. Case sensitivity is optional. -// hitCount is used to a) count the number of search matches and b) Generate unique -// name strings for each highlighting SPAN element. -function addHighlight(bodyText, searchTerm, caseSensitive, hitCount) -{ - var highlightStartTag = ""; - var highlightEndTag = ""; - - var newText = ""; - var i = 0; - var previ = 0; - var bodyTextUC = bodyText.toUpperCase(); - - if (caseSensitive) { - var taglessString = getTagStrippedStringAndMap(bodyText); - } else { - var taglessString = getTagStrippedStringAndMap(bodyTextUC); - } - - // escape the search term in case the user input '<' or '>' etc - searchTerm = escapeSpecialChars(searchTerm); - - if (!caseSensitive) { - var searchTermUC = searchTerm.toUpperCase(); - } - - // search for subsequent matches - while (true) { - if (caseSensitive) { - i = taglessString.indexOf(searchTerm, i); - } else { - i = taglessString.indexOf(searchTermUC, i); - } - if (i < 0) break; - - // we have a match! - - // make sure that the match is not inside an escaped sequence of text - // such as   - if (isInEscapedSequence(i, taglessString, searchTerm)) { - i=i+1; - continue; - } - - // insert highlight tags that cross tag boundaries - highlightStartTag = createHighlightSpanStart(hitCount); - hitCount = hitCount+1; - newText += insertHighlighting(bodyText, previ, i, searchTerm.length, highlightStartTag, highlightEndTag); - previ = str2pos[i+searchTerm.length-1]+1; - - i = i + searchTerm.length; - } - - newText += bodyText.slice(previ, bodyText.length); - return [newText, hitCount]; -} - -function removeHighlight(bodyText) -{ - // We use regular expressions here rather than a straight text search because - // some browsers actually insert double quotes and capitalize. Also, each highlight - // name is uniquely numbered in order of discovery - var highlightStartTag = //i; - var highlightEndTag = /<\/span>/i; - - var newText = ""; - - var startPatternFirstIndex = -1; - var startPatternLastIndex = -1; - - var endPatternFirstIndex = -1; - var endPatternLastIndex = -1; - - while (highlightStartTag.test(bodyText) === true) { - startPatternFirstIndex = bodyText.search(highlightStartTag); - newText += bodyText.substring(0, startPatternFirstIndex); - startPatternLastIndex = bodyText.indexOf('>', startPatternFirstIndex+1); - - bodyText = bodyText.substr(startPatternLastIndex+1); - endPatternFirstIndex = bodyText.search(highlightEndTag); - newText += bodyText.substring(0, endPatternFirstIndex); - endPatternLastIndex = endPatternFirstIndex+7; - - bodyText = bodyText.substr(endPatternLastIndex); - } - if (startPatternFirstIndex < 0) { - return bodyText; - } else { - return newText+bodyText; - } -} - -function removeHighlightInAllDocs() -{ - if (top) { - for (var i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var currentDoc = top.frames[i].document; - if (typeof currentDoc.body !== "undefined" && currentDoc.body !== null) - currentDoc.body.innerHTML=removeHighlight(currentDoc.body.innerHTML); - } - } - } -} - -function findInDoc(searchStringFromSubmitBox, doc, caseSensitive, hitCount) -{ - var searchBody = doc.body.innerHTML; - // if the document is empty, or the documents is invalid, return - if (!doc.body || typeof(searchBody) === "undefined") { - return [false, hitCount]; - } - - // inject highlighting code into html - var result = addHighlight(searchBody, searchStringFromSubmitBox, caseSensitive, hitCount); - doc.body.innerHTML = result[0]; - - return [true, result[1]]; -} - -var currentlyHighlightedHit; - -function getSpansByName(name) -{ - var allSpans = []; - for (i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var currentDoc = top.frames[i].document; - var highlightedSpans = currentDoc.getElementsByName(name); - if (highlightedSpans && highlightedSpans.length && highlightedSpans.length > 0) { - for (j = 0; j < highlightedSpans.length; j++) { - allSpans = allSpans.concat(highlightedSpans[j]); - } - } - } - } - return allSpans; -} - -function isVisibleElement(elementID) -{ - if (elementID) - return elementID.offsetWidth > 0 || elementID.offsetHeight > 0; - else - return false; -} - -function areAllSpansVisible(spans) -{ - isVisible = true; - for (i = 0; i < highlightedSpans.length; i++) { - isVisible = isVisible && isVisibleElement(highlightedSpans[i]); - } - return isVisible; -} - -function getNextVisible() -{ - var isVisible = false; - var foundVisible = false; - while (!isVisible) { - currentlyHighlightedHit = currentlyHighlightedHit + 1; - highlightedSpans = setCurrentSearchMatchIfVisible(currentlyHighlightedHit); - if (highlightedSpans && highlightedSpans.length > 0) { - isVisible = true; - } else if (currentlyHighlightedHit < totalHits) { - continue; - } else { - // we have reached the end - isVisible = false; - currentlyHighlightedHit = 0; - highlightedSpans = null; - break; - } - } - - return highlightedSpans; -} - -function clearCurrentSearchMatch() -{ - // clear prior highlighting - spanName = "highlight" + currentlyHighlightedHit; - highlightedSpans = getSpansByName(spanName); - if (highlightedSpans && highlightedSpans.length) { - for (i = 0; i < highlightedSpans.length; i++) { - if (highlightedSpans[i]) { - highlightedSpans[i].setAttribute("class", "highlighted"); - } - } - } -} - -function setCurrentSearchMatchIfVisible(hitNum){ - currentlyHighlightedHit = hitNum; - var spanName = "highlight" + currentlyHighlightedHit; - var highlightedSpans = getSpansByName(spanName); - if (highlightedSpans && highlightedSpans.length) { - for (i = 0; i < highlightedSpans.length; i++) { - if (!isVisibleElement(highlightedSpans[i])) { - highlightedSpans = null; - break; - } - } - } - return highlightedSpans; -} - -// this takes in an option integer 'hitNum'. If not specified, it scrolls -// to the next hit -function scrollToNextHit(hitNum) -{ - var i = 0; - var found = false; - var spanName = ""; - var highlightedSpans; - var searchBox = findElement('searchTxtBox'); - - clearCurrentSearchMatch(); - - if (hitNum) { - // if a number is provided, use it - highlightedSpans = setCurrentSearchMatchIfVisible(hitNum); - } else { - // start working on next element to highlight - highlightedSpans = getNextVisible(); - } - - // we found the current - if (highlightedSpans && highlightedSpans.length > 0) { - highlightedSpans[0].scrollIntoView(); - for (i = 0; i < highlightedSpans.length; i++) { - highlightedSpans[i].setAttribute("class", "highlightedCurrent"); - } - searchBox.setAttribute("class", "search"); - - // if highlightedSpans is invalid, then we did not find any valid, visible subsequent matches - // wrap to beginning or indicate no matches - } else { - // Element not found. Scroll to first visible element - currentlyHighlightedHit = 0; - var highlightedSpans = getNextVisible(currentlyHighlightedHit); - if (highlightedSpans && highlightedSpans.length > 0) { - highlightedSpans[0].scrollIntoView(); - for (i = 0; i < highlightedSpans.length; i++) { - highlightedSpans[i].setAttribute("class", "highlightedCurrent"); - } - searchBox.setAttribute("class", "search"); - } else { - // there aren't any matches - searchBox.setAttribute("class", "failedSearch"); - } - } -} - -// find search box -function findElement(element) -{ - var i = 0; - for (i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var elem = top.frames[i].document.getElementById(element); - if (elem) { - return elem; - } - } - } -} - -// Restore search term once form is submitted -function initSearchBox(strInitValue) -{ - var txtBox = findElement('searchTxtBox'); - if (txtBox) { - txtBox.value = strInitValue; - } -} - -// Sets focus back on to the text box -function setFocusOnTxtBox() -{ - var txtBox = findElement('searchTxtBox'); - if (txtBox) { - txtBox.focus(); - txtBox.select(); - } - return txtBox; -} - -var previousSearchString; -var totalHits; -function findInAllDocs(searchStringFromSubmitBox, caseSensitive) -{ - if (previousSearchString != searchStringFromSubmitBox) { - // If the search string has changed or a new page has been loaded, do a new search - var hitCount = 1; - var i = 0; - var success = false; - previousSearchString = searchStringFromSubmitBox; - - // start by removing traceinfo highlighting - rtwRemoveHighlighting(); - - // remove all previous search highlighting - removeHighlightInAllDocs(); - - // 1. Iterate through all frames in window and search - for (i = 0; i < top.frames.length; i++) { - var currentDoc = top.frames[i].document; - - // if we have no search term, restore - if (searchStringFromSubmitBox !== "") { - // search and highlight in all frames - var srchResult = findInDoc(searchStringFromSubmitBox, currentDoc, caseSensitive, hitCount); - hitCount = srchResult[1]; - totalHits = srchResult[1]; - } - } - - // 2. Restore search term once form is submitted and text highlighted - if (searchStringFromSubmitBox != "") { - strInitValue = searchStringFromSubmitBox; - } - initSearchBox(strInitValue); - - // 3. Scroll to the first hit encountered - scrollToNextHit(1); - - // 4. Set focus back to text box and select text - var txtBox = setFocusOnTxtBox(); - if (txtBox) { - txtBox.select(); - } - - } else { - // If the search string is the same, then scroll to the next - // hit if the hit is valid. Else wrap back. - scrollToNextHit(); - } - return false; -} - -// if the search box is empty, clear highlighting -function clearIfEmpty() -{ - txtBox = findElement('searchTxtBox'); - if (txtBox.value == "") { - txtBox.setAttribute("class", "search"); - removeHighlightInAllDocs(); - previousSearchString=""; - setFocusOnTxtBox(); - } -} - -function keyPressSwitchyard(keyPressEvent) -{ - var kc; - keyPressEvent = (keyPressEvent == null ? window.keyPressEvent : keyPressEvent); - - // typically IE does not support this - if (!keyPressEvent || (typeof keyPressEvent == "undefined")) { - return; - } - - if (keyPressEvent.keyCode) { - kc=keyPressEvent.keyCode; - } else if (keyPressEvent.which) { - kc=keyPressEvent.which; - } else { - return; - } - - // we do not care about the browser find appearing. If it does appear, then - // we are running an external browser and that is okay. - - // handle Ctrl-Key combinations - if (keyPressEvent.ctrlKey) { - switch (kc) { - case 70: // Ctrl-F - { - setFocusOnTxtBox(); - break; - } - - default: break; - } - } -} - -function installDocumentKeyPressHandler() -{ - var i = 0; - for (i = 0; i < top.frames.length; i++) { - var currentDoc = top.frames[i].document; - currentDoc.onkeydown = keyPressSwitchyard; - } - top.document.onkeydown = keyPressSwitchyard; - - // This also clears search related highlighting - removeHighlightInAllDocs(); - currentlyHighlightedHit = 0; - if (previousSearchString) initSearchBox(previousSearchString); - previousSearchString = ""; -} - -// This function is a onresize callback for the rtwreport_contents_frame -// It is used to dynamically resize the searchbox based on the size of the frame. -function setWidthDynamic(frameID, elementID, extraSpace, minSize) -{ - var frame = document.getElementById(frameID); - - // sanity check input args - if (frame && extraSpace > 0 && minSize > 0) { - var frameWidth = frame.scrollWidth; - var newSize = extraSpace + minSize + 40; // 40 is the extra whitespace - var element = findElement(elementID); - if (element) - { - if (frameWidth < newSize) { - element.style.width = minSize; - } else { - element.style.width = frameWidth - extraSpace - 40; - } - } - } -} diff --git a/src/validation/slprj/ert/ActuatorControl/html/spinner.gif b/src/validation/slprj/ert/ActuatorControl/html/spinner.gif deleted file mode 100644 index e4ab78302c5d6ff92def7688c291999a4fcbd70d..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/html/spinner.gif and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/html/traceInfo.mat b/src/validation/slprj/ert/ActuatorControl/html/traceInfo.mat deleted file mode 100644 index 867cbf187854566c828cb0f35a7c15f3e1efeef6..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/html/traceInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/html/traceInfo_flag.js b/src/validation/slprj/ert/ActuatorControl/html/traceInfo_flag.js deleted file mode 100644 index 5733208976c2e34d09c905003c60bf41031a24ff..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/html/traceInfo_flag.js +++ /dev/null @@ -1,140 +0,0 @@ -function TraceInfoFlag() { - this.traceFlag = new Array(); - this.traceFlag["ActuatorControl.c:75c26"]=1; - this.traceFlag["ActuatorControl.c:94c28"]=1; - this.traceFlag["ActuatorControl.c:94c63"]=1; - this.traceFlag["ActuatorControl.c:94c72"]=1; - this.traceFlag["ActuatorControl.c:95c5"]=1; - this.traceFlag["ActuatorControl.c:95c18"]=1; - this.traceFlag["ActuatorControl.c:95c52"]=1; - this.traceFlag["ActuatorControl.c:95c63"]=1; - this.traceFlag["ActuatorControl.c:100c42"]=1; - this.traceFlag["ActuatorControl.c:100c50"]=1; - this.traceFlag["ActuatorControl.c:101c46"]=1; - this.traceFlag["ActuatorControl.c:104c48"]=1; - this.traceFlag["ActuatorControl.c:104c51"]=1; - this.traceFlag["ActuatorControl.c:105c48"]=1; - this.traceFlag["ActuatorControl.c:140c26"]=1; - this.traceFlag["ActuatorControl.c:159c28"]=1; - this.traceFlag["ActuatorControl.c:159c63"]=1; - this.traceFlag["ActuatorControl.c:159c72"]=1; - this.traceFlag["ActuatorControl.c:160c5"]=1; - this.traceFlag["ActuatorControl.c:160c18"]=1; - this.traceFlag["ActuatorControl.c:160c52"]=1; - this.traceFlag["ActuatorControl.c:160c63"]=1; - this.traceFlag["ActuatorControl.c:165c42"]=1; - this.traceFlag["ActuatorControl.c:165c50"]=1; - this.traceFlag["ActuatorControl.c:166c46"]=1; - this.traceFlag["ActuatorControl.c:169c48"]=1; - this.traceFlag["ActuatorControl.c:169c51"]=1; - this.traceFlag["ActuatorControl.c:170c48"]=1; - this.traceFlag["ActuatorControl.c:205c26"]=1; - this.traceFlag["ActuatorControl.c:224c28"]=1; - this.traceFlag["ActuatorControl.c:224c61"]=1; - this.traceFlag["ActuatorControl.c:224c70"]=1; - this.traceFlag["ActuatorControl.c:225c5"]=1; - this.traceFlag["ActuatorControl.c:225c18"]=1; - this.traceFlag["ActuatorControl.c:225c50"]=1; - this.traceFlag["ActuatorControl.c:225c61"]=1; - this.traceFlag["ActuatorControl.c:230c40"]=1; - this.traceFlag["ActuatorControl.c:230c48"]=1; - this.traceFlag["ActuatorControl.c:231c44"]=1; - this.traceFlag["ActuatorControl.c:234c46"]=1; - this.traceFlag["ActuatorControl.c:234c49"]=1; - this.traceFlag["ActuatorControl.c:235c46"]=1; - this.traceFlag["ActuatorControl.c:293c59"]=1; - this.traceFlag["ActuatorControl.c:303c39"]=1; - this.traceFlag["ActuatorControl.c:306c41"]=1; - this.traceFlag["ActuatorControl.c:306c43"]=1; - this.traceFlag["ActuatorControl.c:307c41"]=1; - this.traceFlag["ActuatorControl.c:314c35"]=1; - this.traceFlag["ActuatorControl.c:325c59"]=1; - this.traceFlag["ActuatorControl.c:335c39"]=1; - this.traceFlag["ActuatorControl.c:338c41"]=1; - this.traceFlag["ActuatorControl.c:338c43"]=1; - this.traceFlag["ActuatorControl.c:339c41"]=1; - this.traceFlag["ActuatorControl.c:346c35"]=1; - this.traceFlag["ActuatorControl.c:357c59"]=1; - this.traceFlag["ActuatorControl.c:367c39"]=1; - this.traceFlag["ActuatorControl.c:370c41"]=1; - this.traceFlag["ActuatorControl.c:370c43"]=1; - this.traceFlag["ActuatorControl.c:371c41"]=1; - this.traceFlag["ActuatorControl.c:378c35"]=1; -} -top.TraceInfoFlag.instance = new TraceInfoFlag(); -function TraceInfoLineFlag() { - this.lineTraceFlag = new Array(); - this.lineTraceFlag["ActuatorControl.c:59"]=1; - this.lineTraceFlag["ActuatorControl.c:69"]=1; - this.lineTraceFlag["ActuatorControl.c:75"]=1; - this.lineTraceFlag["ActuatorControl.c:94"]=1; - this.lineTraceFlag["ActuatorControl.c:95"]=1; - this.lineTraceFlag["ActuatorControl.c:100"]=1; - this.lineTraceFlag["ActuatorControl.c:101"]=1; - this.lineTraceFlag["ActuatorControl.c:102"]=1; - this.lineTraceFlag["ActuatorControl.c:104"]=1; - this.lineTraceFlag["ActuatorControl.c:105"]=1; - this.lineTraceFlag["ActuatorControl.c:117"]=1; - this.lineTraceFlag["ActuatorControl.c:124"]=1; - this.lineTraceFlag["ActuatorControl.c:134"]=1; - this.lineTraceFlag["ActuatorControl.c:140"]=1; - this.lineTraceFlag["ActuatorControl.c:159"]=1; - this.lineTraceFlag["ActuatorControl.c:160"]=1; - this.lineTraceFlag["ActuatorControl.c:165"]=1; - this.lineTraceFlag["ActuatorControl.c:166"]=1; - this.lineTraceFlag["ActuatorControl.c:167"]=1; - this.lineTraceFlag["ActuatorControl.c:169"]=1; - this.lineTraceFlag["ActuatorControl.c:170"]=1; - this.lineTraceFlag["ActuatorControl.c:182"]=1; - this.lineTraceFlag["ActuatorControl.c:189"]=1; - this.lineTraceFlag["ActuatorControl.c:199"]=1; - this.lineTraceFlag["ActuatorControl.c:205"]=1; - this.lineTraceFlag["ActuatorControl.c:224"]=1; - this.lineTraceFlag["ActuatorControl.c:225"]=1; - this.lineTraceFlag["ActuatorControl.c:230"]=1; - this.lineTraceFlag["ActuatorControl.c:231"]=1; - this.lineTraceFlag["ActuatorControl.c:232"]=1; - this.lineTraceFlag["ActuatorControl.c:234"]=1; - this.lineTraceFlag["ActuatorControl.c:235"]=1; - this.lineTraceFlag["ActuatorControl.c:247"]=1; - this.lineTraceFlag["ActuatorControl.c:259"]=1; - this.lineTraceFlag["ActuatorControl.c:266"]=1; - this.lineTraceFlag["ActuatorControl.c:273"]=1; - this.lineTraceFlag["ActuatorControl.c:293"]=1; - this.lineTraceFlag["ActuatorControl.c:299"]=1; - this.lineTraceFlag["ActuatorControl.c:300"]=1; - this.lineTraceFlag["ActuatorControl.c:303"]=1; - this.lineTraceFlag["ActuatorControl.c:304"]=1; - this.lineTraceFlag["ActuatorControl.c:306"]=1; - this.lineTraceFlag["ActuatorControl.c:307"]=1; - this.lineTraceFlag["ActuatorControl.c:314"]=1; - this.lineTraceFlag["ActuatorControl.c:319"]=1; - this.lineTraceFlag["ActuatorControl.c:325"]=1; - this.lineTraceFlag["ActuatorControl.c:331"]=1; - this.lineTraceFlag["ActuatorControl.c:332"]=1; - this.lineTraceFlag["ActuatorControl.c:335"]=1; - this.lineTraceFlag["ActuatorControl.c:336"]=1; - this.lineTraceFlag["ActuatorControl.c:338"]=1; - this.lineTraceFlag["ActuatorControl.c:339"]=1; - this.lineTraceFlag["ActuatorControl.c:346"]=1; - this.lineTraceFlag["ActuatorControl.c:351"]=1; - this.lineTraceFlag["ActuatorControl.c:357"]=1; - this.lineTraceFlag["ActuatorControl.c:363"]=1; - this.lineTraceFlag["ActuatorControl.c:364"]=1; - this.lineTraceFlag["ActuatorControl.c:367"]=1; - this.lineTraceFlag["ActuatorControl.c:368"]=1; - this.lineTraceFlag["ActuatorControl.c:370"]=1; - this.lineTraceFlag["ActuatorControl.c:371"]=1; - this.lineTraceFlag["ActuatorControl.c:378"]=1; - this.lineTraceFlag["ActuatorControl.c:383"]=1; - this.lineTraceFlag["ActuatorControl.h:55"]=1; - this.lineTraceFlag["ActuatorControl.h:56"]=1; - this.lineTraceFlag["ActuatorControl.h:57"]=1; - this.lineTraceFlag["ActuatorControl.h:58"]=1; - this.lineTraceFlag["ActuatorControl.h:59"]=1; - this.lineTraceFlag["ActuatorControl.h:60"]=1; - this.lineTraceFlag["ActuatorControl.h:61"]=1; - this.lineTraceFlag["ActuatorControl.h:62"]=1; - this.lineTraceFlag["ActuatorControl.h:63"]=1; -} -top.TraceInfoLineFlag.instance = new TraceInfoLineFlag(); diff --git a/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl.bat b/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl.bat deleted file mode 100644 index 9b78f3447628a07d63504615439959317f43a205..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl.bat +++ /dev/null @@ -1,15 +0,0 @@ -@if not "%MINGW_ROOT%" == "" (@set "PATH=%PATH%;%MINGW_ROOT%") - - -call "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a\bin\win64\checkMATLABRootForDriveMap.exe" "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a" > mlEnv.txt -for /f %%a in (mlEnv.txt) do set "%%a"\n -cd . - -if "%1"=="" ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f ActuatorControl.mk all) else ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f ActuatorControl.mk %1) -@if errorlevel 1 goto error_exit - -exit 0 - -:error_exit -echo The make command returned an error of %errorlevel% -exit 1 diff --git a/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl.mk b/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl.mk deleted file mode 100644 index 8219eca3652c805e00baafd1cd8a05bf3a37483b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl.mk +++ /dev/null @@ -1,410 +0,0 @@ -########################################################################### -## Makefile generated for Simulink model 'ActuatorControl'. -## -## Makefile : ActuatorControl.mk -## Generated on : Thu Jul 16 18:51:11 2020 -## MATLAB Coder version: 5.0 (R2020a) -## -## Build Info: -## -## Final product: ./ActuatorControl_rtwlib.lib -## Product type : static library -## Build type : Model Reference Library -## -########################################################################### - -########################################################################### -## MACROS -########################################################################### - -# Macro Descriptions: -# PRODUCT_NAME Name of the system to build -# MAKEFILE Name of this makefile -# COMPILER_COMMAND_FILE Compiler command listing model reference header paths -# CMD_FILE Command file -# MODELLIB Static library target - -PRODUCT_NAME = ActuatorControl -MAKEFILE = ActuatorControl.mk -MATLAB_ROOT = D:/Program Files/MATLAB/R2020a -MATLAB_BIN = D:/Program Files/MATLAB/R2020a/bin -MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64 -MASTER_ANCHOR_DIR = -START_DIR = D:/Documents/SCHOOL/McSCert/do178/src/validation -SOLVER = -SOLVER_OBJ = -CLASSIC_INTERFACE = 0 -TGT_FCN_LIB = ISO_C -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0 -RELATIVE_PATH_TO_ANCHOR = ../../../.. -COMPILER_COMMAND_FILE = ActuatorControl_comp.rsp -CMD_FILE = ActuatorControl.rsp -C_STANDARD_OPTS = -fwrapv -CPP_STANDARD_OPTS = -fwrapv -MODELLIB = ActuatorControl_rtwlib.lib - -########################################################################### -## TOOLCHAIN SPECIFICATIONS -########################################################################### - -# Toolchain Name: MinGW64 | gmake (64-bit Windows) -# Supported Version(s): 6.x -# ToolchainInfo Version: 2020a -# Specification Revision: 1.0 -# -#------------------------------------------- -# Macros assumed to be defined elsewhere -#------------------------------------------- - -# C_STANDARD_OPTS -# CPP_STANDARD_OPTS -# MINGW_ROOT -# MINGW_C_STANDARD_OPTS - -#----------- -# MACROS -#----------- - -WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -WARN_FLAGS_MAX = $(WARN_FLAGS) -Wcast-qual -Wshadow -CPP_WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wpointer-arith -Wcast-align -CPP_WARN_FLAGS_MAX = $(CPP_WARN_FLAGS) -Wcast-qual -Wshadow -MW_EXTERNLIB_DIR = $(MATLAB_ROOT)/extern/lib/win64/mingw64 -SHELL = %SystemRoot%/system32/cmd.exe - -TOOLCHAIN_SRCS = -TOOLCHAIN_INCS = -TOOLCHAIN_LIBS = -lws2_32 - -#------------------------ -# BUILD TOOL COMMANDS -#------------------------ - -# C Compiler: GNU C Compiler -CC_PATH = $(MINGW_ROOT) -CC = "$(CC_PATH)/gcc" - -# Linker: GNU Linker -LD_PATH = $(MINGW_ROOT) -LD = "$(LD_PATH)/g++" - -# C++ Compiler: GNU C++ Compiler -CPP_PATH = $(MINGW_ROOT) -CPP = "$(CPP_PATH)/g++" - -# C++ Linker: GNU C++ Linker -CPP_LD_PATH = $(MINGW_ROOT) -CPP_LD = "$(CPP_LD_PATH)/g++" - -# Archiver: GNU Archiver -AR_PATH = $(MINGW_ROOT) -AR = "$(AR_PATH)/ar" - -# MEX Tool: MEX Tool -MEX_PATH = $(MATLAB_ARCH_BIN) -MEX = "$(MEX_PATH)/mex" - -# Download: Download -DOWNLOAD = - -# Execute: Execute -EXECUTE = $(PRODUCT) - -# Builder: GMAKE Utility -MAKE_PATH = %MATLAB%/bin/win64 -MAKE = "$(MAKE_PATH)/gmake" - - -#------------------------- -# Directives/Utilities -#------------------------- - -CDEBUG = -g -C_OUTPUT_FLAG = -o -LDDEBUG = -g -OUTPUT_FLAG = -o -CPPDEBUG = -g -CPP_OUTPUT_FLAG = -o -CPPLDDEBUG = -g -OUTPUT_FLAG = -o -ARDEBUG = -STATICLIB_OUTPUT_FLAG = -MEX_DEBUG = -g -RM = @del -ECHO = @echo -MV = @move -RUN = - -#---------------------------------------- -# "Faster Builds" Build Configuration -#---------------------------------------- - -ARFLAGS = ruvs -CFLAGS = -c $(MINGW_C_STANDARD_OPTS) -m64 \ - -O0 -CPPFLAGS = -c $(CPP_STANDARD_OPTS) -m64 -std=c++11 \ - -O0 -CPP_LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -CPP_SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib -DOWNLOAD_FLAGS = -EXECUTE_FLAGS = -LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -MEX_CPPFLAGS = -MEX_CPPLDFLAGS = -MEX_CFLAGS = -MEX_LDFLAGS = -MAKE_FLAGS = -f $(MAKEFILE) -SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib - - - -########################################################################### -## OUTPUT INFO -########################################################################### - -PRODUCT = ./ActuatorControl_rtwlib.lib -PRODUCT_TYPE = "static library" -BUILD_TYPE = "Model Reference Library" - -########################################################################### -## INCLUDE PATHS -########################################################################### - -INCLUDES_BUILDINFO = - -INCLUDES = $(INCLUDES_BUILDINFO) - -########################################################################### -## DEFINES -########################################################################### - -DEFINES_BUILD_ARGS = -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DEFINES_CUSTOM = -DEFINES_OPTS = -DTID01EQ=0 -DPORTABLE_WORDSIZES -DEFINES_STANDARD = -DMODEL=ActuatorControl -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 - -DEFINES = $(DEFINES_BUILD_ARGS) $(DEFINES_CUSTOM) $(DEFINES_OPTS) $(DEFINES_STANDARD) - -########################################################################### -## SOURCE FILES -########################################################################### - -SRCS = $(START_DIR)/slprj/ert/ActuatorControl/ActuatorControl.c - -ALL_SRCS = $(SRCS) - -########################################################################### -## OBJECTS -########################################################################### - -OBJS = ActuatorControl.obj - -ALL_OBJS = $(OBJS) - -########################################################################### -## PREBUILT OBJECT FILES -########################################################################### - -PREBUILT_OBJS = - -########################################################################### -## LIBRARIES -########################################################################### - -LIBS = - -########################################################################### -## SYSTEM LIBRARIES -########################################################################### - -SYSTEM_LIBS = - -########################################################################### -## ADDITIONAL TOOLCHAIN FLAGS -########################################################################### - -#--------------- -# C Compiler -#--------------- - -CFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CFLAGS += $(CFLAGS_BASIC) - -#----------------- -# C++ Compiler -#----------------- - -CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CPPFLAGS += $(CPPFLAGS_BASIC) - -#--------------------- -# MEX C++ Compiler -#--------------------- - -MEX_CPP_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CPPFLAGS += $(MEX_CPP_Compiler_BASIC) - -#----------------- -# MEX Compiler -#----------------- - -MEX_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CFLAGS += $(MEX_Compiler_BASIC) - -########################################################################### -## INLINED COMMANDS -########################################################################### - - -MINGW_C_STANDARD_OPTS = $(C_STANDARD_OPTS) - - -########################################################################### -## PHONY TARGETS -########################################################################### - -.PHONY : all build clean info prebuild download execute - - -all : build - @echo "### Successfully generated all binary outputs." - - -build : prebuild $(PRODUCT) - - -prebuild : - - -download : $(PRODUCT) - - -execute : download - - -########################################################################### -## FINAL TARGET -########################################################################### - -#--------------------------------- -# Create a static library -#--------------------------------- - -$(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) - @echo "### Creating static library "$(PRODUCT)" ..." - $(AR) $(ARFLAGS) $(PRODUCT) @$(CMD_FILE) - @echo "### Created: $(PRODUCT)" - - -########################################################################### -## INTERMEDIATE TARGETS -########################################################################### - -#--------------------- -# SOURCE-TO-OBJECT -#--------------------- - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/slprj/ert/ActuatorControl/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/slprj/ert/ActuatorControl/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : ../%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : ../%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -ActuatorControl.obj : $(START_DIR)/slprj/ert/ActuatorControl/ActuatorControl.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -########################################################################### -## DEPENDENCIES -########################################################################### - -$(ALL_OBJS) : rtw_proj.tmw $(COMPILER_COMMAND_FILE) $(MAKEFILE) - - -########################################################################### -## MISCELLANEOUS TARGETS -########################################################################### - -info : - @echo "### PRODUCT = $(PRODUCT)" - @echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)" - @echo "### BUILD_TYPE = $(BUILD_TYPE)" - @echo "### INCLUDES = $(INCLUDES)" - @echo "### DEFINES = $(DEFINES)" - @echo "### ALL_SRCS = $(ALL_SRCS)" - @echo "### ALL_OBJS = $(ALL_OBJS)" - @echo "### LIBS = $(LIBS)" - @echo "### MODELREF_LIBS = $(MODELREF_LIBS)" - @echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)" - @echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)" - @echo "### CFLAGS = $(CFLAGS)" - @echo "### LDFLAGS = $(LDFLAGS)" - @echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)" - @echo "### CPPFLAGS = $(CPPFLAGS)" - @echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)" - @echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)" - @echo "### ARFLAGS = $(ARFLAGS)" - @echo "### MEX_CFLAGS = $(MEX_CFLAGS)" - @echo "### MEX_CPPFLAGS = $(MEX_CPPFLAGS)" - @echo "### MEX_LDFLAGS = $(MEX_LDFLAGS)" - @echo "### MEX_CPPLDFLAGS = $(MEX_CPPLDFLAGS)" - @echo "### DOWNLOAD_FLAGS = $(DOWNLOAD_FLAGS)" - @echo "### EXECUTE_FLAGS = $(EXECUTE_FLAGS)" - @echo "### MAKE_FLAGS = $(MAKE_FLAGS)" - - -clean : - $(ECHO) "### Deleting all derived files..." - $(RM) $(subst /,\,$(PRODUCT)) - $(RM) $(subst /,\,$(ALL_OBJS)) - $(ECHO) "### Deleted all derived files." - - diff --git a/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl.rsp b/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl.rsp deleted file mode 100644 index d70b1424bdd9dd665c9e8116bdf64dcc73c1d2b4..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl.rsp +++ /dev/null @@ -1 +0,0 @@ -ActuatorControl.obj diff --git a/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl_comp.rsp b/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl_comp.rsp deleted file mode 100644 index df24f251579e653a9b7633e3f68913d99bef5d4b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl_comp.rsp +++ /dev/null @@ -1,8 +0,0 @@ --ID:/Documents/SCHOOL/McSCert/do178/src/validation --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl --ID:/Program\ Files/MATLAB/R2020a/extern/include --ID:/Program\ Files/MATLAB/R2020a/simulink/include --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src/ext_mode/common --ID:/Program\ Files/MATLAB/R2020a/rtw/c/ert --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/_sharedutils diff --git a/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl_ref.rsp b/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl_ref.rsp deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/src/validation/slprj/ert/ActuatorControl/instrumented/buildInfo.mat b/src/validation/slprj/ert/ActuatorControl/instrumented/buildInfo.mat deleted file mode 100644 index 0fe10c44fa2799ba23f6dfac294235ce0507f299..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/instrumented/buildInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/instrumented/compileInfo.mat b/src/validation/slprj/ert/ActuatorControl/instrumented/compileInfo.mat deleted file mode 100644 index a31c9dd52dd7b6b381ce15fa0f024d3cec641894..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/instrumented/compileInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/instrumented/defines.txt b/src/validation/slprj/ert/ActuatorControl/instrumented/defines.txt deleted file mode 100644 index e230bb22626946320b4db04cbdb0120c8da46d7b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/instrumented/defines.txt +++ /dev/null @@ -1,15 +0,0 @@ -MODEL=ActuatorControl -NUMST=1 -NCSTATES=0 -HAVESTDIO -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -CLASSIC_INTERFACE=0 -ALLOCATIONFCN=0 -TID01EQ=0 -PORTABLE_WORDSIZES -TERMFCN=0 -ONESTEPFCN=1 -MAT_FILE=0 -MULTI_INSTANCE_CODE=0 -INTEGER_CODE=0 -MT=1 diff --git a/src/validation/slprj/ert/ActuatorControl/instrumented/instrumentationInfo.mat b/src/validation/slprj/ert/ActuatorControl/instrumented/instrumentationInfo.mat deleted file mode 100644 index deb2287eae23903ea67f6351a652eec47704127f..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/instrumented/instrumentationInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/instrumented/profiling_info.mat b/src/validation/slprj/ert/ActuatorControl/instrumented/profiling_info.mat deleted file mode 100644 index 4a8d6a0a50cc4551b403777acdd3094a5fff9e89..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/instrumented/profiling_info.mat and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/instrumented/rtw_proj.tmw b/src/validation/slprj/ert/ActuatorControl/instrumented/rtw_proj.tmw deleted file mode 100644 index f77f10f8020ff44f6d32d49ab822b20f9084d3e1..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/instrumented/rtw_proj.tmw +++ /dev/null @@ -1,4 +0,0 @@ -Simulink Coder project for ActuatorControl using . MATLAB root = D:\Program Files\MATLAB\R2020a. SimStruct date: 18-Nov-2019 20:54:47 -This file is generated by Simulink Coder for use by the make utility -to determine when to rebuild objects when the name of the current Simulink Coder project changes. -The rtwinfomat located at: ..\..\..\..\slprj\ert\ActuatorControl\tmwinternal\binfo_mdlref.mat diff --git a/src/validation/slprj/ert/ActuatorControl/modelsources.txt b/src/validation/slprj/ert/ActuatorControl/modelsources.txt deleted file mode 100644 index 3726b7d34f9efca1e9ae9c04dfc4205444e188e7..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/modelsources.txt +++ /dev/null @@ -1,2 +0,0 @@ - ActuatorControl.c - diff --git a/src/validation/slprj/ert/ActuatorControl/rtw_proj.tmw b/src/validation/slprj/ert/ActuatorControl/rtw_proj.tmw deleted file mode 100644 index a3f0a6e76183213a541d7f447272b207c55ad606..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/rtw_proj.tmw +++ /dev/null @@ -1,4 +0,0 @@ -Simulink Coder project for ActuatorControl using . MATLAB root = D:\Program Files\MATLAB\R2020a. SimStruct date: 18-Nov-2019 20:54:47 -This file is generated by Simulink Coder for use by the make utility -to determine when to rebuild objects when the name of the current Simulink Coder project changes. -The rtwinfomat located at: ..\..\..\slprj\ert\ActuatorControl\tmwinternal\binfo_mdlref.mat diff --git a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl.bat b/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl.bat deleted file mode 100644 index 9b78f3447628a07d63504615439959317f43a205..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl.bat +++ /dev/null @@ -1,15 +0,0 @@ -@if not "%MINGW_ROOT%" == "" (@set "PATH=%PATH%;%MINGW_ROOT%") - - -call "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a\bin\win64\checkMATLABRootForDriveMap.exe" "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a" > mlEnv.txt -for /f %%a in (mlEnv.txt) do set "%%a"\n -cd . - -if "%1"=="" ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f ActuatorControl.mk all) else ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f ActuatorControl.mk %1) -@if errorlevel 1 goto error_exit - -exit 0 - -:error_exit -echo The make command returned an error of %errorlevel% -exit 1 diff --git a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl.mk b/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl.mk deleted file mode 100644 index d8cff41d1bd6ab79143e333e660bf88df402231d..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl.mk +++ /dev/null @@ -1,410 +0,0 @@ -########################################################################### -## Makefile generated for Simulink model 'ActuatorControl'. -## -## Makefile : ActuatorControl.mk -## Generated on : Thu Jul 16 18:55:23 2020 -## MATLAB Coder version: 5.0 (R2020a) -## -## Build Info: -## -## Final product: ./ActuatorControl_rtwlib.lib -## Product type : static library -## Build type : Model Reference Library -## -########################################################################### - -########################################################################### -## MACROS -########################################################################### - -# Macro Descriptions: -# PRODUCT_NAME Name of the system to build -# MAKEFILE Name of this makefile -# COMPILER_COMMAND_FILE Compiler command listing model reference header paths -# CMD_FILE Command file -# MODELLIB Static library target - -PRODUCT_NAME = ActuatorControl -MAKEFILE = ActuatorControl.mk -MATLAB_ROOT = D:/Program Files/MATLAB/R2020a -MATLAB_BIN = D:/Program Files/MATLAB/R2020a/bin -MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64 -MASTER_ANCHOR_DIR = -START_DIR = D:/Documents/SCHOOL/McSCert/do178/src/validation -SOLVER = -SOLVER_OBJ = -CLASSIC_INTERFACE = 0 -TGT_FCN_LIB = ISO_C -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0 -RELATIVE_PATH_TO_ANCHOR = ../../../../../.. -COMPILER_COMMAND_FILE = ActuatorControl_comp.rsp -CMD_FILE = ActuatorControl.rsp -C_STANDARD_OPTS = -fwrapv -CPP_STANDARD_OPTS = -fwrapv -MODELLIB = ActuatorControl_rtwlib.lib - -########################################################################### -## TOOLCHAIN SPECIFICATIONS -########################################################################### - -# Toolchain Name: MinGW64 | gmake (64-bit Windows) -# Supported Version(s): 6.x -# ToolchainInfo Version: 2020a -# Specification Revision: 1.0 -# -#------------------------------------------- -# Macros assumed to be defined elsewhere -#------------------------------------------- - -# C_STANDARD_OPTS -# CPP_STANDARD_OPTS -# MINGW_ROOT -# MINGW_C_STANDARD_OPTS - -#----------- -# MACROS -#----------- - -WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -WARN_FLAGS_MAX = $(WARN_FLAGS) -Wcast-qual -Wshadow -CPP_WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wpointer-arith -Wcast-align -CPP_WARN_FLAGS_MAX = $(CPP_WARN_FLAGS) -Wcast-qual -Wshadow -MW_EXTERNLIB_DIR = $(MATLAB_ROOT)/extern/lib/win64/mingw64 -SHELL = %SystemRoot%/system32/cmd.exe - -TOOLCHAIN_SRCS = -TOOLCHAIN_INCS = -TOOLCHAIN_LIBS = -lws2_32 - -#------------------------ -# BUILD TOOL COMMANDS -#------------------------ - -# C Compiler: GNU C Compiler -CC_PATH = $(MINGW_ROOT) -CC = "$(CC_PATH)/gcc" - -# Linker: GNU Linker -LD_PATH = $(MINGW_ROOT) -LD = "$(LD_PATH)/g++" - -# C++ Compiler: GNU C++ Compiler -CPP_PATH = $(MINGW_ROOT) -CPP = "$(CPP_PATH)/g++" - -# C++ Linker: GNU C++ Linker -CPP_LD_PATH = $(MINGW_ROOT) -CPP_LD = "$(CPP_LD_PATH)/g++" - -# Archiver: GNU Archiver -AR_PATH = $(MINGW_ROOT) -AR = "$(AR_PATH)/ar" - -# MEX Tool: MEX Tool -MEX_PATH = $(MATLAB_ARCH_BIN) -MEX = "$(MEX_PATH)/mex" - -# Download: Download -DOWNLOAD = - -# Execute: Execute -EXECUTE = $(PRODUCT) - -# Builder: GMAKE Utility -MAKE_PATH = %MATLAB%/bin/win64 -MAKE = "$(MAKE_PATH)/gmake" - - -#------------------------- -# Directives/Utilities -#------------------------- - -CDEBUG = -g -C_OUTPUT_FLAG = -o -LDDEBUG = -g -OUTPUT_FLAG = -o -CPPDEBUG = -g -CPP_OUTPUT_FLAG = -o -CPPLDDEBUG = -g -OUTPUT_FLAG = -o -ARDEBUG = -STATICLIB_OUTPUT_FLAG = -MEX_DEBUG = -g -RM = @del -ECHO = @echo -MV = @move -RUN = - -#---------------------------------------- -# "Faster Builds" Build Configuration -#---------------------------------------- - -ARFLAGS = ruvs -CFLAGS = -c $(MINGW_C_STANDARD_OPTS) -m64 \ - -O0 -CPPFLAGS = -c $(CPP_STANDARD_OPTS) -m64 -std=c++11 \ - -O0 -CPP_LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -CPP_SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib -DOWNLOAD_FLAGS = -EXECUTE_FLAGS = -LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -MEX_CPPFLAGS = -MEX_CPPLDFLAGS = -MEX_CFLAGS = -MEX_LDFLAGS = -MAKE_FLAGS = -f $(MAKEFILE) -SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib - - - -########################################################################### -## OUTPUT INFO -########################################################################### - -PRODUCT = ./ActuatorControl_rtwlib.lib -PRODUCT_TYPE = "static library" -BUILD_TYPE = "Model Reference Library" - -########################################################################### -## INCLUDE PATHS -########################################################################### - -INCLUDES_BUILDINFO = - -INCLUDES = $(INCLUDES_BUILDINFO) - -########################################################################### -## DEFINES -########################################################################### - -DEFINES_BUILD_ARGS = -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DEFINES_CUSTOM = -DEFINES_OPTS = -DTID01EQ=0 -DPORTABLE_WORDSIZES -DEFINES_STANDARD = -DMODEL=ActuatorControl -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 - -DEFINES = $(DEFINES_BUILD_ARGS) $(DEFINES_CUSTOM) $(DEFINES_OPTS) $(DEFINES_STANDARD) - -########################################################################### -## SOURCE FILES -########################################################################### - -SRCS = $(START_DIR)/slprj/ert/ActuatorControl/ActuatorControl.c - -ALL_SRCS = $(SRCS) - -########################################################################### -## OBJECTS -########################################################################### - -OBJS = ActuatorControl.obj - -ALL_OBJS = $(OBJS) - -########################################################################### -## PREBUILT OBJECT FILES -########################################################################### - -PREBUILT_OBJS = - -########################################################################### -## LIBRARIES -########################################################################### - -LIBS = - -########################################################################### -## SYSTEM LIBRARIES -########################################################################### - -SYSTEM_LIBS = - -########################################################################### -## ADDITIONAL TOOLCHAIN FLAGS -########################################################################### - -#--------------- -# C Compiler -#--------------- - -CFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CFLAGS += $(CFLAGS_BASIC) - -#----------------- -# C++ Compiler -#----------------- - -CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CPPFLAGS += $(CPPFLAGS_BASIC) - -#--------------------- -# MEX C++ Compiler -#--------------------- - -MEX_CPP_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CPPFLAGS += $(MEX_CPP_Compiler_BASIC) - -#----------------- -# MEX Compiler -#----------------- - -MEX_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CFLAGS += $(MEX_Compiler_BASIC) - -########################################################################### -## INLINED COMMANDS -########################################################################### - - -MINGW_C_STANDARD_OPTS = $(C_STANDARD_OPTS) - - -########################################################################### -## PHONY TARGETS -########################################################################### - -.PHONY : all build clean info prebuild download execute - - -all : build - @echo "### Successfully generated all binary outputs." - - -build : prebuild $(PRODUCT) - - -prebuild : - - -download : $(PRODUCT) - - -execute : download - - -########################################################################### -## FINAL TARGET -########################################################################### - -#--------------------------------- -# Create a static library -#--------------------------------- - -$(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) - @echo "### Creating static library "$(PRODUCT)" ..." - $(AR) $(ARFLAGS) $(PRODUCT) @$(CMD_FILE) - @echo "### Created: $(PRODUCT)" - - -########################################################################### -## INTERMEDIATE TARGETS -########################################################################### - -#--------------------- -# SOURCE-TO-OBJECT -#--------------------- - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/slprj/ert/ActuatorControl/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/slprj/ert/ActuatorControl/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : ../../../%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : ../../../%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -ActuatorControl.obj : $(START_DIR)/slprj/ert/ActuatorControl/ActuatorControl.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -########################################################################### -## DEPENDENCIES -########################################################################### - -$(ALL_OBJS) : rtw_proj.tmw $(COMPILER_COMMAND_FILE) $(MAKEFILE) - - -########################################################################### -## MISCELLANEOUS TARGETS -########################################################################### - -info : - @echo "### PRODUCT = $(PRODUCT)" - @echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)" - @echo "### BUILD_TYPE = $(BUILD_TYPE)" - @echo "### INCLUDES = $(INCLUDES)" - @echo "### DEFINES = $(DEFINES)" - @echo "### ALL_SRCS = $(ALL_SRCS)" - @echo "### ALL_OBJS = $(ALL_OBJS)" - @echo "### LIBS = $(LIBS)" - @echo "### MODELREF_LIBS = $(MODELREF_LIBS)" - @echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)" - @echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)" - @echo "### CFLAGS = $(CFLAGS)" - @echo "### LDFLAGS = $(LDFLAGS)" - @echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)" - @echo "### CPPFLAGS = $(CPPFLAGS)" - @echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)" - @echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)" - @echo "### ARFLAGS = $(ARFLAGS)" - @echo "### MEX_CFLAGS = $(MEX_CFLAGS)" - @echo "### MEX_CPPFLAGS = $(MEX_CPPFLAGS)" - @echo "### MEX_LDFLAGS = $(MEX_LDFLAGS)" - @echo "### MEX_CPPLDFLAGS = $(MEX_CPPLDFLAGS)" - @echo "### DOWNLOAD_FLAGS = $(DOWNLOAD_FLAGS)" - @echo "### EXECUTE_FLAGS = $(EXECUTE_FLAGS)" - @echo "### MAKE_FLAGS = $(MAKE_FLAGS)" - - -clean : - $(ECHO) "### Deleting all derived files..." - $(RM) $(subst /,\,$(PRODUCT)) - $(RM) $(subst /,\,$(ALL_OBJS)) - $(ECHO) "### Deleted all derived files." - - diff --git a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl.obj b/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl.obj deleted file mode 100644 index 519da29a90a4619bd455eaf890558940bfaaab75..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl.obj and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl.rsp b/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl.rsp deleted file mode 100644 index d70b1424bdd9dd665c9e8116bdf64dcc73c1d2b4..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl.rsp +++ /dev/null @@ -1 +0,0 @@ -ActuatorControl.obj diff --git a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl_comp.rsp b/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl_comp.rsp deleted file mode 100644 index df24f251579e653a9b7633e3f68913d99bef5d4b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl_comp.rsp +++ /dev/null @@ -1,8 +0,0 @@ --ID:/Documents/SCHOOL/McSCert/do178/src/validation --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl --ID:/Program\ Files/MATLAB/R2020a/extern/include --ID:/Program\ Files/MATLAB/R2020a/simulink/include --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src/ext_mode/common --ID:/Program\ Files/MATLAB/R2020a/rtw/c/ert --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/_sharedutils diff --git a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl_ref.rsp b/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl_ref.rsp deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl_rtwlib.lib b/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl_rtwlib.lib deleted file mode 100644 index 66f2521db31fce868fe35b27e6286016a40262ca..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl_rtwlib.lib and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/buildInfo.mat b/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/buildInfo.mat deleted file mode 100644 index 28391c36dc669a4cf7f6ce15d76d1a8101e36047..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/buildInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/compileInfo.mat b/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/compileInfo.mat deleted file mode 100644 index ec7a2a78325d920ac63bed63c361e302f892c02d..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/compileInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/defines.txt b/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/defines.txt deleted file mode 100644 index e230bb22626946320b4db04cbdb0120c8da46d7b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/defines.txt +++ /dev/null @@ -1,15 +0,0 @@ -MODEL=ActuatorControl -NUMST=1 -NCSTATES=0 -HAVESTDIO -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -CLASSIC_INTERFACE=0 -ALLOCATIONFCN=0 -TID01EQ=0 -PORTABLE_WORDSIZES -TERMFCN=0 -ONESTEPFCN=1 -MAT_FILE=0 -MULTI_INSTANCE_CODE=0 -INTEGER_CODE=0 -MT=1 diff --git a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/instrumentationInfo.mat b/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/instrumentationInfo.mat deleted file mode 100644 index 2c00d6b412367623a944bfe034245969d8433115..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/instrumentationInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/mlEnv.txt b/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/mlEnv.txt deleted file mode 100644 index 4dd92c55ba21f6d084f4d56da9e810007d42794a..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/mlEnv.txt +++ /dev/null @@ -1,4 +0,0 @@ -MATLAB_ROOT=E: -ALT_MATLAB_ROOT=E: -MATLAB_BIN=E:\bin -ALT_MATLAB_BIN=E:\bin diff --git a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/profiling_info.mat b/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/profiling_info.mat deleted file mode 100644 index 32d387f6988e265aa510f7c656152cf8b9c42dc5..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/profiling_info.mat and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/rtw_proj.tmw b/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/rtw_proj.tmw deleted file mode 100644 index a7361bf3784c359606f29e293e67123401b0ddd9..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/rtw_proj.tmw +++ /dev/null @@ -1,4 +0,0 @@ -Simulink Coder project for ActuatorControl using . MATLAB root = D:\Program Files\MATLAB\R2020a. SimStruct date: 18-Nov-2019 20:54:47 -This file is generated by Simulink Coder for use by the make utility -to determine when to rebuild objects when the name of the current Simulink Coder project changes. -The rtwinfomat located at: ..\..\..\..\..\..\slprj\ert\ActuatorControl\tmwinternal\binfo_mdlref.mat diff --git a/src/validation/slprj/ert/ActuatorControl/tmwinternal/ModelRefCompileInfo.xml b/src/validation/slprj/ert/ActuatorControl/tmwinternal/ModelRefCompileInfo.xml deleted file mode 100644 index 2f36690425b621c1d74c68c4d8d8e7fd17d82ab2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/tmwinternal/ModelRefCompileInfo.xml +++ /dev/null @@ -1,664 +0,0 @@ - - - - 323 - - true - ActuatorControl - ActuatorControl - - false - false - HeliSystemDD_New.sldd - HeliSystemDD_New.sldd - HeliSystemDD_New.sldd - AAFJTQAAAAAOAAAAOAAAAAYAAAAIAAAAAgAAAAAAAAAFAAAACAAAAAAAAAABAAAAAQAAAAAAAAAFAAQAAQAAAAEAAAAAAAAA - {"Inports":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","Outports":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","LocalParameters":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","ParameterArguments":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","GlobalParameters":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","SharedLocalDataStores":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","GlobalDataStores":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","InternalData":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","Constants":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","DataTransfers":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","ModelData":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","InitializeTerminate":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","Execution":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","SharedUtility":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}"} - - -2 - true - true - true - 2147483647 - -1 - 1 - - -1 - - - Actuator_Control - - - 0.001 - true - true - false - false - true - false - true - true - false - false - false - 4 - -1 - 6 - 6 - 0 - 1 - 1 - 2 - false - true - true - - true - true - 0.001 - 40 - 0 - - 2 - <?xml version="1.0"?> -<slexec_sto version="1.1" packageUris="http://schema.mathworks.com/mf0/slexec_mm_sto/R2019b_201902271317"> - <sto.Registry type="sto.Registry" uuid="58905fbf-13eb-4bab-b7d9-c4a291455645"> - <clocks type="sto.Timer" uuid="347cf612-2663-4e08-b986-e770ef842beb"> - <needsToProvideTimeDuringExecution>true</needsToProvideTimeDuringExecution> - <clockTickConstraint>PeriodicWithFixedResolution</clockTickConstraint> - <resolution>0.001</resolution> - <specifiedTaskingMode>ClassicMultiTasking</specifiedTaskingMode> - <timeAdvanceMode>FixedStep</timeAdvanceMode> - <clockDomain type="sto.ClockDomain" uuid="954f9094-9263-4512-a610-3789f49d5ad2"> - <baseTaskID>_task0</baseTaskID> - <computedFundamentalStepSize>0.001</computedFundamentalStepSize> - <rates type="sto.Rate" uuid="09c970d1-6054-4493-8411-b0106c766325"/> - <rootTaskHierarchyElements type="sto.Task" uuid="16a1ee8d-89ba-4757-9946-9640ad01a68e"> - <isExecutable>true</isExecutable> - <rates type="sto.Rate" uuid="09c970d1-6054-4493-8411-b0106c766325"> - <annotation>D1</annotation> - <colorIndex>2</colorIndex> - <description>Discrete 1</description> - <eventSourceType>UNSPECIFIED_EVENT_SOURCE</eventSourceType> - <registry type="sto.Registry" uuid="58905fbf-13eb-4bab-b7d9-c4a291455645"/> - <taskId>_task0</taskId> - <rateSpec type="sto.RateSpec" uuid="35cc99ca-9da2-42c8-91f4-8ee549dcccd9"> - <period>0.001</period> - <rateType>ClassicPeriodicDiscrete</rateType> - </rateSpec> - </rates> - <elementType>Task</elementType> - <identifier>_task0</identifier> - <priority>40</priority> - </rootTaskHierarchyElements> - </clockDomain> - </clocks> - <clocks type="sto.Event" uuid="919853ad-dfb3-4380-830c-96461b91e786"> - <eventType>EXPORT_ASYNCHRONOUS</eventType> - <cNum>1</cNum> - <clockType>Event</clockType> - <identifier>ActuatorControl/Actuator_Control,0,0</identifier> - <resolution>-1</resolution> - <specifiedTaskingMode>ExplicitTasking</specifiedTaskingMode> - <timeAdvanceMode>None</timeAdvanceMode> - <clockDomain type="sto.ClockDomain" uuid="aba44f11-c52b-473a-ba34-772de2569a04"> - <computedFundamentalStepSize>-1</computedFundamentalStepSize> - <rates type="sto.Rate" uuid="bc6f5975-397a-4c1a-8e7f-409d46a82da6"/> - <rootTaskHierarchyElements type="sto.Task" uuid="5055968f-5994-4f13-b430-9769d642caaa"> - <isExecutable>true</isExecutable> - <isExplicit>true</isExplicit> - <rates type="sto.Rate" uuid="bc6f5975-397a-4c1a-8e7f-409d46a82da6"> - <annotation>F-1</annotation> - <colorIndex>23</colorIndex> - <description>Exported Inherit</description> - <eventSourceType>EXPORT_ASYNCHRONOUS</eventSourceType> - <rateIDX>1</rateIDX> - <registry type="sto.Registry" uuid="58905fbf-13eb-4bab-b7d9-c4a291455645"/> - <stringID>ActuatorControl/Actuator_Control,0,0</stringID> - <taskId>ExplicitTask0</taskId> - <rateSpec type="sto.RateSpec" uuid="0a30ee36-1d67-451b-885d-45406cd3f42d"> - <offset>-2</offset> - <period>-1</period> - <rateType>LegacyAsync</rateType> - </rateSpec> - </rates> - <tNum>1</tNum> - <elementType>Task</elementType> - <identifier>ExplicitTask0</identifier> - <priority>40</priority> - <schedulingClockID>ActuatorControl/Actuator_Control,0,0</schedulingClockID> - </rootTaskHierarchyElements> - </clockDomain> - </clocks> - <executionSpec>Undetermined</executionSpec> - <hasUnknownEdges>true</hasUnknownEdges> - <taskDependencyGraph type="sto.SerializedTaskConnectionList" uuid="cb6ad084-427b-49ca-b47d-f1cee70ce701"> - <taskIdentifier>_task0</taskIdentifier> - </taskDependencyGraph> - <taskDependencyGraph type="sto.SerializedTaskConnectionList" uuid="52c520d2-37ed-473e-80d7-e6858dc63946"> - <clockIdentifier>ActuatorControl/Actuator_Control,0,0</clockIdentifier> - <taskIdentifier>ExplicitTask0</taskIdentifier> - </taskDependencyGraph> - <taskPriorityDirection>HighNumberLast</taskPriorityDirection> - <taskingMode>ClassicMultiTasking</taskingMode> - <tasks type="sto.Task" uuid="16a1ee8d-89ba-4757-9946-9640ad01a68e"/> - <tasks type="sto.Task" uuid="5055968f-5994-4f13-b430-9769d642caaa"/> - <timeAdvanceMode>FixedStep</timeAdvanceMode> - </sto.Registry> -</slexec_sto> - false - 0.001 - true - - - MdlrefDW_ActuatorControl_T - - - true - 0.001 - 2 - true - true - true - 2 - SOLVER_MODE_MULTITASKING - FixedStepDiscrete - SOLVER_TYPE_FIXEDSTEP - 2 - - 8 - 64 - 32 - 32 - 32 - 64 - 32 - 32 - 16 - 32 - 1 - true - true - 32 - - - - - - - - - true - true - true - true - true - - - - - - - - - - - Actuator_Control - true - - ActuatorControl/Actuator_Control/Actuator1_loop_caller - Actuator_Control - Actuator1_loop - - - ActuatorControl/Actuator_Control/Actuator2_loop_caller - Actuator_Control - Actuator2_loop - - - ActuatorControl/Actuator_Control/Actuator3_loop_caller - Actuator_Control - Actuator3_loop - - ActuatorControl/Actuator_Control - Actuator_Control - - 14 - 743.00048828125 - - - 1 - 751.00048828125 - - - 14 - 772.00048828125 - - - 1 - 780.00048828125 - - - 14 - 801.00048828125 - - - 1 - 809.00048828125 - - - 1 - 903.00048828125 - - - 1 - 914.00048828125 - - - 1 - 925.00048828125 - - true - ActuatorControl - ActuatorControl/Actuator_Control - - ({true}_0) - - Scoped Export - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - I4 - 4 - - - I5 - 5 - - - O0 - 6 - - - O1 - 7 - - - O2 - 8 - - - Act1_cmd - 1 - - - Act1_pos - - - Act2_cmd - 3 - - - Act2_pos - 2 - - - Act3_cmd - 5 - - - Act3_pos - 4 - - - Actuator1 - 6 - - - Actuator2 - 7 - - - Actuator3 - 8 - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - -1 - - - - Actuator3_loop - true - ActuatorControl/Actuator_Control/Actuator3_loop_caller - Actuator_Control - ActuatorControl/Actuator_Control/Actuaor3_loop - Actuator3_loop - - 1 - 809.00048828125 - - - 1 - 925.00048828125 - - true - ActuatorControl/Actuator_Control/Actuator3_loop_caller - Actuator_Control - ActuatorControl - - ActuatorControl/Actuator_Control/Actuator3_loop_caller - - ({true}_0) - - - ActuatorControl/Actuator_Control/Actuaor3_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Act3_cmd - 1 - - - Act3_pos - - - Actuator3 - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Actuator2_loop - true - ActuatorControl/Actuator_Control/Actuator2_loop_caller - Actuator_Control - ActuatorControl/Actuator_Control/Actuaor2_loop - Actuator2_loop - - 1 - 780.00048828125 - - - 1 - 914.00048828125 - - true - ActuatorControl/Actuator_Control/Actuator2_loop_caller - Actuator_Control - ActuatorControl - - ActuatorControl/Actuator_Control/Actuator2_loop_caller - - ({true}_0) - - - ActuatorControl/Actuator_Control/Actuaor2_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Act2_cmd - 1 - - - Act2_pos - - - Actuator2 - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Actuator1_loop - true - ActuatorControl/Actuator_Control/Actuator1_loop_caller - Actuator_Control - ActuatorControl/Actuator_Control/Actuaor1_loop - Actuator1_loop - - 1 - 751.00048828125 - - - 1 - 903.00048828125 - - true - ActuatorControl/Actuator_Control/Actuator1_loop_caller - Actuator_Control - ActuatorControl - - ActuatorControl/Actuator_Control/Actuator1_loop_caller - - ({true}_0) - - - ActuatorControl/Actuator_Control/Actuaor1_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Act1_cmd - 1 - - - Act1_pos - - - Actuator1 - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - - true - - - - - - sltpEvents - - - sltpTaskGroups - - - - - Actuator_Control - - - ActuatorControl/Actuator_Control,0,0 - ExplicitTask0 - - - sltpTasks - - - - - \ No newline at end of file diff --git a/src/validation/slprj/ert/ActuatorControl/tmwinternal/binfo_mdlref.mat b/src/validation/slprj/ert/ActuatorControl/tmwinternal/binfo_mdlref.mat deleted file mode 100644 index 8df3704222e9c7ca8ba6d3aa2c5dce041676ffc7..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/tmwinternal/binfo_mdlref.mat and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/tmwinternal/minfo_mdlref.mat b/src/validation/slprj/ert/ActuatorControl/tmwinternal/minfo_mdlref.mat deleted file mode 100644 index cfff543e92c199bb5ca73694195b201a1ef7842b..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/tmwinternal/minfo_mdlref.mat and /dev/null differ diff --git a/src/validation/slprj/ert/ActuatorControl/tmwinternal/simulink_cache.xml b/src/validation/slprj/ert/ActuatorControl/tmwinternal/simulink_cache.xml deleted file mode 100644 index 5c1c1d165690f07775d046dccf48a327126e5905..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/ActuatorControl/tmwinternal/simulink_cache.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - 2d/eVQAYglmsb66qhyU8pQ== - - \ No newline at end of file diff --git a/src/validation/slprj/ert/ActuatorControl/tmwinternal/tr b/src/validation/slprj/ert/ActuatorControl/tmwinternal/tr deleted file mode 100644 index f40bc44df20a653ead91c8280ec36b5fd406c134..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/ActuatorControl/tmwinternal/tr and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/FCC_New.c b/src/validation/slprj/ert/FCC_New/FCC_New.c deleted file mode 100644 index 7fd9f16fa3813f94024cd4e146c2f616ac609d46..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/FCC_New.c +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: FCC_New.c - * - * Code generated for Simulink model 'FCC_New'. - * - * Model version : 1.98 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:15 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#include "FCC_New.h" - -/* Private macros used by the generated code to access rtModel */ -#ifndef rtmIsSampleHit -# define rtmIsSampleHit(sti, tid) (FCC_New_TimingBrdg->taskCounter[FCC_New_GlobalTID[sti]] == 0) -#endif - -#ifndef rtmIsSpecialSampleHit -# define rtmIsSpecialSampleHit(sti, prom_sti, tid) ( *((FCC_New_TimingBrdg->rateTransition)[FCC_New_GlobalTID[sti] + FCC_New_TimingBrdg->nTasks*FCC_New_GlobalTID[prom_sti]]) ) -#endif - -/* Macros for accessing real-time model data structure */ -#ifndef rtmGetClockTick0 -# define rtmGetClockTick0() ( *((FCC_New_TimingBrdg->clockTick[FCC_New_GlobalTID[0]])) ) -#endif - -#ifndef rtmGetClockTick1 -# define rtmGetClockTick1() ( *((FCC_New_TimingBrdg->clockTick[FCC_New_GlobalTID[1]])) ) -#endif - -#ifndef rtmGetClockTickH0 -# define rtmGetClockTickH0() ( *(FCC_New_TimingBrdg->clockTickH[FCC_New_GlobalTID[0]]) ) -#endif - -#ifndef rtmGetClockTickH1 -# define rtmGetClockTickH1() ( *(FCC_New_TimingBrdg->clockTickH[FCC_New_GlobalTID[1]]) ) -#endif - -#ifndef rtmGetErrorStatus -# define rtmGetErrorStatus(rtm) (*((rtm)->errorStatus)) -#endif - -#ifndef rtmSetErrorStatus -# define rtmSetErrorStatus(rtm, val) (*((rtm)->errorStatus) = (val)) -#endif - -#ifndef rtmGetErrorStatusPointer -# define rtmGetErrorStatusPointer(rtm) (rtm)->errorStatus -#endif - -#ifndef rtmSetErrorStatusPointer -# define rtmSetErrorStatusPointer(rtm, val) ((rtm)->errorStatus = (val)) -#endif - -#ifndef rtmGetT -# define rtmGetT() (*(FCC_New_TimingBrdg->taskTime[0])) -#endif - -int_T FCC_New_GlobalTID[2]; -const rtTimingBridge *FCC_New_TimingBrdg; -MdlrefDW_FCC_New_T FCC_New_MdlrefDW; - -/* Block states (default storage) */ -DW_FCC_New_f_T FCC_New_DW; - -/* Disable for referenced model: 'FCC_New' */ -void FCC_New_Disable(void) -{ - /* Disable for ModelReference: '/AHRSControl' */ - AHRSControl_Disable(); - - /* Disable for ModelReference: '/ActuatorControl' */ - ActuatorControl_Disable(); -} - -/* Output and update for referenced model: 'FCC_New' */ -void FCC_NewTID0(const int16_T *rtu_Act_Pos1, const int16_T *rtu_Act_Pos2, const - int16_T *rtu_Act_Pos3, int16_T *rty_Actuator1, int16_T - *rty_Actuator2, int16_T *rty_Actuator3) -{ - int_T tid = 0; - - /* RateTransition: '/RateTransition1' */ - if (rtmIsSpecialSampleHit(1, 0, tid)) { - FCC_New_DW.RateTransition1 = FCC_New_DW.RateTransition1_Buffer0; - - /* RateTransition: '/RateTransition2' */ - FCC_New_DW.RateTransition2 = FCC_New_DW.RateTransition2_Buffer0; - - /* RateTransition: '/RateTransition3' */ - FCC_New_DW.RateTransition3 = FCC_New_DW.RateTransition3_Buffer0; - } - - /* End of RateTransition: '/RateTransition1' */ - - /* FunctionCaller: '/ActuatorControl_caller' */ - Actuator_Control(*rtu_Act_Pos1, FCC_New_DW.RateTransition1, *rtu_Act_Pos2, - FCC_New_DW.RateTransition2, *rtu_Act_Pos3, - FCC_New_DW.RateTransition3, rty_Actuator1, rty_Actuator2, - rty_Actuator3); - - /* If subsystem generates rate grouping Output functions, - * when tid is used in Output function for one rate, - * all Output functions include tid as a local variable. - * As result, some Output functions may have unused tid. - */ - (void) (tid); -} - -/* Output and update for referenced model: 'FCC_New' */ -void FCC_NewTID1(const int16_T *rtu_Pilot_theta_cmd, const int16_T - *rtu_Pilot_phi_cmd, const int16_T *rtu_Pilot_r_cmd, const - AHRS_Bus *rtu_AHRS1, const AHRS_Bus *rtu_AHRS2, const AHRS_Bus * - rtu_AHRS3) -{ - int_T tid = 1; - real_T rtb_AHRSControl_caller[3]; - - /* FunctionCaller: '/AHRSControl_caller' */ - AHRSControl_AHRS_Control(*rtu_Pilot_theta_cmd, *rtu_Pilot_phi_cmd, - *rtu_Pilot_r_cmd, rtu_AHRS1, rtu_AHRS2, rtu_AHRS3, rtb_AHRSControl_caller); - - /* RateTransition: '/RateTransition1' */ - FCC_New_DW.RateTransition1_Buffer0 = rtb_AHRSControl_caller[0]; - - /* RateTransition: '/RateTransition2' */ - FCC_New_DW.RateTransition2_Buffer0 = rtb_AHRSControl_caller[1]; - - /* RateTransition: '/RateTransition3' */ - FCC_New_DW.RateTransition3_Buffer0 = rtb_AHRSControl_caller[2]; - - /* If subsystem generates rate grouping Output functions, - * when tid is used in Output function for one rate, - * all Output functions include tid as a local variable. - * As result, some Output functions may have unused tid. - */ - (void) (tid); -} - -/* Model initialize function */ -void FCC_New_initialize(const char_T **rt_errorStatus, const rtTimingBridge - *timingBridge, int_T mdlref_TID0, int_T mdlref_TID1) -{ - RT_MODEL_FCC_New_T *const FCC_New_M = &(FCC_New_MdlrefDW.rtm); - - /* Registration code */ - - /* setup the global timing engine */ - FCC_New_GlobalTID[0] = mdlref_TID0; - FCC_New_GlobalTID[1] = mdlref_TID1; - FCC_New_TimingBrdg = timingBridge; - - /* initialize error status */ - rtmSetErrorStatusPointer(FCC_New_M, rt_errorStatus); - - /* Model Initialize function for ModelReference Block: '/AHRSControl' */ - AHRSControl_initialize(rtmGetErrorStatusPointer(FCC_New_M)); - - /* Model Initialize function for ModelReference Block: '/ActuatorControl' */ - ActuatorControl_initialize(rtmGetErrorStatusPointer(FCC_New_M)); -} - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/slprj/ert/FCC_New/FCC_New.h b/src/validation/slprj/ert/FCC_New/FCC_New.h deleted file mode 100644 index 85359910f7dbed274b12941eb3fec45686103bcc..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/FCC_New.h +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: FCC_New.h - * - * Code generated for Simulink model 'FCC_New'. - * - * Model version : 1.98 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:15 2020 - * - * Target selection: ert.tlc - * Embedded hardware selection: Intel->x86-32 (Windows32) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#ifndef RTW_HEADER_FCC_New_h_ -#define RTW_HEADER_FCC_New_h_ -#include "AHRS_Bus.h" -#ifndef FCC_New_COMMON_INCLUDES_ -# define FCC_New_COMMON_INCLUDES_ -#include "rtwtypes.h" -#include "rtw_continuous.h" -#include "rtw_solver.h" -#endif /* FCC_New_COMMON_INCLUDES_ */ - -/* Shared type includes */ -#include "model_reference_types.h" - -/* Child system includes */ -#ifndef FCC_New_MDLREF_HIDE_CHILD_ -#define ActuatorControl_MDLREF_HIDE_CHILD_ -#include "ActuatorControl.h" -#endif /*FCC_New_MDLREF_HIDE_CHILD_*/ - -#ifndef FCC_New_MDLREF_HIDE_CHILD_ -#define AHRSControl_MDLREF_HIDE_CHILD_ -#include "AHRSControl.h" -#endif /*FCC_New_MDLREF_HIDE_CHILD_*/ - -/* Model Code Variants */ -#include "AHRSControl_AHRS_Control.h" -#include "Actuator_Control.h" - -/* Forward declaration for rtModel */ -typedef struct tag_RTM_FCC_New_T RT_MODEL_FCC_New_T; - -/* Block signals and states (default storage) for model 'FCC_New' */ -#ifndef FCC_New_MDLREF_HIDE_CHILD_ - -typedef struct { - real_T RateTransition1; /* '/RateTransition1' */ - real_T RateTransition2; /* '/RateTransition2' */ - real_T RateTransition3; /* '/RateTransition3' */ - real_T RateTransition1_Buffer0; /* '/RateTransition1' */ - real_T RateTransition2_Buffer0; /* '/RateTransition2' */ - real_T RateTransition3_Buffer0; /* '/RateTransition3' */ -} DW_FCC_New_f_T; - -#endif /*FCC_New_MDLREF_HIDE_CHILD_*/ - -#ifndef FCC_New_MDLREF_HIDE_CHILD_ - -/* Real-time Model Data Structure */ -struct tag_RTM_FCC_New_T { - const char_T **errorStatus; - - /* - * Timing: - * The following substructure contains information regarding - * the timing information for the model. - */ - struct { - struct { - uint32_T TID0_1; - boolean_T b_TID0_1; - } RateInteraction; - } Timing; -}; - -#endif /*FCC_New_MDLREF_HIDE_CHILD_*/ - -#ifndef FCC_New_MDLREF_HIDE_CHILD_ - -typedef struct { - RT_MODEL_FCC_New_T rtm; -} MdlrefDW_FCC_New_T; - -#endif /*FCC_New_MDLREF_HIDE_CHILD_*/ - -extern int_T FCC_New_GlobalTID[2]; -extern const rtTimingBridge *FCC_New_TimingBrdg; -extern void FCC_New_Disable(void); -extern void FCC_NewTID0(const int16_T *rtu_Act_Pos1, const int16_T *rtu_Act_Pos2, - const int16_T *rtu_Act_Pos3, int16_T *rty_Actuator1, int16_T *rty_Actuator2, - int16_T *rty_Actuator3); -extern void FCC_NewTID1(const int16_T *rtu_Pilot_theta_cmd, const int16_T - *rtu_Pilot_phi_cmd, const int16_T *rtu_Pilot_r_cmd, const AHRS_Bus *rtu_AHRS1, - const AHRS_Bus *rtu_AHRS2, const AHRS_Bus *rtu_AHRS3); - -/* Model reference registration function */ -extern void FCC_New_initialize(const char_T **rt_errorStatus, const - rtTimingBridge *timingBridge, int_T mdlref_TID0, int_T mdlref_TID1); - -#ifndef FCC_New_MDLREF_HIDE_CHILD_ - -extern MdlrefDW_FCC_New_T FCC_New_MdlrefDW; - -#endif /*FCC_New_MDLREF_HIDE_CHILD_*/ - -#ifndef FCC_New_MDLREF_HIDE_CHILD_ - -/* Block states (default storage) */ -extern DW_FCC_New_f_T FCC_New_DW; - -#endif /*FCC_New_MDLREF_HIDE_CHILD_*/ - -/*- - * The generated code includes comments that allow you to trace directly - * back to the appropriate location in the model. The basic format - * is /block_name, where system is the system number (uniquely - * assigned by Simulink) and block_name is the name of the block. - * - * Use the MATLAB hilite_system command to trace the generated code back - * to the model. For example, - * - * hilite_system('') - opens system 3 - * hilite_system('/Kp') - opens and selects block Kp which resides in S3 - * - * Here is the system hierarchy for this model - * - * '' : 'FCC_New' - * '' : 'FCC_New/ModelInfo' - */ - -/*- - * Requirements for '': FCC_New - */ -#endif /* RTW_HEADER_FCC_New_h_ */ - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/slprj/ert/FCC_New/FCC_New_mr_codeInfo.mat b/src/validation/slprj/ert/FCC_New/FCC_New_mr_codeInfo.mat deleted file mode 100644 index 2bbe6c471d2c302854dd6f97066fe85095109d4a..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/FCC_New_mr_codeInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/buildInfo.mat b/src/validation/slprj/ert/FCC_New/buildInfo.mat deleted file mode 100644 index 5814500eca0f9efe815027f8122641f0b44e0ce6..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/buildInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/codedescriptor.dmr b/src/validation/slprj/ert/FCC_New/codedescriptor.dmr deleted file mode 100644 index ef4c25f75244c583e3366dc349801a82531573fe..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/codedescriptor.dmr and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/defines.txt b/src/validation/slprj/ert/FCC_New/defines.txt deleted file mode 100644 index da3c27e8981ae5060d178f600342badb5982a103..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/defines.txt +++ /dev/null @@ -1,15 +0,0 @@ -MODEL=FCC_New -NUMST=2 -NCSTATES=0 -HAVESTDIO -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -CLASSIC_INTERFACE=0 -ALLOCATIONFCN=0 -TID01EQ=0 -PORTABLE_WORDSIZES -TERMFCN=0 -ONESTEPFCN=1 -MAT_FILE=0 -MULTI_INSTANCE_CODE=0 -INTEGER_CODE=0 -MT=1 diff --git a/src/validation/slprj/ert/FCC_New/html/FCC_New_c.html b/src/validation/slprj/ert/FCC_New/html/FCC_New_c.html deleted file mode 100644 index 16a61200207e702fc6ae66527c91c3c5ec4122d4..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/FCC_New_c.html +++ /dev/null @@ -1,374 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * Academic License - for use in teaching, academic research, and meeting
    3 * course requirements at degree granting institutions only. Not for
    4 * government, commercial, or other organizational use.
    5 *
    6 * File: FCC_New.c
    7 *
    8 * Code generated for Simulink model 'FCC_New'.
    9 *
    10 * Model version : 1.98
    11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
    12 * C/C++ source code generated on : Thu Jul 16 18:51:15 2020
    13 *
    14 * Target selection: ert.tlc
    15 * Embedded hardware selection: Intel->x86-32 (Windows32)
    16 * Code generation objectives:
    17 * 1. Execution efficiency
    18 * 2. RAM efficiency
    19 * Validation result: Not run
    20 */
    21
    22#include "FCC_New.h"
    23
    24/* Private macros used by the generated code to access rtModel */
    25#ifndef rtmIsSampleHit
    26# define rtmIsSampleHit(sti, tid) (FCC_New_TimingBrdg->taskCounter[FCC_New_GlobalTID[sti]] == 0)
    27#endif
    28
    29#ifndef rtmIsSpecialSampleHit
    30# define rtmIsSpecialSampleHit(sti, prom_sti, tid) ( *((FCC_New_TimingBrdg->rateTransition)[FCC_New_GlobalTID[sti] + FCC_New_TimingBrdg->nTasks*FCC_New_GlobalTID[prom_sti]]) )
    31#endif
    32
    33/* Macros for accessing real-time model data structure */
    34#ifndef rtmGetClockTick0
    35# define rtmGetClockTick0() ( *((FCC_New_TimingBrdg->clockTick[FCC_New_GlobalTID[0]])) )
    36#endif
    37
    38#ifndef rtmGetClockTick1
    39# define rtmGetClockTick1() ( *((FCC_New_TimingBrdg->clockTick[FCC_New_GlobalTID[1]])) )
    40#endif
    41
    42#ifndef rtmGetClockTickH0
    43# define rtmGetClockTickH0() ( *(FCC_New_TimingBrdg->clockTickH[FCC_New_GlobalTID[0]]) )
    44#endif
    45
    46#ifndef rtmGetClockTickH1
    47# define rtmGetClockTickH1() ( *(FCC_New_TimingBrdg->clockTickH[FCC_New_GlobalTID[1]]) )
    48#endif
    49
    50#ifndef rtmGetErrorStatus
    51# define rtmGetErrorStatus(rtm) (*((rtm)->errorStatus))
    52#endif
    53
    54#ifndef rtmSetErrorStatus
    55# define rtmSetErrorStatus(rtm, val) (*((rtm)->errorStatus) = (val))
    56#endif
    57
    58#ifndef rtmGetErrorStatusPointer
    59# define rtmGetErrorStatusPointer(rtm) (rtm)->errorStatus
    60#endif
    61
    62#ifndef rtmSetErrorStatusPointer
    63# define rtmSetErrorStatusPointer(rtm, val) ((rtm)->errorStatus = (val))
    64#endif
    65
    66#ifndef rtmGetT
    67# define rtmGetT() (*(FCC_New_TimingBrdg->taskTime[0]))
    68#endif
    69
    70int_T FCC_New_GlobalTID[2];
    71const rtTimingBridge *FCC_New_TimingBrdg;
    72MdlrefDW_FCC_New_T FCC_New_MdlrefDW;
    73
    74/* Block states (default storage) */
    75DW_FCC_New_f_T FCC_New_DW;
    76
    77/* Disable for referenced model: 'FCC_New' */
    78void FCC_New_Disable(void)
    79{
    80 /* Disable for ModelReference: '<Root>/AHRSControl' */
    81 AHRSControl_Disable();
    82
    83 /* Disable for ModelReference: '<Root>/ActuatorControl' */
    84 ActuatorControl_Disable();
    85}
    86
    87/* Output and update for referenced model: 'FCC_New' */
    88void FCC_NewTID0(const int16_T *rtu_Act_Pos1, const int16_T *rtu_Act_Pos2, const
    89 int16_T *rtu_Act_Pos3, int16_T *rty_Actuator1, int16_T
    90 *rty_Actuator2, int16_T *rty_Actuator3)
    91{
    92 int_T tid = 0;
    93
    94 /* RateTransition: '<Root>/RateTransition1' */
    95 if (rtmIsSpecialSampleHit(1, 0, tid)) {
    96 FCC_New_DW.RateTransition1 = FCC_New_DW.RateTransition1_Buffer0;
    97
    98 /* RateTransition: '<Root>/RateTransition2' */
    99 FCC_New_DW.RateTransition2 = FCC_New_DW.RateTransition2_Buffer0;
    100
    101 /* RateTransition: '<Root>/RateTransition3' */
    102 FCC_New_DW.RateTransition3 = FCC_New_DW.RateTransition3_Buffer0;
    103 }
    104
    105 /* End of RateTransition: '<Root>/RateTransition1' */
    106
    107 /* FunctionCaller: '<Root>/ActuatorControl_caller' */
    108 Actuator_Control(*rtu_Act_Pos1, FCC_New_DW.RateTransition1, *rtu_Act_Pos2,
    109 FCC_New_DW.RateTransition2, *rtu_Act_Pos3,
    110 FCC_New_DW.RateTransition3, rty_Actuator1, rty_Actuator2,
    111 rty_Actuator3);
    112
    113 /* If subsystem generates rate grouping Output functions,
    114 * when tid is used in Output function for one rate,
    115 * all Output functions include tid as a local variable.
    116 * As result, some Output functions may have unused tid.
    117 */
    118 (void) (tid);
    119}
    120
    121/* Output and update for referenced model: 'FCC_New' */
    122void FCC_NewTID1(const int16_T *rtu_Pilot_theta_cmd, const int16_T
    123 *rtu_Pilot_phi_cmd, const int16_T *rtu_Pilot_r_cmd, const
    124 AHRS_Bus *rtu_AHRS1, const AHRS_Bus *rtu_AHRS2, const AHRS_Bus *
    125 rtu_AHRS3)
    126{
    127 int_T tid = 1;
    128 real_T rtb_AHRSControl_caller[3];
    129
    130 /* FunctionCaller: '<Root>/AHRSControl_caller' */
    131 AHRSControl_AHRS_Control(*rtu_Pilot_theta_cmd, *rtu_Pilot_phi_cmd,
    132 *rtu_Pilot_r_cmd, rtu_AHRS1, rtu_AHRS2, rtu_AHRS3, rtb_AHRSControl_caller);
    133
    134 /* RateTransition: '<Root>/RateTransition1' */
    135 FCC_New_DW.RateTransition1_Buffer0 = rtb_AHRSControl_caller[0];
    136
    137 /* RateTransition: '<Root>/RateTransition2' */
    138 FCC_New_DW.RateTransition2_Buffer0 = rtb_AHRSControl_caller[1];
    139
    140 /* RateTransition: '<Root>/RateTransition3' */
    141 FCC_New_DW.RateTransition3_Buffer0 = rtb_AHRSControl_caller[2];
    142
    143 /* If subsystem generates rate grouping Output functions,
    144 * when tid is used in Output function for one rate,
    145 * all Output functions include tid as a local variable.
    146 * As result, some Output functions may have unused tid.
    147 */
    148 (void) (tid);
    149}
    150
    151/* Model initialize function */
    152void FCC_New_initialize(const char_T **rt_errorStatus, const rtTimingBridge
    153 *timingBridge, int_T mdlref_TID0, int_T mdlref_TID1)
    154{
    155 RT_MODEL_FCC_New_T *const FCC_New_M = &(FCC_New_MdlrefDW.rtm);
    156
    157 /* Registration code */
    158
    159 /* setup the global timing engine */
    160 FCC_New_GlobalTID[0] = mdlref_TID0;
    161 FCC_New_GlobalTID[1] = mdlref_TID1;
    162 FCC_New_TimingBrdg = timingBridge;
    163
    164 /* initialize error status */
    165 rtmSetErrorStatusPointer(FCC_New_M, rt_errorStatus);
    166
    167 /* Model Initialize function for ModelReference Block: '<Root>/AHRSControl' */
    168 AHRSControl_initialize(rtmGetErrorStatusPointer(FCC_New_M));
    169
    170 /* Model Initialize function for ModelReference Block: '<Root>/ActuatorControl' */
    171 ActuatorControl_initialize(rtmGetErrorStatusPointer(FCC_New_M));
    172}
    173
    174/*
    175 * File trailer for generated code.
    176 *
    177 * [EOF]
    178 */
    179
    -
    - - diff --git a/src/validation/slprj/ert/FCC_New/html/FCC_New_codegen_rpt.html b/src/validation/slprj/ert/FCC_New/html/FCC_New_codegen_rpt.html deleted file mode 100644 index 362954ea61c1719dc2e25ec397cad944ab9dfa00..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/FCC_New_codegen_rpt.html +++ /dev/null @@ -1,33 +0,0 @@ - - - -FCC_New Code Generation Report - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/validation/slprj/ert/FCC_New/html/FCC_New_coderassumptions.html b/src/validation/slprj/ert/FCC_New/html/FCC_New_coderassumptions.html deleted file mode 100644 index 0699fff944a191e47812bdaa299c51e5013f0759..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/FCC_New_coderassumptions.html +++ /dev/null @@ -1,377 +0,0 @@ - - - -Coder Assumptions for 'FCC_New' - - - - -

    -Coder Assumptions for 'FCC_New' -

    -
    -

    -List of assumptions that you can check and expected results for selected target environment. For more information see, Verification of Code Generation Assumptions. -

    -
    -
    - -
    -

    -C Language Configuration for Intel->x86-32 (Windows32) Target Hardware -

    - - - - - - -
    -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -BitPerChar - -8 -
    -BitPerShort - -16 -
    -BitPerInt - -32 -
    -BitPerLong - -32 -
    -BitPerLongLong - -64 -
    -BitPerFloat - -32 -
    -BitPerDouble - -64 -
    -BitPerPointer - -32 -
    -BitPerSizeT - -32 -
    -BitPerPtrDiffT - -32 -
    -
    - - - - - - - - - - - - - - - - -
    -Endianess - -LittleEndian -
    -Shift right for signed integer is arithmetic shift - -True -
    -Signed integer division rounds to - -Zero -
    - -

    - -
    -

    -C Language Configuration for Development Computer -

    - - - - - - -
    -

    -Expected values are used only if the code has been compiled with PORTABLE_WORDSIZES defined, i.e. when you run a SIL simulation with PortableWordSizes set to 'on'. -

    -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -BitPerChar - -8 -
    -BitPerShort - -16 -
    -BitPerInt - -32 -
    -BitPerLong - -32 -
    -BitPerLongLong - -64 -
    -BitPerFloat - -32 -
    -BitPerDouble - -64 -
    -BitPerPointer - -64 -
    -BitPerSizeT - -64 -
    -BitPerPtrDiffT - -64 -
    -
    - - - - - - - - - - - - - - - - -
    -Endianess - -LittleEndian -
    -Shift right for signed integer is arithmetic shift - -True -
    -Signed integer division rounds to - -Zero -
    - -

    - -
    -

    -C Language Standard -

    - - - - - - -
    -

    -Zero initialization code has been optimized for model 'FCC_New'. -

    -

    - - - - - - - -
    -Initial value of a global integer variable is zero - -True -
    - -

    -

    -If the assumption is not correct, remove the optimization through the Configuration Parameters > Code Generation > Optimization settings. Alternatively, configure your target environment to make the assumption hold. -

    - -
    -

    -Floating-Point Numbers -

    - - - - - - -
    -

    -Code generation is configured to support floating-point numbers, therefore your target environment might perform subnormal number calculations. -

    -

    - - - - - - - - - - - - -
    -Flush-to-zero computed subnormal values (FTZ) - -False -
    -Flush-to-zero incoming subnormal values (DAZ) - -False -
    - -

    -

    -If the assumptions are not correct, subnormal numbers might cause mismatches between model and generated code simulation results. For more information see, Subnormal Number Performance. -

    - -
    - - - - diff --git a/src/validation/slprj/ert/FCC_New/html/FCC_New_contents.html b/src/validation/slprj/ert/FCC_New/html/FCC_New_contents.html deleted file mode 100644 index f5f03c0b7cf60815dd405d79dce9ca8ac35cc8c3..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/FCC_New_contents.html +++ /dev/null @@ -1,262 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -Contents - - -
    - - -
    - -Summary - - -
    - -Subsystem Report - - -
    - -Traceability Report - - -
    - -Static Code Metrics Report - - -
    - -Code Replacements Report - - -
    - -Coder Assumptions - - -
    -
    - - - - - - - - - - - - - -
    - -Generated Code - - -
    - - - - - - - - - - - - -
    -[-] - -Model files -
    - - - - - - - - - - - - -
    - -FCC_New.c - - -
    - -FCC_New.h - - -
    - -
    - -
    - - - - - - - - - - - - -
    -[+] - -Shared files (5) -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    -
    - - - - - - - - - - - - - -
    - -Referenced Models - - -
    -AHRSControl -
    -ActuatorControl -
    - - - - diff --git a/src/validation/slprj/ert/FCC_New/html/FCC_New_h.html b/src/validation/slprj/ert/FCC_New/html/FCC_New_h.html deleted file mode 100644 index 4b92bc7e90c93fe4876b00228f418945534bd51c..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/FCC_New_h.html +++ /dev/null @@ -1,318 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * Academic License - for use in teaching, academic research, and meeting
    3 * course requirements at degree granting institutions only. Not for
    4 * government, commercial, or other organizational use.
    5 *
    6 * File: FCC_New.h
    7 *
    8 * Code generated for Simulink model 'FCC_New'.
    9 *
    10 * Model version : 1.98
    11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
    12 * C/C++ source code generated on : Thu Jul 16 18:51:15 2020
    13 *
    14 * Target selection: ert.tlc
    15 * Embedded hardware selection: Intel->x86-32 (Windows32)
    16 * Code generation objectives:
    17 * 1. Execution efficiency
    18 * 2. RAM efficiency
    19 * Validation result: Not run
    20 */
    21
    22#ifndef RTW_HEADER_FCC_New_h_
    23#define RTW_HEADER_FCC_New_h_
    24#include "AHRS_Bus.h"
    25#ifndef FCC_New_COMMON_INCLUDES_
    26# define FCC_New_COMMON_INCLUDES_
    27#include "rtwtypes.h"
    28#include "rtw_continuous.h"
    29#include "rtw_solver.h"
    30#endif /* FCC_New_COMMON_INCLUDES_ */
    31
    32/* Shared type includes */
    33#include "model_reference_types.h"
    34
    35/* Child system includes */
    36#ifndef FCC_New_MDLREF_HIDE_CHILD_
    37#define ActuatorControl_MDLREF_HIDE_CHILD_
    38#include "ActuatorControl.h"
    39#endif /*FCC_New_MDLREF_HIDE_CHILD_*/
    40
    41#ifndef FCC_New_MDLREF_HIDE_CHILD_
    42#define AHRSControl_MDLREF_HIDE_CHILD_
    43#include "AHRSControl.h"
    44#endif /*FCC_New_MDLREF_HIDE_CHILD_*/
    45
    46/* Model Code Variants */
    47#include "AHRSControl_AHRS_Control.h"
    48#include "Actuator_Control.h"
    49
    50/* Forward declaration for rtModel */
    51typedef struct tag_RTM_FCC_New_T RT_MODEL_FCC_New_T;
    52
    53/* Block signals and states (default storage) for model 'FCC_New' */
    54#ifndef FCC_New_MDLREF_HIDE_CHILD_
    55
    56typedef struct {
    57 real_T RateTransition1; /* '<Root>/RateTransition1' */
    58 real_T RateTransition2; /* '<Root>/RateTransition2' */
    59 real_T RateTransition3; /* '<Root>/RateTransition3' */
    60 real_T RateTransition1_Buffer0; /* '<Root>/RateTransition1' */
    61 real_T RateTransition2_Buffer0; /* '<Root>/RateTransition2' */
    62 real_T RateTransition3_Buffer0; /* '<Root>/RateTransition3' */
    63} DW_FCC_New_f_T;
    64
    65#endif /*FCC_New_MDLREF_HIDE_CHILD_*/
    66
    67#ifndef FCC_New_MDLREF_HIDE_CHILD_
    68
    69/* Real-time Model Data Structure */
    70struct tag_RTM_FCC_New_T {
    71 const char_T **errorStatus;
    72
    73 /*
    74 * Timing:
    75 * The following substructure contains information regarding
    76 * the timing information for the model.
    77 */
    78 struct {
    79 struct {
    80 uint32_T TID0_1;
    81 boolean_T b_TID0_1;
    82 } RateInteraction;
    83 } Timing;
    84};
    85
    86#endif /*FCC_New_MDLREF_HIDE_CHILD_*/
    87
    88#ifndef FCC_New_MDLREF_HIDE_CHILD_
    89
    90typedef struct {
    91 RT_MODEL_FCC_New_T rtm;
    92} MdlrefDW_FCC_New_T;
    93
    94#endif /*FCC_New_MDLREF_HIDE_CHILD_*/
    95
    96extern int_T FCC_New_GlobalTID[2];
    97extern const rtTimingBridge *FCC_New_TimingBrdg;
    98extern void FCC_New_Disable(void);
    99extern void FCC_NewTID0(const int16_T *rtu_Act_Pos1, const int16_T *rtu_Act_Pos2,
    100 const int16_T *rtu_Act_Pos3, int16_T *rty_Actuator1, int16_T *rty_Actuator2,
    101 int16_T *rty_Actuator3);
    102extern void FCC_NewTID1(const int16_T *rtu_Pilot_theta_cmd, const int16_T
    103 *rtu_Pilot_phi_cmd, const int16_T *rtu_Pilot_r_cmd, const AHRS_Bus *rtu_AHRS1,
    104 const AHRS_Bus *rtu_AHRS2, const AHRS_Bus *rtu_AHRS3);
    105
    106/* Model reference registration function */
    107extern void FCC_New_initialize(const char_T **rt_errorStatus, const
    108 rtTimingBridge *timingBridge, int_T mdlref_TID0, int_T mdlref_TID1);
    109
    110#ifndef FCC_New_MDLREF_HIDE_CHILD_
    111
    112extern MdlrefDW_FCC_New_T FCC_New_MdlrefDW;
    113
    114#endif /*FCC_New_MDLREF_HIDE_CHILD_*/
    115
    116#ifndef FCC_New_MDLREF_HIDE_CHILD_
    117
    118/* Block states (default storage) */
    119extern DW_FCC_New_f_T FCC_New_DW;
    120
    121#endif /*FCC_New_MDLREF_HIDE_CHILD_*/
    122
    123/*-
    124 * The generated code includes comments that allow you to trace directly
    125 * back to the appropriate location in the model. The basic format
    126 * is <system>/block_name, where system is the system number (uniquely
    127 * assigned by Simulink) and block_name is the name of the block.
    128 *
    129 * Use the MATLAB hilite_system command to trace the generated code back
    130 * to the model. For example,
    131 *
    132 * hilite_system('<S3>') - opens system 3
    133 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
    134 *
    135 * Here is the system hierarchy for this model
    136 *
    137 * '<Root>' : 'FCC_New'
    138 * '<S1>' : 'FCC_New/ModelInfo'
    139 */
    140
    141/*-
    142 * Requirements for '<Root>': FCC_New
    143 */
    144#endif /* RTW_HEADER_FCC_New_h_ */
    145
    146/*
    147 * File trailer for generated code.
    148 *
    149 * [EOF]
    150 */
    151
    -
    - - diff --git a/src/validation/slprj/ert/FCC_New/html/FCC_New_metrics.html b/src/validation/slprj/ert/FCC_New/html/FCC_New_metrics.html deleted file mode 100644 index 7c84f5febd595d150c84019a262d0cdc662a42ed..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/FCC_New_metrics.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -Static Code Metrics Report - - - - -

    -Static Code Metrics Report -

    -
    - -
    -Static Code Metrics report is not generated. On the Configuration Parameters > Code Generation > Report pane, select Generate static code metrics. On the model diagram window, select Code > C/C++ Code > Code Generation Report > Open Model Report or rebuild the model. - - - diff --git a/src/validation/slprj/ert/FCC_New/html/FCC_New_replacements.html b/src/validation/slprj/ert/FCC_New/html/FCC_New_replacements.html deleted file mode 100644 index 562a03e4513c7bfa4c1b2369896a58a1887c5a7c..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/FCC_New_replacements.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -Code replacements in FCC_New - - - - -

    -Code replacements in FCC_New -

    -
    - -
    -Code replacements report not generated. Select 'Summarize which blocks triggered code replacements'. - - - diff --git a/src/validation/slprj/ert/FCC_New/html/FCC_New_subsystems.html b/src/validation/slprj/ert/FCC_New/html/FCC_New_subsystems.html deleted file mode 100644 index b10ed0da7c174318447c06828e38c55e3f0a4949..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/FCC_New_subsystems.html +++ /dev/null @@ -1,87 +0,0 @@ - - - -Non-virtual subsystems in FCC_New - - - - -

    -Non-virtual subsystems in FCC_New -

    -
    - -
    -
    - -
    -

    -1. Code Mapping [hide] -

    - - - - - - - - - - -
    -

    -The following table:

      -
    • -provides a mapping from the non-virtual subsystems in the model to functions or reusable functions in the generated code and -
    • -
    • -notes exceptions that caused some non-virtual subsystems to not reuse code even though they were assigned a function packaging setting ('Function packaging' entry on the Subsystem Block Dialog) of 'Auto' or 'Reusable function'. -
    • - -
    - -

    - -
    - -No non-virtual subsystems generating functions in model - - -
    -

    -2. Code Reuse Exceptions [hide] -

    - - - - - - - - - - -
    -

    -The following section provides details on each exception that caused a non-virtual subsystem with a function packaging setting of

      -
    • -'Auto' to become an inlined code segment, -
    • -
    • -'Auto' to become a non-reusable function without arguments, or -
    • -
    • -'Reusable function' to become a non-reusable function without arguments. -
    • - -
    -Note:This section does not report graphically identical non-virtual subsystems marked as 'Auto' that were not reused due to differences in their functional properties (such as dimensions, datatypes, work vectors, parameters, etc.). You may identify reasons for non-reuse in such cases by inspecting the differences in the functional attributes of the subsystems in the model or in the inlined generated code. -

    - -
    -
    No reuse exception in model -
    - - - - diff --git a/src/validation/slprj/ert/FCC_New/html/FCC_New_survey.html b/src/validation/slprj/ert/FCC_New/html/FCC_New_survey.html deleted file mode 100644 index a6695b54392b566504ca1c72f2e844ec8b77053b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/FCC_New_survey.html +++ /dev/null @@ -1,186 +0,0 @@ - - - -Code Generation Report for 'FCC_New' - - - - -

    -Code Generation Report for 'FCC_New' -

    -
    - -
    -
    - -
    -

    -Model Information -

    - - - - - - -
    -

    - - - - - - - - - - - - - - - - - - - - - - -
    -Author - -bpotter -
    -Last Modified By - -super -
    -Model Version - -1.98 -
    -Tasking Mode - -MultiTasking -
    -
    - -Configuration settings at time of code generation - - -

    - -
    -

    -Code Information -

    - - - - - - -
    -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -System Target File - -ert.tlc -
    -Hardware Device Type - -Intel->x86-32 (Windows32) -
    -Simulink Coder Version - -9.3 (R2020a) 18-Nov-2019 -
    -Timestamp of Generated Source Code - -Thu Jul 16 18:51:15 2020 -
    - - - -
    -Type of Build - -Model Reference -
    -Objectives Specified - -Execution efficiency, RAM efficiency -
    - -

    - -
    -

    -Additional Information -

    - - - - - - -
    - - - - - - - -
    -Code Generation Advisor - -Not run -
    - -
    - - - - diff --git a/src/validation/slprj/ert/FCC_New/html/FCC_New_trace.html b/src/validation/slprj/ert/FCC_New/html/FCC_New_trace.html deleted file mode 100644 index 7bc6ae4cdd733a09fec641224959bdb57c0d44c8..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/FCC_New_trace.html +++ /dev/null @@ -1,21 +0,0 @@ -Traceability Report for FCC_New - - - \ No newline at end of file diff --git a/src/validation/slprj/ert/FCC_New/html/FCC_New_traceInfo.js b/src/validation/slprj/ert/FCC_New/html/FCC_New_traceInfo.js deleted file mode 100644 index adde4ab55114114da999e75b3a0d8a05ef5aac21..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/FCC_New_traceInfo.js +++ /dev/null @@ -1,55 +0,0 @@ -function RTW_rtwnameSIDMap() { - this.rtwnameHashMap = new Array(); - this.sidHashMap = new Array(); - this.rtwnameHashMap[""] = {sid: "FCC_New"}; - this.sidHashMap["FCC_New"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "FCC_New:36"}; - this.sidHashMap["FCC_New:36"] = {rtwname: ""}; - this.rtwnameHashMap["/Act_Pos1"] = {sid: "FCC_New:1"}; - this.sidHashMap["FCC_New:1"] = {rtwname: "/Act_Pos1"}; - this.rtwnameHashMap["/Act_Pos2"] = {sid: "FCC_New:8"}; - this.sidHashMap["FCC_New:8"] = {rtwname: "/Act_Pos2"}; - this.rtwnameHashMap["/Act_Pos3"] = {sid: "FCC_New:9"}; - this.sidHashMap["FCC_New:9"] = {rtwname: "/Act_Pos3"}; - this.rtwnameHashMap["/Pilot_theta_cmd"] = {sid: "FCC_New:13"}; - this.sidHashMap["FCC_New:13"] = {rtwname: "/Pilot_theta_cmd"}; - this.rtwnameHashMap["/Pilot_phi_cmd"] = {sid: "FCC_New:15"}; - this.sidHashMap["FCC_New:15"] = {rtwname: "/Pilot_phi_cmd"}; - this.rtwnameHashMap["/Pilot_r_cmd"] = {sid: "FCC_New:17"}; - this.sidHashMap["FCC_New:17"] = {rtwname: "/Pilot_r_cmd"}; - this.rtwnameHashMap["/AHRS1"] = {sid: "FCC_New:19"}; - this.sidHashMap["FCC_New:19"] = {rtwname: "/AHRS1"}; - this.rtwnameHashMap["/AHRS2"] = {sid: "FCC_New:21"}; - this.sidHashMap["FCC_New:21"] = {rtwname: "/AHRS2"}; - this.rtwnameHashMap["/AHRS3"] = {sid: "FCC_New:23"}; - this.sidHashMap["FCC_New:23"] = {rtwname: "/AHRS3"}; - this.rtwnameHashMap["/AHRSControl"] = {sid: "FCC_New:254"}; - this.sidHashMap["FCC_New:254"] = {rtwname: "/AHRSControl"}; - this.rtwnameHashMap["/AHRSControl_caller"] = {sid: "FCC_New:255"}; - this.sidHashMap["FCC_New:255"] = {rtwname: "/AHRSControl_caller"}; - this.rtwnameHashMap["/ActuatorControl"] = {sid: "FCC_New:257"}; - this.sidHashMap["FCC_New:257"] = {rtwname: "/ActuatorControl"}; - this.rtwnameHashMap["/ActuatorControl_caller"] = {sid: "FCC_New:251"}; - this.sidHashMap["FCC_New:251"] = {rtwname: "/ActuatorControl_caller"}; - this.rtwnameHashMap["/Demux"] = {sid: "FCC_New:30"}; - this.sidHashMap["FCC_New:30"] = {rtwname: "/Demux"}; - this.rtwnameHashMap["/ModelInfo"] = {sid: "FCC_New:36"}; - this.sidHashMap["FCC_New:36"] = {rtwname: "/ModelInfo"}; - this.rtwnameHashMap["/RateTransition1"] = {sid: "FCC_New:10"}; - this.sidHashMap["FCC_New:10"] = {rtwname: "/RateTransition1"}; - this.rtwnameHashMap["/RateTransition2"] = {sid: "FCC_New:11"}; - this.sidHashMap["FCC_New:11"] = {rtwname: "/RateTransition2"}; - this.rtwnameHashMap["/RateTransition3"] = {sid: "FCC_New:12"}; - this.sidHashMap["FCC_New:12"] = {rtwname: "/RateTransition3"}; - this.rtwnameHashMap["/Actuator1"] = {sid: "FCC_New:2"}; - this.sidHashMap["FCC_New:2"] = {rtwname: "/Actuator1"}; - this.rtwnameHashMap["/Actuator2"] = {sid: "FCC_New:5"}; - this.sidHashMap["FCC_New:5"] = {rtwname: "/Actuator2"}; - this.rtwnameHashMap["/Actuator3"] = {sid: "FCC_New:7"}; - this.sidHashMap["FCC_New:7"] = {rtwname: "/Actuator3"}; - this.rtwnameHashMap["/EmptySubsystem"] = {sid: "FCC_New:36:1"}; - this.sidHashMap["FCC_New:36:1"] = {rtwname: "/EmptySubsystem"}; - this.getSID = function(rtwname) { return this.rtwnameHashMap[rtwname];} - this.getRtwname = function(sid) { return this.sidHashMap[sid];} -} -RTW_rtwnameSIDMap.instance = new RTW_rtwnameSIDMap(); diff --git a/src/validation/slprj/ert/FCC_New/html/css/coder_app.css b/src/validation/slprj/ert/FCC_New/html/css/coder_app.css deleted file mode 100644 index d47cf0edddb4a21ffda06a2cbf05275f7fa4747d..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/css/coder_app.css +++ /dev/null @@ -1,184 +0,0 @@ -/* Copyright 2013-2018 The MathWorks, Inc. */ -pre#code { - font-family: Consolas, Courier; - font-size: small; -} - -.ct { - font-style: italic; - color: #117755 -} /* comment */ -.pp { - font-weight:bold; - color: #992211 -} /* preprocessor */ -.kw, .br { - font-weight:bold; - color: #112266 -} /* keyword or brace */ -.dt { - font-weight:bold; - color: #112266 -} /* data type */ -.tk { - font-style: normal; - color: #112266 -} /* regular token */ -pre#code a.req { - text-decoration: none; - color: #112266 -} -pre#code a.req_active { - cursor: pointer; - text-decoration: underline; -} -pre#code a.req_active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} -pre#code a.blk { - text-decoration: none; -} -pre#code a.blk_active { - cursor: pointer; - text-decoration: underline; -} -pre#code a.blk_active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} -a.hilite { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); -} /* highlight token */ -tr.hilite { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); -} /* highlight row */ -a.hiliteToken, tr.hiliteToken, td.hiliteToken { - background-color: #ffff99; -} -.hiliteCurrentLine, tr.hiliteCurrentLine > td { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); - box-shadow: inset 0 1px 0 0 rgba(150, 12, 116, 0.25), inset 0 -1px 0 0 rgba(150, 12, 116, 0.25); -} -span.hiliteTotalLine { - font-style: normal; - color: #aff; -} -a.tk { - text-decoration: none; -} -a.tk:hover { - text-decoration: none; -} -a.active { - text-decoration: underline; -} -a.active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} /* hyperlink */ -table.code { - border: 0px -} -table.code td { - vertical-align: top; -} -table.code td.highlightedCurrent { - background-color: rgba(150, 12, 116, 0.1); -} -table.code > tr:first { - text-align: right; -} /* hyperlink */ - -ul.popup_attrib_list { - list-style-type:none; - display: block; - margin: 0; - padding: 0; -} -ul.popup_attrib_list li { - list-style-type:none; - display: inline; - margin: 0 18px 0 0; - padding: 0; -} -.highlighted { - background-color:yellow; -} -a:class1 { - color: -webkit-link; - text-decoration: underline; - cursor: hand; -} -.scroll -{ - height:80px; - overflow:scroll; - overflow-x:hidden; -} -div#popup_window { - position: absolute; - background-color: rgb(203,203,255); - border: solid 3px #ECECEC; - border-radius: 5px; - /* shadow box around the window*/ - -moz-box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - -webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - padding: 2px; -} -div#popup_window a { - text-decoration: none; - color: green; -} -div#popup_window a:hover { - cursor: pointer; - text-decoration: underline; - color: blue; -} -div#popup_window tr.selected { - background-color: #ffff99; -} -div#token_usage_nav { - border-bottom: 1px solid gray; -} -table#token_usage_details { - cellpadding: 100px; - table-layout:fixed; - border: 0px; -} -.token_usage_details_tabrow { - width: 40px; -} -table#token_usage_details td { - padding-right: 5em; - padding-left: 1em; -} -.token_usage_details_tabrow:hover { - background-color: gray; -} -.nav_table td.hidden { - display: none; -} -table#codeTbl tr td { - color: #112266 -} -table#codeTbl tr td { - padding-left: 10px; -} -table#codeTbl tr td:first-child { - font-style: italic; - color: #888888; - text-align: right; - padding-left:0px; -} - diff --git a/src/validation/slprj/ert/FCC_New/html/define.js b/src/validation/slprj/ert/FCC_New/html/define.js deleted file mode 100644 index adeae1e5af5adc621500bc3726426db7e4a384d1..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/define.js +++ /dev/null @@ -1,96 +0,0 @@ -function CodeDefine() { -this.def = new Array(); -this.def["FCC_New_GlobalTID"] = {file: "FCC_New_c.html",line:70,type:"var"}; -this.def["FCC_New_TimingBrdg"] = {file: "FCC_New_c.html",line:71,type:"var"}; -this.def["FCC_New_MdlrefDW"] = {file: "FCC_New_c.html",line:72,type:"var"}; -this.def["FCC_New_DW"] = {file: "FCC_New_c.html",line:75,type:"var"}; -this.def["FCC_New_Disable"] = {file: "FCC_New_c.html",line:78,type:"fcn"}; -this.def["FCC_NewTID0"] = {file: "FCC_New_c.html",line:88,type:"fcn"}; -this.def["FCC_NewTID1"] = {file: "FCC_New_c.html",line:122,type:"fcn"}; -this.def["FCC_New_initialize"] = {file: "FCC_New_c.html",line:152,type:"fcn"}; -this.def["RT_MODEL_FCC_New_T"] = {file: "FCC_New_h.html",line:51,type:"type"}; -this.def["DW_FCC_New_f_T"] = {file: "FCC_New_h.html",line:63,type:"type"}; -this.def["MdlrefDW_FCC_New_T"] = {file: "FCC_New_h.html",line:92,type:"type"}; -this.def["AHRS_Bus"] = {file: "../../_sharedutils/html/AHRS_Bus_h.html",line:38,type:"type"}; -this.def["rtTimingBridge"] = {file: "../../_sharedutils/html/model_reference_types_h.html",line:28,type:"type"}; -this.def["rtCtrlRateMdlRefTiming"] = {file: "../../_sharedutils/html/model_reference_types_h.html",line:43,type:"type"}; -this.def["int8_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:55,type:"type"}; -this.def["uint8_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:56,type:"type"}; -this.def["int16_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:57,type:"type"}; -this.def["uint16_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:58,type:"type"}; -this.def["int32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:59,type:"type"}; -this.def["uint32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:60,type:"type"}; -this.def["real32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:61,type:"type"}; -this.def["real64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:62,type:"type"}; -this.def["real_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:68,type:"type"}; -this.def["time_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:69,type:"type"}; -this.def["boolean_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:70,type:"type"}; -this.def["int_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:71,type:"type"}; -this.def["uint_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:72,type:"type"}; -this.def["ulong_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:73,type:"type"}; -this.def["ulonglong_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:74,type:"type"}; -this.def["char_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:75,type:"type"}; -this.def["uchar_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:76,type:"type"}; -this.def["byte_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:77,type:"type"}; -this.def["int64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:78,type:"type"}; -this.def["uint64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:79,type:"type"}; -this.def["int8_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:89,type:"type"}; -this.def["uint8_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:90,type:"type"}; -this.def["int16_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:91,type:"type"}; -this.def["uint16_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:92,type:"type"}; -this.def["int32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:93,type:"type"}; -this.def["uint32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:94,type:"type"}; -this.def["int64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:95,type:"type"}; -this.def["uint64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:96,type:"type"}; -this.def["real32_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:97,type:"type"}; -this.def["real64_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:98,type:"type"}; -this.def["real_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:104,type:"type"}; -this.def["time_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:105,type:"type"}; -this.def["boolean_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:106,type:"type"}; -this.def["int_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:107,type:"type"}; -this.def["uint_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:108,type:"type"}; -this.def["ulong_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:109,type:"type"}; -this.def["ulonglong_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:110,type:"type"}; -this.def["char_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:111,type:"type"}; -this.def["uchar_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:112,type:"type"}; -this.def["byte_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:113,type:"type"}; -this.def["pointer_T"] = {file: "../../_sharedutils/html/rtwtypes_h.html",line:136,type:"type"}; -} -CodeDefine.instance = new CodeDefine(); -var testHarnessInfo = {OwnerFileName: "", HarnessOwner: "", HarnessName: "", IsTestHarness: "0"}; -var relPathToBuildDir = "../ert_main.c"; -var fileSep = "\\"; -var isPC = true; -function Html2SrcLink() { - this.html2SrcPath = new Array; - this.html2Root = new Array; - this.html2SrcPath["FCC_New_c.html"] = "../FCC_New.c"; - this.html2Root["FCC_New_c.html"] = "FCC_New_c.html"; - this.html2SrcPath["FCC_New_h.html"] = "../FCC_New.h"; - this.html2Root["FCC_New_h.html"] = "FCC_New_h.html"; - this.html2SrcPath["AHRSControl_AHRS_Control_h.html"] = "../AHRSControl_AHRS_Control.h"; - this.html2Root["AHRSControl_AHRS_Control_h.html"] = "../../_sharedutils/html/AHRSControl_AHRS_Control_h.html"; - this.html2SrcPath["AHRS_Bus_h.html"] = "../AHRS_Bus.h"; - this.html2Root["AHRS_Bus_h.html"] = "../../_sharedutils/html/AHRS_Bus_h.html"; - this.html2SrcPath["Actuator_Control_h.html"] = "../Actuator_Control.h"; - this.html2Root["Actuator_Control_h.html"] = "../../_sharedutils/html/Actuator_Control_h.html"; - this.html2SrcPath["model_reference_types_h.html"] = "../model_reference_types.h"; - this.html2Root["model_reference_types_h.html"] = "../../_sharedutils/html/model_reference_types_h.html"; - this.html2SrcPath["rtwtypes_h.html"] = "../rtwtypes.h"; - this.html2Root["rtwtypes_h.html"] = "../../_sharedutils/html/rtwtypes_h.html"; - this.getLink2Src = function (htmlFileName) { - if (this.html2SrcPath[htmlFileName]) - return this.html2SrcPath[htmlFileName]; - else - return null; - } - this.getLinkFromRoot = function (htmlFileName) { - if (this.html2Root[htmlFileName]) - return this.html2Root[htmlFileName]; - else - return null; - } -} -Html2SrcLink.instance = new Html2SrcLink(); -var fileList = [ -"FCC_New_c.html","FCC_New_h.html","AHRSControl_AHRS_Control_h.html","AHRS_Bus_h.html","Actuator_Control_h.html","model_reference_types_h.html","rtwtypes_h.html"]; diff --git a/src/validation/slprj/ert/FCC_New/html/hilite_warning.png b/src/validation/slprj/ert/FCC_New/html/hilite_warning.png deleted file mode 100644 index f013f815ae58acfcb9112170c871851d666b820f..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/html/hilite_warning.png and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/html/inspect.html b/src/validation/slprj/ert/FCC_New/html/inspect.html deleted file mode 100644 index b628c7a9b9bb6b35d1d71511d01fcff40959fe1b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/inspect.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - -
    - - diff --git a/src/validation/slprj/ert/FCC_New/html/js/coder_app.js b/src/validation/slprj/ert/FCC_New/html/js/coder_app.js deleted file mode 100644 index 3c34823e1b5445bb6421e4f73479ca3bc4f50299..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/js/coder_app.js +++ /dev/null @@ -1,525 +0,0 @@ -/* Copyright 2013-2018 The MathWorks, Inc. */ -function queryByClassName(className, elem) { - if (!elem) elem = document.body; - if (typeof elem.querySelectorAll === "function") { - return elem.querySelectorAll("."+className); - } else { - return elem.getElementsByClass(className); - } -} - -function nav_token_usage_details(direction) { - var els = queryByClassName("token_usage_details_tabrow"); - var selectedIdx = 0; - var selectedClassName = "selected"; - for (selectedIdx; selectedIdx < els.length; selectedIdx++) { - if (els[selectedIdx].classList.contains(selectedClassName)) { - break; - } - } - var nextIdx = selectedIdx; - if (direction === -1 && selectedIdx > 0) { - nextIdx = selectedIdx-1; - } else if (direction === 1 && selectedIdx < els.length - 1) { - nextIdx = selectedIdx + 1; - } - if (nextIdx !== selectedIdx) { - els[selectedIdx].classList.remove(selectedClassName); - els[nextIdx].classList.add(selectedClassName); - els[nextIdx].scrollIntoView(alignWithTop=false); - } - return false; -} - -function tabrowClicked(event) { -} - -function popupOnload() { - var els = queryByClassName("token_usage_details_tabrow"); - for (var i=0; i" + - top.rtwGetFileName(link2Src) + ""; - var bodyNode = document.body; - bodyNode.insertBefore(link, bodyNode.firstElementChild); - } - top.updateHyperlinks(); - // update fileSelector frame - if (top.fileSelector) { - var o = top.fileSelector.document.getElementById('fileSelector'); - if (o) { - o.value = filename; - } - } - // add links to line numbers - var hasLineFlag = null; - if (top.TraceInfoLineFlag && top.TraceInfoLineFlag.instance) { - hasLineFlag = true; - } else { - hasLineFlag = false; - } - - if(hasLineFlag) { - var lines = queryByClassName("ln", codeElement); - var lineTraceFlag = top.TraceInfoLineFlag.instance.lineTraceFlag; - var lineNo = null; - for (var i=0; i= 0; --i) { - var childNode = trNode.childNodes[i]; - if (childNode.tagName.toUpperCase() === "TD") { - return childNode.childNodes; - } - } - return null; -} - -// see g1225075 -function fixBoxStyleFnHeaderLineWidths() { - // Match strings like "/**********/" which is the top line of - // a box-style function comment header - var reBoxHeader = /\/\*+\//; - - // Match strings like "' */" which is the contents of the text - // element originally generated in the report to pad the width of - // the line. - var rePadding = /'\s*\*\//; - - // All block identifier elements in the report page - blkLineElts = queryByClassName("blk"); - for (var i = 0; i < blkLineElts.length; ++i) { - var origPadding = blkLineElts[i].nextSibling; - if (origPadding.textContent.match(rePadding)) { - var spanElt = findParent(blkLineElts[i], { tagName: "span", className: "ct" }); - if (!spanElt) { - continue; - } - - // The numbered line in the report containing block identifier "i" - var tableRowElt = findParent(spanElt, { tagName: "tr" }); - if (!tableRowElt) { - continue; - } - - // Loop backward through table rows (i.e., report lines) looking - // for the "/***************/" start of the header. When found save - // its pixel width. Not actually the width of the itself but - // the span inside its last . This is will determine the real - // padding that is needed for proper alignment regardless of font - // or CKJ characters. - var targetWidth = 0; - var sanity = Number.MAX_VALUE; - var node = tableRowElt.previousSibling; - while (node && (sanity-- > 0)) { - var lastCellContents = getLastTableCellContents(node); - if (lastCellContents) { - if (lastCellContents.length === 0) { - break; - } - if (lastCellContents[0].textContent.match(reBoxHeader)) { - targetWidth = lastCellContents[0].offsetWidth; - break; - } - } - node = node.previousSibling; - } - - // If applying a new padding (i.e., targetWidth > 0), replace - // the original padding "' */' (a single text element) with - // two text elements and a span in between. The span will be the - // new pixel-accurate padding. - if (targetWidth > 0) { - var singleQuoteNode = document.createTextNode("'"); - var spacerNode = document.createElement('span'); - origPadding.textContent = "*/"; - origPadding.parentNode.insertBefore(spacerNode, origPadding); - origPadding.parentNode.insertBefore(singleQuoteNode, spacerNode); - - var padWidth = targetWidth - spanElt.offsetWidth; - spacerNode.style.display = 'inline-block'; - spacerNode.style.width = String(padWidth) + "px"; - spacerNode.style.height = '1em'; // cursor won't work w/o some height - spacerNode.style.cursor = 'text'; - } - } - } -} - -// the onload function for source file -function srcFileOnload() { - var codeElement = document.getElementById("codeTbl"); - var insertFunction = getInsertFunction(codeElement); - try { - var els = codeElement.getElementsByTagName("tr"); - for (var i = 0; i < els.length; i++) { - registerDelayedOnMouseOver(els[i], lineOnMouseIn, lineOnMouseOut); - } - updateToken(codeElement); - } catch (err) {}; - insertFunction(); - // add code to model hyperlinks for all tokens - var filename = location.pathname.split(/\//); - filename = filename[filename.length-1]; - // highlight the filename in the TOC frame - if (top.rtwreport_contents_frame && top.hiliteByFileName(top.rtwreport_document_frame.document.location.href)) { - // remove the highlights in the TOC frame if filename is hilite successfully - top.removeHiliteTOC(top.rtwreport_contents_frame); - } - - // annotate code with code coverage data - if (typeof rtwannotate === 'function') { - rtwannotate(filename.replace(/.html$/,"_cov.xml")); - } - - fixBoxStyleFnHeaderLineWidths(); - - // highlight token and row - if (top.RTW_TraceInfo.instance && top.RTW_TraceArgs.instance) { - var i; - // find the highlight file name - var fileIdx = top.RTW_TraceArgs.instance.getFileIdx(filename); - var ids=[], rows=[]; - if (typeof fileIdx !== "undefined") { - ids = top.RTW_TraceArgs.instance.getIDs(fileIdx); - rows = top.RTW_TraceArgs.instance.getRows(fileIdx); - // highlight rows in file - for (i=0; i 0) - top.RTW_TraceInfo.instance.setInitLocation(filename,rows[0]); - else { - top.toggleNavSideBar("off"); - return; - } - } - - // display navigation side bar - if (top.rtwreport_nav_frame) top.rtwreport_nav_frame.location.reload(); - if (rows.length>0) { - top.toggleNavSideBar("on"); - top.toggleNavToolBar("on"); - } else { - top.toggleNavSideBar("off"); - } - } - top.scrollToLineBasedOnHash(document.location.hash); - function getHash() { - var loc; - var aHash=""; - var topDocObj = top.window.document; - // get the hash value from location. - loc = topDocObj.location; - loc = loc.search || loc.hash; - aHash = loc.substring(1); - aHash = decodeURI(aHash); - return aHash; - } -} - -function createPopup(filename, evt) { - var anchorObj = evt.currentTarget; - if (anchorObj.children.length > 0) - return; - var filename = location.pathname.split(/\//); - filename = filename[filename.length-1]; - var windowObj = top.getInspectWindow(); - var propObj = top.getInspectData(filename, anchorObj); - var navObj = top.getInspectLink(filename, location.pathname, anchorObj); - if (propObj) { - windowObj.appendChild(propObj); - windowObj.style.left = "0px"; - if (anchorObj.parentElement.nodeName === "TD" && - anchorObj.parentElement.parentElement.nodeName === "TR") { - anchorObj.parentElement.parentElement.lastChild.insertBefore(windowObj, - anchorObj.parentElement.parentElement.lastChild.lastChild.nextSibling); - var left = Math.min(evt.clientX , window.innerWidth - windowObj.scrollWidth - 30); - left = Math.max(0, left); - windowObj.style.left = "" + left + "px"; - } - } -}; - -function destroyPopup(anchorObj) { - var popWindow = document.getElementById("popup_window"); - if (popWindow) { - popWindow.parentElement.removeChild(popWindow); - } -}; diff --git a/src/validation/slprj/ert/FCC_New/html/nav.html b/src/validation/slprj/ert/FCC_New/html/nav.html deleted file mode 100644 index 64f68dbc1980c5d6eaedcb14230e0eff7a1e2ee2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/nav.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - diff --git a/src/validation/slprj/ert/FCC_New/html/navToolbar.html b/src/validation/slprj/ert/FCC_New/html/navToolbar.html deleted file mode 100644 index d07c72e0a8141cd7e044a11304c611d8c30999fc..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/navToolbar.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/validation/slprj/ert/FCC_New/html/rtwhilite.js b/src/validation/slprj/ert/FCC_New/html/rtwhilite.js deleted file mode 100644 index bb368a11264d4adae9ce2732cfb978ce099d3d68..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/rtwhilite.js +++ /dev/null @@ -1,2081 +0,0 @@ -// Copyright 2006-2019 The MathWorks, Inc. - -// Class RTW_Hash ------------------------------------------------------------ -// Internal web browser doesn't change window.location.hash if the link points -// to the same page. -// RTW_Hash remembers the hash value when the page is loaded in the first time -// or a link is clicked. -// removeHiliteByHash cleans the high lighted elements according to the stored -// hash value -function RTW_Hash(aHash) { - if (aHash == null) { - this.fHash = ""; - } else { - this.fHash = aHash; - }; - - this.getHash = function() { - return this.fHash; - } - - this.setHash = function(aHash) { - this.fHash = aHash; - } -} - -RTW_Hash.instance = null; - -// Class RTW_TraceInfo -------------------------------------------------------- -function RTW_TraceInfo(aFileLinks) { - this.fFileLinks = aFileLinks; - this.fLines = new Array(); - this.fTotalLines = 0; // total number of highlighted lines - this.fNumLines = new Array(); - this.fFileIdxCache = new Array(); - this.fDisablePanel = false; - this.fCurrFileIdx = -1; - this.fCurrLineIdx = -1; - this.fCurrCodeNode = null; - this.getHtmlFileName = function(aIndex) { - if (aIndex < this.fFileLinks.length) { - var href = this.fFileLinks[aIndex].href; - return href.substring(href.lastIndexOf('/')+1); - } - } - this.getSrcFileName = function(aIndex) { - var name = this.getHtmlFileName(aIndex); - if (name) - name = RTW_TraceInfo.toSrcFileName(name); - return name; - } - this.getNumFileLinks = function() { - return this.fFileLinks.length; - } - this.setFileLinkColor = function(aIndex, aColor) { - var link = this.fFileLinks[aIndex]; - if (link && link.parentNode && link.parentNode.style) - link.parentNode.style.backgroundColor = aColor; - } - this.highlightFileLink = function(aIndex, aColor) { - for (var i = 0; i < this.fFileLinks.length; ++i) { - this.setFileLinkColor(i, i == aIndex ? aColor : ""); - } - } - this.highlightCurrFileLink = function(aColor) { - this.highlightFileLink(this.fCurrFileIdx); - } - this.highlightLines = function(aCodeNode,aColor) { - this.fCurrCodeNode = aCodeNode; - var lines = this.fLines[this.getHtmlFileName(this.fCurrFileIdx)]; - if (lines && aCodeNode) { - for (var i = 0; i < lines.length; ++i) { - var lineObj = aCodeNode.childNodes[lines[i]-1]; - if (lineObj) - lineObj.style.backgroundColor=aColor; - } - } - } - this.getFileIdx = function(aFile) { - if (this.fFileIdxCache[aFile] != null) - return this.fFileIdxCache[aFile]; - for (var i = 0; i < this.fFileLinks.length; ++i) { - if (this.getHtmlFileName(i) == aFile) { - this.fFileIdxCache[aFile] = i; - return i; - } - } - return null; - } - this.getCurrFileIdx = function() { return this.fCurrFileIdx; } - this.setNumHighlightedLines = function(aFileIdx, aNumLines) { - this.fNumLines[aFileIdx] = aNumLines; - updateNumHighlightedLines(this.fFileLinks[aFileIdx], aNumLines); - } - this.getNumLines = function(aFileIdx) { - return this.fNumLines[aFileIdx] != null ? this.fNumLines[aFileIdx] : 0; - } - this.getNumLinesAll = function() { - var sum = 0; - var len = this.fNumLines.length; - for (var i = 0; i < len; ++i) { - sum += this.getNumLines(i); - } - return sum; - } - this.getPrevButton = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdButtonPrev"); - else - return document.getElementById("rtwIdButtonPrev"); - } - this.getNextButton = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdButtonNext"); - else - return document.getElementById("rtwIdButtonNext"); - } - this.getPanel = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdTracePanel"); - else - return document.getElementById("rtwIdTracePanel"); - } - this.removeHighlighting = function() { - for (var i = 0; i < this.fFileLinks.length; ++i) { - this.setFileLinkColor(i, ""); - this.setNumHighlightedLines(i, 0); - } - // remove highlight and reset current code node - try { - if (this.fCurrCodeNode != null) - this.highlightLines(getCodeNode(),""); - } catch (e) {}; - this.fCurrCodeNode = null; - if (this.getPrevButton()) { this.getPrevButton().disabled = true; } - if (this.getNextButton()) { this.getNextButton().disabled = true; } - if (this.getPanel()) { this.getPanel().style.display = "none"; } - this.fCurrFileIdx = -1; - this.fCurrLineIdx = -1; - } - this.setCurrLineIdx = function(aLineIdx) { - this.fCurrLineIdx = aLineIdx; - } - this.getCurrLineIdx = function() { return this.fCurrLineIdx; } - this.setCurrent = function(aFileIdx, aLineIdx) { - this.fCurrFileIdx = aFileIdx; - var numLines = this.getNumLines(aFileIdx); - if (!numLines || aLineIdx >= numLines) - this.fCurrLineIdx = -1; - else - this.fCurrLineIdx = aLineIdx; - var allNumLines = this.getNumLinesAll(); - if (this.getPrevButton()) { - this.getPrevButton().disabled = (allNumLines <= 1 || !this.hasPrev()); - } - if (this.getNextButton()) { - this.getNextButton().disabled = (allNumLines <= 1 || !this.hasNext()); - } - if (this.getPanel() && !this.fDisablePanel) { - this.getPanel().style.display = 'block'; - } - } - this.setDisablePanel = function(aDisable) { - this.fDisablePanel = aDisable; - } - this.getPrevFileIdx = function() { - if (this.fCurrLineIdx > 0) - return this.fCurrFileIdx; - for (var i = this.fCurrFileIdx - 1; i >= 0; --i) - if (this.fNumLines[i] > 0) - return i; - return null; - } - // update the navigation bar state - this.updateNavState = function() { - if (this.getPrevButton()) - this.getPrevButton().disabled = !this.hasPrev(); - if (this.getNextButton()) - this.getNextButton().disabled = !this.hasNext(); - setTraceNumber(); - } - this.hasPrev = function() { - return this.getPrevFileIdx() != null; - } - this.getFirstFileIdx = function() { - for (var i = 0; i < this.getNumFileLinks(); ++i) - if (this.fNumLines[i] > 0) - return i; - } - this.getLastFileIdx = function() { - for (var i = this.getNumFileLinks(); i >= 0; --i) - if (this.fNumLines[i] > 0) - return i; - } - this.goFirst = function() { - this.fCurrFileIdx = this.getFirstFileIdx(); - this.fCurrLineIdx = 0; - this.updateNavState(); - } - this.goLast = function() { - this.fCurrFileIdx = this.getLastFileIdx();; - this.fCurrLineIdx = this.getNumLines(this.fCurrFileIdx) - 1; - this.updateNavState(); - } - this.goPrev = function() { - var fileIdx = this.getPrevFileIdx(); - if (fileIdx == null) - return; - if (fileIdx == this.fCurrFileIdx) - --this.fCurrLineIdx; - else { - this.fCurrFileIdx = fileIdx; - this.fCurrLineIdx = this.getNumLines(fileIdx) - 1; - } - this.updateNavState(); - } - this.getNextFileIdx = function() { - if (this.fCurrLineIdx < this.getNumLines(this.fCurrFileIdx) - 1 && this.getNumLines(this.fCurrFileIdx) > 0) - return this.fCurrFileIdx; - for (var i = this.fCurrFileIdx + 1; i < this.getNumFileLinks(); ++i) - if (this.fNumLines[i] > 0) - return i; - return null; - } - this.hasNext = function() { - return this.getNextFileIdx() != null; - } - this.goNext = function() { - var fileIdx = this.getNextFileIdx(); - if (fileIdx == null) - return; - if (fileIdx == this.fCurrFileIdx) - ++this.fCurrLineIdx; - else { - this.fCurrFileIdx = fileIdx; - this.fCurrLineIdx = 0; - } - this.updateNavState(); - } - this.setTotalLines = function(num) { - this.fTotalLines = num; - } - this.getTotalLines = function() { return this.fTotalLines;} - this.setLines = function(aFile, aLines) { - this.fLines[aFile] = aLines; - var index = this.getFileIdx(aFile); - if (index != null) - this.setNumHighlightedLines(index,aLines.length); - } - this.getLines = function(aFile) { - return this.fLines[aFile]; - } - // get current on focus line number - this.getCurrLine = function() { - var file = this.getHtmlFileName(this.getCurrFileIdx()); - var lines = this.fLines[file]; - var line = null; - if (lines) { - var line = lines[this.fCurrLineIdx]; - } - return line; - } - this.getHRef = function(aFileIdx, aLineIdx, offset) { - var file = this.getHtmlFileName(aFileIdx); - var lines = this.fLines[file]; - if (lines) { - var line = lines[aLineIdx]; - line = offset_line(line, offset); - file = file+"#"+line; - } - return file; - } - - this.getCurrentHRef = function(offset) { - return this.getHRef(this.fCurrFileIdx, this.fCurrLineIdx, offset); - } - this.setInitLocation = function(aFile, aLine) { - var fileIdx = this.getFileIdx(aFile); - var lineIdx = null; - if (fileIdx != null && aLine) { - var lines = this.getLines(aFile); - for (var i = 0; i < lines.length; ++i) { - if (lines[i] == aLine) { - lineIdx = i; - break; - } - } - } - if (fileIdx == null || lineIdx == null) - this.setCurrent(-1,-1); - else - this.setCurrent(fileIdx,lineIdx); - } -} - -// Static methods in RTW_TraceInfo - -RTW_TraceInfo.getFileLinks = function(docObj) { - var links; - if (docObj && docObj.getElementsByName) - links = docObj.getElementsByName("rtwIdGenFileLinks"); - return links ? links : new Array(); -} - -RTW_TraceInfo.toSrcFileName = function(aHtmlFileName) { - aHtmlFileName = aHtmlFileName.replace(/_c.html$/,".c"); - aHtmlFileName = aHtmlFileName.replace(/_h.html$/,".h"); - aHtmlFileName = aHtmlFileName.replace(/_cpp.html$/,".cpp"); - aHtmlFileName = aHtmlFileName.replace(/_hpp.html$/,".hpp"); - aHtmlFileName = aHtmlFileName.replace(/_cc.html$/,".hpp"); - return aHtmlFileName; -} - -RTW_TraceInfo.instance = null; - -// Class RTW_TraceArgs -------------------------------------------------------- -// file.c:10,20,30&file.h:10,20,30[&color=value] or -// sid=model:1[&color=value] -RTW_TraceArgs = function(aHash) { - this.fColor = null; - this.fFontSize = null; - this.fInitFile = null; - this.fInitLine = null; - this.fSID = null; - this.fFiles = new Array(); - this.fLines = new Array(); - this.fMessage = null; - this.fBlock = null; - this.fNumBlocks = 0; - this.fUseExternalBrowser = true; - this.fInStudio = false; - this.fModel2CodeSrc = null; - this.fInCodeTrace = false; - this.fTraceData = null; - this.fFileIdx = []; // filename to fileId - this.fRows = []; // highlighted rows indexed by fileId - this.fIDs = []; // highlighted IDs indexed by fileId - - this.hasSid = function() { - return !(this.fSID == null); - } - this.parseCommand = function(aHash) { - var args = new Array(); - args = aHash.split('&'); - for (var i = 0; i < args.length; ++i) { - var arg = args[i]; - sep = arg.indexOf('='); - if (sep != -1) { - var cmd = arg.substring(0,sep); - var opt = arg.substring(sep+1); - switch (cmd.toLowerCase()) { - case "color": - this.fColor = opt; - break; - case "fontsize": - this.fFontSize = opt; - break; - case "initfile": - this.fInitFile = RTW_TraceArgs.toHtmlFileName(opt); - break; - case "initline": - this.fInitLine = opt; - break; - case "msg": - this.fMessage = opt; - break; - case "block": - this.fBlock = unescape(opt); - break; - case "numblocks": - this.fNumBlocks = parseInt(opt); - break; - case "sid": - this.fSID = opt; - // convert sid to code location - break; - case "model2code_src": - // model2code_src from model or webview - this.fModel2CodeSrc = opt; - break; - case "useexternalbrowser": - this.fUseExternalBrowser = (opt=="true"); - break; - case "instudio": - this.fInStudio = (opt=="true"); - break; - case "incodetrace": - this.fInCodeTrace = (opt=="true"); - break; - case "tracedata": - this.fTraceData = decodeURI(opt); - break; - } - } - } - } - this.parseUrlHash = function(aHash) { - var rows, sep, assignSep; - if (aHash) { - args = aHash.split('&'); - for (var i = 0; i < args.length; ++i) { - var arg = args[i]; - sep = arg.indexOf(':'); - assignSep = arg.indexOf('='); - if (sep !== -1 && assignSep === -1) { - var fileLines = arg.split(':'); - var htmlFileName = RTW_TraceArgs.toHtmlFileName(fileLines[0]); - this.fFileIdx[htmlFileName] = i; - this.fFiles.push(htmlFileName); - if (fileLines[1]) { - rows = fileLines[1].split(','); - rows = uniqueRows(rows); - this.fLines.push(rows); - this.fRows[i] = rows; - } - } - } - if (this.fInitFile == null && this.fFiles.length > 0) { - this.fInitFile = this.fFiles[0]; - this.fInitLine = (this.fLines[0] == null ? -1 : this.fLines[0][0]); - } - } - } - this.parseUrlHash2 = function(aHash) { - aHash = decodeURI(aHash); - var rows; - var ids; - if (aHash && aHash.length > 0 && aHash[0] === "[") { - var input = eval(aHash); - var i; - var j; - // set highlight files from url - for (i=0; i 0 - && top.rtwreport_document_frame.location.href !== "about:blank" && forceReload !== true) { - updateHyperlinks(); - return; - } - - // modify modelref links - update_modelref_report_link(top.rtwreport_contents_frame.document); - try { - // ignore browser security error - update_modelref_report_link(top.rtwreport_document_frame.document); - } catch(e) {}; - - // redirect the page based on the url - var initPage = null; - if (RTW_TraceArgs.instance.getNumFiles()) { - var fileLinks = RTW_TraceInfo.getFileLinks(tocDocObj); - RTW_TraceInfo.instance = new RTW_TraceInfo(fileLinks); - RTW_TraceInfo.instance.removeHighlighting() - var numFiles = RTW_TraceArgs.instance.getNumFiles(); - var tLines = 0; - for (var i = 0; i < numFiles; ++i) { - RTW_TraceInfo.instance.setLines(RTW_TraceArgs.instance.getFile(i),RTW_TraceArgs.instance.getLines(i)); - tLines += RTW_TraceArgs.instance.getLines(i).length; - } - RTW_TraceInfo.instance.setTotalLines(tLines); - if (aPanel == false) { - RTW_TraceInfo.instance.setDisablePanel(true); - } - var initFile = RTW_TraceArgs.instance.getInitFile(); - RTW_TraceInfo.instance.setInitLocation(initFile,RTW_TraceArgs.instance.getInitLine()); - if (!hasInCodeTrace()) { - initPage = RTW_TraceInfo.instance.getCurrentHRef(); - } else { - initPage = initFile; - } - } else { - // catch error that document frame is in another domain - try { - var fileDocObj = top.rtwreport_document_frame.document; - if (fileDocObj.location && (!fileDocObj.location.href || fileDocObj.location.href == "about:blank")) { - var summaryPage = tocDocObj.getElementById("rtwIdSummaryPage"); - var tracePage = tocDocObj.getElementById("rtwIdTraceability"); - if (summaryPage) { - initPage = summaryPage.href; - } else if (tracePage) { - initPage = tracePage; - } - } - } catch(e) {}; - } - if (RTW_TraceArgs.instance && RTW_TraceArgs.instance.fMessage) { - // display diagnostic message - var linkId = "rtwIdMsgFileLink"; - var msgFile = tocDocObj.getElementById(linkId); - if (msgFile && msgFile.style) { - msgFile.style.display = "block"; - // Highlight the background of msg link - tocHiliteById(linkId); - } - initPage = "rtwmsg.html"; - } - if (initPage) { - var is_same_page = false; - try { - var fileDocObj = top.rtwreport_document_frame.document; - is_same_page = isSamePage(fileDocObj.location.href, initPage); - } catch(e) {}; - if (document.getElementById("rtwreport_document_frame")) { - document.getElementById("rtwreport_document_frame").setAttribute("src", initPage); - } else { - top.rtwreport_document_frame.location.href = initPage; - } - - if (is_same_page) { - // Goto the same page won't trigger onload function. - // Call it manuelly to highligh new code location. - rtwFileOnLoad(top.rtwreport_document_frame.document); - } - } -} - -// Compare if href1(i.e. file:///path/file1.html#222) and href2(i.e.file2.html) are same pages. -// isSamePage return true if file1 == file2. -function isSamePage(href1, href2) { - var page1 = href1.substring(href1.lastIndexOf('/')+1,href1.lastIndexOf('.html')); - var page2 = href2.substring(href2.lastIndexOf('/')+1,href2.lastIndexOf('.html')); - return (page1 == page2); -} - -// Callback for main document loading -function rtwMainOnLoad() { - rtwMainOnLoadFcn(document,null,true, false); - var newUrl; - // modify history state to avoid reload from pressing back - if (RTW_TraceArgs.instance && !RTW_TraceArgs.instance.getUseExternalBrowser() && - typeof window.history.replaceState === "function") { - if (window.location.search.length > 0) { - if (window.location.search.indexOf("loaded=true") === -1) { - newUrl = document.location.pathname + window.location.search + '&loaded=true'; - } else { - newUrl = document.location.pathname + window.location.search; - } - } else { - newUrl = document.location.pathname + window.location.search + '?loaded=true'; - } - window.history.replaceState("","",newUrl); - } -} - -// Helper function for traceability report -function rtwMainReload(location) { - // remove highlight filename and lines before reloading the page - if (RTW_TraceInfo.instance) - RTW_TraceInfo.instance.removeHighlighting(); - rtwMainOnLoadFcn(document,location,true,true); -} - -function rtwMainReloadNoPanel(location) { - rtwMainOnLoadFcn(document,location,false,true); -} - -// Callback for hyperlink "Remove Highlighting" -function rtwRemoveHighlighting() { - if (RTW_TraceInfo.instance) - RTW_TraceInfo.instance.removeHighlighting(); - if (rtwSrcFrame()) { - rtwSrcFrame().focus(); - } - if (hasInCodeTrace()) { - removeInCodeTraceHighlight(); - } -} - -// Display diagnostic message in document frame -function rtwDisplayMessage() { - var docObj = top.rtwreport_document_frame.document; - var msg = docObj.getElementById(RTW_TraceArgs.instance.fMessage); - if (!msg) { - msg = docObj.getElementById("rtwMsg_notTraceable"); - } - if (msg && msg.style) { - msg.style.display = "block"; // make message visible - var msgstr = msg.innerHTML; - // replace '%s' in message with block name - if (top.RTW_TraceArgs.instance) { - var sid = top.RTW_TraceArgs.instance.getBlock(); - if (sid) { - var block = sid; - if (top.RTW_rtwnameSIDMap && top.RTW_rtwnameSIDMap.instance && top.RTW_rtwnameSIDMap.instance.getRtwname(sid)) { - block = top.RTW_rtwnameSIDMap.instance.getRtwname(sid).rtwname; - block = block.replace("<", "<").replace(">", ">"); - } else { - block = sid; - } - if (block) { - msgstr = msgstr.replace("%s", block); - } - } - } - msg.innerHTML = msgstr; - } -} - -function updateHyperlinks() { - docObj = top.rtwreport_document_frame; - if (docObj && docObj.document) { - if (RTW_TraceArgs.instance === null || !RTW_TraceArgs.instance.getUseExternalBrowser()) { - var plain_link = docObj.document.getElementById("linkToText_plain"); - if (plain_link && plain_link.href && plain_link.href.indexOf("matlab:coder.internal.editUrlTextFile") === -1 ) { - plain_link.href = "matlab:coder.internal.editUrlTextFile('" + str2StrVar(plain_link.href) + "')"; - } - var alink = docObj.document.getElementById("linkToCS"); - var linkCmd = "matlab:coder.internal.viewCodeConfigsetFromReport"; - if (alink && alink.href && alink.href.indexOf(linkCmd) === -1) { - alink.href = linkCmd+ "('" + str2StrVar(alink.href) + "');"; - if(alink.style) { - alink.style.display = ""; - hidden_link = docObj.document.getElementById("linkToCS_disabled"); - if (hidden_link) { - hidden_link.style.display = "none"; - } - } - } - } else { - var alink = docObj.document.getElementById("linkToCS"); - if (alink && alink.style) { - alink.style.display = "none"; - hidden_link = docObj.document.getElementById("linkToCS_disabled"); - if (hidden_link) - hidden_link.style.display = ""; - } - if (typeof docObj.document.getElementsByClassName === "function") { - alinks = docObj.document.getElementsByClassName("callMATLAB"); - } else if (typeof docObj.document.getElementsByName === "function") { - alinks = docObj.document.getElementsByName("callMATLAB"); - } else { - alinks = []; - } - alink = docObj.document.getElementById("CodeGenAdvCheck"); - if (alink && alink.href && alink.href.indexOf("externalweb=true")===-1) { - alink.href = alink.href + "?externalweb=true"; - } - - if (typeof docObj.document.getElementsByName === "function") - var objs = docObj.document.getElementsByName("MATLAB_link"); - else - objs = []; - for (var objIndex = 0; objIndex < objs.length; ++objIndex) { - objs[objIndex].style.display = "none"; - } - } - } - updateCode2ModelLinks(docObj.document); - // modify modelref links - update_modelref_report_link(top.rtwreport_contents_frame.document); - try { - // ignore browser security error - update_modelref_report_link(top.rtwreport_document_frame.document); - } catch(e) {}; -} - -function update_modelref_report_link(docObj) { - if (docObj.getElementsByName) { - var arg = ""; - if (RTW_TraceArgs.instance && !RTW_TraceArgs.instance.getUseExternalBrowser()) { - arg = "?useExternalBrowser=false"; - } - if (RTW_TraceArgs && RTW_TraceArgs.instance && RTW_TraceArgs.instance.getModel2CodeSrc() != null) { - if (arg.length > 0) - arg = arg + "&model2code_src=" + RTW_TraceArgs.instance.getModel2CodeSrc(); - else - arg = "?model2code_src=" + RTW_TraceArgs.instance.getModel2CodeSrc(); - } - if (arg.length > 0) { - links = docObj.getElementsByName('external_link'); - for (var link_idx = 0; link_idx < links.length; ++link_idx) { - links[link_idx].href = links[link_idx].href + arg; - } - } - } -} - -function rtwResizeFrame(f) { - if (f) { - f.style.height = f.contentWindow.document.body.scrollHeight + "px"; - } -} - -function rtwPageOnLoad(id) { - // highlight toc entry - tocHiliteById(id); - // restore elements state - if (top && top.restoreState) { - if (top.rtwreport_contents_frame && top.rtwreport_contents_frame.document) - top.restoreState(top.rtwreport_contents_frame.document); - if (top.rtwreport_document_frame && top.rtwreport_document_frame.document) { - top.restoreState(top.rtwreport_document_frame.document); - rtwResizeFrame(top.rtwreport_document_frame.document.getElementById("rtwIdContentsIframe")); - } - } - updateHyperlinks(); -} - -// highlight code after changeSys -function rtwChangeSysCallback(sid) { - if (sid == "" || typeof RTW_Sid2UrlHash == "undefined" || !RTW_Sid2UrlHash.instance) - return false; - urlHash = RTW_Sid2UrlHash.instance.getUrlHash(sid); - if (urlHash != undefined) { - if (RTW_TraceArgs && RTW_TraceArgs.instance && - !RTW_TraceArgs.instance.getUseExternalBrowser()) - urlHash = (urlHash == "")? "?useExternalBrowser=false" : - urlHash+"&useExternalBrowser=false"; - rtwMainReload(urlHash, true); - return true; - } else { - // remove highlighting from traceinfo - rtwRemoveHighlighting(); - return false; - } -} - -function emlFileOnload(docObj) { - var loc = docObj.location; - if (loc.hash) { - var line = loc.hash.substring(1); - hiliteEmlLine(docObj, line); - } -} - -function hiliteEmlLine(docObj, line) { - var bgColor; - if (top.HiliteCodeStatus) - bgColor = "#66CCFF"; - else - bgColor = "#E8D152"; - // unhighlight - if (typeof docObj.HiliteLine != "undefined") { - trObj = docObj.getElementById("LN_"+docObj.HiliteLine); - if (trObj != null) { - trObj.style.backgroundColor = ""; - } - } - // hilighlight - trObj = docObj.getElementById("LN_"+line); - if (trObj != null) { - trObj.style.backgroundColor = bgColor; - docObj.HiliteLine = line; - } -} - -function emlLineOnClick(docObj,sid,line) { - if (top) { - top.HiliteCodeStatus = top.rtwChangeSysCallback(sid); - } - hiliteEmlLine(docObj, line); -} - -function updateCode2ModelLinks(docObj) { - var webviewFrame = top.document.getElementById('rtw_webviewMidFrame'); - var link2model = false; - var isTestHarness = false; - if (top.testHarnessInfo && top.testHarnessInfo.IsTestHarness === "1") { - isTestHarness = true; - } - if (webviewFrame || isTestHarness) { - if (webviewFrame && RTW_TraceArgs.instance && - (RTW_TraceArgs.instance.getModel2CodeSrc() !== "model" || - RTW_TraceArgs.instance.getUseExternalBrowser()) - ) { - hiliteCmd = "javascript:top.rtwHilite("; - } else { - hiliteCmd = "matlab:coder.internal.code2model("; - link2model = true; - } - var objs = docObj.getElementsByName('code2model'); - var o = null; - var str = ''; - var sid = ''; - var pattern = "'code2model',"; - for (var objIndex = 0; objIndex < objs.length; ++objIndex) { - o = objs[objIndex]; - str = o.href.substring(o.href.indexOf('(')+1); - if (str.indexOf(pattern) > -1) { - str = str.substring(str.indexOf(pattern) + pattern.length); - } - o.href = hiliteCmd + str; - if (link2model && isTestHarness) { - sid = str.substring(0, str.indexOf(")")); - o.href = hiliteCmd + sid + ",'" + - top.testHarnessInfo.HarnessName+ "','" + - top.testHarnessInfo.HarnessOwner+ "','" + - top.testHarnessInfo.OwnerFileName + "');"; - } - } - } -} - -function rtwHilite(aBlock,aParentSID) { - if (aBlock.indexOf('-') !== -1) { - // remove sid range: model:sid:2-10 => model:sid - var s; - s = aBlock.split(':'); - if (s.length > 0) { - s = s[s.length-1]; - if (s.indexOf('-') != -1) { - aBlock = aBlock.substring(0, aBlock.lastIndexOf(':')); - } - } - } - if (typeof aParentSID === "undefined") { - if (top.RTW_SidParentMap && top.RTW_SidParentMap.instance) - aParentSID = top.RTW_SidParentMap.instance.getParentSid(aBlock); - else - aParentSID = aBlock; - } - top.HiliteCodeStatus = true; - - // webview 2 defines an interface api, call slwebview. - if (top.slwebview) { - // webview 2.x - if (top.codeToWebView(aBlock, aParentSID) === -1) { - alert("Cannot highlight block in model Web view. It may not be exported."); - } - - } else { - // webview 1.x - if (hiliteBlockForRTWReport(aBlock,aParentSID) === false) { - if (hiliteBlockForRTWReport(aBlock, aBlock) === false) { - rtwHilite(aParentSID); - } - } - } -} - -function str2StrVar(str) { - return str.replace(/'/g,"''"); -} -window.onload=rtwMainOnLoad; - -// handle incode traceability highlighting -function inCodeTraceOnload() { - var tocDocObj = top.rtwreport_contents_frame.document; - if (!top.RTW_TraceArgs.instance) { - var summaryPage = tocDocObj.getElementById("rtwIdSummaryPage"); - top.rtwreport_document_frame.location.href = summaryPage.href; - return; - } - - var files = top.RTW_TraceArgs.instance.getFile(); - if (files.length === 0) { - if (top.RTW_TraceArgs.instance) { - var block = top.RTW_TraceArgs.instance.getBlock(); - block = block.replace("<", "<").replace(">", ">"); - } - top.rtwreport_document_frame.document.write("
    No traceability information for block " + block + ".
    "); - return; - }; - - var fileLinks = RTW_TraceInfo.getFileLinks(tocDocObj); - RTW_TraceInfo.instance = new RTW_TraceInfo(fileLinks); - - // update filelist with num of highlighted lines - var tocDoc = top.rtwreport_contents_frame.document; - var tLines = 0; - for (var i=0; i 1) { - var spanNodes = parent.getElementsByTagName('span'); - var len = spanNodes.length; - if (len > 0) { - if (aNumLines > 0) { - /* display number of matches */ - spanNodes.item(len-1).innerHTML = " ("+aNumLines+")"; - } else { - /* clear number of matches */ - spanNodes.item(len-1).innerHTML = ""; - } - } - } -} - -function setupInStudio() { - if (top.whole) { - var tmp = top.whole.rows.split(","); - tmp[0] = "35px"; - top.whole.rows = tmp.join(); - } - if (top.main) { - var tmp = top.main.cols.split(","); - tmp[0] = "0"; - top.main.cols = tmp.join(); - } - // add file list to source file - if (top.Html2SrcLink && top.Html2SrcLink.instance && top.fileSelector) { - var myDoc = top.fileSelector.document; - var fileSelector = myDoc.createElement("select"); - fileSelector.id = "fileSelector"; - fileSelector.onchange = top.fileSelectorOnChange; - var filename; - var filelink; - fileSelector.innerHTML += ""; - for (var i=0; i < top.fileList.length; i++) { - filename = top.fileList[i]; - filelink = top.Html2SrcLink.instance.getLink2Src(filename); - fileSelector.innerHTML += ""; - } - var bodyNode = myDoc.body; - bodyNode.insertBefore(fileSelector, bodyNode.firstElementChild); - var textNode = myDoc.createElement("span"); - textNode.innerHTML = "Goto: "; - bodyNode.insertBefore(textNode, fileSelector); - var myCss = myDoc.createElement("link"); - myCss.type = "text/css"; - myCss.rel = "stylesheet"; - myCss.href = "rtwreport.css"; - myDoc.getElementsByTagName("head")[0].appendChild(myCss); - } -} - -function toggleNavSideBar(val) { - if (top.main) { - var tmp = top.main.cols.split(","); - - if (val === "on") { - tmp[tmp.length-1] = "15px"; - } else { - tmp[tmp.length-1] = "0"; - } - top.main.cols = tmp.join(); - if (top.rtwreport_nav_frame) - top.rtwreport_nav_frame.location.href = "nav.html"; - } -}; - -function toggleNavToolBar(val) -{ - var midFrame = rtwMidFrame(); - if (midFrame) { - var tmp1 = midFrame.rows.split(","); - var frameIdx = getNavToolbarFrameIdx(); - if (val === "on") { - tmp1[frameIdx] = "40px"; - } else { - tmp1[frameIdx] = "0"; - } - midFrame.rows = tmp1.join(); - if (top.rtwreport_navToolbar_frame) { - top.rtwreport_navToolbar_frame.location.href = "navToolbar.html"; - } - } -}; - -var GlobalConfig = { - navHiliteColor: "#0000ff", - fileLinkHiliteColor: "#ffff99", - navToolbarBgcolor: "ivory", - offset: 10, - hiliteToken: false -}; -var NavSideBarState = { - calLineHeight: 0, - overLink: false, - linkTarget: null, - lastLinkTarget: null, - linkTargetIdx: 0 -} -function drawNavSideBar() { - var rectHeight = 1; - if (!top || !top.rtwreport_document_frame || !top.rtwreport_nav_frame) return; - - if (!top.RTW_TraceArgs.instance) return; - var fileIdx = top.RTW_TraceArgs.instance.getFileIdx(); - if (fileIdx === undefined) return; - var rows = top.RTW_TraceArgs.instance.getRows(fileIdx); - if (rows.length === 0) return; // no highlighted line - - var codeTbl = top.rtwreport_document_frame.document.getElementById("codeTbl"); - if (!codeTbl) return; // no code table - - var nRows = codeTbl.rows.length + 1; - var canvas = top.rtwreport_nav_frame.document.getElementById("canvas"); - canvas.width = top.rtwreport_nav_frame.innerWidth; - canvas.height = top.rtwreport_nav_frame.innerHeight-2; - NavSideBarState.calLineHeight = canvas.height/nRows; - if (canvas.getContext) { - var ctx = canvas.getContext("2d"); - ctx.clearRect(0, 0, canvas.width, canvas.height); - // fill background - ctx.fillStyle = GlobalConfig.navToolbarBgcolor; - ctx.fillRect(0, 0, canvas.width, canvas.height); - ctx.fillStyle = GlobalConfig.navHiliteColor; - for (var i=0;i" + anchorObj.text + "
  • "+ - size + "
  • "; - } - propObj.appendChild(ulObj); - - return propObj; -} -function getInspectLink(file, pathname, anchorObj) { - var model = top.reportModel; - var tokenId = anchorObj.id; - var navObj = document.createElement("div"); - navObj.id = "token_usage_nav"; - ulObj = document.createElement("ul"); - ulObj.id = "token_nav_links"; - ulObj.className="popup_attrib_list"; - var srcFileName = RTW_TraceInfo.toSrcFileName(file); - var defObj; - if (top.CodeDefine.instance.def[srcFileName + ":" + anchorObj.text]) { - defObj = top.CodeDefine.instance.def[srcFileName + ":" + anchorObj.text]; - } else if (top.CodeDefine.instance.def[anchorObj.text]) { - defObj = top.CodeDefine.instance.def[anchorObj.text]; - } - var line = anchorObj.id.substring(0,anchorObj.id.indexOf("c")); - // link to model - if (top.TraceInfoFlag && top.TraceInfoFlag.instance && - top.TraceInfoFlag.instance.traceFlag[srcFileName+":"+anchorObj.id]) { - return null; - } - // link to def/decl - if (defObj) { - var filename = defObj.file.split(/\//); - filename = filename[filename.length-1]; - ulObj.innerHTML += "
  • " + anchorObj.text + " defined at " + RTW_TraceInfo.toSrcFileName(filename) + " line " + defObj.line + "
  • "; - } - navObj.appendChild(ulObj); - return navObj; -} - -var LastHiliteTokenId = null; -function rmHiliteClickedToken() { - if (LastHiliteTokenId) { - var o = top.rtwreport_document_frame.document.getElementById(LastHiliteTokenId); - if (o) { - o.className = o.className.replace("hiliteToken", ""); - } - } -} -function hiliteClickedToken(elem) { - rmHiliteClickedToken(); - LastHiliteTokenId = elem.id; - elem.className += " hiliteToken"; -} - -var initLine = null; -function scrollToInitLine() { - if (initLine) { - var lineElem = top.rtwreport_document_frame.document.getElementById(initLine); - if (lineElem) { - lineElem.scrollIntoView(); - } - } -} - -function scrollToLineBasedOnHash(hashValue) { - // move to the current highlight line if the hash is not empty - if (hashValue === "") { - if (top.RTW_TraceInfo.instance && top.RTW_TraceInfo.instance.getCurrLine() !== null) { - top.rtwreport_document_frame.document.location.href=top.RTW_TraceInfo.instance.getCurrentHRef(); - top.initLine = top.rtwreport_document_frame.document.location.hash.substr(1); - } - } else { - // scroll and hilite line - hashValue = hashValue.substr(1); - if (isNaN(hashValue)) { - // #fcn_name - var pattern = "+newPage"; - if (hashValue.indexOf(pattern) != -1) { - hashValue = hashValue.replace(pattern, ''); - var lineElem = top.rtwreport_document_frame.document.getElementById(hashValue); - initLine = hashValue; // save initLine in case the dom is updated later by anootation - if (lineElem) { - lineElem.scrollIntoView(); - addTagToCurrentLine(); - } - - } else { - var token = null; - pattern = ["var_", "fcn_", "type_"]; - for (var i =0; i < pattern.length; i++) { - if (hashValue.indexOf(pattern[i]) === 0) { - token = hashValue.substr(pattern[i].length); - break; - } - } - if (token !== null && top.CodeDefine && top.CodeDefine.instance) { - var addr; - var filename = location.pathname.split(/\//); - filename = filename[filename.length-1]; - var srcFileName; - if (top.RTW_TraceInfo) { - srcFileName = top.RTW_TraceInfo.toSrcFileName(filename); - } - if (top.CodeDefine.instance.def[srcFileName + ":" + token]) { - addr = top.CodeDefine.instance.def[srcFileName + ":" + token]; - } else { - addr = top.CodeDefine.instance.def[token]; - } - if (addr) { - hilite_line(addr.line); - } - } else { // token id like #line"c"#col - if (hashValue.indexOf("c") !== -1) { - hilite_line(hashValue.substr(0, hashValue.indexOf("c")), hashValue); - } - } - } - } else { // #line - hilite_line(hashValue); - } - } - return false; - // hilite line number and scroll with an offset - function hilite_line(line, tokenId) { - if (isNaN(line)) return; - if (!tokenId) { - tokenId = line; - } - var elem = top.rtwreport_document_frame.document.getElementById(tokenId); - hiliteClickedToken(elem); - initLine = offset_line(line); - scrollToInitLine(); - } -} - -function tokenLinkOnClick(event) { - var alink = event.currentTarget; - if (alink.pathname === top.rtwreport_document_frame.location.pathname) { - event.preventDefault(); - scrollToLineBasedOnHash(alink.hash); - } - return false; -} -function inspectToken(file, pathname, event) { - var height = "70px"; - // show inspect data - if (top.rtwreport_inspect_frame) { - var windowObj = getInspectWindow(); - var propObj = getInspectData(file, event.currentTarget); - var navObj = getInspectLink(file, pathname, event.currentTarget); - if (navObj === null) { - closeInspectWindow(); - return false; - } - if (propObj === null) { - height = "50px"; - } else { - windowObj.appendChild(propObj); - } - windowObj.appendChild(navObj); - var data = top.rtwreport_inspect_frame.document.getElementById("popup_window"); - if (data) { - data.parentNode.replaceChild(windowObj.cloneNode(true), data); - } - } - var offsetHeight = 0; - var docHeight = 0; - if (typeof(top.rtwInspectFrame().document.body.offsetHeight) === "number") { - offsetHeight = top.rtwInspectFrame().document.body.offsetHeight; - } - if (typeof(top.rtwInspectFrame().document.height) === "number") { - docHeight = top.rtwInspectFrame().document.height; - } - if (offsetHeight > 0) { - height = ""+offsetHeight+"px"; - } else if (docHeight > 0) { - height = ""+docHeight+"px"; - } - setInspectWindow(height); - return false; -} -function setInspectWindow(height) { - // show inspect code frame - var midFrame = rtwMidFrame(); - if (midFrame) { - var tmp = midFrame.rows.split(","); - tmp[getInspectFrameIdx()] = height; - midFrame.rows = tmp.join(); - } -} -function closeInspectWindow() { - setInspectWindow(0); - return false; -} - -// set the trace number in the navigation toolbar -function setTraceNumber() { - if (RTW_TraceInfo.instance) { - var aFrame = rtwNavToolbarFrame(); - if (aFrame) { - var node = aFrame.document.getElementById("rtwIdTraceNumber"); - // calculate current line index over total highlighted lines - var currNum = RTW_TraceInfo.instance.getCurrLineIdx(); - for (var idx=0;idx 0) - line = (line > GlobalConfig.offset ? line - GlobalConfig.offset : 1); - return line; -} - -function load_js(frame, file) { - var h = frame.document.getElementsByTagName("head")[0]; - var o = h.getElementsByTagName('script'); - for (var i=0;iBlock-to-Code Highlighting Message - - - -

    Block-to-Code Highlighting Message

    - - \ No newline at end of file diff --git a/src/validation/slprj/ert/FCC_New/html/rtwreport.css b/src/validation/slprj/ert/FCC_New/html/rtwreport.css deleted file mode 100644 index 54b994a6f2bac912ba0b2173a60c9788d7de7aa2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/rtwreport.css +++ /dev/null @@ -1,257 +0,0 @@ -/* Copyright 2011-2016 The MathWorks, Inc. */ -body,p,table {font-family: calibri, verdana, sans-serif;} -button,.buton {font-family: calibri, verdana, sans-serif;} -button,.button {font-size: small;} -.small_font {font-size: small;} -h1 { font-weight: normal; color: #000066; } -td { vertical-align: top } -th { background-color: #eeeeee; text-align: left; } -a:link { color: #0033cc; } -a:visited { color: #666666; } -input { font-family: sans-serif, verdana, calibri; } -table { - background-color: #ffffff; - width: 100%; -} - -table.toc, table.button, table.panel { - border-style: none; -} - -/* LineNumber */ -.LN { - font-style: italic; - color: #888888; -} - -/* Comment */ -.CT { - font-style: italic; - color: #117755; -} - -/* PreProcessor */ -PP { - /* font-weight: bold; */ - color: #992211; -} - -/* Keyword */ -.KW { - /* font-weight: bold; */ - color: #0000FF; -} - -/* Datatype */ -.DT { - /* font-weight: bold; */ - color: #112266 -} - -.highlighted { - background-color: yellow; -} - -.highlightedCurrent { - background-color: rgba(150, 12, 116, 0.1); -} - -input.search { - background-color: #ffffff; -} - -input.failedSearch { - background-color: #F78181; -} - -/* ensure that code2model links are comment green */ -a.code2model:link { - color: #117755; - font-style: italic; -} -a.code2model:visited{ - color: #117755; - font-style: italic; -} - -.toc td, .button td, .panel td { - border-style: none; - padding: 4px; -} - -h1 { font-weight: normal; color: #000066; } -td { vertical-align: top } -th { background-color: #eeeeee; text-align: left; } -a:link { color: #0033cc; } -a:visited { color: #666666; } - -/******* table *******/ -/* default table style */ -table.AltRow { - border-collapse: collapse; border: none; border-spacing: 0pt; - border-top: solid #4F81BD 1.0pt; border-bottom: solid #4F81BD 1.0pt; -} -table.AltRow th, table.AltRow td { padding: 2pt 8pt 2pt 2pt } -/* default alternating row style */ -table.AltRow tr.even td { background-color:#D3DFEE; border:none;} -table.AltRow tr.odd td { background-color:#FFFFFF; border:none;} -/* tr class="heading" */ -table.AltRow tr.heading td, table.AltRow th { - background-color:#FFFFFF; font-weight:bold; border:none; - border-bottom: solid #4F81BD 1.0pt; -} -/* table class="FirstColumn" */ -table.FirstColumn td:first-child { font-weight:bold } -/* table class="TotalRow" */ -table.TotalRow tr:last-child { font-weight:bold } -table.TotalRow tr:last-child td { border-top: solid #4F81BD 1.0pt } - -a.closeButton { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) ); - background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9'); - background-color:#f9f9f9; - -webkit-border-top-left-radius:20px; - -moz-border-radius-topleft:20px; - border-top-left-radius:20px; - -webkit-border-top-right-radius:20px; - -moz-border-radius-topright:20px; - border-top-right-radius:20px; - -webkit-border-bottom-right-radius:20px; - -moz-border-radius-bottomright:20px; - border-bottom-right-radius:20px; - -webkit-border-bottom-left-radius:20px; - -moz-border-radius-bottomleft:20px; - border-bottom-left-radius:20px; - text-indent:0; - border:2px solid #dcdcdc; - display:inline-block; - color:#454143; - font-family:Arial; - font-size:15px; - font-weight:bold; - font-style:normal; - height:20px; - line-height:20px; - width:20px; - text-decoration:none; - text-align:center; - cursor: pointer; -} -a.closeButton:hover { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #e9e9e9), color-stop(1, #f9f9f9) ); - background:-moz-linear-gradient( center top, #e9e9e9 5%, #f9f9f9 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#f9f9f9'); - background-color:#e9e9e9; -} -a.closeButton:active { - position:relative; - top:1px; -} - -.button { - -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; - -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; - box-shadow:inset 0px 1px 0px 0px #ffffff; - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); - background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); - background-color:#ededed; - -webkit-border-top-left-radius:5px; - -moz-border-radius-topleft:5px; - border-top-left-radius:5px; - -webkit-border-top-right-radius:5px; - -moz-border-radius-topright:5px; - border-top-right-radius:5px; - -webkit-border-bottom-right-radius:5px; - -moz-border-radius-bottomright:5px; - border-bottom-right-radius:5px; - -webkit-border-bottom-left-radius:5px; - -moz-border-radius-bottomleft:5px; - border-bottom-left-radius:5px; - text-indent:0px; - border:1px solid #dcdcdc; - display:inline-block; - color:black; - font-family:Arial; - font-size:12px; - font-weight:bold; - font-style:normal; - height:12px; - line-height:12px; - width:45px; - text-decoration:none; - text-align:center; - text-shadow:1px 1px 0px #ffffff; -} -.button:hover { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) ); - background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed'); - background-color:#dfdfdf; -}.button:active { - position:relative; - top:1px; -}.button:disabled { - color:#777777; -} - -ul.nav_list { - list-style-type:none; - display: block; - margin: 0; - padding: 0; -} -ul.nav_list li { - list-style-type:none; - display: inline; - margin: 0 18px 0 0; - padding: 0; -} - -.nav_toolbar { - background-color: ivory; - margin-top: 0; -} - -.inspect_body { - margin: 0; - margin-bottom: 0; - display: inline; - vertical-align:middle; -} - -table.nav_table { - background-color: ivory; - border: none; - width: 100%; - display: inline; - vertical-align:middle; -} - -table#rtwIdTracePanel > tr > td { - white-space: nowrap; - table-layout:fixed; - vertical-align:middle; -} - -table.nav_table > button { - height: 20px; -} -select#fileSelector { - padding: 5px; - font-size: 16px; - line-height: 1; - border-radius: 0; - height: 34px; -} - -.treeTable table{ - table-layout: fixed; -} -.treeTable td:first-child > span{ - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - width: 100%; -} diff --git a/src/validation/slprj/ert/FCC_New/html/rtwreport_utils.js b/src/validation/slprj/ert/FCC_New/html/rtwreport_utils.js deleted file mode 100644 index f58fb496cf4f81b357b1ab8f7fab93e17954488b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/rtwreport_utils.js +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright 2011-2013 The MathWorks, Inc. - - -function local_onload() { - if (typeof top.rtwreport_document_frame !== "undefined") { - var docObj = window.document; - var alink = docObj.getElementById("linkToText_plain"); - if (alink) { - alink.href = "matlab:coder.internal.editUrlTextFile('" + alink.href + "')"; - } - alink = docObj.getElementById("linkToCS"); - if (alink) { - alink.href = "matlab:coder.internal.viewCodeConfigsetFromReport('" + alink.href + "');"; - } - } -} - -var utils = (function() { - - // Load via Microsoft.XMLDOM--for older versions of IE - function loadXML_MSXMLDOM(filename, callback, async) { - if (navigator.appName == "Microsoft Internet Explorer") { - // Internet Explorer 5/6 - try { - var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); - xmlDoc.async = async; - xmlDoc.onreadystatechange = function() { - if (xmlDoc.readyState == 4) { - callback(xmlDoc); - } - } - xmlDoc.load(filename); - return true; - } catch(e) { - } - } - return false; - } - - // Load via XMLHttpRequest - function loadXML_XHR(filename, callback, async) { - if (window.XMLHttpRequest) { - try { - var xhr = new XMLHttpRequest(); - xhr.onreadystatechange = function() { - if (this.readyState == 4) { - callback(this.responseXML); - } - } - xhr.open("GET", filename, async); - xhr.send(""); - return true; - } catch(e) { - if (navigator.appName === "Netscape" && e.code === 1012) { - // file not found: ignore - return true; - } - } - } - return false; - } - - return { - trimText: function(s) { - // In IE9, String.trim not present - if (s && s.trim) { - return s.trim(); - } - else { - return s; - } - }, - getText: function(elt) { - // In IE9, use 'text' property rather than 'textContent' - return elt.textContent ? elt.textContent : elt.text; - }, - loadXML: function(filename, callback, options) { - var async = !!options && typeof(options["async"]) !== "undefined" ? options.async : true; - if (!loadXML_XHR(filename, callback, async)) { - if (!loadXML_MSXMLDOM(filename, callback, async)) { - return false; - } - } - return true; - } - }; -})(); - -function code2model(sid) { - utils.loadXML("http://localhost:31415/matlab/feval/coder.internal.code2model?arguments=[\"" + sid + "\"]", function() {}); - //window.location.href = "matlab:coder.internal.code2model('" + sid + "')"; -} diff --git a/src/validation/slprj/ert/FCC_New/html/rtwshrink.js b/src/validation/slprj/ert/FCC_New/html/rtwshrink.js deleted file mode 100644 index 8e2affbfbd2119cffdbdbb58eeaf5670e7b04da2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/rtwshrink.js +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright 2011-2017 The MathWorks, Inc. - -function RTW_STRUCT(prop, value) { - this.prop = prop; - if (typeof(value) == 'undefined') { - this.value = ""; - } else { - this.value = value; - } -} - -// initialize the cache when code generation report is first loaded -function RTW_BOOK() { - this.length = 0; - this.rtw_pages = new Array(); - this.getPage = function(file) { - return this.rtw_pages[file]; - }; - this.addPage = function(file) { - var page; - if (this.hasPage(file)) { - page = this.rtw_pages[file]; - } else { - page = new RTW_PAGE(file); - this.rtw_pages[file] = page; - } - return page; - }; - this.hasPage = function(file) { - return typeof(this.rtw_pages[file]) != 'undefined'; - }; - this.removePage = function(file) { - var tmp; - if (typeof(this.rtw_pages[file]) != 'undefined') { - tmp = this.rtw_pages[file]; - delete this.rtw_pages[file]; - this.length--; - } - return tmp; - }; -} - -if (!RTW_BOOK.instance) { - RTW_BOOK.instance = new RTW_BOOK(); -} - -function RTW_PAGE() { - this.length = 0; - this.items = new Array(); - this.pagename = ''; - if (arguments.length > 0 && typeof(arguments[1]) != 'undefined') { - this.pagename = arguments[1]; - } - - this.getItem = function(id) { - return this.items[id]; - }; - this.getItems = function() { - return this.items; - }; - this.addItem = function(id, value) { - var tmp; - if (typeof(value) != 'undefined') { - if (typeof(this.items[id]) != 'undefined') { - this.length++; - } else { - tmp = this.items[id]; - } - this.items[id] = value; - this.length++; - } - return tmp; - }; - this.hasItem = function(id) { - return typeof(this.items[id]) != 'undefined'; - }; - this.removeItem = function(id) { - var tmp; - if (typeof(this.items[id]) != 'undefined') { - tmp = this.items[id]; - delete this.items[id]; - this.length--; - } - return tmp; - }; -} - -function rtwTableShrink(doc, obj, id, isSymbol) { - var hide, hide_text, show, show_text; - if (isSymbol) { - hide = "[-]"; - hide_text = hide; - show = "[+]"; - show_text = show; - } else { - hide = "[hide]"; - hide_text = "[hide]"; - show = "[show]"; - show_text = "[show]"; - } - hide = "" + hide + ""; - show = "" + show + ""; - if (doc.getElementsByName) { - var o = doc.getElementsByName(id); - for (var oid = 0; oid < o.length; ++oid) { - if (o[oid].style.display === "none") { - o[oid].style.display = ""; - } else { - o[oid].style.display = "none"; - } - } - if (o.length >= 0 && addToPage) { - addToPage(doc, o[0], 'display'); - } - } - - // IE supports innerText while other browsers support textContent - if (obj.textContent) { - var objText = obj.textContent; - } else { - var objText = obj.innerText; - } - - if (objText.toLowerCase() === show_text.toLowerCase()) { - obj.innerHTML = hide; - } else { - obj.innerHTML = show; - } - - if (addToPage) { - addToPage(doc, obj, 'innerHTML'); - } -} - -function rtwTableExpand(doc, controlObj, id) { - if (doc.getElementById) { - var obj = doc.getElementById(id); - if (obj && obj.style.display === "none") { - rtwTableShrink(doc, controlObj, id, false); - } - } -} - -function restoreState(docObj) { - var filename = docObj.location.href; - if (RTW_BOOK.instance && RTW_BOOK.instance.hasPage(filename)) { - var page = RTW_BOOK.instance.getPage(filename); - var items = page.getItems(); - var elem; - if (docObj.getElementsByName) { - for (var i in items) { - var o = docObj.getElementsByName(i); - for (var oid = 0; oid < o.length; ++oid) { - elem = o[oid]; - if (items[i].prop === 'display') { - if (elem.style.display === 'none') { - elem.style.display = ''; - } else { - elem.style.display = 'none'; - } - } else if (items[i].prop === 'innerHTML') { - elem.innerHTML = items[i].value; - } - } - } - } - } -} - -function addToPage(docObj, obj, prop) { - var filename = docObj.location.href; - if (RTW_BOOK.instance) { - var page; - if (RTW_BOOK.instance.hasPage(filename)) { - page = RTW_BOOK.instance.getPage(filename); - } else { - page = RTW_BOOK.instance.addPage(filename); - } - if (page.hasItem(obj.id)) { - page.removeItem(obj.id); - } else { - var my_struct; - if (prop === "display") { - my_struct = new RTW_STRUCT(prop, obj.style.display); - } else { - my_struct = new RTW_STRUCT(prop, obj.innerHTML); - } - page.addItem(obj.id, my_struct); - } - } -} - -function rtwSwitchView(doc, obj1, obj2) { - if (doc.getElementsByName) { - var o = doc.getElementsByName(obj1); - for (var oid = 0; oid < o.length; ++oid) { - o[oid].style.display = "none"; - } - if (o.length >= 0 && addToPage) { - addToPage(doc, o[0], 'display'); - } - var o = doc.getElementsByName(obj2); - for (var oid = 0; oid < o.length; ++oid) { - o[oid].style.display = ""; - } - if (o.length >= 0 && addToPage) { - addToPage(doc, o[0], 'display'); - } - } -} diff --git a/src/validation/slprj/ert/FCC_New/html/search.js b/src/validation/slprj/ert/FCC_New/html/search.js deleted file mode 100644 index 816380f81409e4e52d0992bb3e317d0e25fd465a..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/search.js +++ /dev/null @@ -1,559 +0,0 @@ -// Copyright 2007-2012 The MathWorks, Inc. - -function createHighlightSpanStart(num) -{ - return ""; -} - -var str2pos; // This is a map between a tag stripped string and the original string. -function getTagStrippedStringAndMap(aString) -{ - var tagStrippedString = new String(); - - str2pos = new Array(); - - var inTag = false; - var inScript = false; - - for (var strPos = 0; strPos < aString.length; strPos++) { - if (inTag && aString.charAt(strPos) == '>') { - inTag = false; - if (inScript && (strPos > 8) && (aString.slice(strPos, strPos - 8) == '/script>')) { - inScript = false; - } - continue; - } else if (!inTag && aString.charAt(strPos) == '<') { - inTag = true; - if (!inScript && aString.slice(strPos, strPos + 7) == ' str2posprev+1) // we have jumped some text, so there must be a tag - { - // insert end tag - newText += highlightEndTag; - - // insert intermediate body text tags - newText += bodyText.slice(str2posprev+1, str2pos[cnt]); - - // insert start tag - newText += highlightStartTag; - } - newText += bodyText.charAt(str2pos[cnt]); - str2posprev=str2pos[cnt]; - } - - // insert end - newText += highlightEndTag; - return newText; - -} - -// check to see if the sequence at position 'i' in taglessString is actually in -// the middle of an escape sequence. We assume escape sequences follow the pattern -// &;. We check for  , <, > and & -function isInEscapedSequence(i, taglessString, searchTerm) -{ - var escapeSeq = / |<|>|&/gi; - var maxEscapeSeqLength = 6; - var startPos = 0; - var endPos = 0; - - // exit if the search term has an escape sequence inside it - if (escapeSeq.test(searchTerm)) { - return false; - } - - // reset the escape sequence - escapeSeq = / |<|>|&/gi; - - // go back in the string until we find an ampersand or we hit maxEscapeSeqLength characters - tempI = i; - var bFound = false; - while (tempI >= 0 && tempI > (i-maxEscapeSeqLength)) { - if (taglessString.charAt(tempI) == "&") { - startPos = tempI; - bFound = true; - break; - } - tempI = tempI-1; - - // if we hit a ';' in any position other than the first while searching - // for an ampersand, then we cannot be inside an escape sequence - if (tempI >= 0 && taglessString.charAt(tempI) == ";") { - return false; - } - } - if (!bFound) { - return false; - } - // reset the escape sequence - escapeSeq = / |<|>|&/gi; - - var subString = taglessString.substring(startPos, startPos + maxEscapeSeqLength); - return escapeSeq.test(subString); -} - -// Adds highlighting to bodyText around searchTerm. Case sensitivity is optional. -// hitCount is used to a) count the number of search matches and b) Generate unique -// name strings for each highlighting SPAN element. -function addHighlight(bodyText, searchTerm, caseSensitive, hitCount) -{ - var highlightStartTag = ""; - var highlightEndTag = ""; - - var newText = ""; - var i = 0; - var previ = 0; - var bodyTextUC = bodyText.toUpperCase(); - - if (caseSensitive) { - var taglessString = getTagStrippedStringAndMap(bodyText); - } else { - var taglessString = getTagStrippedStringAndMap(bodyTextUC); - } - - // escape the search term in case the user input '<' or '>' etc - searchTerm = escapeSpecialChars(searchTerm); - - if (!caseSensitive) { - var searchTermUC = searchTerm.toUpperCase(); - } - - // search for subsequent matches - while (true) { - if (caseSensitive) { - i = taglessString.indexOf(searchTerm, i); - } else { - i = taglessString.indexOf(searchTermUC, i); - } - if (i < 0) break; - - // we have a match! - - // make sure that the match is not inside an escaped sequence of text - // such as   - if (isInEscapedSequence(i, taglessString, searchTerm)) { - i=i+1; - continue; - } - - // insert highlight tags that cross tag boundaries - highlightStartTag = createHighlightSpanStart(hitCount); - hitCount = hitCount+1; - newText += insertHighlighting(bodyText, previ, i, searchTerm.length, highlightStartTag, highlightEndTag); - previ = str2pos[i+searchTerm.length-1]+1; - - i = i + searchTerm.length; - } - - newText += bodyText.slice(previ, bodyText.length); - return [newText, hitCount]; -} - -function removeHighlight(bodyText) -{ - // We use regular expressions here rather than a straight text search because - // some browsers actually insert double quotes and capitalize. Also, each highlight - // name is uniquely numbered in order of discovery - var highlightStartTag = //i; - var highlightEndTag = /<\/span>/i; - - var newText = ""; - - var startPatternFirstIndex = -1; - var startPatternLastIndex = -1; - - var endPatternFirstIndex = -1; - var endPatternLastIndex = -1; - - while (highlightStartTag.test(bodyText) === true) { - startPatternFirstIndex = bodyText.search(highlightStartTag); - newText += bodyText.substring(0, startPatternFirstIndex); - startPatternLastIndex = bodyText.indexOf('>', startPatternFirstIndex+1); - - bodyText = bodyText.substr(startPatternLastIndex+1); - endPatternFirstIndex = bodyText.search(highlightEndTag); - newText += bodyText.substring(0, endPatternFirstIndex); - endPatternLastIndex = endPatternFirstIndex+7; - - bodyText = bodyText.substr(endPatternLastIndex); - } - if (startPatternFirstIndex < 0) { - return bodyText; - } else { - return newText+bodyText; - } -} - -function removeHighlightInAllDocs() -{ - if (top) { - for (var i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var currentDoc = top.frames[i].document; - if (typeof currentDoc.body !== "undefined" && currentDoc.body !== null) - currentDoc.body.innerHTML=removeHighlight(currentDoc.body.innerHTML); - } - } - } -} - -function findInDoc(searchStringFromSubmitBox, doc, caseSensitive, hitCount) -{ - var searchBody = doc.body.innerHTML; - // if the document is empty, or the documents is invalid, return - if (!doc.body || typeof(searchBody) === "undefined") { - return [false, hitCount]; - } - - // inject highlighting code into html - var result = addHighlight(searchBody, searchStringFromSubmitBox, caseSensitive, hitCount); - doc.body.innerHTML = result[0]; - - return [true, result[1]]; -} - -var currentlyHighlightedHit; - -function getSpansByName(name) -{ - var allSpans = []; - for (i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var currentDoc = top.frames[i].document; - var highlightedSpans = currentDoc.getElementsByName(name); - if (highlightedSpans && highlightedSpans.length && highlightedSpans.length > 0) { - for (j = 0; j < highlightedSpans.length; j++) { - allSpans = allSpans.concat(highlightedSpans[j]); - } - } - } - } - return allSpans; -} - -function isVisibleElement(elementID) -{ - if (elementID) - return elementID.offsetWidth > 0 || elementID.offsetHeight > 0; - else - return false; -} - -function areAllSpansVisible(spans) -{ - isVisible = true; - for (i = 0; i < highlightedSpans.length; i++) { - isVisible = isVisible && isVisibleElement(highlightedSpans[i]); - } - return isVisible; -} - -function getNextVisible() -{ - var isVisible = false; - var foundVisible = false; - while (!isVisible) { - currentlyHighlightedHit = currentlyHighlightedHit + 1; - highlightedSpans = setCurrentSearchMatchIfVisible(currentlyHighlightedHit); - if (highlightedSpans && highlightedSpans.length > 0) { - isVisible = true; - } else if (currentlyHighlightedHit < totalHits) { - continue; - } else { - // we have reached the end - isVisible = false; - currentlyHighlightedHit = 0; - highlightedSpans = null; - break; - } - } - - return highlightedSpans; -} - -function clearCurrentSearchMatch() -{ - // clear prior highlighting - spanName = "highlight" + currentlyHighlightedHit; - highlightedSpans = getSpansByName(spanName); - if (highlightedSpans && highlightedSpans.length) { - for (i = 0; i < highlightedSpans.length; i++) { - if (highlightedSpans[i]) { - highlightedSpans[i].setAttribute("class", "highlighted"); - } - } - } -} - -function setCurrentSearchMatchIfVisible(hitNum){ - currentlyHighlightedHit = hitNum; - var spanName = "highlight" + currentlyHighlightedHit; - var highlightedSpans = getSpansByName(spanName); - if (highlightedSpans && highlightedSpans.length) { - for (i = 0; i < highlightedSpans.length; i++) { - if (!isVisibleElement(highlightedSpans[i])) { - highlightedSpans = null; - break; - } - } - } - return highlightedSpans; -} - -// this takes in an option integer 'hitNum'. If not specified, it scrolls -// to the next hit -function scrollToNextHit(hitNum) -{ - var i = 0; - var found = false; - var spanName = ""; - var highlightedSpans; - var searchBox = findElement('searchTxtBox'); - - clearCurrentSearchMatch(); - - if (hitNum) { - // if a number is provided, use it - highlightedSpans = setCurrentSearchMatchIfVisible(hitNum); - } else { - // start working on next element to highlight - highlightedSpans = getNextVisible(); - } - - // we found the current - if (highlightedSpans && highlightedSpans.length > 0) { - highlightedSpans[0].scrollIntoView(); - for (i = 0; i < highlightedSpans.length; i++) { - highlightedSpans[i].setAttribute("class", "highlightedCurrent"); - } - searchBox.setAttribute("class", "search"); - - // if highlightedSpans is invalid, then we did not find any valid, visible subsequent matches - // wrap to beginning or indicate no matches - } else { - // Element not found. Scroll to first visible element - currentlyHighlightedHit = 0; - var highlightedSpans = getNextVisible(currentlyHighlightedHit); - if (highlightedSpans && highlightedSpans.length > 0) { - highlightedSpans[0].scrollIntoView(); - for (i = 0; i < highlightedSpans.length; i++) { - highlightedSpans[i].setAttribute("class", "highlightedCurrent"); - } - searchBox.setAttribute("class", "search"); - } else { - // there aren't any matches - searchBox.setAttribute("class", "failedSearch"); - } - } -} - -// find search box -function findElement(element) -{ - var i = 0; - for (i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var elem = top.frames[i].document.getElementById(element); - if (elem) { - return elem; - } - } - } -} - -// Restore search term once form is submitted -function initSearchBox(strInitValue) -{ - var txtBox = findElement('searchTxtBox'); - if (txtBox) { - txtBox.value = strInitValue; - } -} - -// Sets focus back on to the text box -function setFocusOnTxtBox() -{ - var txtBox = findElement('searchTxtBox'); - if (txtBox) { - txtBox.focus(); - txtBox.select(); - } - return txtBox; -} - -var previousSearchString; -var totalHits; -function findInAllDocs(searchStringFromSubmitBox, caseSensitive) -{ - if (previousSearchString != searchStringFromSubmitBox) { - // If the search string has changed or a new page has been loaded, do a new search - var hitCount = 1; - var i = 0; - var success = false; - previousSearchString = searchStringFromSubmitBox; - - // start by removing traceinfo highlighting - rtwRemoveHighlighting(); - - // remove all previous search highlighting - removeHighlightInAllDocs(); - - // 1. Iterate through all frames in window and search - for (i = 0; i < top.frames.length; i++) { - var currentDoc = top.frames[i].document; - - // if we have no search term, restore - if (searchStringFromSubmitBox !== "") { - // search and highlight in all frames - var srchResult = findInDoc(searchStringFromSubmitBox, currentDoc, caseSensitive, hitCount); - hitCount = srchResult[1]; - totalHits = srchResult[1]; - } - } - - // 2. Restore search term once form is submitted and text highlighted - if (searchStringFromSubmitBox != "") { - strInitValue = searchStringFromSubmitBox; - } - initSearchBox(strInitValue); - - // 3. Scroll to the first hit encountered - scrollToNextHit(1); - - // 4. Set focus back to text box and select text - var txtBox = setFocusOnTxtBox(); - if (txtBox) { - txtBox.select(); - } - - } else { - // If the search string is the same, then scroll to the next - // hit if the hit is valid. Else wrap back. - scrollToNextHit(); - } - return false; -} - -// if the search box is empty, clear highlighting -function clearIfEmpty() -{ - txtBox = findElement('searchTxtBox'); - if (txtBox.value == "") { - txtBox.setAttribute("class", "search"); - removeHighlightInAllDocs(); - previousSearchString=""; - setFocusOnTxtBox(); - } -} - -function keyPressSwitchyard(keyPressEvent) -{ - var kc; - keyPressEvent = (keyPressEvent == null ? window.keyPressEvent : keyPressEvent); - - // typically IE does not support this - if (!keyPressEvent || (typeof keyPressEvent == "undefined")) { - return; - } - - if (keyPressEvent.keyCode) { - kc=keyPressEvent.keyCode; - } else if (keyPressEvent.which) { - kc=keyPressEvent.which; - } else { - return; - } - - // we do not care about the browser find appearing. If it does appear, then - // we are running an external browser and that is okay. - - // handle Ctrl-Key combinations - if (keyPressEvent.ctrlKey) { - switch (kc) { - case 70: // Ctrl-F - { - setFocusOnTxtBox(); - break; - } - - default: break; - } - } -} - -function installDocumentKeyPressHandler() -{ - var i = 0; - for (i = 0; i < top.frames.length; i++) { - var currentDoc = top.frames[i].document; - currentDoc.onkeydown = keyPressSwitchyard; - } - top.document.onkeydown = keyPressSwitchyard; - - // This also clears search related highlighting - removeHighlightInAllDocs(); - currentlyHighlightedHit = 0; - if (previousSearchString) initSearchBox(previousSearchString); - previousSearchString = ""; -} - -// This function is a onresize callback for the rtwreport_contents_frame -// It is used to dynamically resize the searchbox based on the size of the frame. -function setWidthDynamic(frameID, elementID, extraSpace, minSize) -{ - var frame = document.getElementById(frameID); - - // sanity check input args - if (frame && extraSpace > 0 && minSize > 0) { - var frameWidth = frame.scrollWidth; - var newSize = extraSpace + minSize + 40; // 40 is the extra whitespace - var element = findElement(elementID); - if (element) - { - if (frameWidth < newSize) { - element.style.width = minSize; - } else { - element.style.width = frameWidth - extraSpace - 40; - } - } - } -} diff --git a/src/validation/slprj/ert/FCC_New/html/spinner.gif b/src/validation/slprj/ert/FCC_New/html/spinner.gif deleted file mode 100644 index e4ab78302c5d6ff92def7688c291999a4fcbd70d..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/html/spinner.gif and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/html/traceInfo.mat b/src/validation/slprj/ert/FCC_New/html/traceInfo.mat deleted file mode 100644 index 6963b6ed233c09952bfce78c1a12b5d72dc7cada..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/html/traceInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/html/traceInfo_flag.js b/src/validation/slprj/ert/FCC_New/html/traceInfo_flag.js deleted file mode 100644 index e31a607a7c7c6fe9abede2ac236954eff56ac7c2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/html/traceInfo_flag.js +++ /dev/null @@ -1,34 +0,0 @@ -function TraceInfoFlag() { - this.traceFlag = new Array(); - this.traceFlag["FCC_New.c:108c20"]=1; - this.traceFlag["FCC_New.c:108c63"]=1; - this.traceFlag["FCC_New.c:109c48"]=1; - this.traceFlag["FCC_New.c:131c28"]=1; - this.traceFlag["FCC_New.c:131c50"]=1; - this.traceFlag["FCC_New.c:132c5"]=1; -} -top.TraceInfoFlag.instance = new TraceInfoFlag(); -function TraceInfoLineFlag() { - this.lineTraceFlag = new Array(); - this.lineTraceFlag["FCC_New.c:81"]=1; - this.lineTraceFlag["FCC_New.c:84"]=1; - this.lineTraceFlag["FCC_New.c:95"]=1; - this.lineTraceFlag["FCC_New.c:96"]=1; - this.lineTraceFlag["FCC_New.c:99"]=1; - this.lineTraceFlag["FCC_New.c:102"]=1; - this.lineTraceFlag["FCC_New.c:108"]=1; - this.lineTraceFlag["FCC_New.c:109"]=1; - this.lineTraceFlag["FCC_New.c:110"]=1; - this.lineTraceFlag["FCC_New.c:131"]=1; - this.lineTraceFlag["FCC_New.c:132"]=1; - this.lineTraceFlag["FCC_New.c:135"]=1; - this.lineTraceFlag["FCC_New.c:138"]=1; - this.lineTraceFlag["FCC_New.c:141"]=1; - this.lineTraceFlag["FCC_New.h:57"]=1; - this.lineTraceFlag["FCC_New.h:58"]=1; - this.lineTraceFlag["FCC_New.h:59"]=1; - this.lineTraceFlag["FCC_New.h:60"]=1; - this.lineTraceFlag["FCC_New.h:61"]=1; - this.lineTraceFlag["FCC_New.h:62"]=1; -} -top.TraceInfoLineFlag.instance = new TraceInfoLineFlag(); diff --git a/src/validation/slprj/ert/FCC_New/instrumented/FCC_New.bat b/src/validation/slprj/ert/FCC_New/instrumented/FCC_New.bat deleted file mode 100644 index be630f4a152498cf84e66cb8c0983cfe851c333b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/instrumented/FCC_New.bat +++ /dev/null @@ -1,15 +0,0 @@ -@if not "%MINGW_ROOT%" == "" (@set "PATH=%PATH%;%MINGW_ROOT%") - - -call "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a\bin\win64\checkMATLABRootForDriveMap.exe" "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a" > mlEnv.txt -for /f %%a in (mlEnv.txt) do set "%%a"\n -cd . - -if "%1"=="" ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f FCC_New.mk all) else ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f FCC_New.mk %1) -@if errorlevel 1 goto error_exit - -exit 0 - -:error_exit -echo The make command returned an error of %errorlevel% -exit 1 diff --git a/src/validation/slprj/ert/FCC_New/instrumented/FCC_New.mk b/src/validation/slprj/ert/FCC_New/instrumented/FCC_New.mk deleted file mode 100644 index bb369d243ba620b54f03cf681461bc57a2d05d08..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/instrumented/FCC_New.mk +++ /dev/null @@ -1,414 +0,0 @@ -########################################################################### -## Makefile generated for Simulink model 'FCC_New'. -## -## Makefile : FCC_New.mk -## Generated on : Thu Jul 16 18:51:21 2020 -## MATLAB Coder version: 5.0 (R2020a) -## -## Build Info: -## -## Final product: ./FCC_New_rtwlib.lib -## Product type : static library -## Build type : Model Reference Library -## -########################################################################### - -########################################################################### -## MACROS -########################################################################### - -# Macro Descriptions: -# PRODUCT_NAME Name of the system to build -# MAKEFILE Name of this makefile -# MODELREF_LINK_RSPFILE Linker command listing model reference link objects -# COMPILER_COMMAND_FILE Compiler command listing model reference header paths -# CMD_FILE Command file -# MODELLIB Static library target - -PRODUCT_NAME = FCC_New -MAKEFILE = FCC_New.mk -MATLAB_ROOT = D:/Program Files/MATLAB/R2020a -MATLAB_BIN = D:/Program Files/MATLAB/R2020a/bin -MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64 -MASTER_ANCHOR_DIR = -START_DIR = D:/Documents/SCHOOL/McSCert/do178/src/validation -SOLVER = -SOLVER_OBJ = -CLASSIC_INTERFACE = 0 -TGT_FCN_LIB = ISO_C -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0 -RELATIVE_PATH_TO_ANCHOR = ../../../.. -MODELREF_LINK_RSPFILE = FCC_New_ref.rsp -COMPILER_COMMAND_FILE = FCC_New_comp.rsp -CMD_FILE = FCC_New.rsp -C_STANDARD_OPTS = -fwrapv -CPP_STANDARD_OPTS = -fwrapv -MODELLIB = FCC_New_rtwlib.lib - -########################################################################### -## TOOLCHAIN SPECIFICATIONS -########################################################################### - -# Toolchain Name: MinGW64 | gmake (64-bit Windows) -# Supported Version(s): 6.x -# ToolchainInfo Version: 2020a -# Specification Revision: 1.0 -# -#------------------------------------------- -# Macros assumed to be defined elsewhere -#------------------------------------------- - -# C_STANDARD_OPTS -# CPP_STANDARD_OPTS -# MINGW_ROOT -# MINGW_C_STANDARD_OPTS - -#----------- -# MACROS -#----------- - -WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -WARN_FLAGS_MAX = $(WARN_FLAGS) -Wcast-qual -Wshadow -CPP_WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wpointer-arith -Wcast-align -CPP_WARN_FLAGS_MAX = $(CPP_WARN_FLAGS) -Wcast-qual -Wshadow -MW_EXTERNLIB_DIR = $(MATLAB_ROOT)/extern/lib/win64/mingw64 -SHELL = %SystemRoot%/system32/cmd.exe - -TOOLCHAIN_SRCS = -TOOLCHAIN_INCS = -TOOLCHAIN_LIBS = -lws2_32 - -#------------------------ -# BUILD TOOL COMMANDS -#------------------------ - -# C Compiler: GNU C Compiler -CC_PATH = $(MINGW_ROOT) -CC = "$(CC_PATH)/gcc" - -# Linker: GNU Linker -LD_PATH = $(MINGW_ROOT) -LD = "$(LD_PATH)/g++" - -# C++ Compiler: GNU C++ Compiler -CPP_PATH = $(MINGW_ROOT) -CPP = "$(CPP_PATH)/g++" - -# C++ Linker: GNU C++ Linker -CPP_LD_PATH = $(MINGW_ROOT) -CPP_LD = "$(CPP_LD_PATH)/g++" - -# Archiver: GNU Archiver -AR_PATH = $(MINGW_ROOT) -AR = "$(AR_PATH)/ar" - -# MEX Tool: MEX Tool -MEX_PATH = $(MATLAB_ARCH_BIN) -MEX = "$(MEX_PATH)/mex" - -# Download: Download -DOWNLOAD = - -# Execute: Execute -EXECUTE = $(PRODUCT) - -# Builder: GMAKE Utility -MAKE_PATH = %MATLAB%/bin/win64 -MAKE = "$(MAKE_PATH)/gmake" - - -#------------------------- -# Directives/Utilities -#------------------------- - -CDEBUG = -g -C_OUTPUT_FLAG = -o -LDDEBUG = -g -OUTPUT_FLAG = -o -CPPDEBUG = -g -CPP_OUTPUT_FLAG = -o -CPPLDDEBUG = -g -OUTPUT_FLAG = -o -ARDEBUG = -STATICLIB_OUTPUT_FLAG = -MEX_DEBUG = -g -RM = @del -ECHO = @echo -MV = @move -RUN = - -#---------------------------------------- -# "Faster Builds" Build Configuration -#---------------------------------------- - -ARFLAGS = ruvs -CFLAGS = -c $(MINGW_C_STANDARD_OPTS) -m64 \ - -O0 -CPPFLAGS = -c $(CPP_STANDARD_OPTS) -m64 -std=c++11 \ - -O0 -CPP_LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -CPP_SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib -DOWNLOAD_FLAGS = -EXECUTE_FLAGS = -LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -MEX_CPPFLAGS = -MEX_CPPLDFLAGS = -MEX_CFLAGS = -MEX_LDFLAGS = -MAKE_FLAGS = -f $(MAKEFILE) -SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib - - - -########################################################################### -## OUTPUT INFO -########################################################################### - -PRODUCT = ./FCC_New_rtwlib.lib -PRODUCT_TYPE = "static library" -BUILD_TYPE = "Model Reference Library" - -########################################################################### -## INCLUDE PATHS -########################################################################### - -INCLUDES_BUILDINFO = - -INCLUDES = $(INCLUDES_BUILDINFO) - -########################################################################### -## DEFINES -########################################################################### - -DEFINES_BUILD_ARGS = -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DEFINES_CUSTOM = -DEFINES_OPTS = -DTID01EQ=0 -DPORTABLE_WORDSIZES -DEFINES_STANDARD = -DMODEL=FCC_New -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 - -DEFINES = $(DEFINES_BUILD_ARGS) $(DEFINES_CUSTOM) $(DEFINES_OPTS) $(DEFINES_STANDARD) - -########################################################################### -## SOURCE FILES -########################################################################### - -SRCS = $(START_DIR)/slprj/ert/FCC_New/FCC_New.c - -ALL_SRCS = $(SRCS) - -########################################################################### -## OBJECTS -########################################################################### - -OBJS = FCC_New.obj - -ALL_OBJS = $(OBJS) - -########################################################################### -## PREBUILT OBJECT FILES -########################################################################### - -PREBUILT_OBJS = - -########################################################################### -## LIBRARIES -########################################################################### - -MODELREF_LIBS = D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl_rtwlib.lib D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl_rtwlib.lib - -LIBS = - -########################################################################### -## SYSTEM LIBRARIES -########################################################################### - -SYSTEM_LIBS = - -########################################################################### -## ADDITIONAL TOOLCHAIN FLAGS -########################################################################### - -#--------------- -# C Compiler -#--------------- - -CFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CFLAGS += $(CFLAGS_BASIC) - -#----------------- -# C++ Compiler -#----------------- - -CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CPPFLAGS += $(CPPFLAGS_BASIC) - -#--------------------- -# MEX C++ Compiler -#--------------------- - -MEX_CPP_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CPPFLAGS += $(MEX_CPP_Compiler_BASIC) - -#----------------- -# MEX Compiler -#----------------- - -MEX_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CFLAGS += $(MEX_Compiler_BASIC) - -########################################################################### -## INLINED COMMANDS -########################################################################### - - -MINGW_C_STANDARD_OPTS = $(C_STANDARD_OPTS) - - -########################################################################### -## PHONY TARGETS -########################################################################### - -.PHONY : all build clean info prebuild download execute - - -all : build - @echo "### Successfully generated all binary outputs." - - -build : prebuild $(PRODUCT) - - -prebuild : - - -download : $(PRODUCT) - - -execute : download - - -########################################################################### -## FINAL TARGET -########################################################################### - -#--------------------------------- -# Create a static library -#--------------------------------- - -$(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) - @echo "### Creating static library "$(PRODUCT)" ..." - $(AR) $(ARFLAGS) $(PRODUCT) @$(CMD_FILE) - @echo "### Created: $(PRODUCT)" - - -########################################################################### -## INTERMEDIATE TARGETS -########################################################################### - -#--------------------- -# SOURCE-TO-OBJECT -#--------------------- - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/slprj/ert/FCC_New/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/slprj/ert/FCC_New/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : ../%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : ../%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -FCC_New.obj : $(START_DIR)/slprj/ert/FCC_New/FCC_New.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -########################################################################### -## DEPENDENCIES -########################################################################### - -$(ALL_OBJS) : rtw_proj.tmw $(COMPILER_COMMAND_FILE) $(MAKEFILE) - - -########################################################################### -## MISCELLANEOUS TARGETS -########################################################################### - -info : - @echo "### PRODUCT = $(PRODUCT)" - @echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)" - @echo "### BUILD_TYPE = $(BUILD_TYPE)" - @echo "### INCLUDES = $(INCLUDES)" - @echo "### DEFINES = $(DEFINES)" - @echo "### ALL_SRCS = $(ALL_SRCS)" - @echo "### ALL_OBJS = $(ALL_OBJS)" - @echo "### LIBS = $(LIBS)" - @echo "### MODELREF_LIBS = $(MODELREF_LIBS)" - @echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)" - @echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)" - @echo "### CFLAGS = $(CFLAGS)" - @echo "### LDFLAGS = $(LDFLAGS)" - @echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)" - @echo "### CPPFLAGS = $(CPPFLAGS)" - @echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)" - @echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)" - @echo "### ARFLAGS = $(ARFLAGS)" - @echo "### MEX_CFLAGS = $(MEX_CFLAGS)" - @echo "### MEX_CPPFLAGS = $(MEX_CPPFLAGS)" - @echo "### MEX_LDFLAGS = $(MEX_LDFLAGS)" - @echo "### MEX_CPPLDFLAGS = $(MEX_CPPLDFLAGS)" - @echo "### DOWNLOAD_FLAGS = $(DOWNLOAD_FLAGS)" - @echo "### EXECUTE_FLAGS = $(EXECUTE_FLAGS)" - @echo "### MAKE_FLAGS = $(MAKE_FLAGS)" - - -clean : - $(ECHO) "### Deleting all derived files..." - $(RM) $(subst /,\,$(PRODUCT)) - $(RM) $(subst /,\,$(ALL_OBJS)) - $(ECHO) "### Deleted all derived files." - - diff --git a/src/validation/slprj/ert/FCC_New/instrumented/FCC_New.rsp b/src/validation/slprj/ert/FCC_New/instrumented/FCC_New.rsp deleted file mode 100644 index e3cf0288ed36f4d981f881e7b2bf909addffc108..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/instrumented/FCC_New.rsp +++ /dev/null @@ -1 +0,0 @@ -FCC_New.obj diff --git a/src/validation/slprj/ert/FCC_New/instrumented/FCC_New_comp.rsp b/src/validation/slprj/ert/FCC_New/instrumented/FCC_New_comp.rsp deleted file mode 100644 index 3d815f9b2a34fecdc94e6513e99dfdf81975f3a3..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/instrumented/FCC_New_comp.rsp +++ /dev/null @@ -1,10 +0,0 @@ --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl --ID:/Documents/SCHOOL/McSCert/do178/src/validation --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/FCC_New --ID:/Program\ Files/MATLAB/R2020a/extern/include --ID:/Program\ Files/MATLAB/R2020a/simulink/include --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src/ext_mode/common --ID:/Program\ Files/MATLAB/R2020a/rtw/c/ert --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/_sharedutils diff --git a/src/validation/slprj/ert/FCC_New/instrumented/FCC_New_ref.rsp b/src/validation/slprj/ert/FCC_New/instrumented/FCC_New_ref.rsp deleted file mode 100644 index 7f03cbb2d401c39875bbd0ae54741aa2700373d0..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/instrumented/FCC_New_ref.rsp +++ /dev/null @@ -1,2 +0,0 @@ -D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl/instrumented/AHRSControl_rtwlib.lib -D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl/instrumented/ActuatorControl_rtwlib.lib diff --git a/src/validation/slprj/ert/FCC_New/instrumented/buildInfo.mat b/src/validation/slprj/ert/FCC_New/instrumented/buildInfo.mat deleted file mode 100644 index 2c03921d9420dda2d2d7eeb03c479b89fe7422f5..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/instrumented/buildInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/instrumented/compileInfo.mat b/src/validation/slprj/ert/FCC_New/instrumented/compileInfo.mat deleted file mode 100644 index 02cf4abfcb006e1bb771d2f528e90829c8852a9f..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/instrumented/compileInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/instrumented/defines.txt b/src/validation/slprj/ert/FCC_New/instrumented/defines.txt deleted file mode 100644 index da3c27e8981ae5060d178f600342badb5982a103..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/instrumented/defines.txt +++ /dev/null @@ -1,15 +0,0 @@ -MODEL=FCC_New -NUMST=2 -NCSTATES=0 -HAVESTDIO -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -CLASSIC_INTERFACE=0 -ALLOCATIONFCN=0 -TID01EQ=0 -PORTABLE_WORDSIZES -TERMFCN=0 -ONESTEPFCN=1 -MAT_FILE=0 -MULTI_INSTANCE_CODE=0 -INTEGER_CODE=0 -MT=1 diff --git a/src/validation/slprj/ert/FCC_New/instrumented/instrumentationInfo.mat b/src/validation/slprj/ert/FCC_New/instrumented/instrumentationInfo.mat deleted file mode 100644 index 7b85ac63f1ebe58186894c66220d262576f55d8a..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/instrumented/instrumentationInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/instrumented/profiling_info.mat b/src/validation/slprj/ert/FCC_New/instrumented/profiling_info.mat deleted file mode 100644 index db0e4330cca20fa1315dbe272d9e8602a8b50b91..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/instrumented/profiling_info.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/instrumented/rtw_proj.tmw b/src/validation/slprj/ert/FCC_New/instrumented/rtw_proj.tmw deleted file mode 100644 index 66de4e2c140321d67eeddbdb6e18d720a95a705c..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/instrumented/rtw_proj.tmw +++ /dev/null @@ -1,4 +0,0 @@ -Simulink Coder project for FCC_New using . MATLAB root = D:\Program Files\MATLAB\R2020a. SimStruct date: 18-Nov-2019 20:54:47 -This file is generated by Simulink Coder for use by the make utility -to determine when to rebuild objects when the name of the current Simulink Coder project changes. -The rtwinfomat located at: ..\..\..\..\slprj\ert\FCC_New\tmwinternal\binfo_mdlref.mat diff --git a/src/validation/slprj/ert/FCC_New/modelsources.txt b/src/validation/slprj/ert/FCC_New/modelsources.txt deleted file mode 100644 index 6cfbb7b8578e96d541b1bf5558b333fc0ec34d22..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/modelsources.txt +++ /dev/null @@ -1,2 +0,0 @@ - FCC_New.c - diff --git a/src/validation/slprj/ert/FCC_New/rtw_proj.tmw b/src/validation/slprj/ert/FCC_New/rtw_proj.tmw deleted file mode 100644 index 201c528fc7ec4be60403297e494dca84cd7c155d..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/rtw_proj.tmw +++ /dev/null @@ -1,4 +0,0 @@ -Simulink Coder project for FCC_New using . MATLAB root = D:\Program Files\MATLAB\R2020a. SimStruct date: 18-Nov-2019 20:54:47 -This file is generated by Simulink Coder for use by the make utility -to determine when to rebuild objects when the name of the current Simulink Coder project changes. -The rtwinfomat located at: ..\..\..\slprj\ert\FCC_New\tmwinternal\binfo_mdlref.mat diff --git a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New.bat b/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New.bat deleted file mode 100644 index be630f4a152498cf84e66cb8c0983cfe851c333b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New.bat +++ /dev/null @@ -1,15 +0,0 @@ -@if not "%MINGW_ROOT%" == "" (@set "PATH=%PATH%;%MINGW_ROOT%") - - -call "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a\bin\win64\checkMATLABRootForDriveMap.exe" "\\Stephen-Desktop\D$\Program Files\MATLAB\R2020a" > mlEnv.txt -for /f %%a in (mlEnv.txt) do set "%%a"\n -cd . - -if "%1"=="" ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f FCC_New.mk all) else ("D:\Program Files\MATLAB\R2020a\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -f FCC_New.mk %1) -@if errorlevel 1 goto error_exit - -exit 0 - -:error_exit -echo The make command returned an error of %errorlevel% -exit 1 diff --git a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New.mk b/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New.mk deleted file mode 100644 index 3313a09a7a3867a2667572b65fd17216a49b2988..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New.mk +++ /dev/null @@ -1,414 +0,0 @@ -########################################################################### -## Makefile generated for Simulink model 'FCC_New'. -## -## Makefile : FCC_New.mk -## Generated on : Thu Jul 16 18:55:26 2020 -## MATLAB Coder version: 5.0 (R2020a) -## -## Build Info: -## -## Final product: ./FCC_New_rtwlib.lib -## Product type : static library -## Build type : Model Reference Library -## -########################################################################### - -########################################################################### -## MACROS -########################################################################### - -# Macro Descriptions: -# PRODUCT_NAME Name of the system to build -# MAKEFILE Name of this makefile -# MODELREF_LINK_RSPFILE Linker command listing model reference link objects -# COMPILER_COMMAND_FILE Compiler command listing model reference header paths -# CMD_FILE Command file -# MODELLIB Static library target - -PRODUCT_NAME = FCC_New -MAKEFILE = FCC_New.mk -MATLAB_ROOT = D:/Program Files/MATLAB/R2020a -MATLAB_BIN = D:/Program Files/MATLAB/R2020a/bin -MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64 -MASTER_ANCHOR_DIR = -START_DIR = D:/Documents/SCHOOL/McSCert/do178/src/validation -SOLVER = -SOLVER_OBJ = -CLASSIC_INTERFACE = 0 -TGT_FCN_LIB = ISO_C -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0 -RELATIVE_PATH_TO_ANCHOR = ../../../../../.. -MODELREF_LINK_RSPFILE = FCC_New_ref.rsp -COMPILER_COMMAND_FILE = FCC_New_comp.rsp -CMD_FILE = FCC_New.rsp -C_STANDARD_OPTS = -fwrapv -CPP_STANDARD_OPTS = -fwrapv -MODELLIB = FCC_New_rtwlib.lib - -########################################################################### -## TOOLCHAIN SPECIFICATIONS -########################################################################### - -# Toolchain Name: MinGW64 | gmake (64-bit Windows) -# Supported Version(s): 6.x -# ToolchainInfo Version: 2020a -# Specification Revision: 1.0 -# -#------------------------------------------- -# Macros assumed to be defined elsewhere -#------------------------------------------- - -# C_STANDARD_OPTS -# CPP_STANDARD_OPTS -# MINGW_ROOT -# MINGW_C_STANDARD_OPTS - -#----------- -# MACROS -#----------- - -WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -WARN_FLAGS_MAX = $(WARN_FLAGS) -Wcast-qual -Wshadow -CPP_WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wpointer-arith -Wcast-align -CPP_WARN_FLAGS_MAX = $(CPP_WARN_FLAGS) -Wcast-qual -Wshadow -MW_EXTERNLIB_DIR = $(MATLAB_ROOT)/extern/lib/win64/mingw64 -SHELL = %SystemRoot%/system32/cmd.exe - -TOOLCHAIN_SRCS = -TOOLCHAIN_INCS = -TOOLCHAIN_LIBS = -lws2_32 - -#------------------------ -# BUILD TOOL COMMANDS -#------------------------ - -# C Compiler: GNU C Compiler -CC_PATH = $(MINGW_ROOT) -CC = "$(CC_PATH)/gcc" - -# Linker: GNU Linker -LD_PATH = $(MINGW_ROOT) -LD = "$(LD_PATH)/g++" - -# C++ Compiler: GNU C++ Compiler -CPP_PATH = $(MINGW_ROOT) -CPP = "$(CPP_PATH)/g++" - -# C++ Linker: GNU C++ Linker -CPP_LD_PATH = $(MINGW_ROOT) -CPP_LD = "$(CPP_LD_PATH)/g++" - -# Archiver: GNU Archiver -AR_PATH = $(MINGW_ROOT) -AR = "$(AR_PATH)/ar" - -# MEX Tool: MEX Tool -MEX_PATH = $(MATLAB_ARCH_BIN) -MEX = "$(MEX_PATH)/mex" - -# Download: Download -DOWNLOAD = - -# Execute: Execute -EXECUTE = $(PRODUCT) - -# Builder: GMAKE Utility -MAKE_PATH = %MATLAB%/bin/win64 -MAKE = "$(MAKE_PATH)/gmake" - - -#------------------------- -# Directives/Utilities -#------------------------- - -CDEBUG = -g -C_OUTPUT_FLAG = -o -LDDEBUG = -g -OUTPUT_FLAG = -o -CPPDEBUG = -g -CPP_OUTPUT_FLAG = -o -CPPLDDEBUG = -g -OUTPUT_FLAG = -o -ARDEBUG = -STATICLIB_OUTPUT_FLAG = -MEX_DEBUG = -g -RM = @del -ECHO = @echo -MV = @move -RUN = - -#---------------------------------------- -# "Faster Builds" Build Configuration -#---------------------------------------- - -ARFLAGS = ruvs -CFLAGS = -c $(MINGW_C_STANDARD_OPTS) -m64 \ - -O0 -CPPFLAGS = -c $(CPP_STANDARD_OPTS) -m64 -std=c++11 \ - -O0 -CPP_LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -CPP_SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib -DOWNLOAD_FLAGS = -EXECUTE_FLAGS = -LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -m64 -MEX_CPPFLAGS = -MEX_CPPLDFLAGS = -MEX_CFLAGS = -MEX_LDFLAGS = -MAKE_FLAGS = -f $(MAKEFILE) -SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT)).lib - - - -########################################################################### -## OUTPUT INFO -########################################################################### - -PRODUCT = ./FCC_New_rtwlib.lib -PRODUCT_TYPE = "static library" -BUILD_TYPE = "Model Reference Library" - -########################################################################### -## INCLUDE PATHS -########################################################################### - -INCLUDES_BUILDINFO = - -INCLUDES = $(INCLUDES_BUILDINFO) - -########################################################################### -## DEFINES -########################################################################### - -DEFINES_BUILD_ARGS = -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DEFINES_CUSTOM = -DEFINES_OPTS = -DTID01EQ=0 -DPORTABLE_WORDSIZES -DEFINES_STANDARD = -DMODEL=FCC_New -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 - -DEFINES = $(DEFINES_BUILD_ARGS) $(DEFINES_CUSTOM) $(DEFINES_OPTS) $(DEFINES_STANDARD) - -########################################################################### -## SOURCE FILES -########################################################################### - -SRCS = $(START_DIR)/slprj/ert/FCC_New/FCC_New.c - -ALL_SRCS = $(SRCS) - -########################################################################### -## OBJECTS -########################################################################### - -OBJS = FCC_New.obj - -ALL_OBJS = $(OBJS) - -########################################################################### -## PREBUILT OBJECT FILES -########################################################################### - -PREBUILT_OBJS = - -########################################################################### -## LIBRARIES -########################################################################### - -MODELREF_LIBS = D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_rtwlib.lib D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl_rtwlib.lib - -LIBS = - -########################################################################### -## SYSTEM LIBRARIES -########################################################################### - -SYSTEM_LIBS = - -########################################################################### -## ADDITIONAL TOOLCHAIN FLAGS -########################################################################### - -#--------------- -# C Compiler -#--------------- - -CFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CFLAGS += $(CFLAGS_BASIC) - -#----------------- -# C++ Compiler -#----------------- - -CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) - -CPPFLAGS += $(CPPFLAGS_BASIC) - -#--------------------- -# MEX C++ Compiler -#--------------------- - -MEX_CPP_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CPPFLAGS += $(MEX_CPP_Compiler_BASIC) - -#----------------- -# MEX Compiler -#----------------- - -MEX_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) - -MEX_CFLAGS += $(MEX_Compiler_BASIC) - -########################################################################### -## INLINED COMMANDS -########################################################################### - - -MINGW_C_STANDARD_OPTS = $(C_STANDARD_OPTS) - - -########################################################################### -## PHONY TARGETS -########################################################################### - -.PHONY : all build clean info prebuild download execute - - -all : build - @echo "### Successfully generated all binary outputs." - - -build : prebuild $(PRODUCT) - - -prebuild : - - -download : $(PRODUCT) - - -execute : download - - -########################################################################### -## FINAL TARGET -########################################################################### - -#--------------------------------- -# Create a static library -#--------------------------------- - -$(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) - @echo "### Creating static library "$(PRODUCT)" ..." - $(AR) $(ARFLAGS) $(PRODUCT) @$(CMD_FILE) - @echo "### Created: $(PRODUCT)" - - -########################################################################### -## INTERMEDIATE TARGETS -########################################################################### - -#--------------------- -# SOURCE-TO-OBJECT -#--------------------- - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/slprj/ert/FCC_New/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/slprj/ert/FCC_New/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : ../../../%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : ../../../%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -FCC_New.obj : $(START_DIR)/slprj/ert/FCC_New/FCC_New.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -########################################################################### -## DEPENDENCIES -########################################################################### - -$(ALL_OBJS) : rtw_proj.tmw $(COMPILER_COMMAND_FILE) $(MAKEFILE) - - -########################################################################### -## MISCELLANEOUS TARGETS -########################################################################### - -info : - @echo "### PRODUCT = $(PRODUCT)" - @echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)" - @echo "### BUILD_TYPE = $(BUILD_TYPE)" - @echo "### INCLUDES = $(INCLUDES)" - @echo "### DEFINES = $(DEFINES)" - @echo "### ALL_SRCS = $(ALL_SRCS)" - @echo "### ALL_OBJS = $(ALL_OBJS)" - @echo "### LIBS = $(LIBS)" - @echo "### MODELREF_LIBS = $(MODELREF_LIBS)" - @echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)" - @echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)" - @echo "### CFLAGS = $(CFLAGS)" - @echo "### LDFLAGS = $(LDFLAGS)" - @echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)" - @echo "### CPPFLAGS = $(CPPFLAGS)" - @echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)" - @echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)" - @echo "### ARFLAGS = $(ARFLAGS)" - @echo "### MEX_CFLAGS = $(MEX_CFLAGS)" - @echo "### MEX_CPPFLAGS = $(MEX_CPPFLAGS)" - @echo "### MEX_LDFLAGS = $(MEX_LDFLAGS)" - @echo "### MEX_CPPLDFLAGS = $(MEX_CPPLDFLAGS)" - @echo "### DOWNLOAD_FLAGS = $(DOWNLOAD_FLAGS)" - @echo "### EXECUTE_FLAGS = $(EXECUTE_FLAGS)" - @echo "### MAKE_FLAGS = $(MAKE_FLAGS)" - - -clean : - $(ECHO) "### Deleting all derived files..." - $(RM) $(subst /,\,$(PRODUCT)) - $(RM) $(subst /,\,$(ALL_OBJS)) - $(ECHO) "### Deleted all derived files." - - diff --git a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New.obj b/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New.obj deleted file mode 100644 index f559de5e0a15b02185c1a6bc0fb39e235b5668a7..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New.obj and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New.rsp b/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New.rsp deleted file mode 100644 index e3cf0288ed36f4d981f881e7b2bf909addffc108..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New.rsp +++ /dev/null @@ -1 +0,0 @@ -FCC_New.obj diff --git a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New_comp.rsp b/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New_comp.rsp deleted file mode 100644 index 3d815f9b2a34fecdc94e6513e99dfdf81975f3a3..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New_comp.rsp +++ /dev/null @@ -1,10 +0,0 @@ --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl --ID:/Documents/SCHOOL/McSCert/do178/src/validation --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/FCC_New --ID:/Program\ Files/MATLAB/R2020a/extern/include --ID:/Program\ Files/MATLAB/R2020a/simulink/include --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src --ID:/Program\ Files/MATLAB/R2020a/rtw/c/src/ext_mode/common --ID:/Program\ Files/MATLAB/R2020a/rtw/c/ert --ID:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/_sharedutils diff --git a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New_ref.rsp b/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New_ref.rsp deleted file mode 100644 index d5e9c416592879d2c717aedde7088fc75cfb400b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New_ref.rsp +++ /dev/null @@ -1,2 +0,0 @@ -D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/AHRSControl/sil/hostobj/instrumented/AHRSControl_rtwlib.lib -D:/Documents/SCHOOL/McSCert/do178/src/validation/slprj/ert/ActuatorControl/sil/hostobj/instrumented/ActuatorControl_rtwlib.lib diff --git a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New_rtwlib.lib b/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New_rtwlib.lib deleted file mode 100644 index 727ee16cde0adc807ca3dbae45c6ad4215702db3..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/FCC_New_rtwlib.lib and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/buildInfo.mat b/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/buildInfo.mat deleted file mode 100644 index 73601e36af5f5e41307f505125924c7b81c4a2ca..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/buildInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/compileInfo.mat b/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/compileInfo.mat deleted file mode 100644 index a4d3b7ec56de9f26ef4cc684ff2a07dfc1d745ff..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/compileInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/defines.txt b/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/defines.txt deleted file mode 100644 index da3c27e8981ae5060d178f600342badb5982a103..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/defines.txt +++ /dev/null @@ -1,15 +0,0 @@ -MODEL=FCC_New -NUMST=2 -NCSTATES=0 -HAVESTDIO -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -CLASSIC_INTERFACE=0 -ALLOCATIONFCN=0 -TID01EQ=0 -PORTABLE_WORDSIZES -TERMFCN=0 -ONESTEPFCN=1 -MAT_FILE=0 -MULTI_INSTANCE_CODE=0 -INTEGER_CODE=0 -MT=1 diff --git a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/instrumentationInfo.mat b/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/instrumentationInfo.mat deleted file mode 100644 index 3cabef19817e4ad97e6b427f191ee3ae71f37b0c..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/instrumentationInfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/mlEnv.txt b/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/mlEnv.txt deleted file mode 100644 index 4dd92c55ba21f6d084f4d56da9e810007d42794a..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/mlEnv.txt +++ /dev/null @@ -1,4 +0,0 @@ -MATLAB_ROOT=E: -ALT_MATLAB_ROOT=E: -MATLAB_BIN=E:\bin -ALT_MATLAB_BIN=E:\bin diff --git a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/profiling_info.mat b/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/profiling_info.mat deleted file mode 100644 index 00afd60f4e27834c41ef3b3c325fab2a8c986485..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/profiling_info.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/rtw_proj.tmw b/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/rtw_proj.tmw deleted file mode 100644 index cf95fcd243a59884b231e4518a2e17d26c200414..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/sil/hostobj/instrumented/rtw_proj.tmw +++ /dev/null @@ -1,4 +0,0 @@ -Simulink Coder project for FCC_New using . MATLAB root = D:\Program Files\MATLAB\R2020a. SimStruct date: 18-Nov-2019 20:54:47 -This file is generated by Simulink Coder for use by the make utility -to determine when to rebuild objects when the name of the current Simulink Coder project changes. -The rtwinfomat located at: ..\..\..\..\..\..\slprj\ert\FCC_New\tmwinternal\binfo_mdlref.mat diff --git a/src/validation/slprj/ert/FCC_New/tmwinternal/ModelRefCompileInfo.xml b/src/validation/slprj/ert/FCC_New/tmwinternal/ModelRefCompileInfo.xml deleted file mode 100644 index 5ac409da3d91e748f2fcdaf847aa44e32f910a75..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/tmwinternal/ModelRefCompileInfo.xml +++ /dev/null @@ -1,2608 +0,0 @@ - - - - 323 - - true - AHRSControl - FCC_New:AHRSControl - - - true - ActuatorControl - FCC_New:ActuatorControl - - - true - FCC_New - FCC_New - - false - false - HeliSystemDD_New.sldd - HeliSystemDD_New.sldd - HeliSystemDD_New.sldd - AAFJTQAAAAAOAAAAOAAAAAYAAAAIAAAAAgAAAAAAAAAFAAAACAAAAAAAAAABAAAAAQAAAAAAAAAFAAQAAQAAAAEAAAAAAAAA - {"Inports":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","Outports":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","LocalParameters":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","ParameterArguments":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","GlobalParameters":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","SharedLocalDataStores":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","GlobalDataStores":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","InternalData":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","Constants":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","DataTransfers":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","ModelData":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","InitializeTerminate":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","Execution":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","SharedUtility":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}"} - 0.001 - #AHRS_Bus#HeliSystemDD_New.sldd# - true - true - true - false - true - false - true - true - - true - true - 32767 - -32768 - 2 - - true - D1 - 0.001 - 40 - 0 - - - - - - true - true - 32767 - -32768 - 2 - 1 - - true - D1 - 0.001 - 40 - 0 - - - - - - true - true - 32767 - -32768 - 2 - 2 - - true - D1 - 0.001 - 40 - 0 - - - - - - true - true - 32767 - -32768 - 2 - 3 - - true - D2 - 0.01 - 41 - 1 - - - - - - true - true - 32767 - -32768 - 2 - 4 - - true - D2 - 0.01 - 41 - 1 - - - - - - true - true - 32767 - -32768 - 2 - 5 - - true - D2 - 0.01 - 41 - 1 - - - - - - true - true - inf - -inf - 2 - 6 - - true - D2 - 0.01 - 41 - 1 - - - - - - true - true - inf - -inf - 2 - 7 - - true - D2 - 0.01 - 41 - 1 - - - - - - true - true - inf - -inf - 2 - 8 - - true - D2 - 0.01 - 41 - 1 - - - - - false - true - true - false - false - false - false - false - false - false - false - false - false - false - false - false - false - true - 3 - -1 - 12 - 12 - 0 - 0 - 2 - 2 - - - - - - - AHRS_Bus - AHRS_Bus - AHRS_Bus - false - false - false - - - - - true - inf - -inf - 2 - - true - D1 - 0.001 - 40 - 0 - - - - - - true - inf - -inf - 2 - 1 - - true - D1 - 0.001 - 40 - 0 - - - - - - true - inf - -inf - 2 - 2 - - true - D1 - 0.001 - 40 - 0 - - - - - false - false - true - - true - D1 - 0.001 - 40 - 0 - - - true - D2 - 0.01 - 41 - 1 - - 2 - <?xml version="1.0"?> -<slexec_sto version="1.1" packageUris="http://schema.mathworks.com/mf0/slexec_mm_sto/R2019b_201902271317"> - <sto.Registry type="sto.Registry" uuid="a958cac6-bf03-46a8-9f2e-c702a690fa23"> - <clocks type="sto.Timer" uuid="fe930611-35cf-402f-95a8-ea3dc56e922f"> - <needsToProvideTimeDuringExecution>true</needsToProvideTimeDuringExecution> - <clockTickConstraint>PeriodicWithFixedResolution</clockTickConstraint> - <resolution>0.001</resolution> - <specifiedTaskingMode>ClassicMultiTasking</specifiedTaskingMode> - <timeAdvanceMode>FixedStep</timeAdvanceMode> - <clockDomain type="sto.ClockDomain" uuid="effd7f3c-f401-4a43-b8c8-475c07e48472"> - <baseTaskID>_task0</baseTaskID> - <computedFundamentalStepSize>0.001</computedFundamentalStepSize> - <rates type="sto.Rate" uuid="12e404c9-791e-41b3-aa13-b6a0f2cfebb8"/> - <rates type="sto.Rate" uuid="fb89291c-0d30-4fc9-b342-87cc8ea932ba"/> - <rootTaskHierarchyElements type="sto.Task" uuid="6c441be1-5ed3-4c38-8935-0dbff979d484"> - <isExecutable>true</isExecutable> - <orderIndex>1</orderIndex> - <rates type="sto.Rate" uuid="12e404c9-791e-41b3-aa13-b6a0f2cfebb8"> - <annotation>D1</annotation> - <colorIndex>2</colorIndex> - <description>Discrete 1</description> - <eventSourceType>UNSPECIFIED_EVENT_SOURCE</eventSourceType> - <registry type="sto.Registry" uuid="a958cac6-bf03-46a8-9f2e-c702a690fa23"/> - <taskId>_task0</taskId> - <rateSpec type="sto.RateSpec" uuid="1d2556f2-8763-4997-9906-0f8912f2b774"> - <period>0.001</period> - <rateType>ClassicPeriodicDiscrete</rateType> - </rateSpec> - </rates> - <elementType>Task</elementType> - <identifier>_task0</identifier> - <priority>40</priority> - </rootTaskHierarchyElements> - <rootTaskHierarchyElements type="sto.Task" uuid="8275c235-c777-4037-b071-1743420bed82"> - <isExecutable>true</isExecutable> - <orderIndex>2</orderIndex> - <rates type="sto.Rate" uuid="fb89291c-0d30-4fc9-b342-87cc8ea932ba"> - <annotation>D2</annotation> - <colorIndex>3</colorIndex> - <description>Discrete 2</description> - <eventSourceType>UNSPECIFIED_EVENT_SOURCE</eventSourceType> - <rateIDX>1</rateIDX> - <registry type="sto.Registry" uuid="a958cac6-bf03-46a8-9f2e-c702a690fa23"/> - <taskId>_task1</taskId> - <rateSpec type="sto.RateSpec" uuid="0d3a42b3-94b6-4fd7-87f6-d0cb80a85979"> - <period>0.01</period> - <rateType>ClassicPeriodicDiscrete</rateType> - </rateSpec> - </rates> - <tNum>1</tNum> - <elementType>Task</elementType> - <identifier>_task1</identifier> - <priority>41</priority> - </rootTaskHierarchyElements> - </clockDomain> - </clocks> - <clocks type="sto.Event" uuid="143044ee-3b1f-42d0-b581-be1994c0f023"> - <eventType>PARAMETER_CHANGE_EVENT</eventType> - <cNum>1</cNum> - <clockType>Event</clockType> - <identifier>ParameterChangeEvent</identifier> - <resolution>-1</resolution> - <specifiedTaskingMode>ExplicitTasking</specifiedTaskingMode> - <timeAdvanceMode>None</timeAdvanceMode> - <clockDomain type="sto.ClockDomain" uuid="6bdbc9f7-7a9d-476b-9ba0-0698887b917b"> - <computedFundamentalStepSize>-1</computedFundamentalStepSize> - <rates type="sto.Rate" uuid="454366e8-02a1-45d9-8937-cc2d39afb6d8"/> - <rootTaskHierarchyElements type="sto.Task" uuid="2abf7da9-8963-49a9-b472-b96d188bb4e2"> - <isExplicit>true</isExplicit> - <rates type="sto.Rate" uuid="454366e8-02a1-45d9-8937-cc2d39afb6d8"> - <eventSourceType>PARAMETER_CHANGE_EVENT</eventSourceType> - <rateIDX>-1</rateIDX> - <registry type="sto.Registry" uuid="a958cac6-bf03-46a8-9f2e-c702a690fa23"/> - <stringID>ParameterChangeEvent</stringID> - <taskId>ModelWideParameterChangeEvent</taskId> - <useForExecution>NotForExecution</useForExecution> - <rateSpec type="sto.RateSpec" uuid="63bcf0ba-871c-4540-aa2d-47ee03ee21d1"> - <period>inf</period> - <rateType>ModelWideParameterChangeEvent</rateType> - </rateSpec> - </rates> - <tNum>2</tNum> - <elementType>Task</elementType> - <identifier>ModelWideParameterChangeEvent</identifier> - <priority>-1</priority> - <schedulingClockID>ParameterChangeEvent</schedulingClockID> - </rootTaskHierarchyElements> - </clockDomain> - </clocks> - <executionSpec>Undetermined</executionSpec> - <hasUnknownEdges>true</hasUnknownEdges> - <taskDependencyGraph type="sto.SerializedTaskConnectionList" uuid="a897cd9d-ec2b-481d-a64b-ee9ca397cb30"> - <serializedConnectionProperties type="sto.SerializedConnectionProperties" uuid="7f29e558-f94e-48a6-b010-daa3484ef415"> - <expectedExecOrder>TargetFirst</expectedExecOrder> - <targetTaskIdentifier>_task0</targetTaskIdentifier> - </serializedConnectionProperties> - <taskIdentifier>_task1</taskIdentifier> - </taskDependencyGraph> - <taskDependencyGraph type="sto.SerializedTaskConnectionList" uuid="22842f12-7e72-4e4b-aa0a-11857809797e"> - <serializedConnectionProperties type="sto.SerializedConnectionProperties" uuid="71d410a2-9b1c-44fc-b631-4db5cd682b42"> - <isInternal>true</isInternal> - <targetTaskIdentifier>_task1</targetTaskIdentifier> - </serializedConnectionProperties> - <taskIdentifier>_task0</taskIdentifier> - </taskDependencyGraph> - <taskDependencyGraph type="sto.SerializedTaskConnectionList" uuid="0d7e8445-3fbb-411c-a6b9-f04167909f9e"> - <clockIdentifier>ParameterChangeEvent</clockIdentifier> - <taskIdentifier>ModelWideParameterChangeEvent</taskIdentifier> - </taskDependencyGraph> - <taskPriorityDirection>HighNumberLast</taskPriorityDirection> - <taskingMode>ClassicMultiTasking</taskingMode> - <tasks type="sto.Task" uuid="6c441be1-5ed3-4c38-8935-0dbff979d484"/> - <tasks type="sto.Task" uuid="8275c235-c777-4037-b071-1743420bed82"/> - <tasks type="sto.Task" uuid="2abf7da9-8963-49a9-b472-b96d188bb4e2"/> - <timeAdvanceMode>FixedStep</timeAdvanceMode> - </sto.Registry> -</slexec_sto> - true - 0.001 - true - - - MdlrefDW_FCC_New_T - - - true - 0.001 - 2 - true - true - true - 2 - SOLVER_MODE_MULTITASKING - FixedStepDiscrete - SOLVER_TYPE_FIXEDSTEP - 2 - - 8 - 64 - 32 - 32 - 32 - 64 - 32 - 32 - 16 - 32 - 1 - true - true - 32 - - - - - - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 0 - 1 - 2 - - - - - true - true - true - true - - - FCC_New/RateTransition1 - FCC_New/RateTransition2 - FCC_New/RateTransition3 - - - - - - - - - - Actuator2_loop - true - FCC_New/ActuatorControl - -2 - ActuatorControl/Actuator_Control - FCC_New/ActuatorControl - Actuator2_loop - - 1 - 780.00048828125 - - - 1 - 914.00048828125 - - ActuatorControl/Actuator_Control/Actuator2_loop_caller - ActuatorControl - ActuatorControl - - ActuatorControl/Actuator_Control/Actuator2_loop_caller - - ({true}_0) - - - ActuatorControl/Actuator_Control/Actuaor2_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Act2_cmd - 1 - - - Act2_pos - - - Actuator2 - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Actuator3_loop - true - FCC_New/ActuatorControl - -2 - ActuatorControl/Actuator_Control - FCC_New/ActuatorControl - Actuator3_loop - - 1 - 809.00048828125 - - - 1 - 925.00048828125 - - ActuatorControl/Actuator_Control/Actuator3_loop_caller - ActuatorControl - ActuatorControl - - ActuatorControl/Actuator_Control/Actuator3_loop_caller - - ({true}_0) - - - ActuatorControl/Actuator_Control/Actuaor3_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Act3_cmd - 1 - - - Act3_pos - - - Actuator3 - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - AHRSLoopCtrl - true - FCC_New/AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl - Heli_inner_loop - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl - Heli_outer_loop - - -2 - AHRSControl/AHRS_Control - FCC_New/AHRSControl - AHRSLoopCtrl - - 14 - 327.0003662109375 - - - 14 - 329.0003662109375 - - - 14 - 354.000244140625 - - - 1 - 359.000244140625 - - - 14 - 372.000244140625 - - - 1 - 377.000244140625 - - - 14 - 390.000244140625 - - - 1 - 395.000244140625 - - - 14 - 429.000244140625 - - - 14 - 433.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl_caller - AHRSControl - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - O0 - 4 - - - Pilot_phi_cmd - 1 - - - Pilot_r_cmd - 2 - - - Pilot_theta_cmd - - - actuator_commands - 4 - - - voted_fb - 3 - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 5 - - Numeric - numerictype('double') - - - - 3 - - Numeric - numerictype('double') - - - -1 - - - - Heli_inner_loop - true - FCC_New/AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - pitch_feedback - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - roll_feedback - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - yaw_feedback - - -2 - AHRSControl/AHRS_Control/AHRSLoopCtrl - FCC_New/AHRSControl - Heli_inner_loop - - 14 - 329.0003662109375 - - - 14 - 354.000244140625 - - - 1 - 359.000244140625 - - - 14 - 372.000244140625 - - - 1 - 377.000244140625 - - - 14 - 390.000244140625 - - - 1 - 395.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop_caller - AHRSControl - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - O0 - 4 - - - actuator_commands - 4 - - - phi_cmd - 1 - - - r_cmd - 2 - - - theta_cmd - - - voted_fb - 3 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 3 - - Numeric - numerictype('double') - - - -1 - - - - Mid_Value - true - FCC_New/AHRSControl - -2 - AHRSControl/AHRS_Control/AHRS_voter - FCC_New/AHRSControl - Mid_Value - AHRSControl/AHRS_Control/AHRS_voter/Mid_Value_caller - AHRSControl - AHRSControl - - AHRSControl/AHRS_Control/AHRS_voter/Mid_Value_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRS_voter/Mid_Value - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - O0 - 3 - - - AHRS1 - - - AHRS2 - 1 - - - AHRS3 - 2 - - - Mid_Value - 3 - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - -1 - - - - Actuator1_loop - true - FCC_New/ActuatorControl - -2 - ActuatorControl/Actuator_Control - FCC_New/ActuatorControl - Actuator1_loop - - 1 - 751.00048828125 - - - 1 - 903.00048828125 - - ActuatorControl/Actuator_Control/Actuator1_loop_caller - ActuatorControl - ActuatorControl - - ActuatorControl/Actuator_Control/Actuator1_loop_caller - - ({true}_0) - - - ActuatorControl/Actuator_Control/Actuaor1_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Act1_cmd - 1 - - - Act1_pos - - - Actuator1 - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Filter - true - FCC_New/AHRSControl - -2 - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - FCC_New/AHRSControl - Filter - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback/Filter_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback/Filter_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback/Filter_caller - AHRSControl - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback/Filter_caller - - ({true}_0) - - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback/Filter_caller - - ({true}_0) - - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback/Filter_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Filter - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - O1 - 3 - - - FeedbackSum - 3 - - - Signal - - - filtered_Signal - 2 - - - prev_FeedbackSum - 1 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Pitch_loop - true - FCC_New/AHRSControl - -2 - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - FCC_New/AHRSControl - Pitch_loop - - 1 - 438.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop_caller - AHRSControl - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Pilot_theta_cmd - - - theta - 1 - - - theta_cmd - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - pitch_feedback - true - FCC_New/AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback/Filter_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - Filter - - -2 - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - FCC_New/AHRSControl - pitch_feedback - - 1 - 359.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback_caller - AHRSControl - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - ds - 2 - - - theta_cmd - - - voted_fb - 1 - - - 1 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Roll_loop - true - FCC_New/AHRSControl - -2 - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - FCC_New/AHRSControl - Roll_loop - - 1 - 461.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop_caller - AHRSControl - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Pilot_phi_cmd - - - phi - 1 - - - phi_cmd - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Yaw_loop - true - FCC_New/AHRSControl - -2 - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - FCC_New/AHRSControl - Yaw_loop - - 1 - 494.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop_caller - AHRSControl - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Pilot_r_cmd - - - r - 1 - - - r_cmd - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - yaw_feedback - true - FCC_New/AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback/Filter_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - Filter - - -2 - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - FCC_New/AHRSControl - yaw_feedback - - 1 - 395.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback_caller - AHRSControl - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - dT - 2 - - - r_cmd - - - voted_fb - 1 - - - 1 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - roll_feedback - true - FCC_New/AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback/Filter_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - Filter - - -2 - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - FCC_New/AHRSControl - roll_feedback - - 1 - 377.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback_caller - AHRSControl - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - dc - 2 - - - phi_cmd - - - voted_fb - 1 - - - 1 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Single_Value - true - FCC_New/AHRSControl - -2 - AHRSControl/AHRS_Control/AHRS_voter - FCC_New/AHRSControl - Single_Value - AHRSControl/AHRS_Control/AHRS_voter/Single_Value_caller - AHRSControl - AHRSControl - - AHRSControl/AHRS_Control/AHRS_voter/Single_Value_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRS_voter/Single_Value - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - I4 - 4 - - - I5 - 5 - - - O0 - 6 - - - AHRS1 - - - AHRS1_Valid - 3 - - - AHRS2 - 1 - - - AHRS2_Valid - 4 - - - AHRS3 - 2 - - - AHRS3_Valid - 5 - - - Single_Value - 6 - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('boolean') - - - - 1 - - Numeric - numerictype('boolean') - - - - 1 - - Numeric - numerictype('boolean') - - - - 5 - - Numeric - numerictype('double') - - - -1 - - - - Heli_outer_loop - true - FCC_New/AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - Pitch_loop - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - Roll_loop - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - Yaw_loop - - -2 - AHRSControl/AHRS_Control/AHRSLoopCtrl - FCC_New/AHRSControl - Heli_outer_loop - - 14 - 433.000244140625 - - - 1 - 438.000244140625 - - - 14 - 456.000244140625 - - - 1 - 461.000244140625 - - - 14 - 489.000244140625 - - - 1 - 494.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop_caller - AHRSControl - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - O0 - 4 - - - O1 - 5 - - - O2 - 6 - - - Pilot_phi_cmd - 1 - - - Pilot_r_cmd - 2 - - - Pilot_theta_cmd - - - phi_cmd - 5 - - - r_cmd - 6 - - - theta_cmd - 4 - - - voted_fb - 3 - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Avg_Value - true - FCC_New/AHRSControl - -2 - AHRSControl/AHRS_Control/AHRS_voter - FCC_New/AHRSControl - Avg_Value - AHRSControl/AHRS_Control/AHRS_voter/Avg_Value_caller - AHRSControl - AHRSControl - - AHRSControl/AHRS_Control/AHRS_voter/Avg_Value_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRS_voter/Avg_Value - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - I4 - 4 - - - I5 - 5 - - - O0 - 6 - - - AHRS1 - - - AHRS1_Valid - 3 - - - AHRS2 - 1 - - - AHRS2_Valid - 4 - - - AHRS3 - 2 - - - AHRS3_Valid - 5 - - - Avg_Value - 6 - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('boolean') - - - - 1 - - Numeric - numerictype('boolean') - - - - 1 - - Numeric - numerictype('boolean') - - - - 5 - - Numeric - numerictype('double') - - - -1 - - - - Actuator_Control - true - FCC_New/ActuatorControl_caller - - ActuatorControl/Actuator_Control/Actuator1_loop_caller - ActuatorControl/Actuator_Control - Actuator1_loop - - - ActuatorControl/Actuator_Control/Actuator2_loop_caller - ActuatorControl/Actuator_Control - Actuator2_loop - - - ActuatorControl/Actuator_Control/Actuator3_loop_caller - ActuatorControl/Actuator_Control - Actuator3_loop - - - 0.001 - - 0 - ActuatorControl - FCC_New/ActuatorControl - Actuator_Control - - 14 - 743.00048828125 - - - 1 - 751.00048828125 - - - 14 - 772.00048828125 - - - 1 - 780.00048828125 - - - 14 - 801.00048828125 - - - 1 - 809.00048828125 - - - 1 - 903.00048828125 - - - 1 - 914.00048828125 - - - 1 - 925.00048828125 - - FCC_New/ActuatorControl_caller - ActuatorControl - ActuatorControl - - FCC_New/ActuatorControl_caller - - ({true}_0) - - - ActuatorControl/Actuator_Control - - ({true}_0) - - Scoped Export - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - I4 - 4 - - - I5 - 5 - - - O0 - 6 - - - O1 - 7 - - - O2 - 8 - - - Act1_cmd - 1 - - - Act1_pos - - - Act2_cmd - 3 - - - Act2_pos - 2 - - - Act3_cmd - 5 - - - Act3_pos - 4 - - - Actuator1 - 6 - - - Actuator2 - 7 - - - Actuator3 - 8 - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - -1 - - - - AHRS_voter - true - FCC_New/AHRSControl - - AHRSControl/AHRS_Control/AHRS_voter/Avg_Value_caller - AHRSControl/AHRS_Control/AHRS_voter - Avg_Value - - - AHRSControl/AHRS_Control/AHRS_voter/Mid_Value_caller - AHRSControl/AHRS_Control/AHRS_voter - Mid_Value - - - AHRSControl/AHRS_Control/AHRS_voter/Single_Value_caller - AHRSControl/AHRS_Control/AHRS_voter - Single_Value - - -2 - AHRSControl/AHRS_Control - FCC_New/AHRSControl - AHRS_voter - - 14 - 561.00048828125 - - - 14 - 598.00048828125 - - - 14 - 628.00048828125 - - AHRSControl/AHRS_Control/AHRS_voter_caller - AHRSControl - AHRSControl - - AHRSControl/AHRS_Control/AHRS_voter_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRS_voter - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - O0 - 3 - - - AHRS1 - - - AHRS2 - 1 - - - AHRS3 - 2 - - - voted_fb - 3 - - - 1 - - Bus - AHRS_Bus - - - - 1 - - Bus - AHRS_Bus - - - - 1 - - Bus - AHRS_Bus - - - - 5 - - Numeric - numerictype('double') - - - -1 - - - - AHRSControl_AHRS_Control - true - FCC_New/AHRSControl_caller - - AHRSControl/AHRS_Control/AHRSLoopCtrl_caller - AHRSControl/AHRS_Control - AHRSLoopCtrl - - - AHRSControl/AHRS_Control/AHRS_voter_caller - AHRSControl/AHRS_Control - AHRS_voter - - - 0.01 - - 1 - AHRSControl - FCC_New/AHRSControl - AHRS_Control - - 14 - 325.0003662109375 - - - 14 - 327.0003662109375 - - - 14 - 329.0003662109375 - - - 14 - 354.000244140625 - - - 1 - 359.000244140625 - - - 14 - 372.000244140625 - - - 1 - 377.000244140625 - - - 14 - 390.000244140625 - - - 1 - 395.000244140625 - - - 14 - 429.000244140625 - - FCC_New/AHRSControl_caller - AHRSControl - AHRSControl - - FCC_New/AHRSControl_caller - - ({true}_0) - - - AHRSControl/AHRS_Control - - ({true}_0) - - Scoped Export - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - I4 - 4 - - - I5 - 5 - - - O0 - 6 - - - AHRS1 - 3 - - - AHRS2 - 4 - - - AHRS3 - 5 - - - Pilot_phi_cmd - 1 - - - Pilot_r_cmd - 2 - - - Pilot_theta_cmd - - - actuator_commands - 6 - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Bus - AHRS_Bus - - - - 1 - - Bus - AHRS_Bus - - - - 1 - - Bus - AHRS_Bus - - - - 3 - - Numeric - numerictype('double') - - - -1 - - - - - true - - - - - - sltpEvents - - - sltpTaskGroups - - - - - - D1 - - - _task0 - - - - D2 - - - _task1 - - - sltpTasks - - - - - \ No newline at end of file diff --git a/src/validation/slprj/ert/FCC_New/tmwinternal/binfo_mdlref.mat b/src/validation/slprj/ert/FCC_New/tmwinternal/binfo_mdlref.mat deleted file mode 100644 index f02bf9195a877a0f0b9e389afb39461e1672fb91..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/tmwinternal/binfo_mdlref.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/tmwinternal/minfo_mdlref.mat b/src/validation/slprj/ert/FCC_New/tmwinternal/minfo_mdlref.mat deleted file mode 100644 index e793c716b17fa60ac3f16decf20b0ee6f34a070a..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/tmwinternal/minfo_mdlref.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_New/tmwinternal/simulink_cache.xml b/src/validation/slprj/ert/FCC_New/tmwinternal/simulink_cache.xml deleted file mode 100644 index 5661dc8fa0b6279e8504b88cad159005f2b8540c..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_New/tmwinternal/simulink_cache.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - D4vwil7DnZOwF+buM4NeIg== - - \ No newline at end of file diff --git a/src/validation/slprj/ert/FCC_New/tmwinternal/tr b/src/validation/slprj/ert/FCC_New/tmwinternal/tr deleted file mode 100644 index 3e9e5ba721526fca8aa13d86208e601dcc1ea62f..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_New/tmwinternal/tr and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/CompileInfo.xml b/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/CompileInfo.xml deleted file mode 100644 index e97f0b0db7122570e5b6854bf927b7421cab96d0..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/CompileInfo.xml +++ /dev/null @@ -1,2469 +0,0 @@ - - - - 323 - - true - AHRSControl - FCC_Sys_New_harness:FCC_New:AHRSControl - - - true - ActuatorControl - FCC_Sys_New_harness:FCC_New:ActuatorControl - - - true - FCC_New - FCC_Sys_New_harness:FCC_New - - - true - FCC_Sys_New_harness - FCC_Sys_New_harness - - HeliSystemDD_New.sldd - HeliSystemDD_New.sldd - HeliSystemDD_New.sldd - AAFJTQAAAAAOAAAAOAAAAAYAAAAIAAAAAgAAAAAAAAAFAAAACAAAAAAAAAABAAAAAQAAAAAAAAAFAAQAAQAAAAEAAAAAAAAA - {"Inports":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","Outports":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","LocalParameters":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","ParameterArguments":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","GlobalParameters":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","SharedLocalDataStores":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","GlobalDataStores":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","InternalData":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","Constants":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","DataTransfers":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","ModelData":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","InitializeTerminate":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","Execution":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}","SharedUtility":"{\"Name\":\"Default\",\"Checksum\":\"Default\",\"PerInstancePropertiesChecksum\":\"\",\"MemorySectionName\":\"None\",\"MemorySectionChecksum\":\"None\"}"} - #AHRS_Bus#HeliSystemDD_New.sldd# - true - true - true - true - true - true - true - true - true - false - false - false - 6 - -1 - true - 12 - 12 - false - false - false - - - - - true - inf - -inf - - true - Cont - 0.001 - 40 - 1 - - - - - - true - inf - -inf - 1 - - true - Cont - 0.001 - 40 - 1 - - - - - - true - inf - -inf - 2 - - true - Cont - 0.001 - 40 - 1 - - - - - true - - true - true - 0 - 40 - 0 - - - true - Cont - 0.001 - 40 - 1 - - - true - D2 - 0.01 - 41 - 2 - - 2 - <?xml version="1.0"?> -<slexec_sto version="1.1" packageUris="http://schema.mathworks.com/mf0/slexec_mm_sto/R2019b_201902271317"> - <sto.Registry type="sto.Registry" uuid="7af9ec31-8d00-46b9-a406-18dad56ce986"> - <clocks type="sto.Timer" uuid="fb3e8fe5-e08a-4590-8ded-a9a560b9c023"> - <needsToProvideTimeDuringExecution>true</needsToProvideTimeDuringExecution> - <clockTickConstraint>PeriodicWithFixedResolution</clockTickConstraint> - <resolution>0.001</resolution> - <specifiedTaskingMode>ClassicMultiTasking</specifiedTaskingMode> - <timeAdvanceMode>FixedStep</timeAdvanceMode> - <clockDomain type="sto.ClockDomain" uuid="c2faa222-832a-4daa-869c-2677bd208c85"> - <baseTaskID>_task0</baseTaskID> - <computedFundamentalStepSize>0.001</computedFundamentalStepSize> - <rates type="sto.Rate" uuid="96902433-73bc-4e9c-a979-548d745d5b63"/> - <rates type="sto.Rate" uuid="e3a78f62-6bee-4b17-89e2-b8498d78adf7"/> - <rates type="sto.Rate" uuid="73a139b3-af98-44a4-9115-4b2e54e7dbbd"/> - <rates type="sto.Rate" uuid="2ab92d2b-4c8c-489f-9a01-055f563a1eb6"/> - <rootTaskHierarchyElements type="sto.Task" uuid="6829ce4b-0f65-4115-a08e-554a176936f0"> - <isExecutable>true</isExecutable> - <orderIndex>1</orderIndex> - <rates type="sto.Rate" uuid="96902433-73bc-4e9c-a979-548d745d5b63"> - <annotation>Cont</annotation> - <description>Continuous</description> - <eventSourceType>UNSPECIFIED_EVENT_SOURCE</eventSourceType> - <registry type="sto.Registry" uuid="7af9ec31-8d00-46b9-a406-18dad56ce986"/> - <taskId>_task0</taskId> - <rateSpec type="sto.RateSpec" uuid="78ec9805-33a8-4e91-b269-2f95157083e0"/> - </rates> - <rates type="sto.Rate" uuid="e3a78f62-6bee-4b17-89e2-b8498d78adf7"> - <annotation>FiM</annotation> - <colorIndex>8</colorIndex> - <description>Fixed in Minor Step</description> - <eventSourceType>UNSPECIFIED_EVENT_SOURCE</eventSourceType> - <rateIDX>-1</rateIDX> - <registry type="sto.Registry" uuid="7af9ec31-8d00-46b9-a406-18dad56ce986"/> - <taskId>_task0</taskId> - <useForExecution>NotForExecution</useForExecution> - <rateSpec type="sto.RateSpec" uuid="388681f7-719f-4cb1-b44c-92348395594b"> - <offset>1</offset> - <rateType>ZOHContinuous</rateType> - </rateSpec> - </rates> - <rates type="sto.Rate" uuid="73a139b3-af98-44a4-9115-4b2e54e7dbbd"> - <annotation>D1</annotation> - <colorIndex>2</colorIndex> - <description>Discrete 1</description> - <eventSourceType>UNSPECIFIED_EVENT_SOURCE</eventSourceType> - <rateIDX>1</rateIDX> - <registry type="sto.Registry" uuid="7af9ec31-8d00-46b9-a406-18dad56ce986"/> - <taskId>_task0</taskId> - <rateSpec type="sto.RateSpec" uuid="239d6752-8b6a-408e-bf9a-e479d721490b"> - <period>0.001</period> - <rateType>ClassicPeriodicDiscrete</rateType> - </rateSpec> - </rates> - <elementType>Task</elementType> - <identifier>_task0</identifier> - <priority>40</priority> - </rootTaskHierarchyElements> - <rootTaskHierarchyElements type="sto.Task" uuid="3bf10435-f464-4c6a-a578-4e846b47a564"> - <isExecutable>true</isExecutable> - <orderIndex>2</orderIndex> - <rates type="sto.Rate" uuid="2ab92d2b-4c8c-489f-9a01-055f563a1eb6"> - <annotation>D2</annotation> - <colorIndex>3</colorIndex> - <description>Discrete 2</description> - <eventSourceType>UNSPECIFIED_EVENT_SOURCE</eventSourceType> - <rateIDX>2</rateIDX> - <registry type="sto.Registry" uuid="7af9ec31-8d00-46b9-a406-18dad56ce986"/> - <taskId>_task1</taskId> - <rateSpec type="sto.RateSpec" uuid="8f49352e-04e3-4e14-95e9-5fd21504ef5c"> - <period>0.01</period> - <rateType>ClassicPeriodicDiscrete</rateType> - </rateSpec> - </rates> - <tNum>1</tNum> - <elementType>Task</elementType> - <identifier>_task1</identifier> - <priority>41</priority> - </rootTaskHierarchyElements> - </clockDomain> - </clocks> - <clocks type="sto.Event" uuid="1280edcc-54cc-4431-a068-97fc2df019c2"> - <eventType>PARAMETER_CHANGE_EVENT</eventType> - <cNum>1</cNum> - <clockType>Event</clockType> - <identifier>ParameterChangeEvent</identifier> - <resolution>-1</resolution> - <specifiedTaskingMode>ExplicitTasking</specifiedTaskingMode> - <timeAdvanceMode>None</timeAdvanceMode> - <clockDomain type="sto.ClockDomain" uuid="bf172d10-1701-438d-9538-b52d773da52d"> - <computedFundamentalStepSize>-1</computedFundamentalStepSize> - <rates type="sto.Rate" uuid="72226f32-4bbb-4903-98db-3f9a6141aa6e"/> - <rootTaskHierarchyElements type="sto.Task" uuid="a6854e0f-71bd-4fcd-95c6-bcf3cc601faf"> - <isExplicit>true</isExplicit> - <rates type="sto.Rate" uuid="72226f32-4bbb-4903-98db-3f9a6141aa6e"> - <eventSourceType>PARAMETER_CHANGE_EVENT</eventSourceType> - <rateIDX>-1</rateIDX> - <registry type="sto.Registry" uuid="7af9ec31-8d00-46b9-a406-18dad56ce986"/> - <stringID>ParameterChangeEvent</stringID> - <taskId>ModelWideParameterChangeEvent</taskId> - <useForExecution>NotForExecution</useForExecution> - <rateSpec type="sto.RateSpec" uuid="a49ae545-7bd0-4d50-b892-2810db3d7a6c"> - <period>inf</period> - <rateType>ModelWideParameterChangeEvent</rateType> - </rateSpec> - </rates> - <tNum>2</tNum> - <elementType>Task</elementType> - <identifier>ModelWideParameterChangeEvent</identifier> - <priority>-1</priority> - <schedulingClockID>ParameterChangeEvent</schedulingClockID> - </rootTaskHierarchyElements> - </clockDomain> - </clocks> - <executionSpec>Undetermined</executionSpec> - <hasUnknownEdges>true</hasUnknownEdges> - <taskDependencyGraph type="sto.SerializedTaskConnectionList" uuid="f2105fca-fc1c-4f00-875f-d1a9fdbc0b5f"> - <serializedConnectionProperties type="sto.SerializedConnectionProperties" uuid="83ef5f41-b783-479f-83ae-bf05f57a9e0e"> - <expectedExecOrder>Unknown</expectedExecOrder> - <targetTaskIdentifier>_task0</targetTaskIdentifier> - </serializedConnectionProperties> - <taskIdentifier>_task1</taskIdentifier> - </taskDependencyGraph> - <taskDependencyGraph type="sto.SerializedTaskConnectionList" uuid="8c3bcf0e-05b1-43d1-a4d3-1cbf6481d5cf"> - <serializedConnectionProperties type="sto.SerializedConnectionProperties" uuid="4bedf1b0-3a5f-4e3c-8894-fb8bc1d7c9c0"> - <expectedExecOrder>SourceFirst</expectedExecOrder> - <targetTaskIdentifier>_task1</targetTaskIdentifier> - </serializedConnectionProperties> - <taskIdentifier>_task0</taskIdentifier> - </taskDependencyGraph> - <taskDependencyGraph type="sto.SerializedTaskConnectionList" uuid="55cf1a6c-8956-4e88-8e74-a68db7623e22"> - <clockIdentifier>ParameterChangeEvent</clockIdentifier> - <taskIdentifier>ModelWideParameterChangeEvent</taskIdentifier> - </taskDependencyGraph> - <taskPriorityDirection>HighNumberLast</taskPriorityDirection> - <taskingMode>ClassicMultiTasking</taskingMode> - <tasks type="sto.Task" uuid="6829ce4b-0f65-4115-a08e-554a176936f0"/> - <tasks type="sto.Task" uuid="3bf10435-f464-4c6a-a578-4e846b47a564"/> - <tasks type="sto.Task" uuid="a6854e0f-71bd-4fcd-95c6-bcf3cc601faf"/> - <timeAdvanceMode>FixedStep</timeAdvanceMode> - </sto.Registry> -</slexec_sto> - true - - - - true - 0.001 - 2 - true - true - true - 2 - SOLVER_MODE_MULTITASKING - FixedStepDiscrete - SOLVER_TYPE_FIXEDSTEP - 2 - - 8 - 64 - 32 - 32 - 32 - 64 - 32 - 32 - 16 - 32 - 1 - true - true - 32 - - - - - - 0 - 1 - 2 - - - - - true - true - true - - - FCC_Sys_New_harness/Size-Type/Sync1 - FCC_Sys_New_harness/Size-Type/Sync10 - FCC_Sys_New_harness/Size-Type/Sync11 - FCC_Sys_New_harness/Size-Type/Sync12 - FCC_Sys_New_harness/Size-Type/Sync13 - FCC_Sys_New_harness/Size-Type/Sync14 - FCC_Sys_New_harness/Size-Type/Sync15 - FCC_Sys_New_harness/Size-Type/Sync16 - FCC_Sys_New_harness/Size-Type/Sync17 - FCC_Sys_New_harness/Size-Type/Sync18 - - - - - - - - - - AHRS_voter - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - - AHRSControl/AHRS_Control/AHRS_voter/Avg_Value_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRS_voter - Avg_Value - - - AHRSControl/AHRS_Control/AHRS_voter/Mid_Value_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRS_voter - Mid_Value - - - AHRSControl/AHRS_Control/AHRS_voter/Single_Value_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRS_voter - Single_Value - - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - AHRS_voter - - 14 - 561.00048828125 - - - 14 - 598.00048828125 - - - 14 - 628.00048828125 - - AHRSControl/AHRS_Control/AHRS_voter_caller - FCC_New/AHRSControl - FCC_New - AHRSControl - - AHRSControl/AHRS_Control/AHRS_voter_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRS_voter - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - O0 - 3 - - - AHRS1 - - - AHRS2 - 1 - - - AHRS3 - 2 - - - voted_fb - 3 - - - 1 - - Bus - AHRS_Bus - - - - 1 - - Bus - AHRS_Bus - - - - 1 - - Bus - AHRS_Bus - - - - 5 - - Numeric - numerictype('double') - - - -1 - - - - Actuator_Control - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - - ActuatorControl/Actuator_Control/Actuator1_loop_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/ActuatorControl/Actuator_Control - Actuator1_loop - - - ActuatorControl/Actuator_Control/Actuator2_loop_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/ActuatorControl/Actuator_Control - Actuator2_loop - - - ActuatorControl/Actuator_Control/Actuator3_loop_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/ActuatorControl/Actuator_Control - Actuator3_loop - - - 0.001 - - 1 - Test Unit (copied from FCC_Sys_New)/FCC_New/ActuatorControl - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - Actuator_Control - - 14 - 743.00048828125 - - - 1 - 751.00048828125 - - - 14 - 772.00048828125 - - - 1 - 780.00048828125 - - - 14 - 801.00048828125 - - - 1 - 809.00048828125 - - - 1 - 903.00048828125 - - - 1 - 914.00048828125 - - - 1 - 925.00048828125 - - FCC_New/ActuatorControl_caller - FCC_New - ActuatorControl - - FCC_New/ActuatorControl_caller - - ({true}_0) - - - ActuatorControl/Actuator_Control - - ({true}_0) - - Scoped Export - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - I4 - 4 - - - I5 - 5 - - - O0 - 6 - - - O1 - 7 - - - O2 - 8 - - - Act1_cmd - 1 - - - Act1_pos - - - Act2_cmd - 3 - - - Act2_pos - 2 - - - Act3_cmd - 5 - - - Act3_pos - 4 - - - Actuator1 - 6 - - - Actuator2 - 7 - - - Actuator3 - 8 - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - -1 - - - - Avg_Value - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRS_voter - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - Avg_Value - AHRSControl/AHRS_Control/AHRS_voter/Avg_Value_caller - FCC_New/AHRSControl - FCC_New - AHRSControl - - AHRSControl/AHRS_Control/AHRS_voter/Avg_Value_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRS_voter/Avg_Value - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - I4 - 4 - - - I5 - 5 - - - O0 - 6 - - - AHRS1 - - - AHRS1_Valid - 3 - - - AHRS2 - 1 - - - AHRS2_Valid - 4 - - - AHRS3 - 2 - - - AHRS3_Valid - 5 - - - Avg_Value - 6 - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('boolean') - - - - 1 - - Numeric - numerictype('boolean') - - - - 1 - - Numeric - numerictype('boolean') - - - - 5 - - Numeric - numerictype('double') - - - -1 - - - - Heli_outer_loop - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - Pitch_loop - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - Roll_loop - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - Yaw_loop - - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - Heli_outer_loop - - 14 - 433.000244140625 - - - 1 - 438.000244140625 - - - 14 - 456.000244140625 - - - 1 - 461.000244140625 - - - 14 - 489.000244140625 - - - 1 - 494.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop_caller - FCC_New/AHRSControl - FCC_New - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - O0 - 4 - - - O1 - 5 - - - O2 - 6 - - - Pilot_phi_cmd - 1 - - - Pilot_r_cmd - 2 - - - Pilot_theta_cmd - - - phi_cmd - 5 - - - r_cmd - 6 - - - theta_cmd - 4 - - - voted_fb - 3 - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - roll_feedback - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback/Filter_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - Filter - - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - roll_feedback - - 1 - 377.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback_caller - FCC_New/AHRSControl - FCC_New - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - dc - 2 - - - phi_cmd - - - voted_fb - 1 - - - 1 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - AHRSControl_AHRS_Control - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - - AHRSControl/AHRS_Control/AHRSLoopCtrl_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control - AHRSLoopCtrl - - - AHRSControl/AHRS_Control/AHRS_voter_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control - AHRS_voter - - - 0.01 - - 2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - AHRS_Control - - 14 - 325.0003662109375 - - - 14 - 327.0003662109375 - - - 14 - 329.0003662109375 - - - 14 - 354.000244140625 - - - 1 - 359.000244140625 - - - 14 - 372.000244140625 - - - 1 - 377.000244140625 - - - 14 - 390.000244140625 - - - 1 - 395.000244140625 - - - 14 - 429.000244140625 - - FCC_New/AHRSControl_caller - FCC_New - AHRSControl - - FCC_New/AHRSControl_caller - - ({true}_0) - - - AHRSControl/AHRS_Control - - ({true}_0) - - Scoped Export - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - I4 - 4 - - - I5 - 5 - - - O0 - 6 - - - AHRS1 - 3 - - - AHRS2 - 4 - - - AHRS3 - 5 - - - Pilot_phi_cmd - 1 - - - Pilot_r_cmd - 2 - - - Pilot_theta_cmd - - - actuator_commands - 6 - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Bus - AHRS_Bus - - - - 1 - - Bus - AHRS_Bus - - - - 1 - - Bus - AHRS_Bus - - - - 3 - - Numeric - numerictype('double') - - - -1 - - - - Yaw_loop - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - Yaw_loop - - 1 - 494.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop_caller - FCC_New/AHRSControl - FCC_New - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Pilot_r_cmd - - - r - 1 - - - r_cmd - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Single_Value - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRS_voter - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - Single_Value - AHRSControl/AHRS_Control/AHRS_voter/Single_Value_caller - FCC_New/AHRSControl - FCC_New - AHRSControl - - AHRSControl/AHRS_Control/AHRS_voter/Single_Value_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRS_voter/Single_Value - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - I4 - 4 - - - I5 - 5 - - - O0 - 6 - - - AHRS1 - - - AHRS1_Valid - 3 - - - AHRS2 - 1 - - - AHRS2_Valid - 4 - - - AHRS3 - 2 - - - AHRS3_Valid - 5 - - - Single_Value - 6 - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('boolean') - - - - 1 - - Numeric - numerictype('boolean') - - - - 1 - - Numeric - numerictype('boolean') - - - - 5 - - Numeric - numerictype('double') - - - -1 - - - - Roll_loop - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - Roll_loop - - 1 - 461.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop_caller - FCC_New/AHRSControl - FCC_New - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Pilot_phi_cmd - - - phi - 1 - - - phi_cmd - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Filter - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - Filter - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback/Filter_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback/Filter_caller - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback/Filter_caller - FCC_New/AHRSControl - FCC_New - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback/Filter_caller - - ({true}_0) - - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback/Filter_caller - - ({true}_0) - - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback/Filter_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Filter - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - O1 - 3 - - - FeedbackSum - 3 - - - Signal - - - filtered_Signal - 2 - - - prev_FeedbackSum - 1 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - yaw_feedback - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback/Filter_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - Filter - - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - yaw_feedback - - 1 - 395.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback_caller - FCC_New/AHRSControl - FCC_New - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - dT - 2 - - - r_cmd - - - voted_fb - 1 - - - 1 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Actuator1_loop - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/ActuatorControl/Actuator_Control - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - Actuator1_loop - - 1 - 751.00048828125 - - - 1 - 903.00048828125 - - ActuatorControl/Actuator_Control/Actuator1_loop_caller - FCC_New/ActuatorControl - FCC_New - ActuatorControl - - ActuatorControl/Actuator_Control/Actuator1_loop_caller - - ({true}_0) - - - ActuatorControl/Actuator_Control/Actuaor1_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Act1_cmd - 1 - - - Act1_pos - - - Actuator1 - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - pitch_feedback - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback/Filter_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - Filter - - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - pitch_feedback - - 1 - 359.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback_caller - FCC_New/AHRSControl - FCC_New - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - ds - 2 - - - theta_cmd - - - voted_fb - 1 - - - 1 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Mid_Value - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRS_voter - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - Mid_Value - AHRSControl/AHRS_Control/AHRS_voter/Mid_Value_caller - FCC_New/AHRSControl - FCC_New - AHRSControl - - AHRSControl/AHRS_Control/AHRS_voter/Mid_Value_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRS_voter/Mid_Value - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - O0 - 3 - - - AHRS1 - - - AHRS2 - 1 - - - AHRS3 - 2 - - - Mid_Value - 3 - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - -1 - - - - Heli_inner_loop - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - pitch_feedback - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - roll_feedback - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - yaw_feedback - - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - Heli_inner_loop - - 14 - 329.0003662109375 - - - 14 - 354.000244140625 - - - 1 - 359.000244140625 - - - 14 - 372.000244140625 - - - 1 - 377.000244140625 - - - 14 - 390.000244140625 - - - 1 - 395.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop_caller - FCC_New/AHRSControl - FCC_New - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - O0 - 4 - - - actuator_commands - 4 - - - phi_cmd - 1 - - - r_cmd - 2 - - - theta_cmd - - - voted_fb - 3 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 5 - - Numeric - numerictype('double') - - - - 3 - - Numeric - numerictype('double') - - - -1 - - - - AHRSLoopCtrl - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl - Heli_inner_loop - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop_caller - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl - Heli_outer_loop - - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - AHRSLoopCtrl - - 14 - 327.0003662109375 - - - 14 - 329.0003662109375 - - - 14 - 354.000244140625 - - - 1 - 359.000244140625 - - - 14 - 372.000244140625 - - - 1 - 377.000244140625 - - - 14 - 390.000244140625 - - - 1 - 395.000244140625 - - - 14 - 429.000244140625 - - - 14 - 433.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl_caller - FCC_New/AHRSControl - FCC_New - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - I2 - 2 - - - I3 - 3 - - - O0 - 4 - - - Pilot_phi_cmd - 1 - - - Pilot_r_cmd - 2 - - - Pilot_theta_cmd - - - actuator_commands - 4 - - - voted_fb - 3 - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 1 - - Numeric - numerictype(1,16,0) - - - - 5 - - Numeric - numerictype('double') - - - - 3 - - Numeric - numerictype('double') - - - -1 - - - - Actuator3_loop - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/ActuatorControl/Actuator_Control - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - Actuator3_loop - - 1 - 809.00048828125 - - - 1 - 925.00048828125 - - ActuatorControl/Actuator_Control/Actuator3_loop_caller - FCC_New/ActuatorControl - FCC_New - ActuatorControl - - ActuatorControl/Actuator_Control/Actuator3_loop_caller - - ({true}_0) - - - ActuatorControl/Actuator_Control/Actuaor3_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Act3_cmd - 1 - - - Act3_pos - - - Actuator3 - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Pitch_loop - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - Pitch_loop - - 1 - 438.000244140625 - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop_caller - FCC_New/AHRSControl - FCC_New - AHRSControl - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop_caller - - ({true}_0) - - - AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Pilot_theta_cmd - - - theta - 1 - - - theta_cmd - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - Actuator2_loop - true - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - -2 - Test Unit (copied from FCC_Sys_New)/FCC_New/ActuatorControl/Actuator_Control - FCC_Sys_New_harness/Test Unit (copied from FCC_Sys_New)/FCC_New - Actuator2_loop - - 1 - 780.00048828125 - - - 1 - 914.00048828125 - - ActuatorControl/Actuator_Control/Actuator2_loop_caller - FCC_New/ActuatorControl - FCC_New - ActuatorControl - - ActuatorControl/Actuator_Control/Actuator2_loop_caller - - ({true}_0) - - - ActuatorControl/Actuator_Control/Actuaor2_loop - - ({true}_0) - - Scoped Local - - - I0 - - - I1 - 1 - - - O0 - 2 - - - Act2_cmd - 1 - - - Act2_pos - - - Actuator2 - 2 - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - - 1 - - Numeric - numerictype('double') - - - -1 - - - - - true - - - - - - sltpEvents - - - sltpTaskGroups - - - - - - Cont - - - _task0 - - - - D2 - - - _task1 - - - sltpTasks - - - - - \ No newline at end of file diff --git a/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/binfo.mat b/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/binfo.mat deleted file mode 100644 index e75e1c2bcc1428f748c9e8f1a9b7e61bdbbe499c..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/binfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/minfo.mat b/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/minfo.mat deleted file mode 100644 index e175f6c553cb2d6bc5ea278bd0810726dffaf466..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/minfo.mat and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/scv b/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/scv deleted file mode 100644 index 9555a93c61446d2d1f1dac296cadb42e7323d24e..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/scv and /dev/null differ diff --git a/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/tr b/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/tr deleted file mode 100644 index 3be252309cc70ffcf1af19e72dfc7ef5a4ff58e9..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/FCC_Sys_New_harness/tmwinternal/tr and /dev/null differ diff --git a/src/validation/slprj/ert/_sharedutils/AHRSControl_AHRS_Control.h b/src/validation/slprj/ert/_sharedutils/AHRSControl_AHRS_Control.h deleted file mode 100644 index bd21151ea29628704f220dd3b704527fa34b6629..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/AHRSControl_AHRS_Control.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: AHRSControl_AHRS_Control.h - * - * Code generated for Simulink model 'AHRSControl'. - * - * Model version : 1.131 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:50:39 2020 - */ - -#ifndef RTW_HEADER_AHRSControl_AHRS_Control_ -#define RTW_HEADER_AHRSControl_AHRS_Control_ - -/* Shared type includes */ -#include "rtwtypes.h" -#include "AHRS_Bus.h" - -extern void AHRSControl_AHRS_Control(const int16_T rtu_Pilot_theta_cmd, const - int16_T rtu_Pilot_phi_cmd, const int16_T rtu_Pilot_r_cmd, const AHRS_Bus - *rtu_AHRS1, const AHRS_Bus *rtu_AHRS2, const AHRS_Bus *rtu_AHRS3, real_T - rty_actuator_commands[3]); - -#endif - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/slprj/ert/_sharedutils/AHRS_Bus.h b/src/validation/slprj/ert/_sharedutils/AHRS_Bus.h deleted file mode 100644 index a6b6099f48ac4d6cf7cf5eb855249ffe02ae6493..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/AHRS_Bus.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: AHRS_Bus.h - * - * Code generated for Simulink model 'FCC_Sys_New_harness'. - * - * Model version : 1.91 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:26 2020 - */ - -#ifndef RTW_HEADER_AHRS_Bus_h_ -#define RTW_HEADER_AHRS_Bus_h_ -#include "rtwtypes.h" - -typedef struct { - /* Pitch angle */ - real_T theta; - - /* Roll angle */ - real_T phi; - - /* Heading angle */ - real_T psi; - - /* Pitch rate */ - real_T q; - - /* Roll rate */ - real_T p; - - /* Yaw rate */ - real_T r; - boolean_T valid; -} AHRS_Bus; - -#endif /* RTW_HEADER_AHRS_Bus_h_ */ - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/slprj/ert/_sharedutils/Actuator_Control.h b/src/validation/slprj/ert/_sharedutils/Actuator_Control.h deleted file mode 100644 index b09b7e6787ea3df397044875650c322b1a01aecb..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/Actuator_Control.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: Actuator_Control.h - * - * Code generated for Simulink model 'ActuatorControl'. - * - * Model version : 1.72 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:02 2020 - */ - -#ifndef RTW_HEADER_Actuator_Control_ -#define RTW_HEADER_Actuator_Control_ - -/* Shared type includes */ -#include "rtwtypes.h" - -extern void Actuator_Control(const int16_T rtu_Act1_pos, const real_T - rtu_Act1_cmd, const int16_T rtu_Act2_pos, const real_T rtu_Act2_cmd, const - int16_T rtu_Act3_pos, const real_T rtu_Act3_cmd, int16_T *rty_Actuator1, - int16_T *rty_Actuator2, int16_T *rty_Actuator3); - -#endif - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/slprj/ert/_sharedutils/checksummap.mat b/src/validation/slprj/ert/_sharedutils/checksummap.mat deleted file mode 100644 index 2c38d39802c5198846acebf18de82b7fcb9e822d..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/_sharedutils/checksummap.mat and /dev/null differ diff --git a/src/validation/slprj/ert/_sharedutils/html/AHRSControl_AHRS_Control_h.html b/src/validation/slprj/ert/_sharedutils/html/AHRSControl_AHRS_Control_h.html deleted file mode 100644 index 44972fbe0f86fccb9ea943d6c3e8707bca7eadc8..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/html/AHRSControl_AHRS_Control_h.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * Academic License - for use in teaching, academic research, and meeting
    3 * course requirements at degree granting institutions only. Not for
    4 * government, commercial, or other organizational use.
    5 *
    6 * File: AHRSControl_AHRS_Control.h
    7 *
    8 * Code generated for Simulink model 'AHRSControl'.
    9 *
    10 * Model version : 1.131
    11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
    12 * C/C++ source code generated on : Thu Jul 16 18:50:39 2020
    13 */
    14
    15#ifndef RTW_HEADER_AHRSControl_AHRS_Control_
    16#define RTW_HEADER_AHRSControl_AHRS_Control_
    17
    18/* Shared type includes */
    19#include "rtwtypes.h"
    20#include "AHRS_Bus.h"
    21
    22extern void AHRSControl_AHRS_Control(const int16_T rtu_Pilot_theta_cmd, const
    23 int16_T rtu_Pilot_phi_cmd, const int16_T rtu_Pilot_r_cmd, const AHRS_Bus
    24 *rtu_AHRS1, const AHRS_Bus *rtu_AHRS2, const AHRS_Bus *rtu_AHRS3, real_T
    25 rty_actuator_commands[3]);
    26
    27#endif
    28
    29/*
    30 * File trailer for generated code.
    31 *
    32 * [EOF]
    33 */
    34
    -
    - - diff --git a/src/validation/slprj/ert/_sharedutils/html/AHRS_Bus_h.html b/src/validation/slprj/ert/_sharedutils/html/AHRS_Bus_h.html deleted file mode 100644 index f32541a2b8b98d1739442570c3a47618c9b8ad2a..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/html/AHRS_Bus_h.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * Academic License - for use in teaching, academic research, and meeting
    3 * course requirements at degree granting institutions only. Not for
    4 * government, commercial, or other organizational use.
    5 *
    6 * File: AHRS_Bus.h
    7 *
    8 * Code generated for Simulink model 'FCC_Sys_New_harness'.
    9 *
    10 * Model version : 1.91
    11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
    12 * C/C++ source code generated on : Thu Jul 16 18:51:26 2020
    13 */
    14
    15#ifndef RTW_HEADER_AHRS_Bus_h_
    16#define RTW_HEADER_AHRS_Bus_h_
    17#include "rtwtypes.h"
    18
    19typedef struct {
    20 /* Pitch angle */
    21 real_T theta;
    22
    23 /* Roll angle */
    24 real_T phi;
    25
    26 /* Heading angle */
    27 real_T psi;
    28
    29 /* Pitch rate */
    30 real_T q;
    31
    32 /* Roll rate */
    33 real_T p;
    34
    35 /* Yaw rate */
    36 real_T r;
    37 boolean_T valid;
    38} AHRS_Bus;
    39
    40#endif /* RTW_HEADER_AHRS_Bus_h_ */
    41
    42/*
    43 * File trailer for generated code.
    44 *
    45 * [EOF]
    46 */
    47
    -
    - - diff --git a/src/validation/slprj/ert/_sharedutils/html/Actuator_Control_h.html b/src/validation/slprj/ert/_sharedutils/html/Actuator_Control_h.html deleted file mode 100644 index 48f1f5878f5fe0f81bb20e779447c25847acb51c..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/html/Actuator_Control_h.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * Academic License - for use in teaching, academic research, and meeting
    3 * course requirements at degree granting institutions only. Not for
    4 * government, commercial, or other organizational use.
    5 *
    6 * File: Actuator_Control.h
    7 *
    8 * Code generated for Simulink model 'ActuatorControl'.
    9 *
    10 * Model version : 1.72
    11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
    12 * C/C++ source code generated on : Thu Jul 16 18:51:02 2020
    13 */
    14
    15#ifndef RTW_HEADER_Actuator_Control_
    16#define RTW_HEADER_Actuator_Control_
    17
    18/* Shared type includes */
    19#include "rtwtypes.h"
    20
    21extern void Actuator_Control(const int16_T rtu_Act1_pos, const real_T
    22 rtu_Act1_cmd, const int16_T rtu_Act2_pos, const real_T rtu_Act2_cmd, const
    23 int16_T rtu_Act3_pos, const real_T rtu_Act3_cmd, int16_T *rty_Actuator1,
    24 int16_T *rty_Actuator2, int16_T *rty_Actuator3);
    25
    26#endif
    27
    28/*
    29 * File trailer for generated code.
    30 *
    31 * [EOF]
    32 */
    33
    -
    - - diff --git a/src/validation/slprj/ert/_sharedutils/html/css/coder_app.css b/src/validation/slprj/ert/_sharedutils/html/css/coder_app.css deleted file mode 100644 index d47cf0edddb4a21ffda06a2cbf05275f7fa4747d..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/html/css/coder_app.css +++ /dev/null @@ -1,184 +0,0 @@ -/* Copyright 2013-2018 The MathWorks, Inc. */ -pre#code { - font-family: Consolas, Courier; - font-size: small; -} - -.ct { - font-style: italic; - color: #117755 -} /* comment */ -.pp { - font-weight:bold; - color: #992211 -} /* preprocessor */ -.kw, .br { - font-weight:bold; - color: #112266 -} /* keyword or brace */ -.dt { - font-weight:bold; - color: #112266 -} /* data type */ -.tk { - font-style: normal; - color: #112266 -} /* regular token */ -pre#code a.req { - text-decoration: none; - color: #112266 -} -pre#code a.req_active { - cursor: pointer; - text-decoration: underline; -} -pre#code a.req_active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} -pre#code a.blk { - text-decoration: none; -} -pre#code a.blk_active { - cursor: pointer; - text-decoration: underline; -} -pre#code a.blk_active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} -a.hilite { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); -} /* highlight token */ -tr.hilite { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); -} /* highlight row */ -a.hiliteToken, tr.hiliteToken, td.hiliteToken { - background-color: #ffff99; -} -.hiliteCurrentLine, tr.hiliteCurrentLine > td { - font-style: normal; - color: black; - background-color: rgba(150, 12, 116, 0.1); - box-shadow: inset 0 1px 0 0 rgba(150, 12, 116, 0.25), inset 0 -1px 0 0 rgba(150, 12, 116, 0.25); -} -span.hiliteTotalLine { - font-style: normal; - color: #aff; -} -a.tk { - text-decoration: none; -} -a.tk:hover { - text-decoration: none; -} -a.active { - text-decoration: underline; -} -a.active:hover { - cursor: pointer; - color: blue; - text-decoration: underline -} /* hyperlink */ -table.code { - border: 0px -} -table.code td { - vertical-align: top; -} -table.code td.highlightedCurrent { - background-color: rgba(150, 12, 116, 0.1); -} -table.code > tr:first { - text-align: right; -} /* hyperlink */ - -ul.popup_attrib_list { - list-style-type:none; - display: block; - margin: 0; - padding: 0; -} -ul.popup_attrib_list li { - list-style-type:none; - display: inline; - margin: 0 18px 0 0; - padding: 0; -} -.highlighted { - background-color:yellow; -} -a:class1 { - color: -webkit-link; - text-decoration: underline; - cursor: hand; -} -.scroll -{ - height:80px; - overflow:scroll; - overflow-x:hidden; -} -div#popup_window { - position: absolute; - background-color: rgb(203,203,255); - border: solid 3px #ECECEC; - border-radius: 5px; - /* shadow box around the window*/ - -moz-box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - -webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - box-shadow: 0 3px 3px rgba(0,0,0,0.4), inset 0 1px #FFF; - padding: 2px; -} -div#popup_window a { - text-decoration: none; - color: green; -} -div#popup_window a:hover { - cursor: pointer; - text-decoration: underline; - color: blue; -} -div#popup_window tr.selected { - background-color: #ffff99; -} -div#token_usage_nav { - border-bottom: 1px solid gray; -} -table#token_usage_details { - cellpadding: 100px; - table-layout:fixed; - border: 0px; -} -.token_usage_details_tabrow { - width: 40px; -} -table#token_usage_details td { - padding-right: 5em; - padding-left: 1em; -} -.token_usage_details_tabrow:hover { - background-color: gray; -} -.nav_table td.hidden { - display: none; -} -table#codeTbl tr td { - color: #112266 -} -table#codeTbl tr td { - padding-left: 10px; -} -table#codeTbl tr td:first-child { - font-style: italic; - color: #888888; - text-align: right; - padding-left:0px; -} - diff --git a/src/validation/slprj/ert/_sharedutils/html/inspect.html b/src/validation/slprj/ert/_sharedutils/html/inspect.html deleted file mode 100644 index b628c7a9b9bb6b35d1d71511d01fcff40959fe1b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/html/inspect.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - -
    - - diff --git a/src/validation/slprj/ert/_sharedutils/html/js/coder_app.js b/src/validation/slprj/ert/_sharedutils/html/js/coder_app.js deleted file mode 100644 index 3c34823e1b5445bb6421e4f73479ca3bc4f50299..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/html/js/coder_app.js +++ /dev/null @@ -1,525 +0,0 @@ -/* Copyright 2013-2018 The MathWorks, Inc. */ -function queryByClassName(className, elem) { - if (!elem) elem = document.body; - if (typeof elem.querySelectorAll === "function") { - return elem.querySelectorAll("."+className); - } else { - return elem.getElementsByClass(className); - } -} - -function nav_token_usage_details(direction) { - var els = queryByClassName("token_usage_details_tabrow"); - var selectedIdx = 0; - var selectedClassName = "selected"; - for (selectedIdx; selectedIdx < els.length; selectedIdx++) { - if (els[selectedIdx].classList.contains(selectedClassName)) { - break; - } - } - var nextIdx = selectedIdx; - if (direction === -1 && selectedIdx > 0) { - nextIdx = selectedIdx-1; - } else if (direction === 1 && selectedIdx < els.length - 1) { - nextIdx = selectedIdx + 1; - } - if (nextIdx !== selectedIdx) { - els[selectedIdx].classList.remove(selectedClassName); - els[nextIdx].classList.add(selectedClassName); - els[nextIdx].scrollIntoView(alignWithTop=false); - } - return false; -} - -function tabrowClicked(event) { -} - -function popupOnload() { - var els = queryByClassName("token_usage_details_tabrow"); - for (var i=0; i" + - top.rtwGetFileName(link2Src) + ""; - var bodyNode = document.body; - bodyNode.insertBefore(link, bodyNode.firstElementChild); - } - top.updateHyperlinks(); - // update fileSelector frame - if (top.fileSelector) { - var o = top.fileSelector.document.getElementById('fileSelector'); - if (o) { - o.value = filename; - } - } - // add links to line numbers - var hasLineFlag = null; - if (top.TraceInfoLineFlag && top.TraceInfoLineFlag.instance) { - hasLineFlag = true; - } else { - hasLineFlag = false; - } - - if(hasLineFlag) { - var lines = queryByClassName("ln", codeElement); - var lineTraceFlag = top.TraceInfoLineFlag.instance.lineTraceFlag; - var lineNo = null; - for (var i=0; i= 0; --i) { - var childNode = trNode.childNodes[i]; - if (childNode.tagName.toUpperCase() === "TD") { - return childNode.childNodes; - } - } - return null; -} - -// see g1225075 -function fixBoxStyleFnHeaderLineWidths() { - // Match strings like "/**********/" which is the top line of - // a box-style function comment header - var reBoxHeader = /\/\*+\//; - - // Match strings like "' */" which is the contents of the text - // element originally generated in the report to pad the width of - // the line. - var rePadding = /'\s*\*\//; - - // All block identifier elements in the report page - blkLineElts = queryByClassName("blk"); - for (var i = 0; i < blkLineElts.length; ++i) { - var origPadding = blkLineElts[i].nextSibling; - if (origPadding.textContent.match(rePadding)) { - var spanElt = findParent(blkLineElts[i], { tagName: "span", className: "ct" }); - if (!spanElt) { - continue; - } - - // The numbered line in the report containing block identifier "i" - var tableRowElt = findParent(spanElt, { tagName: "tr" }); - if (!tableRowElt) { - continue; - } - - // Loop backward through table rows (i.e., report lines) looking - // for the "/***************/" start of the header. When found save - // its pixel width. Not actually the width of the itself but - // the span inside its last . This is will determine the real - // padding that is needed for proper alignment regardless of font - // or CKJ characters. - var targetWidth = 0; - var sanity = Number.MAX_VALUE; - var node = tableRowElt.previousSibling; - while (node && (sanity-- > 0)) { - var lastCellContents = getLastTableCellContents(node); - if (lastCellContents) { - if (lastCellContents.length === 0) { - break; - } - if (lastCellContents[0].textContent.match(reBoxHeader)) { - targetWidth = lastCellContents[0].offsetWidth; - break; - } - } - node = node.previousSibling; - } - - // If applying a new padding (i.e., targetWidth > 0), replace - // the original padding "' */' (a single text element) with - // two text elements and a span in between. The span will be the - // new pixel-accurate padding. - if (targetWidth > 0) { - var singleQuoteNode = document.createTextNode("'"); - var spacerNode = document.createElement('span'); - origPadding.textContent = "*/"; - origPadding.parentNode.insertBefore(spacerNode, origPadding); - origPadding.parentNode.insertBefore(singleQuoteNode, spacerNode); - - var padWidth = targetWidth - spanElt.offsetWidth; - spacerNode.style.display = 'inline-block'; - spacerNode.style.width = String(padWidth) + "px"; - spacerNode.style.height = '1em'; // cursor won't work w/o some height - spacerNode.style.cursor = 'text'; - } - } - } -} - -// the onload function for source file -function srcFileOnload() { - var codeElement = document.getElementById("codeTbl"); - var insertFunction = getInsertFunction(codeElement); - try { - var els = codeElement.getElementsByTagName("tr"); - for (var i = 0; i < els.length; i++) { - registerDelayedOnMouseOver(els[i], lineOnMouseIn, lineOnMouseOut); - } - updateToken(codeElement); - } catch (err) {}; - insertFunction(); - // add code to model hyperlinks for all tokens - var filename = location.pathname.split(/\//); - filename = filename[filename.length-1]; - // highlight the filename in the TOC frame - if (top.rtwreport_contents_frame && top.hiliteByFileName(top.rtwreport_document_frame.document.location.href)) { - // remove the highlights in the TOC frame if filename is hilite successfully - top.removeHiliteTOC(top.rtwreport_contents_frame); - } - - // annotate code with code coverage data - if (typeof rtwannotate === 'function') { - rtwannotate(filename.replace(/.html$/,"_cov.xml")); - } - - fixBoxStyleFnHeaderLineWidths(); - - // highlight token and row - if (top.RTW_TraceInfo.instance && top.RTW_TraceArgs.instance) { - var i; - // find the highlight file name - var fileIdx = top.RTW_TraceArgs.instance.getFileIdx(filename); - var ids=[], rows=[]; - if (typeof fileIdx !== "undefined") { - ids = top.RTW_TraceArgs.instance.getIDs(fileIdx); - rows = top.RTW_TraceArgs.instance.getRows(fileIdx); - // highlight rows in file - for (i=0; i 0) - top.RTW_TraceInfo.instance.setInitLocation(filename,rows[0]); - else { - top.toggleNavSideBar("off"); - return; - } - } - - // display navigation side bar - if (top.rtwreport_nav_frame) top.rtwreport_nav_frame.location.reload(); - if (rows.length>0) { - top.toggleNavSideBar("on"); - top.toggleNavToolBar("on"); - } else { - top.toggleNavSideBar("off"); - } - } - top.scrollToLineBasedOnHash(document.location.hash); - function getHash() { - var loc; - var aHash=""; - var topDocObj = top.window.document; - // get the hash value from location. - loc = topDocObj.location; - loc = loc.search || loc.hash; - aHash = loc.substring(1); - aHash = decodeURI(aHash); - return aHash; - } -} - -function createPopup(filename, evt) { - var anchorObj = evt.currentTarget; - if (anchorObj.children.length > 0) - return; - var filename = location.pathname.split(/\//); - filename = filename[filename.length-1]; - var windowObj = top.getInspectWindow(); - var propObj = top.getInspectData(filename, anchorObj); - var navObj = top.getInspectLink(filename, location.pathname, anchorObj); - if (propObj) { - windowObj.appendChild(propObj); - windowObj.style.left = "0px"; - if (anchorObj.parentElement.nodeName === "TD" && - anchorObj.parentElement.parentElement.nodeName === "TR") { - anchorObj.parentElement.parentElement.lastChild.insertBefore(windowObj, - anchorObj.parentElement.parentElement.lastChild.lastChild.nextSibling); - var left = Math.min(evt.clientX , window.innerWidth - windowObj.scrollWidth - 30); - left = Math.max(0, left); - windowObj.style.left = "" + left + "px"; - } - } -}; - -function destroyPopup(anchorObj) { - var popWindow = document.getElementById("popup_window"); - if (popWindow) { - popWindow.parentElement.removeChild(popWindow); - } -}; diff --git a/src/validation/slprj/ert/_sharedutils/html/model_reference_types_h.html b/src/validation/slprj/ert/_sharedutils/html/model_reference_types_h.html deleted file mode 100644 index 0e48d9916478531746c8c8d5941c940ea252fefd..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/html/model_reference_types_h.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * Academic License - for use in teaching, academic research, and meeting
    3 * course requirements at degree granting institutions only. Not for
    4 * government, commercial, or other organizational use.
    5 *
    6 * File: model_reference_types.h
    7 *
    8 * Code generated for Simulink model 'FCC_New'.
    9 *
    10 * Model version : 1.98
    11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
    12 * C/C++ source code generated on : Thu Jul 16 18:51:15 2020
    13 */
    14
    15#ifndef MODEL_REFERENCE_TYPES_H
    16#define MODEL_REFERENCE_TYPES_H
    17#include "rtwtypes.h"
    18#ifndef MODEL_REFERENCE_TYPES
    19#define MODEL_REFERENCE_TYPES
    20
    21/*===========================================================================*
    22 * Model reference type definitions *
    23 *===========================================================================*/
    24/*
    25 * This structure is used by model reference to
    26 * communicate timing information through the hierarchy.
    27 */
    28typedef struct _rtTimingBridge_tag rtTimingBridge;
    29struct _rtTimingBridge_tag {
    30 uint32_T nTasks;
    31 uint32_T** clockTick;
    32 uint32_T** clockTickH;
    33 uint32_T* taskCounter;
    34 real_T** taskTime;
    35 boolean_T** rateTransition;
    36 boolean_T *firstInitCond;
    37};
    38
    39/*
    40 * This structure is used by model reference to
    41 * communicate variable discrete rate timing information through the hierarchy.
    42 */
    43typedef struct _rtCtrlRateMdlRefTiming_tag rtCtrlRateMdlRefTiming;
    44struct _rtCtrlRateMdlRefTiming_tag {
    45 uint32_T firstCtrlRateTID;
    46 uint32_T* numTicksToNextHitForCtrlRate;
    47};
    48
    49#endif /* MODEL_REFERENCE_TYPES */
    50#endif /* MODEL_REFERENCE_TYPES_H */
    51
    52/*
    53 * File trailer for generated code.
    54 *
    55 * [EOF]
    56 */
    57
    -
    - - diff --git a/src/validation/slprj/ert/_sharedutils/html/nav.html b/src/validation/slprj/ert/_sharedutils/html/nav.html deleted file mode 100644 index 64f68dbc1980c5d6eaedcb14230e0eff7a1e2ee2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/html/nav.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - diff --git a/src/validation/slprj/ert/_sharedutils/html/navToolbar.html b/src/validation/slprj/ert/_sharedutils/html/navToolbar.html deleted file mode 100644 index d07c72e0a8141cd7e044a11304c611d8c30999fc..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/html/navToolbar.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/validation/slprj/ert/_sharedutils/html/rtwreport.css b/src/validation/slprj/ert/_sharedutils/html/rtwreport.css deleted file mode 100644 index 54b994a6f2bac912ba0b2173a60c9788d7de7aa2..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/html/rtwreport.css +++ /dev/null @@ -1,257 +0,0 @@ -/* Copyright 2011-2016 The MathWorks, Inc. */ -body,p,table {font-family: calibri, verdana, sans-serif;} -button,.buton {font-family: calibri, verdana, sans-serif;} -button,.button {font-size: small;} -.small_font {font-size: small;} -h1 { font-weight: normal; color: #000066; } -td { vertical-align: top } -th { background-color: #eeeeee; text-align: left; } -a:link { color: #0033cc; } -a:visited { color: #666666; } -input { font-family: sans-serif, verdana, calibri; } -table { - background-color: #ffffff; - width: 100%; -} - -table.toc, table.button, table.panel { - border-style: none; -} - -/* LineNumber */ -.LN { - font-style: italic; - color: #888888; -} - -/* Comment */ -.CT { - font-style: italic; - color: #117755; -} - -/* PreProcessor */ -PP { - /* font-weight: bold; */ - color: #992211; -} - -/* Keyword */ -.KW { - /* font-weight: bold; */ - color: #0000FF; -} - -/* Datatype */ -.DT { - /* font-weight: bold; */ - color: #112266 -} - -.highlighted { - background-color: yellow; -} - -.highlightedCurrent { - background-color: rgba(150, 12, 116, 0.1); -} - -input.search { - background-color: #ffffff; -} - -input.failedSearch { - background-color: #F78181; -} - -/* ensure that code2model links are comment green */ -a.code2model:link { - color: #117755; - font-style: italic; -} -a.code2model:visited{ - color: #117755; - font-style: italic; -} - -.toc td, .button td, .panel td { - border-style: none; - padding: 4px; -} - -h1 { font-weight: normal; color: #000066; } -td { vertical-align: top } -th { background-color: #eeeeee; text-align: left; } -a:link { color: #0033cc; } -a:visited { color: #666666; } - -/******* table *******/ -/* default table style */ -table.AltRow { - border-collapse: collapse; border: none; border-spacing: 0pt; - border-top: solid #4F81BD 1.0pt; border-bottom: solid #4F81BD 1.0pt; -} -table.AltRow th, table.AltRow td { padding: 2pt 8pt 2pt 2pt } -/* default alternating row style */ -table.AltRow tr.even td { background-color:#D3DFEE; border:none;} -table.AltRow tr.odd td { background-color:#FFFFFF; border:none;} -/* tr class="heading" */ -table.AltRow tr.heading td, table.AltRow th { - background-color:#FFFFFF; font-weight:bold; border:none; - border-bottom: solid #4F81BD 1.0pt; -} -/* table class="FirstColumn" */ -table.FirstColumn td:first-child { font-weight:bold } -/* table class="TotalRow" */ -table.TotalRow tr:last-child { font-weight:bold } -table.TotalRow tr:last-child td { border-top: solid #4F81BD 1.0pt } - -a.closeButton { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) ); - background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9'); - background-color:#f9f9f9; - -webkit-border-top-left-radius:20px; - -moz-border-radius-topleft:20px; - border-top-left-radius:20px; - -webkit-border-top-right-radius:20px; - -moz-border-radius-topright:20px; - border-top-right-radius:20px; - -webkit-border-bottom-right-radius:20px; - -moz-border-radius-bottomright:20px; - border-bottom-right-radius:20px; - -webkit-border-bottom-left-radius:20px; - -moz-border-radius-bottomleft:20px; - border-bottom-left-radius:20px; - text-indent:0; - border:2px solid #dcdcdc; - display:inline-block; - color:#454143; - font-family:Arial; - font-size:15px; - font-weight:bold; - font-style:normal; - height:20px; - line-height:20px; - width:20px; - text-decoration:none; - text-align:center; - cursor: pointer; -} -a.closeButton:hover { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #e9e9e9), color-stop(1, #f9f9f9) ); - background:-moz-linear-gradient( center top, #e9e9e9 5%, #f9f9f9 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#f9f9f9'); - background-color:#e9e9e9; -} -a.closeButton:active { - position:relative; - top:1px; -} - -.button { - -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; - -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; - box-shadow:inset 0px 1px 0px 0px #ffffff; - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); - background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); - background-color:#ededed; - -webkit-border-top-left-radius:5px; - -moz-border-radius-topleft:5px; - border-top-left-radius:5px; - -webkit-border-top-right-radius:5px; - -moz-border-radius-topright:5px; - border-top-right-radius:5px; - -webkit-border-bottom-right-radius:5px; - -moz-border-radius-bottomright:5px; - border-bottom-right-radius:5px; - -webkit-border-bottom-left-radius:5px; - -moz-border-radius-bottomleft:5px; - border-bottom-left-radius:5px; - text-indent:0px; - border:1px solid #dcdcdc; - display:inline-block; - color:black; - font-family:Arial; - font-size:12px; - font-weight:bold; - font-style:normal; - height:12px; - line-height:12px; - width:45px; - text-decoration:none; - text-align:center; - text-shadow:1px 1px 0px #ffffff; -} -.button:hover { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) ); - background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed'); - background-color:#dfdfdf; -}.button:active { - position:relative; - top:1px; -}.button:disabled { - color:#777777; -} - -ul.nav_list { - list-style-type:none; - display: block; - margin: 0; - padding: 0; -} -ul.nav_list li { - list-style-type:none; - display: inline; - margin: 0 18px 0 0; - padding: 0; -} - -.nav_toolbar { - background-color: ivory; - margin-top: 0; -} - -.inspect_body { - margin: 0; - margin-bottom: 0; - display: inline; - vertical-align:middle; -} - -table.nav_table { - background-color: ivory; - border: none; - width: 100%; - display: inline; - vertical-align:middle; -} - -table#rtwIdTracePanel > tr > td { - white-space: nowrap; - table-layout:fixed; - vertical-align:middle; -} - -table.nav_table > button { - height: 20px; -} -select#fileSelector { - padding: 5px; - font-size: 16px; - line-height: 1; - border-radius: 0; - height: 34px; -} - -.treeTable table{ - table-layout: fixed; -} -.treeTable td:first-child > span{ - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - width: 100%; -} diff --git a/src/validation/slprj/ert/_sharedutils/html/rtwreport_utils.js b/src/validation/slprj/ert/_sharedutils/html/rtwreport_utils.js deleted file mode 100644 index f58fb496cf4f81b357b1ab8f7fab93e17954488b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/html/rtwreport_utils.js +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright 2011-2013 The MathWorks, Inc. - - -function local_onload() { - if (typeof top.rtwreport_document_frame !== "undefined") { - var docObj = window.document; - var alink = docObj.getElementById("linkToText_plain"); - if (alink) { - alink.href = "matlab:coder.internal.editUrlTextFile('" + alink.href + "')"; - } - alink = docObj.getElementById("linkToCS"); - if (alink) { - alink.href = "matlab:coder.internal.viewCodeConfigsetFromReport('" + alink.href + "');"; - } - } -} - -var utils = (function() { - - // Load via Microsoft.XMLDOM--for older versions of IE - function loadXML_MSXMLDOM(filename, callback, async) { - if (navigator.appName == "Microsoft Internet Explorer") { - // Internet Explorer 5/6 - try { - var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); - xmlDoc.async = async; - xmlDoc.onreadystatechange = function() { - if (xmlDoc.readyState == 4) { - callback(xmlDoc); - } - } - xmlDoc.load(filename); - return true; - } catch(e) { - } - } - return false; - } - - // Load via XMLHttpRequest - function loadXML_XHR(filename, callback, async) { - if (window.XMLHttpRequest) { - try { - var xhr = new XMLHttpRequest(); - xhr.onreadystatechange = function() { - if (this.readyState == 4) { - callback(this.responseXML); - } - } - xhr.open("GET", filename, async); - xhr.send(""); - return true; - } catch(e) { - if (navigator.appName === "Netscape" && e.code === 1012) { - // file not found: ignore - return true; - } - } - } - return false; - } - - return { - trimText: function(s) { - // In IE9, String.trim not present - if (s && s.trim) { - return s.trim(); - } - else { - return s; - } - }, - getText: function(elt) { - // In IE9, use 'text' property rather than 'textContent' - return elt.textContent ? elt.textContent : elt.text; - }, - loadXML: function(filename, callback, options) { - var async = !!options && typeof(options["async"]) !== "undefined" ? options.async : true; - if (!loadXML_XHR(filename, callback, async)) { - if (!loadXML_MSXMLDOM(filename, callback, async)) { - return false; - } - } - return true; - } - }; -})(); - -function code2model(sid) { - utils.loadXML("http://localhost:31415/matlab/feval/coder.internal.code2model?arguments=[\"" + sid + "\"]", function() {}); - //window.location.href = "matlab:coder.internal.code2model('" + sid + "')"; -} diff --git a/src/validation/slprj/ert/_sharedutils/html/rtwtypes_h.html b/src/validation/slprj/ert/_sharedutils/html/rtwtypes_h.html deleted file mode 100644 index c629a463b9f20f66667649680011941fa5c750b3..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/html/rtwtypes_h.html +++ /dev/null @@ -1,306 +0,0 @@ - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    1/*
    2 * Academic License - for use in teaching, academic research, and meeting
    3 * course requirements at degree granting institutions only. Not for
    4 * government, commercial, or other organizational use.
    5 *
    6 * File: rtwtypes.h
    7 *
    8 * Code generated for Simulink model 'AHRSControl'.
    9 *
    10 * Model version : 1.131
    11 * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019
    12 * C/C++ source code generated on : Thu Jul 16 18:50:39 2020
    13 */
    14
    15#ifndef RTWTYPES_H
    16#define RTWTYPES_H
    17
    18/* Logical type definitions */
    19#if (!defined(__cplusplus))
    20# ifndef false
    21# define false (0U)
    22# endif
    23
    24# ifndef true
    25# define true (1U)
    26# endif
    27#endif
    28
    29/*=======================================================================*
    30 * Target hardware information
    31 * Device type: Intel->x86-32 (Windows32)
    32 * Number of bits: char: 8 short: 16 int: 32
    33 * long: 32 long long: 64
    34 * native word size: 32
    35 * Byte ordering: LittleEndian
    36 * Signed integer division rounds to: Zero
    37 * Shift right on a signed integer as arithmetic shift: on
    38 *=======================================================================*/
    39#ifdef PORTABLE_WORDSIZES /* PORTABLE_WORDSIZES defined */
    40
    41/*=======================================================================*
    42 * Host information
    43 * Number of bits: char: 8 short: 16 int: 32
    44 * long: 32
    45 * long long: 64
    46 * native word size: 64
    47 *=======================================================================*/
    48
    49/*=======================================================================*
    50 * Fixed width word size data types: *
    51 * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *
    52 * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *
    53 * real32_T, real64_T - 32 and 64 bit floating point numbers *
    54 *=======================================================================*/
    55typedef signed char int8_T;
    56typedef unsigned char uint8_T;
    57typedef short int16_T;
    58typedef unsigned short uint16_T;
    59typedef int int32_T;
    60typedef unsigned int uint32_T;
    61typedef float real32_T;
    62typedef double real64_T;
    63
    64/*===========================================================================*
    65 * Generic type definitions: boolean_T, char_T, byte_T, int_T, uint_T, *
    66 * real_T, time_T, ulong_T, ulonglong_T. *
    67 *===========================================================================*/
    68typedef double real_T;
    69typedef double time_T;
    70typedef unsigned char boolean_T;
    71typedef int int_T;
    72typedef unsigned int uint_T;
    73typedef unsigned int ulong_T;
    74typedef unsigned long long ulonglong_T;
    75typedef char char_T;
    76typedef unsigned char uchar_T;
    77typedef char_T byte_T;
    78typedef long long int64_T;
    79typedef unsigned long long uint64_T;
    80
    81#else /* PORTABLE_WORDSIZES not defined */
    82
    83/*=======================================================================*
    84 * Fixed width word size data types: *
    85 * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *
    86 * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *
    87 * real32_T, real64_T - 32 and 64 bit floating point numbers *
    88 *=======================================================================*/
    89typedef signed char int8_T;
    90typedef unsigned char uint8_T;
    91typedef short int16_T;
    92typedef unsigned short uint16_T;
    93typedef int int32_T;
    94typedef unsigned int uint32_T;
    95typedef long long int64_T;
    96typedef unsigned long long uint64_T;
    97typedef float real32_T;
    98typedef double real64_T;
    99
    100/*===========================================================================*
    101 * Generic type definitions: boolean_T, char_T, byte_T, int_T, uint_T, *
    102 * real_T, time_T, ulong_T, ulonglong_T. *
    103 *===========================================================================*/
    104typedef double real_T;
    105typedef double time_T;
    106typedef unsigned char boolean_T;
    107typedef int int_T;
    108typedef unsigned int uint_T;
    109typedef unsigned long ulong_T;
    110typedef unsigned long long ulonglong_T;
    111typedef char char_T;
    112typedef unsigned char uchar_T;
    113typedef char_T byte_T;
    114
    115#endif /* PORTABLE_WORDSIZES */
    116
    117/*=======================================================================*
    118 * Min and Max: *
    119 * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers *
    120 * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers *
    121 *=======================================================================*/
    122#define MAX_int8_T ((int8_T)(127))
    123#define MIN_int8_T ((int8_T)(-128))
    124#define MAX_uint8_T ((uint8_T)(255U))
    125#define MAX_int16_T ((int16_T)(32767))
    126#define MIN_int16_T ((int16_T)(-32768))
    127#define MAX_uint16_T ((uint16_T)(65535U))
    128#define MAX_int32_T ((int32_T)(2147483647))
    129#define MIN_int32_T ((int32_T)(-2147483647-1))
    130#define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU))
    131#define MAX_int64_T ((int64_T)(9223372036854775807LL))
    132#define MIN_int64_T ((int64_T)(-9223372036854775807LL-1LL))
    133#define MAX_uint64_T ((uint64_T)(0xFFFFFFFFFFFFFFFFULL))
    134
    135/* Block D-Work pointer type */
    136typedef void * pointer_T;
    137
    138#endif /* RTWTYPES_H */
    139
    140/*
    141 * File trailer for generated code.
    142 *
    143 * [EOF]
    144 */
    145
    -
    - - diff --git a/src/validation/slprj/ert/_sharedutils/html/spinner.gif b/src/validation/slprj/ert/_sharedutils/html/spinner.gif deleted file mode 100644 index e4ab78302c5d6ff92def7688c291999a4fcbd70d..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/_sharedutils/html/spinner.gif and /dev/null differ diff --git a/src/validation/slprj/ert/_sharedutils/model_reference_types.h b/src/validation/slprj/ert/_sharedutils/model_reference_types.h deleted file mode 100644 index 10c1ae42d2503df933e656c1d5b74aaebb5de3d9..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/model_reference_types.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: model_reference_types.h - * - * Code generated for Simulink model 'FCC_New'. - * - * Model version : 1.98 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:51:15 2020 - */ - -#ifndef MODEL_REFERENCE_TYPES_H -#define MODEL_REFERENCE_TYPES_H -#include "rtwtypes.h" -#ifndef MODEL_REFERENCE_TYPES -#define MODEL_REFERENCE_TYPES - -/*===========================================================================* - * Model reference type definitions * - *===========================================================================*/ -/* - * This structure is used by model reference to - * communicate timing information through the hierarchy. - */ -typedef struct _rtTimingBridge_tag rtTimingBridge; -struct _rtTimingBridge_tag { - uint32_T nTasks; - uint32_T** clockTick; - uint32_T** clockTickH; - uint32_T* taskCounter; - real_T** taskTime; - boolean_T** rateTransition; - boolean_T *firstInitCond; -}; - -/* - * This structure is used by model reference to - * communicate variable discrete rate timing information through the hierarchy. - */ -typedef struct _rtCtrlRateMdlRefTiming_tag rtCtrlRateMdlRefTiming; -struct _rtCtrlRateMdlRefTiming_tag { - uint32_T firstCtrlRateTID; - uint32_T* numTicksToNextHitForCtrlRate; -}; - -#endif /* MODEL_REFERENCE_TYPES */ -#endif /* MODEL_REFERENCE_TYPES_H */ - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/slprj/ert/_sharedutils/rtwtypes.h b/src/validation/slprj/ert/_sharedutils/rtwtypes.h deleted file mode 100644 index db1fb239e3f58541b3a23e3938c4d4e2c039dd54..0000000000000000000000000000000000000000 --- a/src/validation/slprj/ert/_sharedutils/rtwtypes.h +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: rtwtypes.h - * - * Code generated for Simulink model 'AHRSControl'. - * - * Model version : 1.131 - * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 - * C/C++ source code generated on : Thu Jul 16 18:50:39 2020 - */ - -#ifndef RTWTYPES_H -#define RTWTYPES_H - -/* Logical type definitions */ -#if (!defined(__cplusplus)) -# ifndef false -# define false (0U) -# endif - -# ifndef true -# define true (1U) -# endif -#endif - -/*=======================================================================* - * Target hardware information - * Device type: Intel->x86-32 (Windows32) - * Number of bits: char: 8 short: 16 int: 32 - * long: 32 long long: 64 - * native word size: 32 - * Byte ordering: LittleEndian - * Signed integer division rounds to: Zero - * Shift right on a signed integer as arithmetic shift: on - *=======================================================================*/ -#ifdef PORTABLE_WORDSIZES /* PORTABLE_WORDSIZES defined */ - -/*=======================================================================* - * Host information - * Number of bits: char: 8 short: 16 int: 32 - * long: 32 - * long long: 64 - * native word size: 64 - *=======================================================================*/ - -/*=======================================================================* - * Fixed width word size data types: * - * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers * - * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers * - * real32_T, real64_T - 32 and 64 bit floating point numbers * - *=======================================================================*/ -typedef signed char int8_T; -typedef unsigned char uint8_T; -typedef short int16_T; -typedef unsigned short uint16_T; -typedef int int32_T; -typedef unsigned int uint32_T; -typedef float real32_T; -typedef double real64_T; - -/*===========================================================================* - * Generic type definitions: boolean_T, char_T, byte_T, int_T, uint_T, * - * real_T, time_T, ulong_T, ulonglong_T. * - *===========================================================================*/ -typedef double real_T; -typedef double time_T; -typedef unsigned char boolean_T; -typedef int int_T; -typedef unsigned int uint_T; -typedef unsigned int ulong_T; -typedef unsigned long long ulonglong_T; -typedef char char_T; -typedef unsigned char uchar_T; -typedef char_T byte_T; -typedef long long int64_T; -typedef unsigned long long uint64_T; - -#else /* PORTABLE_WORDSIZES not defined */ - -/*=======================================================================* - * Fixed width word size data types: * - * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers * - * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers * - * real32_T, real64_T - 32 and 64 bit floating point numbers * - *=======================================================================*/ -typedef signed char int8_T; -typedef unsigned char uint8_T; -typedef short int16_T; -typedef unsigned short uint16_T; -typedef int int32_T; -typedef unsigned int uint32_T; -typedef long long int64_T; -typedef unsigned long long uint64_T; -typedef float real32_T; -typedef double real64_T; - -/*===========================================================================* - * Generic type definitions: boolean_T, char_T, byte_T, int_T, uint_T, * - * real_T, time_T, ulong_T, ulonglong_T. * - *===========================================================================*/ -typedef double real_T; -typedef double time_T; -typedef unsigned char boolean_T; -typedef int int_T; -typedef unsigned int uint_T; -typedef unsigned long ulong_T; -typedef unsigned long long ulonglong_T; -typedef char char_T; -typedef unsigned char uchar_T; -typedef char_T byte_T; - -#endif /* PORTABLE_WORDSIZES */ - -/*=======================================================================* - * Min and Max: * - * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers * - * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers * - *=======================================================================*/ -#define MAX_int8_T ((int8_T)(127)) -#define MIN_int8_T ((int8_T)(-128)) -#define MAX_uint8_T ((uint8_T)(255U)) -#define MAX_int16_T ((int16_T)(32767)) -#define MIN_int16_T ((int16_T)(-32768)) -#define MAX_uint16_T ((uint16_T)(65535U)) -#define MAX_int32_T ((int32_T)(2147483647)) -#define MIN_int32_T ((int32_T)(-2147483647-1)) -#define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU)) -#define MAX_int64_T ((int64_T)(9223372036854775807LL)) -#define MIN_int64_T ((int64_T)(-9223372036854775807LL-1LL)) -#define MAX_uint64_T ((uint64_T)(0xFFFFFFFFFFFFFFFFULL)) - -/* Block D-Work pointer type */ -typedef void * pointer_T; - -#endif /* RTWTYPES_H */ - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/src/validation/slprj/ert/_sharedutils/rtwtypeschksum.mat b/src/validation/slprj/ert/_sharedutils/rtwtypeschksum.mat deleted file mode 100644 index 4bb6e1f7b5d924f7be9dab5e3682d10236898cc3..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/_sharedutils/rtwtypeschksum.mat and /dev/null differ diff --git a/src/validation/slprj/ert/_sharedutils/shared_file.dmr b/src/validation/slprj/ert/_sharedutils/shared_file.dmr deleted file mode 100644 index 055580146f17979d440380e5f0f267c155a3a501..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/ert/_sharedutils/shared_file.dmr and /dev/null differ diff --git a/src/validation/slprj/sim/varcache/AHRSControl/checksumOfCache.mat b/src/validation/slprj/sim/varcache/AHRSControl/checksumOfCache.mat deleted file mode 100644 index 2b0ac56dec29cf495adec0134e54676a355e76bf..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/sim/varcache/AHRSControl/checksumOfCache.mat and /dev/null differ diff --git a/src/validation/slprj/sim/varcache/AHRSControl/tmwinternal/simulink_cache.xml b/src/validation/slprj/sim/varcache/AHRSControl/tmwinternal/simulink_cache.xml deleted file mode 100644 index 2c170d2eba252133ff434c56b21fcef1b8e3e754..0000000000000000000000000000000000000000 --- a/src/validation/slprj/sim/varcache/AHRSControl/tmwinternal/simulink_cache.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - 7f3aSNVoU30qHXW9CSFTIQ== - - \ No newline at end of file diff --git a/src/validation/slprj/sim/varcache/AHRSControl/varInfo.mat b/src/validation/slprj/sim/varcache/AHRSControl/varInfo.mat deleted file mode 100644 index ca0e0c6463d2ae2e76cff0fdcd36b4949c258556..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/sim/varcache/AHRSControl/varInfo.mat and /dev/null differ diff --git a/src/validation/slprj/sim/varcache/ActuatorControl/checksumOfCache.mat b/src/validation/slprj/sim/varcache/ActuatorControl/checksumOfCache.mat deleted file mode 100644 index 9132a24081a90a78c09876ba59f4c86e4ff00ec3..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/sim/varcache/ActuatorControl/checksumOfCache.mat and /dev/null differ diff --git a/src/validation/slprj/sim/varcache/ActuatorControl/tmwinternal/simulink_cache.xml b/src/validation/slprj/sim/varcache/ActuatorControl/tmwinternal/simulink_cache.xml deleted file mode 100644 index b8423cddff73324b765c8513e93b697a2b3a5f8b..0000000000000000000000000000000000000000 --- a/src/validation/slprj/sim/varcache/ActuatorControl/tmwinternal/simulink_cache.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - /lhm6Ci6z/pyTUJWeR+zeQ== - - \ No newline at end of file diff --git a/src/validation/slprj/sim/varcache/ActuatorControl/varInfo.mat b/src/validation/slprj/sim/varcache/ActuatorControl/varInfo.mat deleted file mode 100644 index 1343b693dcb7c7481004d7038db124d0071b962b..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/sim/varcache/ActuatorControl/varInfo.mat and /dev/null differ diff --git a/src/validation/slprj/sim/varcache/FCC_New/checksumOfCache.mat b/src/validation/slprj/sim/varcache/FCC_New/checksumOfCache.mat deleted file mode 100644 index a025c662ffb83bdffc1e664a220877dff97c6dbc..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/sim/varcache/FCC_New/checksumOfCache.mat and /dev/null differ diff --git a/src/validation/slprj/sim/varcache/FCC_New/tmwinternal/simulink_cache.xml b/src/validation/slprj/sim/varcache/FCC_New/tmwinternal/simulink_cache.xml deleted file mode 100644 index 599a4aea7fc3054b141463e3bfcd158155d17471..0000000000000000000000000000000000000000 --- a/src/validation/slprj/sim/varcache/FCC_New/tmwinternal/simulink_cache.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - wHuMWbljhtPdRqF01+sI2A== - - \ No newline at end of file diff --git a/src/validation/slprj/sim/varcache/FCC_New/varInfo.mat b/src/validation/slprj/sim/varcache/FCC_New/varInfo.mat deleted file mode 100644 index 818c582c81efa04febfbe7ab8caefc8f0b9103be..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/sim/varcache/FCC_New/varInfo.mat and /dev/null differ diff --git a/src/validation/slprj/sim/varcache/FCC_Sys_New/checksumOfCache.mat b/src/validation/slprj/sim/varcache/FCC_Sys_New/checksumOfCache.mat deleted file mode 100644 index a025c662ffb83bdffc1e664a220877dff97c6dbc..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/sim/varcache/FCC_Sys_New/checksumOfCache.mat and /dev/null differ diff --git a/src/validation/slprj/sim/varcache/FCC_Sys_New/tmwinternal/simulink_cache.xml b/src/validation/slprj/sim/varcache/FCC_Sys_New/tmwinternal/simulink_cache.xml deleted file mode 100644 index a510d92f203286c7a16b617fdc29387e86f0d034..0000000000000000000000000000000000000000 --- a/src/validation/slprj/sim/varcache/FCC_Sys_New/tmwinternal/simulink_cache.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - 74txeNoghRI38j+5N+pxFg== - - \ No newline at end of file diff --git a/src/validation/slprj/sim/varcache/FCC_Sys_New/varInfo.mat b/src/validation/slprj/sim/varcache/FCC_Sys_New/varInfo.mat deleted file mode 100644 index 818c582c81efa04febfbe7ab8caefc8f0b9103be..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/sim/varcache/FCC_Sys_New/varInfo.mat and /dev/null differ diff --git a/src/validation/slprj/sim/varcache/FCC_Sys_New_harness/checksumOfCache.mat b/src/validation/slprj/sim/varcache/FCC_Sys_New_harness/checksumOfCache.mat deleted file mode 100644 index 8e88b09a64735cab0f0b19b4b1e6a24c0beab3ef..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/sim/varcache/FCC_Sys_New_harness/checksumOfCache.mat and /dev/null differ diff --git a/src/validation/slprj/sim/varcache/FCC_Sys_New_harness/tmwinternal/simulink_cache.xml b/src/validation/slprj/sim/varcache/FCC_Sys_New_harness/tmwinternal/simulink_cache.xml deleted file mode 100644 index b99fb47a3da015857c05d6d91f266665450ecc8e..0000000000000000000000000000000000000000 --- a/src/validation/slprj/sim/varcache/FCC_Sys_New_harness/tmwinternal/simulink_cache.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - sfdyHzBTQG0a+B822/uHBg== - - \ No newline at end of file diff --git a/src/validation/slprj/sim/varcache/FCC_Sys_New_harness/varInfo.mat b/src/validation/slprj/sim/varcache/FCC_Sys_New_harness/varInfo.mat deleted file mode 100644 index 3b185b07b2746af139c926e96d63dfcf006ec582..0000000000000000000000000000000000000000 Binary files a/src/validation/slprj/sim/varcache/FCC_Sys_New_harness/varInfo.mat and /dev/null differ diff --git a/src/validation/slprj/sl_proj.tmw b/src/validation/slprj/sl_proj.tmw deleted file mode 100644 index f8db54a88a579d3729b645ae764bb2efc1186488..0000000000000000000000000000000000000000 --- a/src/validation/slprj/sl_proj.tmw +++ /dev/null @@ -1,2 +0,0 @@ -Simulink Coder project marker file. Please don't change it. -slprjVersion: 10.1_079 \ No newline at end of file diff --git a/src/validation/test_generation/FCC_Sys_New/.status.txt b/src/validation/test_generation/FCC_Sys_New/.status.txt deleted file mode 100644 index b2356a0e36ed654810df410feed310defa44d668..0000000000000000000000000000000000000000 --- a/src/validation/test_generation/FCC_Sys_New/.status.txt +++ /dev/null @@ -1 +0,0 @@ -completed:success \ No newline at end of file diff --git a/src/validation/test_generation/FCC_Sys_New/AHRSControl_cov.html b/src/validation/test_generation/FCC_Sys_New/AHRSControl_cov.html deleted file mode 100644 index 11e32170678bfd86b7fe8b3654933f9bb544d013..0000000000000000000000000000000000000000 --- a/src/validation/test_generation/FCC_Sys_New/AHRSControl_cov.html +++ /dev/null @@ -1,2248 +0,0 @@ - - - - - - AHRSControl Coverage Report - - - -

    Coverage Report for AHRSControl

    -

    Table of Contents

    -
      -
    1. Analysis Information
    2. -
    3. Tests
    4. -
    5. Summary
    6. -
    7. Details
    8. -
    -

    Analysis Information

    -

    Model Information

    - - - - - - - - - - - - - - - - - - -
      Model version   1.130
      Author   bpotter
      Last saved   Thu Jul 16 13:20:35 2020
    -

    Simulation Optimization Options

    - - - - - - - - - - - - - - - - - - -
      Default parameter behavior   inlined
      Block reduction   forced off
      Conditional branch optimization   on
    -

    Coverage Options

    - - - - - - - - - - - - - -
      Analyzed model   AHRSControl
      Logic block short circuiting   off
    -

    Tests

    - - - - - - - - - - - - - - - - - -
    Test# Started execution Ended execution Description
    Test 1 16-Jul-2020 16:02:01 16-Jul-2020 16:02:13 This model represents a flight control system for a helicopter that controls pitch attitude, roll attitude and yaw rate based on pilot inputs from the cyclic and pedals. The flight control computer also closes the loop on three hydrualic actuators and has sensor inputs from three Attitude/Heading Reference Systems.
    -
    -

    Summary

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Hierarchy/Complexity Test 1  
    Decision Execution  
    1. AHRSControl 44 98% - - - - - - -
      
    100% - - - - - - -
      
     
    2. . . . AHRS_Control 43 98% - - - - - - -
      
    100% - - - - - - -
      
     
    3. . . . . . . AHRSLoopCtrl 24 96% - - - - - - -
      
    100% - - - - - - -
      
     
    4. . . . . . . . . . Heli_inner_loop 7 100% - - - - - - -
      
    100% - - - - - - -
      
     
    5. . . . . . . . . . . . . Filter 1 100% - - - - - - -
      
    100% - - - - - - -
      
     
    6. . . . . . . . . . . . . pitch_feedback 1 100% - - - - - - -
      
    100% - - - - - - -
      
     
    7. . . . . . . . . . . . . roll_feedback 1 100% - - - - - - -
      
    100% - - - - - - -
      
     
    8. . . . . . . . . . . . . yaw_feedback 1 100% - - - - - - -
      
    100% - - - - - - -
      
     
    9. . . . . . . . . . Heli_outer_loop 16 93% - - - - - - -
      
    100% - - - - - - -
      
     
    10. . . . . . . . . . . . . Pitch_loop 3 100% - - - - - - -
      
    100% - - - - - - -
      
     
    11. . . . . . . . . . . . . Roll_loop 3 100% - - - - - - -
      
    100% - - - - - - -
      
     
    12. . . . . . . . . . . . . Yaw_loop 3 100% - - - - - - -
      
    100% - - - - - - -
      
     
    13. . . . . . . AHRS_voter 18 100% - - - - - - -
      
    100% - - - - - - -
      
     
    14. . . . . . . . . . Avg_Value 4 100% - - - - - - -
      
    100% - - - - - - -
      
     
    15. . . . . . . . . . Mid_Value 6 100% - - - - - - -
      
    100% - - - - - - -
      
     
    16. . . . . . . . . . Single_Value 4 100% - - - - - - -
      
    100% - - - - - - -
      
     
    -

    Details

    -

    1. Model "AHRSControl"

    -
    - - - -
    Child Systems: AHRS_Control
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 44
    Decision NA 98% (110/112) decision outcomes
    Execution NA 100% (126/126) objective outcomes
    -
    -
    -

    2. SubSystem block "AHRS_Control"

    -
    - -
    Justify or Exclude
    - - - - - -
    Parent: /AHRSControl
    Child Systems: AHRSLoopCtrl,  AHRS_voter
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 43
    Decision 100% (1/1) decision outcomes 98% (110/112) decision outcomes
    Execution NA 100% (126/126) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 33/33
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    FunctionCaller block "AHRSLoopCtrl_caller" Execution
    FunctionCaller block "AHRS_voter_caller" Execution
    ArgIn block "Pilot_theta_cmd" Execution
    ArgIn block "Pilot_phi_cmd" Execution
    ArgIn block "Pilot_r_cmd" Execution
    ArgIn block "AHRS1" Execution
    ArgIn block "AHRS2" Execution
    ArgIn block "AHRS3" Execution
    -
    -
    -

    3. SubSystem block "AHRSLoopCtrl"

    -
    - -
    Justify or Exclude
    - - - - - -
    Parent: AHRSControl/AHRS_Control
    Child Systems: Heli_inner_loop,  Heli_outer_loop
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 24
    Decision 100% (1/1) decision outcomes 96% (44/46) decision outcomes
    Execution NA 100% (79/79) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 33/33
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    FunctionCaller block "Heli_inner_loop_caller" Execution
    FunctionCaller block "Heli_outer_loop_caller" Execution
    ArgIn block "Pilot_theta_cmd" Execution
    ArgIn block "Pilot_phi_cmd" Execution
    ArgIn block "Pilot_r_cmd" Execution
    ArgIn block "voted_fb" Execution
    -
    -
    -

    4. SubSystem block "Heli_inner_loop"

    -
    - -
    Justify or Exclude
    - - - - - -
    Parent: AHRSControl/AHRS_Control/AHRSLoopCtrl
    Child Systems: Filter,  pitch_feedback,  roll_feedback,  yaw_feedback
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 7
    Decision 100% (1/1) decision outcomes 100% (17/17) decision outcomes
    Execution NA 100% (33/33) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 33/33
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    Saturate block "Saturation" Decision, Execution
    Gain block "Gain" Execution
    FunctionCaller block "pitch_feedback_caller" Execution
    FunctionCaller block "roll_feedback_caller" Execution
    FunctionCaller block "yaw_feedback_caller" Execution
    ArgIn block "theta_cmd" Execution
    ArgIn block "phi_cmd" Execution
    ArgIn block "r_cmd" Execution
    ArgIn block "voted_fb" Execution
    -
    -
    -

    5. SubSystem block "Filter"

    -
    - -
    Justify or Exclude
    - - - -
    Parent: AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 1
    Decision 100% (1/1) decision outcomes 100% (1/1) decision outcomes
    Execution NA 100% (6/6) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 99/99
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    Gain block "a_2_1" Execution
    Gain block "s_1" Execution
    Sum block "SumA21" Execution
    Sum block "SumB21" Execution
    ArgIn block "Signal" Execution
    ArgIn block "prev_FeedbackSum" Execution
    -
    -
    -

    6. SubSystem block "pitch_feedback"

    -
    - -
    Justify or Exclude
    - - - -
    Parent: AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 1
    Decision 100% (1/1) decision outcomes 100% (1/1) decision outcomes
    Execution NA 100% (6/6) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 33/33
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    Gain block "Gain" Execution
    Sum block "Sum5" Execution
    FunctionCaller block "Filter_caller" Execution
    UnitDelay block "Unit Delay" Execution
    ArgIn block "theta_cmd" Execution
    ArgIn block "voted_fb" Execution
    -
    -
    -

    7. SubSystem block "roll_feedback"

    -
    - -
    Justify or Exclude
    - - - -
    Parent: AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 1
    Decision 100% (1/1) decision outcomes 100% (1/1) decision outcomes
    Execution NA 100% (6/6) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 33/33
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    Gain block "Gain" Execution
    Sum block "Sum5" Execution
    FunctionCaller block "Filter_caller" Execution
    UnitDelay block "Unit Delay" Execution
    ArgIn block "phi_cmd" Execution
    ArgIn block "voted_fb" Execution
    -
    -
    -

    8. SubSystem block "yaw_feedback"

    -
    - -
    Justify or Exclude
    - - - -
    Parent: AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 1
    Decision 100% (1/1) decision outcomes 100% (1/1) decision outcomes
    Execution NA 100% (6/6) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 33/33
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    Gain block "Gain" Execution
    Sum block "Sum5" Execution
    FunctionCaller block "Filter_caller" Execution
    UnitDelay block "Unit Delay" Execution
    ArgIn block "r_cmd" Execution
    ArgIn block "voted_fb" Execution
    -
    -
    -

    9. SubSystem block "Heli_outer_loop"

    -
    - -
    Justify or Exclude
    - - - - - -
    Parent: AHRSControl/AHRS_Control/AHRSLoopCtrl
    Child Systems: Pitch_loop,  Roll_loop,  Yaw_loop
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 16
    Decision 100% (1/1) decision outcomes 93% (26/28) decision outcomes
    Execution NA 100% (40/40) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 33/33
    -
    -
    -

       Saturate block "Saturation1"

    -
    - -
    Justify or Exclude
    - - - -
    Parent: AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop
    -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage
    Cyclomatic Complexity 2
    Decision 50% (2/4) decision outcomes
    Execution 100% (1/1) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      input > lower limit  50%
          false 0/33
          true 33/33
      input >= upper limit  50%
          false 33/33
          true 0/33
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    Saturate block "Saturation" Decision, Execution
    Saturate block "Saturation2" Decision, Execution
    DataTypeConversion block "TypeConversion" Execution
    DataTypeConversion block "TypeConversion1" Execution
    DataTypeConversion block "TypeConversion2" Execution
    Gain block "Scaling" Execution
    Gain block "Scaling1" Execution
    Gain block "Scaling2" Execution
    FunctionCaller block "Pitch_loop_caller" Execution
    FunctionCaller block "Roll_loop_caller" Execution
    FunctionCaller block "Yaw_loop_caller" Execution
    ArgIn block "Pilot_theta_cmd" Execution
    ArgIn block "Pilot_phi_cmd" Execution
    ArgIn block "Pilot_r_cmd" Execution
    ArgIn block "voted_fb" Execution
    -
    -
    -

    10. SubSystem block "Pitch_loop"

    -
    - -
    Justify or Exclude
    - - - -
    Parent: AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 3
    Decision 100% (1/1) decision outcomes 100% (5/5) decision outcomes
    Execution NA 100% (8/8) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 33/33
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    DiscreteIntegrator block "Integrator" Decision, Execution
    Gain block "Gain" Execution
    Gain block "Gain1" Execution
    Gain block "Gain2" Execution
    Sum block "Sum" Execution
    Sum block "Sum3" Execution
    ArgIn block "Pilot_theta_cmd" Execution
    ArgIn block "theta" Execution
    -
    -
    -

    11. SubSystem block "Roll_loop"

    -
    - -
    Justify or Exclude
    - - - -
    Parent: AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 3
    Decision 100% (1/1) decision outcomes 100% (5/5) decision outcomes
    Execution NA 100% (8/8) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 33/33
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    DiscreteIntegrator block "Integrator1" Decision, Execution
    Gain block "Gain1" Execution
    Gain block "Gain2" Execution
    Gain block "Gain3" Execution
    Sum block "Sum" Execution
    Sum block "Sum4" Execution
    ArgIn block "Pilot_phi_cmd" Execution
    ArgIn block "phi" Execution
    -
    -
    -

    12. SubSystem block "Yaw_loop"

    -
    - -
    Justify or Exclude
    - - - -
    Parent: AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 3
    Decision 100% (1/1) decision outcomes 100% (5/5) decision outcomes
    Execution NA 100% (8/8) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 33/33
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    DiscreteIntegrator block "Integrator2" Decision, Execution
    Gain block "Gain1" Execution
    Gain block "Gain4" Execution
    Gain block "Gain5" Execution
    Sum block "Sum" Execution
    Sum block "Sum5" Execution
    ArgIn block "Pilot_r_cmd" Execution
    ArgIn block "r" Execution
    -
    -
    -

    13. SubSystem block "AHRS_voter"

    -
    - -
    Justify or Exclude
    - - - - - -
    Parent: AHRSControl/AHRS_Control
    Child Systems: Avg_Value,  Mid_Value,  Single_Value
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 18
    Decision 100% (1/1) decision outcomes 100% (65/65) decision outcomes
    Execution NA 100% (39/39) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 33/33
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    MultiPortSwitch block "MultiportSwitch" Decision, Execution
    Sum block "Sum" Execution
    FunctionCaller block "Avg_Value_caller" Execution
    Constant block "Constant" Execution
    FunctionCaller block "Mid_Value_caller" Execution
    FunctionCaller block "Single_Value_caller" Execution
    ArgIn block "AHRS1" Execution
    ArgIn block "AHRS2" Execution
    ArgIn block "AHRS3" Execution
    -
    -
    -

    14. SubSystem block "Avg_Value"

    -
    - -
    Justify or Exclude
    - - - -
    Parent: AHRSControl/AHRS_Control/AHRS_voter
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 4
    Decision 100% (1/1) decision outcomes 100% (7/7) decision outcomes
    Execution NA 100% (12/12) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 33/33
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    Switch block "Switch" Decision, Execution
    Switch block "Switch1" Decision, Execution
    Switch block "Switch2" Decision, Execution
    Gain block "Gain" Execution
    Sum block "Sum" Execution
    Constant block "Constant" Execution
    ArgIn block "AHRS1" Execution
    ArgIn block "AHRS2" Execution
    ArgIn block "AHRS3" Execution
    ArgIn block "AHRS1_Valid" Execution
    ArgIn block "AHRS2_Valid" Execution
    ArgIn block "AHRS3_Valid" Execution
    -
    -
    -

    15. SubSystem block "Mid_Value"

    -
    - -
    Justify or Exclude
    - - - -
    Parent: AHRSControl/AHRS_Control/AHRS_voter
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 6
    Decision 100% (1/1) decision outcomes 100% (46/46) decision outcomes
    Execution NA 100% (7/7) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 33/33
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    MinMax block "MinMax" Decision, Execution
    MinMax block "MinMax1" Decision, Execution
    MinMax block "MinMax2" Decision, Execution
    MinMax block "MinMax3" Decision, Execution
    ArgIn block "AHRS1" Execution
    ArgIn block "AHRS2" Execution
    ArgIn block "AHRS3" Execution
    -
    -
    -

    16. SubSystem block "Single_Value"

    -
    - -
    Justify or Exclude
    - - - -
    Parent: AHRSControl/AHRS_Control/AHRS_voter
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 4
    Decision 100% (1/1) decision outcomes 100% (7/7) decision outcomes
    Execution NA 100% (11/11) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 33/33
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    Switch block "Switch" Decision, Execution
    Switch block "Switch1" Decision, Execution
    Switch block "Switch2" Decision, Execution
    Sum block "Sum" Execution
    Constant block "Constant" Execution
    ArgIn block "AHRS1" Execution
    ArgIn block "AHRS2" Execution
    ArgIn block "AHRS3" Execution
    ArgIn block "AHRS1_Valid" Execution
    ArgIn block "AHRS2_Valid" Execution
    ArgIn block "AHRS3_Valid" Execution
    -
    -
    - - diff --git a/src/validation/test_generation/FCC_Sys_New/ActuatorControl_cov.html b/src/validation/test_generation/FCC_Sys_New/ActuatorControl_cov.html deleted file mode 100644 index 12e26e232bd78d214d1fad706a0ab230fc4aaa6a..0000000000000000000000000000000000000000 --- a/src/validation/test_generation/FCC_Sys_New/ActuatorControl_cov.html +++ /dev/null @@ -1,1227 +0,0 @@ - - - - - - ActuatorControl Coverage Report - - - -

    Coverage Report for ActuatorControl

    -

    Table of Contents

    -
      -
    1. Analysis Information
    2. -
    3. Tests
    4. -
    5. Summary
    6. -
    7. Details
    8. -
    -

    Analysis Information

    -

    Model Information

    - - - - - - - - - - - - - - - - - - -
      Model version   1.71
      Author   bpotter
      Last saved   Thu Jul 16 13:11:34 2020
    -

    Simulation Optimization Options

    - - - - - - - - - - - - - - - - - - -
      Default parameter behavior   inlined
      Block reduction   forced off
      Conditional branch optimization   on
    -

    Coverage Options

    - - - - - - - - - - - - - -
      Analyzed model   ActuatorControl
      Logic block short circuiting   off
    -

    Tests

    - - - - - - - - - - - - - - - - - -
    Test# Started execution Ended execution Description
    Test 1 16-Jul-2020 16:02:01 16-Jul-2020 16:02:13 This model represents a flight control system for a helicopter that controls pitch attitude, roll attitude and yaw rate based on pilot inputs from the cyclic and pedals. The flight control computer also closes the loop on three hydrualic actuators and has sensor inputs from three Attitude/Heading Reference Systems.
    -
    -

    Summary

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Hierarchy/Complexity Test 1  
    Decision Execution  
    1. ActuatorControl 17 79% - - - - - - -
      
    100% - - - - - - -
      
     
    2. . . . Actuator_Control 16 79% - - - - - - -
      
    100% - - - - - - -
      
     
    3. . . . . . . Actuaor1_loop 3 100% - - - - - - -
      
    100% - - - - - - -
      
     
    4. . . . . . . . . . Difference   NA 100% - - - - - - -
      
     
    5. . . . . . . Actuaor2_loop 3 100% - - - - - - -
      
    100% - - - - - - -
      
     
    6. . . . . . . . . . Difference   NA 100% - - - - - - -
      
     
    7. . . . . . . Actuaor3_loop 3 100% - - - - - - -
      
    100% - - - - - - -
      
     
    8. . . . . . . . . . Difference   NA 100% - - - - - - -
      
     
    -

    Details

    -

    1. Model "ActuatorControl"

    -
    - - - -
    Child Systems: Actuator_Control
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 17
    Decision NA 79% (22/28) decision outcomes
    Execution NA 100% (57/57) objective outcomes
    -
    -
    -

    2. SubSystem block "Actuator_Control"

    -
    - -
    Justify or Exclude
    - - - - - -
    Parent: /ActuatorControl
    Child Systems: Actuaor1_loop,  Actuaor2_loop,  Actuaor3_loop
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 16
    Decision 100% (1/1) decision outcomes 79% (22/28) decision outcomes
    Execution NA 100% (57/57) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 276/276
    -
    -
    -

       Saturate block "Saturation"

    -
    - -
    Justify or Exclude
    - - - - - -
    Parent: ActuatorControl/Actuator_Control
    Uncovered Links:  Next uncovered object
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage
    Cyclomatic Complexity 2
    Decision 50% (2/4) decision outcomes
    Execution 100% (1/1) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      input > lower limit  50%
          false 0/276
          true 276/276
      input >= upper limit  50%
          false 276/276
          true 0/276
    -
    -
    -

       Saturate block "Saturation1"

    -
    - -
    Justify or Exclude
    - - - - - -
    Parent: ActuatorControl/Actuator_Control
    Uncovered Links:  Previous uncovered object Next uncovered object
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage
    Cyclomatic Complexity 2
    Decision 50% (2/4) decision outcomes
    Execution 100% (1/1) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      input > lower limit  50%
          false 0/276
          true 276/276
      input >= upper limit  50%
          false 276/276
          true 0/276
    -
    -
    -

       Saturate block "Saturation2"

    -
    - -
    Justify or Exclude
    - - - - - -
    Parent: ActuatorControl/Actuator_Control
    Uncovered Links:  Previous uncovered object
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage
    Cyclomatic Complexity 2
    Decision 50% (2/4) decision outcomes
    Execution 100% (1/1) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      input > lower limit  50%
          false 0/276
          true 276/276
      input >= upper limit  50%
          false 276/276
          true 0/276
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    DataTypeConversion block "TypeConversion" Execution
    DataTypeConversion block "TypeConversion1" Execution
    DataTypeConversion block "TypeConversion2" Execution
    DataTypeConversion block "TypeConversion3" Execution
    DataTypeConversion block "TypeConversion4" Execution
    DataTypeConversion block "TypeConversion5" Execution
    Gain block "Scaling" Execution
    Gain block "Scaling1" Execution
    Gain block "Scaling2" Execution
    Gain block "Scaling3" Execution
    Gain block "Scaling4" Execution
    Gain block "Scaling5" Execution
    FunctionCaller block "Actuator1_loop_caller" Execution
    FunctionCaller block "Actuator2_loop_caller" Execution
    FunctionCaller block "Actuator3_loop_caller" Execution
    ArgIn block "Act1_pos" Execution
    ArgIn block "Act1_cmd" Execution
    ArgIn block "Act2_pos" Execution
    ArgIn block "Act2_cmd" Execution
    ArgIn block "Act3_pos" Execution
    ArgIn block "Act3_cmd" Execution
    -
    -
    -

    3. SubSystem block "Actuaor1_loop"

    -
    - -
    Justify or Exclude
    - - - - - -
    Parent: ActuatorControl/Actuator_Control
    Child Systems: Difference
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 3
    Decision 100% (1/1) decision outcomes 100% (5/5) decision outcomes
    Execution NA 100% (11/11) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 276/276
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    DiscreteIntegrator block "Integrator" Decision, Execution
    Gain block "Gain" Execution
    Gain block "Gain1" Execution
    Gain block "Gain2" Execution
    Gain block "Gain3" Execution
    Gain block "Gain4" Execution
    Sum block "Sum" Execution
    Sum block "Sum1" Execution
    ArgIn block "Act1_pos" Execution
    ArgIn block "Act1_cmd" Execution
    -
    -
    -

    4. SubSystem block "Difference"

    -
    - -
    Justify or Exclude
    - - - -
    Parent: ActuatorControl/Actuator_Control/Actuaor1_loop
    -
    - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 0 0
    Execution NA 100% (1/1) objective outcomes
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - -
    Model Object Metric
    Sum block "Diff" Execution
    -
    -
    -

    5. SubSystem block "Actuaor2_loop"

    -
    - -
    Justify or Exclude
    - - - - - -
    Parent: ActuatorControl/Actuator_Control
    Child Systems: Difference
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 3
    Decision 100% (1/1) decision outcomes 100% (5/5) decision outcomes
    Execution NA 100% (11/11) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 276/276
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    DiscreteIntegrator block "Integrator" Decision, Execution
    Gain block "Gain" Execution
    Gain block "Gain1" Execution
    Gain block "Gain2" Execution
    Gain block "Gain3" Execution
    Gain block "Gain4" Execution
    Sum block "Sum" Execution
    Sum block "Sum1" Execution
    ArgIn block "Act2_pos" Execution
    ArgIn block "Act2_cmd" Execution
    -
    -
    -

    6. SubSystem block "Difference"

    -
    - -
    Justify or Exclude
    - - - -
    Parent: ActuatorControl/Actuator_Control/Actuaor2_loop
    -
    - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 0 0
    Execution NA 100% (1/1) objective outcomes
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - -
    Model Object Metric
    Sum block "Diff" Execution
    -
    -
    -

    7. SubSystem block "Actuaor3_loop"

    -
    - -
    Justify or Exclude
    - - - - - -
    Parent: ActuatorControl/Actuator_Control
    Child Systems: Difference
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 1 3
    Decision 100% (1/1) decision outcomes 100% (5/5) decision outcomes
    Execution NA 100% (11/11) objective outcomes
    Decisions analyzed
    - - - - - - - - - - - - - -
      Function call  100%
          executed 276/276
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    DiscreteIntegrator block "Integrator" Decision, Execution
    Gain block "Gain" Execution
    Gain block "Gain1" Execution
    Gain block "Gain2" Execution
    Gain block "Gain3" Execution
    Gain block "Gain4" Execution
    Sum block "Sum" Execution
    Sum block "Sum1" Execution
    ArgIn block "Act3_pos" Execution
    ArgIn block "Act3_cmd" Execution
    -
    -
    -

    8. SubSystem block "Difference"

    -
    - -
    Justify or Exclude
    - - - -
    Parent: ActuatorControl/Actuator_Control/Actuaor3_loop
    -
    - - - - - - - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Cyclomatic Complexity 0 0
    Execution NA 100% (1/1) objective outcomes
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - -
    Model Object Metric
    Sum block "Diff" Execution
    -
    -
    - - diff --git a/src/validation/test_generation/FCC_Sys_New/FCC_New_cov.html b/src/validation/test_generation/FCC_Sys_New/FCC_New_cov.html deleted file mode 100644 index 9583c954c4d4931cab992a0992749849f8a1df22..0000000000000000000000000000000000000000 --- a/src/validation/test_generation/FCC_Sys_New/FCC_New_cov.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - FCC_New Coverage Report - - - -

    Coverage Report for FCC_New

    -

    Table of Contents

    -
      -
    1. Analysis Information
    2. -
    3. Tests
    4. -
    5. Summary
    6. -
    7. Details
    8. -
    -

    Analysis Information

    -

    Model Information

    - - - - - - - - - - - - - - - - - - -
      Model version   1.97
      Author   bpotter
      Last saved   Thu Jul 16 16:01:26 2020
    -

    Simulation Optimization Options

    - - - - - - - - - - - - - - - - - - -
      Default parameter behavior   inlined
      Block reduction   forced off
      Conditional branch optimization   on
    -

    Coverage Options

    - - - - - - - - - - - - - -
      Analyzed model   FCC_New
      Logic block short circuiting   off
    -

    Tests

    - - - - - - - - - - - - - - - - - -
    Test# Started execution Ended execution Description
    Test 1 16-Jul-2020 16:02:01 16-Jul-2020 16:02:13 This model represents a flight control system for a helicopter that controls pitch attitude, roll attitude and yaw rate based on pilot inputs from the cyclic and pedals. The flight control computer also closes the loop on three hydrualic actuators and has sensor inputs from three Attitude/Heading Reference Systems.
    -
    -

    Summary

    - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Hierarchy/Complexity Test 1  
    Execution  
    1. FCC_New   100% - - - - - - -
      
     
    -

    Details

    -

    1. Model "FCC_New"

    -
    - -
    -
    - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Execution NA 100% (7/7) objective outcomes
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Object Metric
    ModelReference block "AHRSControl" Execution
    FunctionCaller block "AHRSControl_caller" Execution
    ModelReference block "ActuatorControl" Execution
    FunctionCaller block "ActuatorControl_caller" Execution
    RateTransition block "RateTransition1" Execution
    RateTransition block "RateTransition2" Execution
    RateTransition block "RateTransition3" Execution
    -
    -
    - - diff --git a/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_cov.html b/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_cov.html deleted file mode 100644 index eaa7e782976efe81a6ce935da3f449c9221e68b3..0000000000000000000000000000000000000000 --- a/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_cov.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - FCC_Sys_New Coverage Report - - - -

    Coverage Report for FCC_Sys_New

    -

    Table of Contents

    -
      -
    1. Analysis Information
    2. -
    3. Tests
    4. -
    5. Summary
    6. -
    7. Details
    8. -
    -

    Analysis Information

    -

    Model Information

    - - - - - - - - - - - - - - - - - - -
      Model version   1.88
      Author   bpotter
      Last saved   Thu Jul 16 16:01:07 2020
    -

    Simulation Optimization Options

    - - - - - - - - - - - - - - - - - - -
      Default parameter behavior   inlined
      Block reduction   forced off
      Conditional branch optimization   on
    -

    Coverage Options

    - - - - - - - - - - - - - -
      Analyzed model   FCC_Sys_New
      Logic block short circuiting   off
    -

    Tests

    - - - - - - - - - - - - - - - - - -
    Test# Started execution Ended execution Description
    Test 1 16-Jul-2020 16:02:01 16-Jul-2020 16:02:13 This model represents a flight control system for a helicopter that controls pitch attitude, roll attitude and yaw rate based on pilot inputs from the cyclic and pedals. The flight control computer also closes the loop on three hydrualic actuators and has sensor inputs from three Attitude/Heading Reference Systems.
    -
    -

    Summary

    - - - - - - - - - - - - - - - - - - - - - - - - -
    Model Hierarchy/Complexity Test 1  
    Execution  
    1. FCC_Sys_New   100% - - - - - - -
      
     
    -

    Details

    -

    1. Model "FCC_Sys_New"

    -
    - -
    -
    - - - - - - - - - - - - - - - - -
    Metric Coverage (this object) Coverage (inc. descendants)
    Execution NA 100% (1/1) objective outcomes
    -
    -
    -

       Full Coverage

    - - - - - - - - - - - - - -
    Model Object Metric
    ModelReference block "FCC_New" Execution
    -
    -
    - - diff --git a/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_harness.slx b/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_harness.slx deleted file mode 100644 index 4642783dbb48078d8a677d27e05f334b3935aa6e..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_harness.slx and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_replacement.dvo b/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_replacement.dvo deleted file mode 100644 index f59e5378e8f496d7ce7329cf3bdae6e0e51d7b1b..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_replacement.dvo and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_replacement.slx b/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_replacement.slx deleted file mode 100644 index 24583a5cdfed28808e6546473f6fd454a7e359b4..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_replacement.slx and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_sldvdata.mat b/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_sldvdata.mat deleted file mode 100644 index 76e0cc0df8a8cd33b3135805853052a001c4d0a8..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/FCC_Sys_New_sldvdata.mat and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/cov_of_sldv_2020_7_16_16_5_50.html b/src/validation/test_generation/FCC_Sys_New/cov_of_sldv_2020_7_16_16_5_50.html deleted file mode 100644 index 49a9a14568629e60492d4569213ce7ea8c5b867f..0000000000000000000000000000000000000000 --- a/src/validation/test_generation/FCC_Sys_New/cov_of_sldv_2020_7_16_16_5_50.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - Coverage Report by Model - - - -

    Coverage Report by Model

    -

    Top Model: FCC_Sys_New

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
       Complexity       Decision    Execution
     
    TOTAL COVERAGE          94% - - - - - - -
      
       100% - - - - - - -
      
     
    1. . . . ActuatorControl 17       79% - - - - - - -
      
       100% - - - - - - -
      
    2. . . . AHRSControl 44       98% - - - - - - -
      
       100% - - - - - - -
      
    3. . . . FCC_New 0       --    100% - - - - - - -
      
    4. . . . FCC_Sys_New 0       --    100% - - - - - - -
      
    - - diff --git a/src/validation/test_generation/FCC_Sys_New/ps_comments.db b/src/validation/test_generation/FCC_Sys_New/ps_comments.db deleted file mode 100644 index 3e8520fcb62a14dbe9106c8d6cd2666090af173f..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/ps_comments.db and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/ps_results.pscp b/src/validation/test_generation/FCC_Sys_New/ps_results.pscp deleted file mode 100644 index 984e5376fb5f81798af98dbb9adc5328c4ac45a3..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/ps_results.pscp and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/ps_sources.db b/src/validation/test_generation/FCC_Sys_New/ps_sources.db deleted file mode 100644 index cfd5126a452a0ec1a1be0e1b7ab0b64f83e7a4fe..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/ps_sources.db and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/aqua.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/aqua.gif deleted file mode 100644 index 0ba3b3fe8caf0b79758e4985d2363bf24477d359..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/aqua.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/black.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/black.gif deleted file mode 100644 index 8624666d94348cf14ec3425b5018e8d8d5e4d358..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/black.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/blue.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/blue.gif deleted file mode 100644 index 8cc948b1856de88eefe85442c6be39cd5552133e..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/blue.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/codecovreport.css b/src/validation/test_generation/FCC_Sys_New/scv_images/codecovreport.css deleted file mode 100644 index 140448633d3a7399c4507f30944eef306498bf95..0000000000000000000000000000000000000000 --- a/src/validation/test_generation/FCC_Sys_New/scv_images/codecovreport.css +++ /dev/null @@ -1,426 +0,0 @@ -/* Copyright 2014-2016 The MathWorks, Inc. */ - -pre.code { - font-family: Courier; - font-size: small; -} - -table.code { - border-spacing:0px; - border: 0px -} - -table.code tr td { - color: #112266; - vertical-align: top; - white-space:pre; - padding-left: 10px; -} - -table.code tr td:first-child { - font-style: italic; - color: #888888; - text-align: right; - padding-left:0px; -} - -table.code tr td:not(:first-child) span a { - color: inherit; -} - -/* tooltip for embedded coverage info */ -.tooltip { - display:block; - border:1px solid #000; - background: #FFFFEC; - position: absolute; -} - -.tooltipCloseButton { - float:right; - margin: 0px; - padding: 0px; -} - -.tooltipContent { - display:block; - padding-right: 25px; - padding-bottom: 25px; -} - -table.tooltipManyRes { - border-collapse: collapse; - border-style: hidden; -} - -table.tooltipManyRes tr { - border: 1px solid black; - border-left: 0; - border-right: 0; -} - -table.tooltipManyRes td { - padding-right: 25px; - padding-bottom: 25px; -} - -/* comment */ -.ct { - font-style: italic; - color: #117755 -} - -/* preprocessor */ -.pp { - font-weight:bold; - color: #992211 -} - -/* keyword or brace */ -.kw, .br { - font-weight:bold; - color: #112266 -} - -/* data-type */ -.dt { - font-weight:bold; - color: #112266 -} - -/* regular token */ -.tk { - font-style: normal; - color: #112266 -} - -/* not fully covered */ -.nfc { - font-weight: normal; - background-color: pink -} - -/* justified not fully covered */ -.jnfc { - font-weight: normal; - background-color: aqua -} - -/* string or char */ -.st { - font-weight: normal; - color: #B404AE -} - -/* numerical value */ -.nu { - font-weight: normal; - color:blue /* #0B7EF9 */ -} - -/* Files Filtered from Coverage Analysis table. */ -.filter_info { - margin-left: 10px; - border-spacing: 1px; -} - -.filter_info thead { - font-weight: bold; -} - -.filter_info td { - padding: 5px; - padding-right: 10px; -} - -.filter_info td:not(:first-child) { - padding-right: 50px; -} - -/* File Information table. */ -.file_info { - margin-left: 10px; - border-spacing: 1px; -} - -.file_info td { - padding: 5px; - width: 300px; -} - -/* Coverage Options table. */ -.coverage_opts { - margin-left: 10px; - border-spacing: 1px; -} - -.coverage_opts td { - padding: 5px; - margin-left: 10px; -} - -/* Tests table. */ - -.run_info { - margin-left: 10px; - border-spacing: 1px; -} - -.run_info thead { - font-weight: bold; -} - -.run_info td { - padding: 5px; - padding-right: 30px; -} - -/* S-Function Instances table. */ -.instances_info { - margin-left: 10px; - border-spacing: 1px; -} - -.instances_info tr { - vertical-align: top; -} - -.instances_info td { - padding: 5px; -} - -/* Top summary heading. */ -.top_summary_heading { - text-decoration: underline; -} - -/* Top summary table. */ -.top_summary { - border-collapse: collapse; -} - -.top_summary thead > tr > td { - border-top: 1px solid; - border-bottom: 1px solid; -} - -/* Summary[ By Instance] table. */ -.summary { - font-size: small; -} - -.summary { - border-spacing: 1px; -} - -.summary td { - padding: 2px; -} - -.summary td:not(:first-child) { - text-align: center; -} - -.summary thead { - text-align: center; - font-weight: bold; -} - -/* Summary table sub-section. */ -.summary_sub_section { - font-weight: bold; -} - -/* Bar graph in a Summary[ By Instance] table. */ -.bar_graph { - margin-left: 5px; - margin-right: 5px; - border-spacing: 0px; - border-collapse: collapse; -} - -.bar_graph td { - padding: 0px; -} - -.bar_graph img { - border: 0px; - height: 6px; -} - -/* Code references tables (file, function, covered expressions). */ -.code_refs_list { - margin-left: 25px; -} - -.code_refs_list tr { - vertical-align: top; -} - -.code_refs_list td:first-child { /* First column. */ - font-weight: bold; - width: 150px; -} - -/* Inner summary table. */ -.inner_summary { - margin-left: 25px; -} - -.inner_summary thead { - font-weight: bold; -} - -.inner_summary td:first-child { /* Metric column. */ - width: 200px; -} - -.inner_summary td:not(:first-child):not(:last-child) { /* Coverage columns except the last one. */ - width: 400px; -} - -.inner_summary td { - text-align: left; -} - -/* Full coverage summary table. */ -.inner_full_cov_summary { - margin-left: 50px; -} - -.inner_full_cov_summary thead { - font-weight: bold; -} - -.inner_full_cov_summary td:first-child { - padding-right: 50px; - white-space: nowrap; -} - -/* Decisions/Conditions analyzed and MC/DC analysis headings. */ -h5 { - margin-left: 25px; - margin-bottom: 0px; - font-size: 100%; - font-weight: bold; -} - -/* Uncovered row in the Decisions/Conditions analyzed and MC/DC analysis table. */ -.uncovered { - background-color: pink; -} - -/* Justified row in the Decisions/Conditions analyzed and MC/DC analysis table. */ -.justified { - background-color: aqua; -} - -/* Decisions analyzed table. */ -.decision_details { - margin-left: 25px; - border: 1px solid; - border-spacing: 0px; -} - -.decision_details tr td { - padding: 5px; -} - -.decision_details tr td:first-child { /* First column */ - padding: 5px; -} - -.decision_details tr td:first-child code { /* First column containing code snippet */ - font-size: small; -} - -.decision_details tbody > tr > td:first-child { /* First column in outcome rows. */ - padding-left: 25px; -} - -.decision_details thead > tr > td:not(:first-child) { /* Results columns in decision row. */ - text-align: center; -} - -.decision_details tbody > tr > td:not(:first-child) { /* Results columns in outcome rows. */ - text-align: right; -} - -/* Conditions analyzed table. */ -.condition_details { - border: 1px solid; - border-top-color: gray; - border-left-color: gray; - border-right-color: black; - border-bottom-color: black; - border-spacing: 1px; - margin-left: 25px; -} - -.condition_details thead { /* Header row. */ - font-weight: bold; -} - -.condition_details tr td { - border: 1px solid; - border-top-color: black; - border-left-color: black; - border-right-color: gray; - border-bottom-color: gray; - padding: 5px; -} - -.condition_details tr td:first-child { /* First column */ - padding: 5px; -} - -.condition_details tr td:first-child code { /* First column containing code snippet */ - font-size: small; -} - -.condition_details tbody > tr > td:first-child { /* First column in conditions rows. */ - padding-left: 25px; -} - -.condition_details td:not(:first-child) { /* Results columns. */ - text-align: center; -} - -/* MC/DC analysis table. */ -.mcdc_details { - margin-left: 25px; - border: 1px solid; - border-spacing: 0px; -} - -.mcdc_details thead { /* Header row. */ - font-weight: bold; -} - -.mcdc_details td { - padding: 5px; -} - -.mcdc_details tr td:first-child { /* First column */ - padding: 5px; -} - -.mcdc_details tbody > tr:not(:first-child) > td:first-child { /* First column in conditions rows. */ - padding-left: 25px; -} - -.mcdc_details tbody > tr:not(:first-child) > td:first-child code { /* First column in conditions rows - containing code snippet */ - font-size: small; -} - -.mcdc_details td:not(:first-child) { /* Results columns. */ - width: 35px; - text-align: center; -} - -/* Current condition in a MC/DC combination. */ -.curr_cnd_in_combination { - font-weight: bold; - color: blue; -} diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/codecovreport_utils.js b/src/validation/test_generation/FCC_Sys_New/scv_images/codecovreport_utils.js deleted file mode 100644 index d83f4cc308f9547a3ebc68a44a66bd1c9b681483..0000000000000000000000000000000000000000 --- a/src/validation/test_generation/FCC_Sys_New/scv_images/codecovreport_utils.js +++ /dev/null @@ -1,249 +0,0 @@ -// Copyright 2014-2016 The MathWorks, Inc. - -(function() { - - // Private object for storing a ref and its tooltip - var href2Span = {}; - - // Private function for extracting the recognized ref - // (only href like #funX, #nodeX and #covX are supported) - function getCandidateRef(href) { - var res = undefined; - try { - if (typeof(href)==="string" && href.length > 4) { - var ref = href.substring(1,4); - if (ref=="fun" || ref=="cov" || ref=="nod") { - res = href.substring(1); - } - } - } catch (err) { - } - return res; - } - - // Initialize the candidates in the current document - // (only register listener for element of class "covlnk" - // with a supported href) - function register() { - try { - var lnks = document.getElementsByClassName("covlnk"); - if (lnks) { - for (var i = 0; i < lnks.length; i++) { - var lnk = lnks[i]; - var ref = getCandidateRef(lnk.getAttribute("href")); - if (ref) { - addListener(lnk, "mouseover", openTooltip); - var otherRefs = lnk.getAttribute("otherRefs"); - if (otherRefs) { - var refs = otherRefs.split(","); - href2Span[ref] = refs; - } - } - } - } - } catch (err) { - } - } - - // Close/delete the current opened tooltip - function closeTooltip(event) { - // Close the tooltip if opened - var sElem = href2Span["current"]; - if (sElem && sElem[1]) { - // Close the tooltip - sElem[1].removeChild(sElem[0]); - href2Span["current"] = undefined; - return; - } - } - - // Helper for positionning the tooltip - function getCoords(originalElement) - { - var left = 0; - var top = 0; - var width = 0; - var height = 0; - - var coords = new Array(); - - var originalParent = null; - var offsetParent = null; - var element = null; - - if (originalElement==null) - return null; - - var originalParent = originalElement.parentNode; - var offsetParent = originalElement.offsetParent; - var element = originalElement; - - if (originalElement.offsetWidth) - width = originalElement.offsetWidth; - - if (originalElement.offsetHeight) - height = originalElement.offsetHeight; - - - while (element.parentNode != null) { - element = element.parentNode; - - if (element.offsetParent != null) { - // Handle scrolling - if (element.scrollLeft && (element.scrollLeft > 0)) - left -= element.scrollLeft; - - if (element.scrollTop && (element.scrollTop > 0)) - top -= element.scrollTop; - } - - if (element == offsetParent) { - left += originalElement.offsetLeft; - if (element.clientLeft && element.nodeName!="TABLE") - left += element.clientLeft; - - top += originalElement.offsetTop; - if (element.clientTop && element.nodeName!="TABLE") - top += element.clientTop; - - originalElement = element; - offsetParent = originalElement.offsetParent; - - if (originalElement.offsetParent==null) { - if (originalElement.offsetLeft) - left += originalElement.offsetLeft; - - if (originalElement.offsetTop) - top += originalElement.offsetTop; - } - } - } - - coords.left = left; - coords.top = top; - coords.width = width; - coords.height = height; - - return(coords); - } - - // Get the node's details corresponding to the given ref - function getNodeDetails(ref) { - var obj = undefined; - var objs = document.getElementsByName("tt_" + ref); - if (objs) { - obj = objs[0]; - var parent = obj.parentNode; - if (parent && parent.nodeName.toUpperCase()=="DIV" && parent.getAttribute("name")=="node_details") { - obj = obj.parentNode; - } - } - return obj; - } - - // Clone a DOM node and remove any inner href - function cloneNodeForTooltip(aNode) - { - var newObj = aNode.cloneNode(true); - var aList = newObj.getElementsByTagName("a"); - for(var i = 0; i < aList.length; i++) { - aList[i].removeAttribute("href"); - } - return newObj; - } - - // Helper for adding a new table's row in the tooltip - function addTooltipRow(table, data) - { - var tr = document.createElement("tr"); - var td = document.createElement("td"); - - table.appendChild(tr); - tr.appendChild(td); - td.appendChild(data); - } - - // Create/show a tooltip - function openTooltip(event) { - try { - // Early return if not a supported candidate - var ref = getCandidateRef(event.target.getAttribute("href")); - if (!ref) { - return; - } - - // Close the current tooltip - var sElem = href2Span["current"]; - if (sElem && sElem[1]) { - sElem[1].removeChild(sElem[0]); - href2Span["current"] = undefined; - } - - // Create a new entry - var obj = getNodeDetails(ref); - if (obj) { - var spanElem = document.createElement("span"); - spanElem.className = "tooltip"; - var newObj = cloneNodeForTooltip(obj); - - var inputTopBarElem = document.createElement("input"); - inputTopBarElem.className = "tooltipCloseButton"; - inputTopBarElem.type = "button"; - inputTopBarElem.value = "X"; - addListener(inputTopBarElem, "click", closeTooltip); - - var spanTopBarElem = document.createElement("span"); - spanTopBarElem.appendChild(inputTopBarElem); - spanElem.appendChild(spanTopBarElem); - - var otherRefs = href2Span[ref]; - var tableElem = undefined; - if (otherRefs) { - for (var i = 0; i < otherRefs.length; i++) { - obj = getNodeDetails(otherRefs[i]); - if (obj) { - if (!tableElem) { - tableElem = document.createElement("table"); - tableElem.setAttribute("class", "tooltipManyRes"); - addTooltipRow(tableElem, newObj); - } - var newOtherObj = cloneNodeForTooltip(obj); - addTooltipRow(tableElem, newOtherObj); - } - } - } - - if (tableElem) { - spanElem.appendChild(tableElem); - } else { - var spanContentElem = document.createElement("span"); - spanContentElem.className = "tooltipContent"; - spanContentElem.appendChild(newObj); - spanElem.appendChild(spanContentElem); - } - - var pos = getCoords(event.target.parentNode); - spanElem.style.left = pos.left + 'px'; - spanElem.style.top = (pos.top + pos.height) + 'px'; - document.body.appendChild(spanElem); - href2Span["current"] = [spanElem, document.body]; - - } - } catch (err) { - } - } - - // Helper for registering a listener - function addListener(obj, type, fn) { - if (obj.addEventListener) { - obj.addEventListener(type, fn, false); - } else if (obj.attachEvent) { - obj.attachEvent("on" + type, fn); - } - } - - // Register the listener - addListener(window, "load", register); - -})(); - diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/covreport_utils.js b/src/validation/test_generation/FCC_Sys_New/scv_images/covreport_utils.js deleted file mode 100644 index 8c61dff4e3280221597c2d9bd40ca9cb6fd49933..0000000000000000000000000000000000000000 --- a/src/validation/test_generation/FCC_Sys_New/scv_images/covreport_utils.js +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2014 The MathWorks, Inc. - -(function() { - - function fixAbsolutePath() { - try { - var baseURI = document.baseURI; - if (typeof(baseURI) !== "string"){ - if (document.location) baseURI = document.location.href; - if (typeof(baseURI) !== "string") baseURI = window.location.href; - if (typeof(baseURI) !== "string") baseURI = document.URL.replace("\\", "/"); - } - var path = baseURI.substring(0, baseURI.lastIndexOf("/")); - var aList = document.getElementsByTagName("a"); - for (var i = 0; i < aList.length; i++) { - var href = aList[i].href; - if (href !== "string" && href.search(/^file:\/\//)!=-1 && href.search(/\.html$/)!=-1) { - var idx = href.lastIndexOf("/"); - if (idx) { - aList[i].setAttribute("href", path + href.substring(idx)); - } - } - } - } catch (err) {} - } - - // Register the listener - if (window.addEventListener) { - window.addEventListener("load", fixAbsolutePath, false); - } else if (window.attachEvent) { - window.attachEvent("onload", fixAbsolutePath); - } - -})(); diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/dkgrn.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/dkgrn.gif deleted file mode 100644 index 73315079579d6b614a140c2004b43c8fd5fe064b..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/dkgrn.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/filter_add.png b/src/validation/test_generation/FCC_Sys_New/scv_images/filter_add.png deleted file mode 100644 index d30378fd4943cb018e7779525882a92fc558c7d2..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/filter_add.png and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/filter_remove.png b/src/validation/test_generation/FCC_Sys_New/scv_images/filter_remove.png deleted file mode 100644 index 73e8678a37776ea6fa3b62582a55a65b9b582a25..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/filter_remove.png and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/grn01.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/grn01.gif deleted file mode 100644 index 0b608498b29ac3fe69d22a24c579b4815537efa0..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/grn01.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/grn02.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/grn02.gif deleted file mode 100644 index 2d05732d22949518e528ce15a2d577b7a3f0206e..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/grn02.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/grn03.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/grn03.gif deleted file mode 100644 index cb9196bd601f15433d98dd7562ecf42ac1c83674..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/grn03.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/grn04.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/grn04.gif deleted file mode 100644 index d3aee76537f852f8d33e2556555e2218d2216629..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/grn04.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/grn05.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/grn05.gif deleted file mode 100644 index 4d6bfeb5021f42ace42e1741e39a4be8b7f156eb..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/grn05.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/grn06.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/grn06.gif deleted file mode 100644 index 3ce4f85c5096aba1c8a8631fb1de4127acc697e3..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/grn06.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/grn07.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/grn07.gif deleted file mode 100644 index b814005ecd471b14f44971856db201e021aa29a8..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/grn07.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/grn08.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/grn08.gif deleted file mode 100644 index 995eb3a03581db21926a379a29e3da92acfec8d6..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/grn08.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/grn09.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/grn09.gif deleted file mode 100644 index b2df1eb1781c0d5be7bf3dbcdafb9fed18f21013..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/grn09.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/horz_line.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/horz_line.gif deleted file mode 100644 index c7c3024980ba5205d8d9afb355fab2e3b6484084..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/horz_line.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/htmlfile.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/htmlfile.gif deleted file mode 100644 index c4fe6d8b079b41ca89b7903f1f7990ef14852e3d..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/htmlfile.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/left_arrow.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/left_arrow.gif deleted file mode 100644 index e3cdc0c137ef9dc9342b74e6cceab9c3c0c6b0eb..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/left_arrow.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/ltBlu.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/ltBlu.gif deleted file mode 100644 index 0ba3b3fe8caf0b79758e4985d2363bf24477d359..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/ltBlu.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/ltblue.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/ltblue.gif deleted file mode 100644 index 4e6e9a2c8a73b36912435821aac6500a6654ba87..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/ltblue.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/ltgrn.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/ltgrn.gif deleted file mode 100644 index 7975c6ff7741eb61aff502e1d5fdf7875b51b764..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/ltgrn.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/modelcovreport.css b/src/validation/test_generation/FCC_Sys_New/scv_images/modelcovreport.css deleted file mode 100644 index 43664d803aff7149c9a3233051118e9eb11acf2d..0000000000000000000000000000000000000000 --- a/src/validation/test_generation/FCC_Sys_New/scv_images/modelcovreport.css +++ /dev/null @@ -1,22 +0,0 @@ -/* Copyright 2017 The MathWorks, Inc. */ -.cvtablecellinfo { - visibility: hidden; - position: absolute; - text-align: center; - background-color: #CCD1D1; - left: -10px; - bottom: 20px; - z-index: 1; -} -.cvtablecell:hover .cvtablecellinfo { - visibility: visible; -} - -.cvtablecellinfo > table { - white-space: nowrap; -} - -.cvtable { - border-collapse: collapse; - border: 1px solid black; -} \ No newline at end of file diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/pink.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/pink.gif deleted file mode 100644 index 80d6bcd72341232350b39d7c9066fc783742552e..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/pink.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/purple.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/purple.gif deleted file mode 100644 index 3d09e7ac261db07ca25ad5396ab316831f44ef5d..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/purple.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/red.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/red.gif deleted file mode 100644 index f74f1105c9286d4ba4e88264b172640789823bc1..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/red.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/right_arrow.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/right_arrow.gif deleted file mode 100644 index b67bf0a84d0c4cc5c2658199875efb6b0dd87034..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/right_arrow.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/trans.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/trans.gif deleted file mode 100644 index 1d11fa9ada9e93505b3d736acb204083f45d5fbf..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/trans.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/version110.txt b/src/validation/test_generation/FCC_Sys_New/scv_images/version110.txt deleted file mode 100644 index 6c963212f9a7b76701491cfaf6d7817ba3cb2de9..0000000000000000000000000000000000000000 --- a/src/validation/test_generation/FCC_Sys_New/scv_images/version110.txt +++ /dev/null @@ -1,2 +0,0 @@ -Do not delete this file! It is used for -detecting image file changes. \ No newline at end of file diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/vert_line.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/vert_line.gif deleted file mode 100644 index 23279fa4d89f5b7ffab4c124bf8cb6b9cc3af5cb..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/vert_line.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/white.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/white.gif deleted file mode 100644 index aeff4659a65da8b3e2a15c9f9c868fec74e04131..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/white.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/scv_images/yellow.gif b/src/validation/test_generation/FCC_Sys_New/scv_images/yellow.gif deleted file mode 100644 index 3cc4e7c46a953d7d138faed0bdebc38aa8c6f63a..0000000000000000000000000000000000000000 Binary files a/src/validation/test_generation/FCC_Sys_New/scv_images/yellow.gif and /dev/null differ diff --git a/src/validation/test_generation/FCC_Sys_New/sldv_log_2020_7_16_16_2_30.txt b/src/validation/test_generation/FCC_Sys_New/sldv_log_2020_7_16_16_2_30.txt deleted file mode 100644 index 5411859b7d8a9bac8be1f6e36d4034054e5bb4d2..0000000000000000000000000000000000000000 --- a/src/validation/test_generation/FCC_Sys_New/sldv_log_2020_7_16_16_2_30.txt +++ /dev/null @@ -1,686 +0,0 @@ - -16-Jul-2020 16:01:30 -Preprocessing model...done -Checking compatibility for test generation: model 'FCC_Sys_New' -Compiling model...done -Building model representation...done - -16-Jul-2020 16:01:48 -'FCC_Sys_New_replacement' is compatible for test generation with Simulink Design Verifier. - - -Generating tests using model representation from 16-Jul-2020 16:01:48... - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop/Integrator -integration result >= upper limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop/Integrator -integration result <= lower limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop/Integrator -integration result <= lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop/Integrator1 -integration result <= lower limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop/Integrator1 -integration result <= lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop/Integrator2 -integration result >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop/Integrator1 -integration result >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Roll_loop/Integrator1 -integration result >= upper limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Saturation -input(3) >= upper limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Saturation -input(2) > lower limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Saturation -input(3) > lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Pitch_loop/Integrator -integration result >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Saturation -input(3) >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Saturation -input(2) > lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Saturation -input(1) > lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Saturation -input(2) >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Saturation -input(2) >= upper limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Saturation -input(3) > lower limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/pitch_feedback -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/roll_feedback -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Saturation -input(1) >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/yaw_feedback -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Saturation -input(1) >= upper limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Saturation -input(1) > lower limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_inner_loop/Filter -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop/Integrator2 -integration result >= upper limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Saturation2 -input > lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Saturation1 -input >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Saturation -input >= upper limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Saturation1 -input > lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop/Integrator2 -integration result <= lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Yaw_loop/Integrator2 -integration result <= lower limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Saturation -input > lower limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Saturation2 -input > lower limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Saturation2 -input >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Saturation -input >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Saturation2 -input >= upper limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax -Logic to determine output element 3 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Avg_Value/Switch2 -logical trigger input false (output is from 3rd input port) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax -Logic to determine output element 1 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRSLoopCtrl/Heli_outer_loop/Saturation -input > lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Avg_Value/Switch -logical trigger input false (output is from 3rd input port) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Avg_Value/Switch1 -logical trigger input true (output is from 1st input port) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Avg_Value/Switch2 -logical trigger input true (output is from 1st input port) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax -Logic to determine output element 2 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Avg_Value/Switch1 -logical trigger input false (output is from 3rd input port) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Avg_Value/Switch -logical trigger input true (output is from 1st input port) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Avg_Value -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax -Logic to determine output element 2 input 2 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax -Logic to determine output element 3 input 2 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax -Logic to determine output element 5 input 2 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax1 -Logic to determine output element 1 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax1 -Logic to determine output element 3 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax -Logic to determine output element 4 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax1 -Logic to determine output element 2 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax1 -Logic to determine output element 4 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax1 -Logic to determine output element 5 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax -Logic to determine output element 5 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 1 input 1 is the maximum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 2 input 1 is the maximum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax2 -Logic to determine output element 5 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax1 -Logic to determine output element 1 input 2 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 3 input 1 is the maximum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 4 input 1 is the maximum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax2 -Logic to determine output element 1 input 2 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 5 input 1 is the maximum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax1 -Logic to determine output element 4 input 2 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax1 -Logic to determine output element 5 input 2 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax2 -Logic to determine output element 3 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax2 -Logic to determine output element 2 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax1 -Logic to determine output element 3 input 2 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax2 -Logic to determine output element 3 input 2 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax2 -Logic to determine output element 5 input 2 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax2 -Logic to determine output element 2 input 2 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax2 -Logic to determine output element 4 input 2 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax2 -Logic to determine output element 4 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax2 -Logic to determine output element 1 input 1 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Single_Value/Switch -logical trigger input false (output is from 3rd input port) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 3 input 3 is the maximum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Single_Value/Switch2 -logical trigger input true (output is from 1st input port) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 3 input 2 is the maximum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Single_Value/Switch -logical trigger input true (output is from 1st input port) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Single_Value/Switch2 -logical trigger input false (output is from 3rd input port) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 1 input 2 is the maximum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 2 input 2 is the maximum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 4 input 2 is the maximum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Single_Value -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/MultiportSwitch -integer input value = 0 (output is from input port 0) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 5 input 3 is the maximum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 2 input 3 is the maximum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Single_Value/Switch1 -logical trigger input false (output is from 3rd input port) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Single_Value/Switch1 -logical trigger input true (output is from 1st input port) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor3_loop -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor2_loop/Integrator -integration result >= upper limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor1_loop -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor3_loop/Integrator -integration result >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor1_loop/Integrator -integration result <= lower limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor2_loop/Integrator -integration result <= lower limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor3_loop/Integrator -integration result >= upper limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor3_loop/Integrator -integration result <= lower limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor2_loop/Integrator -integration result <= lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor1_loop/Integrator -integration result <= lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor2_loop -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/MultiportSwitch -integer input value = 1 (output is from input port 1) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor1_loop/Integrator -integration result >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor1_loop/Integrator -integration result >= upper limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/MultiportSwitch -integer input value = 2 (output is from input port 2) -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor2_loop/Integrator -integration result >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Saturation1 -input >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Actuaor3_loop/Integrator -integration result <= lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Saturation2 -input >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Saturation1 -input > lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Saturation -input > lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Saturation2 -input > lower limit true -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control/Saturation -input >= upper limit false -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/ActuatorControl/Actuator_Control -Function call executed -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax -Logic to determine output element 4 input 2 is the minimum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 4 input 3 is the maximum -Analysis Time = 00:00:15 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax -Logic to determine output element 1 input 2 is the minimum -Analysis Time = 00:00:18 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 1 input 3 is the maximum -Analysis Time = 00:00:18 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax1 -Logic to determine output element 2 input 2 is the minimum -Analysis Time = 00:00:19 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/Mid_Value/MinMax3 -Logic to determine output element 5 input 2 is the maximum -Analysis Time = 00:00:20 - -SATISFIED -FCC_New/AHRSControl/AHRS_Control/AHRS_voter/MultiportSwitch -integer input value = *,3 (output is from input port 3) -Analysis Time = 00:00:22 - - -16-Jul-2020 16:02:29 - -Completed normally. - -Generating output files: - -16-Jul-2020 16:02:30 -Results generation completed. - - Data file: - D:\Documents\SCHOOL\McSCert\do178\src\validation\test_generation\FCC_Sys_New\FCC_Sys_New_sldvdata.mat -