⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c4_new11.c

📁 FFH, pre-hopping anti-jamming system
💻 C
📖 第 1 页 / 共 5 页
字号:
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,81);
      c4_u2_tem = c4_b_u[1];
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,82);
      c4_u4_tem = c4_b_u[3];
      /* one is greater than threshold,the other is less than threshold */
      goto label_1;
    }
  }
  CV_EML_MCDC(0, 1, false);
  CV_EML_IF(0, 8, false);
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,86);
  if(CV_EML_COND(0, 4, c4_b_u[1] >= c4_threshold)) {
    if(CV_EML_COND(0, 5, c4_b_u[3] >= c4_threshold)) {
      CV_EML_MCDC(0, 2, true);
      CV_EML_IF(0, 9, true);
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,87);
      if(CV_EML_COND(0, 6,
        c4_Matrix_u2[(int32_T)_SFD_EML_ARRAY_BOUNDS_CHECK("Matrix_u2",
         (int32_T)_SFD_INTEGER_CHECK("", c4_fhnum + 1.0)
         , 1, 32, 1) - 1] == 0.0)) {
        if(CV_EML_COND(0, 7,
          c4_Matrix_u4[(int32_T)_SFD_EML_ARRAY_BOUNDS_CHECK("Matrix_u4",
           (int32_T)_SFD_INTEGER_CHECK("", c4_fhnum + 1.0)
           , 1, 32, 1) - 1] == 0.0)) {
          CV_EML_MCDC(0, 3, true);
          CV_EML_IF(0, 10, true);
          _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,88);
          if(CV_EML_IF(0, 11, c4_b_u[1] > c4_b_u[3])) {
            _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,89);
            c4_u2_tem = 0.5 * c4_threshold;
            _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,90);
            c4_u4_tem = c4_threshold;
          } else {
            _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,92);
            c4_u2_tem = c4_threshold;
            _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,93);
            c4_u4_tem = 0.5 * c4_threshold;
          }
          goto label_2;
        }
      }
      CV_EML_MCDC(0, 3, false);
      CV_EML_IF(0, 10, false);
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,95);
      if(CV_EML_IF(0, 12, c4_tem1 > c4_tem2)) {
        _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,96);
        c4_u2_tem = c4_threshold;
        _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,97);
        c4_u4_tem = c4_threshold;
      } else {
        _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,99);
        c4_u2_tem = c4_threshold;
        _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,100);
        c4_u4_tem = c4_threshold;
      }
      label_2:;
      /*  both are greater than threshold */
      goto label_1;
    }
  }
  CV_EML_MCDC(0, 2, false);
  CV_EML_IF(0, 9, false);
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,104);
  if(CV_EML_COND(0, 8, c4_b_u[1] < c4_threshold)) {
    if(CV_EML_COND(0, 9, c4_b_u[3] < c4_threshold)) {
      CV_EML_MCDC(0, 4, true);
      CV_EML_IF(0, 13, true);
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,105);
      if(CV_EML_COND(0, 10,
        c4_Matrix_u2[(int32_T)_SFD_EML_ARRAY_BOUNDS_CHECK("Matrix_u2",
         (int32_T)_SFD_INTEGER_CHECK("", c4_fhnum + 1.0)
         , 1, 32, 1) - 1] == 0.0)) {
        if(CV_EML_COND(0, 11,
          c4_Matrix_u4[(int32_T)_SFD_EML_ARRAY_BOUNDS_CHECK("Matrix_u4",
           (int32_T)_SFD_INTEGER_CHECK("", c4_fhnum + 1.0)
           , 1, 32, 1) - 1] == 0.0)) {
          CV_EML_MCDC(0, 5, true);
          CV_EML_IF(0, 14, true);
          _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,106);
          c4_u2_tem = c4_b_u[1];
          _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,107);
          c4_u4_tem = c4_b_u[3];
          goto label_1;
        } else {
          goto label_3;
        }
      } else {
        goto label_3;
      }
    }
  }
  CV_EML_MCDC(0, 4, false);
  CV_EML_IF(0, 13, false);
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,116);
  c4_u2_tem = c4_b_u[1];
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,117);
  c4_u4_tem = c4_b_u[3];
  goto label_1;
  label_3:;
  CV_EML_MCDC(0, 5, false);
  CV_EML_IF(0, 14, false);
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,108);
  if(CV_EML_IF(0, 15, c4_tem1 > c4_tem2)) {
    _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,109);
    c4_u2_tem = c4_threshold;
    _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,110);
    c4_u4_tem = c4_threshold;
  } else {
    _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,112);
    c4_u2_tem = c4_threshold;
    _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,113);
    c4_u4_tem = c4_threshold;
  }
  label_1:;
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,122);
  c4_Matrix_Delt[(int32_T)_SFD_EML_ARRAY_BOUNDS_CHECK("Matrix_Delt",
   (int32_T)_SFD_INTEGER_CHECK("", c4_fhnum + 1.0), 1, 32, 1) - 1]
  = c4_Delt;
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,123);
  c4_Matrix_u2[(int32_T)_SFD_EML_ARRAY_BOUNDS_CHECK("Matrix_u2",
   (int32_T)_SFD_INTEGER_CHECK("", c4_fhnum + 1.0), 1, 32, 1) - 1] =
    c4_b_u[1];
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,124);
  c4_Matrix_u4[(int32_T)_SFD_EML_ARRAY_BOUNDS_CHECK("Matrix_u4",
   (int32_T)_SFD_INTEGER_CHECK("", c4_fhnum + 1.0), 1, 32, 1) - 1] =
    c4_b_u[3];
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,130);
  c4_d_A = c4_u2_tem - c4_u4_tem;
  c4_f_x = c4_u2_tem * c4_u2_tem + c4_u4_tem * c4_u4_tem;
  c4_B = c4_f_x;
  if(c4_B < 0.0) {
    for(c4_i10 = 0; c4_i10 < 31; c4_i10 = c4_i10 + 1) {
      c4_c_u[c4_i10] = c4_cv0[c4_i10];
    }
    c4_c_y = NULL;
    sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 8, 0U, 1U, 2, 1, 31));
    for(c4_i11 = 0; c4_i11 < 77; c4_i11 = c4_i11 + 1) {
      c4_d_u[c4_i11] = c4_cv1[c4_i11];
    }
    c4_d_y = NULL;
    sf_mex_assign(&c4_d_y, sf_mex_create(&c4_d_u, "y", 8, 0U, 1U, 2, 1, 77));
    sf_mex_call("error", 0U, 2U, 14, c4_c_y, 14, c4_d_y);
  }
  c4_B = sqrt(c4_B);
  c4_g_x = c4_d_A;
  c4_e_y = c4_B;
  c4_f_y = c4_g_x / c4_e_y;
  c4_dv5[0] = c4_f_y;
  c4_dv5[1] = c4_Delt;
  c4_dv5[2] = c4_Matrix_u2[0];
  c4_dv5[3] = c4_Matrix_u2[1];
  c4_dv5[4] = c4_Matrix_u2[2];
  c4_dv5[5] = c4_Matrix_u2[3];
  c4_dv5[6] = c4_Matrix_u2[4];
  c4_dv5[7] = c4_Matrix_u2[5];
  c4_dv5[8] = c4_Matrix_u2[6];
  c4_dv5[9] = c4_Matrix_u2[7];
  c4_dv5[10] = c4_Matrix_u2[8];
  c4_dv5[11] = c4_Matrix_u2[9];
  c4_dv5[12] = c4_Matrix_u2[10];
  c4_dv5[13] = c4_Matrix_u2[11];
  c4_dv5[14] = c4_Matrix_u2[12];
  c4_dv5[15] = c4_Matrix_u2[13];
  c4_dv5[16] = c4_Matrix_u2[14];
  c4_dv5[17] = c4_Matrix_u2[15];
  c4_dv5[18] = c4_Matrix_u2[16];
  c4_dv5[19] = c4_Matrix_u2[17];
  c4_dv5[20] = c4_Matrix_u2[18];
  c4_dv5[21] = c4_Matrix_u2[19];
  c4_dv5[22] = c4_Matrix_u2[20];
  c4_dv5[23] = c4_Matrix_u2[21];
  c4_dv5[24] = c4_Matrix_u2[22];
  c4_dv5[25] = c4_Matrix_u2[23];
  c4_dv5[26] = c4_Matrix_u2[24];
  c4_dv5[27] = c4_Matrix_u2[25];
  c4_dv5[28] = c4_Matrix_u2[26];
  c4_dv5[29] = c4_Matrix_u2[27];
  c4_dv5[30] = c4_Matrix_u2[28];
  c4_dv5[31] = c4_Matrix_u2[29];
  c4_dv5[32] = c4_Matrix_u2[30];
  c4_dv5[33] = c4_Matrix_u2[31];
  c4_dv5[34] = c4_Matrix_u4[0];
  c4_dv5[35] = c4_Matrix_u4[1];
  c4_dv5[36] = c4_Matrix_u4[2];
  c4_dv5[37] = c4_Matrix_u4[3];
  c4_dv5[38] = c4_Matrix_u4[4];
  c4_dv5[39] = c4_Matrix_u4[5];
  c4_dv5[40] = c4_Matrix_u4[6];
  c4_dv5[41] = c4_Matrix_u4[7];
  c4_dv5[42] = c4_Matrix_u4[8];
  c4_dv5[43] = c4_Matrix_u4[9];
  c4_dv5[44] = c4_Matrix_u4[10];
  c4_dv5[45] = c4_Matrix_u4[11];
  c4_dv5[46] = c4_Matrix_u4[12];
  c4_dv5[47] = c4_Matrix_u4[13];
  c4_dv5[48] = c4_Matrix_u4[14];
  c4_dv5[49] = c4_Matrix_u4[15];
  c4_dv5[50] = c4_Matrix_u4[16];
  c4_dv5[51] = c4_Matrix_u4[17];
  c4_dv5[52] = c4_Matrix_u4[18];
  c4_dv5[53] = c4_Matrix_u4[19];
  c4_dv5[54] = c4_Matrix_u4[20];
  c4_dv5[55] = c4_Matrix_u4[21];
  c4_dv5[56] = c4_Matrix_u4[22];
  c4_dv5[57] = c4_Matrix_u4[23];
  c4_dv5[58] = c4_Matrix_u4[24];
  c4_dv5[59] = c4_Matrix_u4[25];
  c4_dv5[60] = c4_Matrix_u4[26];
  c4_dv5[61] = c4_Matrix_u4[27];
  c4_dv5[62] = c4_Matrix_u4[28];
  c4_dv5[63] = c4_Matrix_u4[29];
  c4_dv5[64] = c4_Matrix_u4[30];
  c4_dv5[65] = c4_Matrix_u4[31];
  c4_dv5[66] = c4_Matrix_Delt[0];
  c4_dv5[67] = c4_Matrix_Delt[1];
  c4_dv5[68] = c4_Matrix_Delt[2];
  c4_dv5[69] = c4_Matrix_Delt[3];
  c4_dv5[70] = c4_Matrix_Delt[4];
  c4_dv5[71] = c4_Matrix_Delt[5];
  c4_dv5[72] = c4_Matrix_Delt[6];
  c4_dv5[73] = c4_Matrix_Delt[7];
  c4_dv5[74] = c4_Matrix_Delt[8];
  c4_dv5[75] = c4_Matrix_Delt[9];
  c4_dv5[76] = c4_Matrix_Delt[10];
  c4_dv5[77] = c4_Matrix_Delt[11];
  c4_dv5[78] = c4_Matrix_Delt[12];
  c4_dv5[79] = c4_Matrix_Delt[13];
  c4_dv5[80] = c4_Matrix_Delt[14];
  c4_dv5[81] = c4_Matrix_Delt[15];
  c4_dv5[82] = c4_Matrix_Delt[16];
  c4_dv5[83] = c4_Matrix_Delt[17];
  c4_dv5[84] = c4_Matrix_Delt[18];
  c4_dv5[85] = c4_Matrix_Delt[19];
  c4_dv5[86] = c4_Matrix_Delt[20];
  c4_dv5[87] = c4_Matrix_Delt[21];
  c4_dv5[88] = c4_Matrix_Delt[22];
  c4_dv5[89] = c4_Matrix_Delt[23];
  c4_dv5[90] = c4_Matrix_Delt[24];
  c4_dv5[91] = c4_Matrix_Delt[25];
  c4_dv5[92] = c4_Matrix_Delt[26];
  c4_dv5[93] = c4_Matrix_Delt[27];
  c4_dv5[94] = c4_Matrix_Delt[28];
  c4_dv5[95] = c4_Matrix_Delt[29];
  c4_dv5[96] = c4_Matrix_Delt[30];
  c4_dv5[97] = c4_Matrix_Delt[31];
  for(c4_i12 = 0; c4_i12 < 98; c4_i12 = c4_i12 + 1) {
    c4_b_y[c4_i12] = c4_dv5[c4_i12];
  }
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,-130);
  sf_debug_symbol_scope_pop();
}

static const mxArray *c4_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  int32_T c4_i13;
  real_T c4_c_u[1025];
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  for(c4_i13 = 0; c4_i13 < 1025; c4_i13 = c4_i13 + 1) {
    c4_c_u[c4_i13] = (*(real_T (*)[1025])c4_b_u)[c4_i13];
  }
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 1U, 1, 1025));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_b_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_c_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_d_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_e_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  real_T c4_c_u;
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  c4_c_u = *(real_T *)c4_b_u;
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 0U, 0));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_f_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -