Пример #1
0
static uint8_T c3_c_emlrt_marshallIn(SFc3_MON_FunctionalInstanceStruct
  *chartInstance, const mxArray *c3_b_is_active_c3_MON_Functional, const char_T *
  c3_identifier)
{
  uint8_T c3_y;
  emlrtMsgIdentifier c3_thisId;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_thisId.bParentIsCell = false;
  c3_y = c3_d_emlrt_marshallIn(chartInstance, sf_mex_dup
    (c3_b_is_active_c3_MON_Functional), &c3_thisId);
  sf_mex_destroy(&c3_b_is_active_c3_MON_Functional);
  return c3_y;
}
Пример #2
0
static void set_sim_state_c3_NMPC_Controller(SFc3_NMPC_ControllerInstanceStruct *
  chartInstance, const mxArray *c3_st)
{
  const mxArray *c3_b_u;
  chartInstance->c3_doneDoubleBufferReInit = true;
  c3_b_u = sf_mex_dup(c3_st);
  *chartInstance->c3_etaLat = c3_emlrt_marshallIn(chartInstance, sf_mex_dup
    (sf_mex_getcell(c3_b_u, 0)), "etaLat");
  chartInstance->c3_is_active_c3_NMPC_Controller = c3_d_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c3_b_u, 1)),
     "is_active_c3_NMPC_Controller");
  sf_mex_destroy(&c3_b_u);
  c3_update_debugger_state_c3_NMPC_Controller(chartInstance);
  sf_mex_destroy(&c3_st);
}
Пример #3
0
static void set_sim_state_c3_Ensayos_Friccion
  (SFc3_Ensayos_FriccionInstanceStruct *chartInstance, const mxArray *c3_st)
{
  const mxArray *c3_u;
  real_T *c3_y;
  c3_y = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c3_doneDoubleBufferReInit = true;
  c3_u = sf_mex_dup(c3_st);
  *c3_y = c3_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 0)),
    "y");
  chartInstance->c3_is_active_c3_Ensayos_Friccion = c3_d_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 1)),
     "is_active_c3_Ensayos_Friccion");
  sf_mex_destroy(&c3_u);
  c3_update_debugger_state_c3_Ensayos_Friccion(chartInstance);
  sf_mex_destroy(&c3_st);
}
Пример #4
0
static void set_sim_state_c3_varymultiswarm(SFc3_varymultiswarmInstanceStruct
  *chartInstance, const mxArray *c3_st)
{
  const mxArray *c3_u;
  real_T *c3_z;
  c3_z = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c3_doneDoubleBufferReInit = TRUE;
  c3_u = sf_mex_dup(c3_st);
  *c3_z = c3_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 0)),
    "z");
  chartInstance->c3_is_active_c3_varymultiswarm = c3_d_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 1)),
     "is_active_c3_varymultiswarm");
  sf_mex_destroy(&c3_u);
  c3_update_debugger_state_c3_varymultiswarm(chartInstance);
  sf_mex_destroy(&c3_st);
}
static void set_sim_state_c3_ARP_02_RPSsmile_GloveAtomicRachelImitateSmile
  (SFc3_ARP_02_RPSsmile_GloveAtomicRachelImitateSmileInstanceStruct
   *chartInstance, const mxArray *c3_st)
{
  const mxArray *c3_u;
  real_T *c3_y;
  c3_y = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c3_doneDoubleBufferReInit = true;
  c3_u = sf_mex_dup(c3_st);
  *c3_y = c3_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 0)),
    "y");
  chartInstance->c3_is_active_c3_ARP_02_RPSsmile_GloveAtomicRachelImitateSmile =
    c3_d_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 1)),
    "is_active_c3_ARP_02_RPSsmile_GloveAtomicRachelImitateSmile");
  sf_mex_destroy(&c3_u);
  c3_update_debugger_state_c3_ARP_02_RPSsmile_GloveAtomicRachelImi(chartInstance);
  sf_mex_destroy(&c3_st);
}
Пример #6
0
static void c3_c_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c3_mxArrayInData, const char_T *c3_varName, void *c3_outData)
{
  const mxArray *c3_b_sfEvent;
  const char_T *c3_identifier;
  emlrtMsgIdentifier c3_thisId;
  int32_T c3_y;
  SFc3_V2A1_2InstanceStruct *chartInstance;
  chartInstance = (SFc3_V2A1_2InstanceStruct *)chartInstanceVoid;
  c3_b_sfEvent = sf_mex_dup(c3_mxArrayInData);
  c3_identifier = c3_varName;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_y = c3_d_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_b_sfEvent),
    &c3_thisId);
  sf_mex_destroy(&c3_b_sfEvent);
  *(int32_T *)c3_outData = c3_y;
  sf_mex_destroy(&c3_mxArrayInData);
}
Пример #7
0
static void set_sim_state_c3_canudas_goal3(SFc3_canudas_goal3InstanceStruct
  *chartInstance, const mxArray *c3_st)
{
  const mxArray *c3_u;
  real_T *c3_v;
  real_T *c3_w;
  c3_v = (real_T *)ssGetOutputPortSignal(chartInstance->S, 2);
  c3_w = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c3_doneDoubleBufferReInit = TRUE;
  c3_u = sf_mex_dup(c3_st);
  *c3_v = c3_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 0)),
    "v");
  *c3_w = c3_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 1)),
    "w");
  chartInstance->c3_is_active_c3_canudas_goal3 = c3_d_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 2)),
     "is_active_c3_canudas_goal3");
  sf_mex_destroy(&c3_u);
  c3_update_debugger_state_c3_canudas_goal3(chartInstance);
  sf_mex_destroy(&c3_st);
}