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

📄 c4_multitones_forhop_hard1.c

📁 FFH, pre-hopping anti-jamming system
💻 C
📖 第 1 页 / 共 4 页
字号:
  }
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,52);
  c4_b_A = c4_Mean - c4_MaxAmpSum;
  c4_b_x = c4_b_A;
  c4_Mean = c4_b_x / 924.0;
  while(CV_EML_WHILE(0, 4, c4_counter2 < 1025.0)) {
    _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,54);
    c4_Delt = c4_Delt + (c4_b_u[(int32_T)_SFD_EML_ARRAY_BOUNDS_CHECK("u",
      (int32_T)_SFD_INTEGER_CHECK("counter2", c4_counter2), 1, 1025
      , 1) - 1] - c4_Mean) * (c4_b_u[(int32_T)_SFD_EML_ARRAY_BOUNDS_CHECK("u",
      (int32_T)_SFD_INTEGER_CHECK("counter2", c4_counter2), 1,
      1025, 1) - 1] - c4_Mean);
    _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,55);
    c4_counter2 = c4_counter2 + 1.0;
  }
  while(CV_EML_WHILE(0, 5, c4_counter3 < 101.0)) {
    _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,59);
    if(CV_EML_IF(0, 3,
      c4_MaxAmpNum[(int32_T)_SFD_EML_ARRAY_BOUNDS_CHECK("MaxAmpNum",
       (int32_T)_SFD_INTEGER_CHECK("counter3",
        c4_counter3), 1, 100, 1) - 1] != 0.0)) {
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,60);
      c4_Delt_part = c4_Delt_part +
        (c4_b_u[(int32_T)_SFD_EML_ARRAY_BOUNDS_CHECK("u",
        (int32_T)_SFD_INTEGER_CHECK("", c4_MaxAmpNum[(
          int32_T)_SFD_EML_ARRAY_BOUNDS_CHECK("MaxAmpNum",
          (int32_T)_SFD_INTEGER_CHECK("counter3", c4_counter3), 1, 100, 1) -
         1]), 1, 1025, 1)
       - 1] - c4_Mean) * (c4_b_u[(int32_T)_SFD_EML_ARRAY_BOUNDS_CHECK("u",
        (int32_T)_SFD_INTEGER_CHECK("", c4_MaxAmpNum[(int32_T)
         _SFD_EML_ARRAY_BOUNDS_CHECK("MaxAmpNum",
          (int32_T)_SFD_INTEGER_CHECK("counter3", c4_counter3), 1, 100, 1) -
         1]), 1, 1025, 1) - 1] -
       c4_Mean);
    }
    _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,62);
    c4_counter3 = c4_counter3 + 1.0;
  }
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,64);
  c4_c_A = 0.12 * (c4_Delt - c4_Delt_part);
  c4_c_x = c4_c_A;
  c4_Delt = c4_c_x / 924.0;
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,65);
  if(CV_EML_IF(0, 4,
    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] != 0.0)) {
    _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,66);
    c4_Delt = (c4_Delt +
      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]) * 0.5;
  }
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,68);
  if(CV_EML_IF(0, 5, c4_flag == 0.0)) {
    _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,69);
    if(CV_EML_IF(0, 6, c4_Delt > c4_Matrix_DeltMean)) {
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,70);
      c4_Delt = c4_Matrix_DeltMean;
    }
  }
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,74);
  c4_threshold = 0.3 * c4_Delt;
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,76);
  if(CV_EML_COND(0, 0, c4_b_u[1] >= c4_threshold)) {
    if(CV_EML_COND(0, 1, c4_b_u[3] < c4_threshold)) {
      CV_EML_MCDC(0, 0, true);
      CV_EML_IF(0, 7, true);
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,77);
      c4_u2_tem = c4_b_u[1];
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,78);
      c4_u4_tem = c4_b_u[3];
      goto label_1;
    }
  }
  CV_EML_MCDC(0, 0, false);
  CV_EML_IF(0, 7, false);
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,79);
  if(CV_EML_COND(0, 2, c4_b_u[3] >= c4_threshold)) {
    if(CV_EML_COND(0, 3, c4_b_u[1] < c4_threshold)) {
      CV_EML_MCDC(0, 1, true);
      CV_EML_IF(0, 8, true);
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,80);
      c4_u2_tem = c4_b_u[1];
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,81);
      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,85);
  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,86);
      if(CV_EML_COND(0, 6, c4_Forward2 == 0.0)) {
        if(CV_EML_COND(0, 7, c4_Forward4 == 0.0)) {
          CV_EML_MCDC(0, 3, true);
          CV_EML_IF(0, 10, true);
          _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,87);
          if(CV_EML_IF(0, 11, c4_b_u[1] > c4_b_u[3])) {
            _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,88);
            c4_u2_tem = 0.9 * c4_threshold;
            _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,89);
            c4_u4_tem = c4_threshold;
          } else {
            _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,91);
            c4_u2_tem = c4_threshold;
            _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,92);
            c4_u4_tem = 0.9 * 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,94);
      if(CV_EML_COND(0, 8, c4_Forward2 == 1.0)) {
        if(CV_EML_COND(0, 9, c4_Forward4 == 0.0)) {
          CV_EML_MCDC(0, 4, true);
          CV_EML_IF(0, 12, true);
          _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,95);
          c4_u2_tem = 0.8 * c4_threshold;
          _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,96);
          c4_u4_tem = c4_threshold;
          goto label_2;
        }
      }
      CV_EML_MCDC(0, 4, false);
      CV_EML_IF(0, 12, false);
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,97);
      if(CV_EML_COND(0, 10, c4_Forward2 == 0.0)) {
        if(CV_EML_COND(0, 11, c4_Forward4 == 1.0)) {
          CV_EML_MCDC(0, 5, true);
          CV_EML_IF(0, 13, true);
          _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,98);
          c4_u2_tem = c4_threshold;
          _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,99);
          c4_u4_tem = 0.8 * c4_threshold;
          goto label_2;
        }
      }
      CV_EML_MCDC(0, 5, false);
      CV_EML_IF(0, 13, false);
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,100);
      if(CV_EML_COND(0, 12, c4_Forward2 == 1.0)) {
        if(CV_EML_COND(0, 13, c4_Forward4 == 1.0)) {
          CV_EML_MCDC(0, 6, true);
          CV_EML_IF(0, 14, true);
          _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,101);
          c4_u2_tem = c4_threshold;
          _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,102);
          c4_u4_tem = 0.8 * c4_threshold;
          goto label_2;
        }
      }
      CV_EML_MCDC(0, 6, false);
      CV_EML_IF(0, 14, false);
      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,106);
  if(CV_EML_COND(0, 14, c4_b_u[1] < c4_threshold)) {
    if(CV_EML_COND(0, 15, c4_b_u[3] < c4_threshold)) {
      CV_EML_MCDC(0, 7, true);
      CV_EML_IF(0, 15, true);
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,107);
      c4_u2_tem = c4_b_u[1];
      _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,108);
      c4_u4_tem = c4_b_u[3];
      goto label_1;
    }
  }
  CV_EML_MCDC(0, 7, false);
  CV_EML_IF(0, 15, false);
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,110);
  c4_u2_tem = c4_b_u[1];
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,111);
  c4_u4_tem = c4_b_u[3];
  label_1:;
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,116);
  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,119);
  c4_dv4[0] = c4_u2_tem - c4_u4_tem;
  c4_dv4[1] = c4_Delt;
  c4_dv4[2] = c4_Matrix_Delt[0];
  c4_dv4[3] = c4_Matrix_Delt[1];
  c4_dv4[4] = c4_Matrix_Delt[2];
  c4_dv4[5] = c4_Matrix_Delt[3];
  c4_dv4[6] = c4_Matrix_Delt[4];
  c4_dv4[7] = c4_Matrix_Delt[5];
  c4_dv4[8] = c4_Matrix_Delt[6];
  c4_dv4[9] = c4_Matrix_Delt[7];
  c4_dv4[10] = c4_Matrix_Delt[8];
  c4_dv4[11] = c4_Matrix_Delt[9];
  c4_dv4[12] = c4_Matrix_Delt[10];
  c4_dv4[13] = c4_Matrix_Delt[11];
  c4_dv4[14] = c4_Matrix_Delt[12];
  c4_dv4[15] = c4_Matrix_Delt[13];
  c4_dv4[16] = c4_Matrix_Delt[14];
  c4_dv4[17] = c4_Matrix_Delt[15];
  c4_dv4[18] = c4_Matrix_Delt[16];
  c4_dv4[19] = c4_Matrix_Delt[17];
  c4_dv4[20] = c4_Matrix_Delt[18];
  c4_dv4[21] = c4_Matrix_Delt[19];
  c4_dv4[22] = c4_Matrix_Delt[20];
  c4_dv4[23] = c4_Matrix_Delt[21];
  c4_dv4[24] = c4_Matrix_Delt[22];
  c4_dv4[25] = c4_Matrix_Delt[23];
  c4_dv4[26] = c4_Matrix_Delt[24];
  c4_dv4[27] = c4_Matrix_Delt[25];
  c4_dv4[28] = c4_Matrix_Delt[26];
  c4_dv4[29] = c4_Matrix_Delt[27];
  c4_dv4[30] = c4_Matrix_Delt[28];
  c4_dv4[31] = c4_Matrix_Delt[29];
  c4_dv4[32] = c4_Matrix_Delt[30];
  c4_dv4[33] = c4_Matrix_Delt[31];
  for(c4_i10 = 0; c4_i10 < 34; c4_i10 = c4_i10 + 1) {
    c4_b_y[c4_i10] = c4_dv4[c4_i10];
  }
  _SFD_EML_CALL(STATE_DURING_DURING_ACTION_TAG,0,-119);
  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_i11;
  real_T c4_c_u[1025];
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  for(c4_i11 = 0; c4_i11 < 1025; c4_i11 = c4_i11 + 1) {
    c4_c_u[c4_i11] = (*(real_T (*)[1025])c4_b_u)[c4_i11];
  }
  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;
  int32_T c4_i12;
  real_T c4_c_u[32];
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  for(c4_i12 = 0; c4_i12 < 32; c4_i12 = c4_i12 + 1) {
    c4_c_u[c4_i12] = (*(real_T (*)[32])c4_b_u)[c4_i12];
  }
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 1U, 1, 32));
  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;
  int32_T c4_i13;
  real_T c4_c_u[34];
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  for(c4_i13 = 0; c4_i13 < 34; c4_i13 = c4_i13 + 1) {
    c4_c_u[c4_i13] = (*(real_T (*)[34])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, 34));
  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;
  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_g_sf_marshall(void *c4_chartInstance, void *c4_b_u)
{
  const mxArray *c4_b_y = NULL;
  int32_T c4_i14;
  real_T c4_c_u[32];
  const mxArray *c4_c_y = NULL;
  c4_b_y = NULL;
  for(c4_i14 = 0; c4_i14 < 32; c4_i14 = c4_i14 + 1) {
    c4_c_u[c4_i14] = (*(real_T (*)[32])c4_b_u)[c4_i14];
  }
  c4_c_y = NULL;
  sf_mex_assign(&c4_c_y, sf_mex_create(&c4_c_u, "y", 0, 0U, 1U, 1, 32));
  sf_mex_assign(&c4_b_y, c4_c_y);
  return c4_b_y;
}

static const mxArray *c4_h_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_i_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;

⌨️ 快捷键说明

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