Exemplo n.º 1
0
Arquivo: c3_V2A1_2.c Projeto: d-f/MTP
static void c3_emlrt_marshallIn(SFc3_V2A1_2InstanceStruct *chartInstance, const
  mxArray *c3_x0, const char_T *c3_identifier, real_T c3_y[2])
{
  emlrtMsgIdentifier c3_thisId;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_x0), &c3_thisId, c3_y);
  sf_mex_destroy(&c3_x0);
}
Exemplo n.º 2
0
static real_T c3_emlrt_marshallIn(SFc3_canudas_goal3InstanceStruct
  *chartInstance, const mxArray *c3_v, const char_T *c3_identifier)
{
  real_T c3_y;
  emlrtMsgIdentifier c3_thisId;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_y = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_v), &c3_thisId);
  sf_mex_destroy(&c3_v);
  return c3_y;
}
Exemplo n.º 3
0
static uint8_T c3_emlrt_marshallIn(SFc3_RaspPiPilotInstanceStruct *chartInstance,
  const mxArray *c3_result, const char_T *c3_identifier)
{
  uint8_T c3_y;
  emlrtMsgIdentifier c3_thisId;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_y = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_result), &c3_thisId);
  sf_mex_destroy(&c3_result);
  return c3_y;
}
Exemplo n.º 4
0
static int16_T c3_emlrt_marshallIn(SFc3_DisplayCANMsgInstanceStruct
  *chartInstance, const mxArray *c3_b_y, const char_T *c3_identifier)
{
  int16_T c3_c_y;
  emlrtMsgIdentifier c3_thisId;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_c_y = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_b_y), &c3_thisId);
  sf_mex_destroy(&c3_b_y);
  return c3_c_y;
}
static real_T c3_emlrt_marshallIn(SFc3_ARP_02_RPSsmile_GloveSHOREInstanceStruct *
  chartInstance, const mxArray *c3_y, const char_T *c3_identifier)
{
  real_T c3_b_y;
  emlrtMsgIdentifier c3_thisId;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_b_y = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_y), &c3_thisId);
  sf_mex_destroy(&c3_y);
  return c3_b_y;
}
Exemplo n.º 6
0
static real_T c3_emlrt_marshallIn(SFc3_Ensayos_FriccionInstanceStruct
  *chartInstance, const mxArray *c3_y, const char_T *c3_identifier)
{
  real_T c3_b_y;
  emlrtMsgIdentifier c3_thisId;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_b_y = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_y), &c3_thisId);
  sf_mex_destroy(&c3_y);
  return c3_b_y;
}
Exemplo n.º 7
0
static real_T c3_emlrt_marshallIn(SFc3_NMPC_ControllerInstanceStruct
  *chartInstance, const mxArray *c3_b_etaLat, const char_T *c3_identifier)
{
  real_T c3_y;
  emlrtMsgIdentifier c3_thisId;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_y = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_b_etaLat),
    &c3_thisId);
  sf_mex_destroy(&c3_b_etaLat);
  return c3_y;
}
Exemplo n.º 8
0
static int32_T c3_emlrt_marshallIn(SFc3_MON_FunctionalInstanceStruct
  *chartInstance, const mxArray *c3_b_sfEvent, const char_T *c3_identifier)
{
  int32_T c3_y;
  emlrtMsgIdentifier c3_thisId;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_thisId.bParentIsCell = false;
  c3_y = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_b_sfEvent),
    &c3_thisId);
  sf_mex_destroy(&c3_b_sfEvent);
  return c3_y;
}
Exemplo n.º 9
0
static void set_sim_state_c3_controller1(SFc3_controller1InstanceStruct
  *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_controller1 = c3_b_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 1)),
     "is_active_c3_controller1");
  sf_mex_destroy(&c3_u);
  c3_update_debugger_state_c3_controller1(chartInstance);
  sf_mex_destroy(&c3_st);
}
Exemplo n.º 10
0
static void c3_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c3_mxArrayInData, const char_T *c3_varName, void *c3_outData)
{
  const mxArray *c3_v;
  const char_T *c3_identifier;
  emlrtMsgIdentifier c3_thisId;
  real_T c3_y;
  SFc3_canudas_goal3InstanceStruct *chartInstance;
  chartInstance = (SFc3_canudas_goal3InstanceStruct *)chartInstanceVoid;
  c3_v = sf_mex_dup(c3_mxArrayInData);
  c3_identifier = c3_varName;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_y = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_v), &c3_thisId);
  sf_mex_destroy(&c3_v);
  *(real_T *)c3_outData = c3_y;
  sf_mex_destroy(&c3_mxArrayInData);
}
Exemplo n.º 11
0
static void c3_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c3_mxArrayInData, const char_T *c3_varName, void *c3_outData)
{
  const mxArray *c3_b_y;
  const char_T *c3_identifier;
  emlrtMsgIdentifier c3_thisId;
  int16_T c3_c_y;
  SFc3_DisplayCANMsgInstanceStruct *chartInstance;
  chartInstance = (SFc3_DisplayCANMsgInstanceStruct *)chartInstanceVoid;
  c3_b_y = sf_mex_dup(c3_mxArrayInData);
  c3_identifier = c3_varName;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_c_y = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_b_y), &c3_thisId);
  sf_mex_destroy(&c3_b_y);
  *(int16_T *)c3_outData = c3_c_y;
  sf_mex_destroy(&c3_mxArrayInData);
}
Exemplo n.º 12
0
static void c3_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c3_mxArrayInData, const char_T *c3_varName, void *c3_outData)
{
  const mxArray *c3_result;
  const char_T *c3_identifier;
  emlrtMsgIdentifier c3_thisId;
  uint8_T c3_y;
  SFc3_RaspPiPilotInstanceStruct *chartInstance;
  chartInstance = (SFc3_RaspPiPilotInstanceStruct *)chartInstanceVoid;
  c3_result = sf_mex_dup(c3_mxArrayInData);
  c3_identifier = c3_varName;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_y = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_result), &c3_thisId);
  sf_mex_destroy(&c3_result);
  *(uint8_T *)c3_outData = c3_y;
  sf_mex_destroy(&c3_mxArrayInData);
}
static void c3_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c3_mxArrayInData, const char_T *c3_varName, void *c3_outData)
{
  const mxArray *c3_y;
  const char_T *c3_identifier;
  emlrtMsgIdentifier c3_thisId;
  real_T c3_b_y;
  SFc3_ARP_02_RPSsmile_Glove_atomicErrorInstanceStruct *chartInstance;
  chartInstance = (SFc3_ARP_02_RPSsmile_Glove_atomicErrorInstanceStruct *)
    chartInstanceVoid;
  c3_y = sf_mex_dup(c3_mxArrayInData);
  c3_identifier = c3_varName;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_b_y = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_y), &c3_thisId);
  sf_mex_destroy(&c3_y);
  *(real_T *)c3_outData = c3_b_y;
  sf_mex_destroy(&c3_mxArrayInData);
}
Exemplo n.º 14
0
static void c3_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_MON_FunctionalInstanceStruct *chartInstance;
  chartInstance = (SFc3_MON_FunctionalInstanceStruct *)chartInstanceVoid;
  c3_b_sfEvent = sf_mex_dup(c3_mxArrayInData);
  c3_identifier = c3_varName;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_thisId.bParentIsCell = false;
  c3_y = c3_b_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);
}
Exemplo n.º 15
0
Arquivo: c3_V2A1_2.c Projeto: d-f/MTP
static void c3_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c3_mxArrayInData, const char_T *c3_varName, void *c3_outData)
{
  const mxArray *c3_x0;
  const char_T *c3_identifier;
  emlrtMsgIdentifier c3_thisId;
  real_T c3_y[2];
  int32_T c3_i8;
  SFc3_V2A1_2InstanceStruct *chartInstance;
  chartInstance = (SFc3_V2A1_2InstanceStruct *)chartInstanceVoid;
  c3_x0 = sf_mex_dup(c3_mxArrayInData);
  c3_identifier = c3_varName;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_x0), &c3_thisId, c3_y);
  sf_mex_destroy(&c3_x0);
  for (c3_i8 = 0; c3_i8 < 2; c3_i8++) {
    (*(real_T (*)[2])c3_outData)[c3_i8] = c3_y[c3_i8];
  }

  sf_mex_destroy(&c3_mxArrayInData);
}
Exemplo n.º 16
0
static void c3_sf_marshallIn(void *chartInstanceVoid, const mxArray
  *c3_mxArrayInData, const char_T *c3_varName, void *c3_outData)
{
  const mxArray *c3_state;
  const char_T *c3_identifier;
  emlrtMsgIdentifier c3_thisId;
  real_T c3_y[6];
  int32_T c3_i10;
  SFc3_gif_modelInstanceStruct *chartInstance;
  chartInstance = (SFc3_gif_modelInstanceStruct *)chartInstanceVoid;
  c3_state = sf_mex_dup(c3_mxArrayInData);
  c3_identifier = c3_varName;
  c3_thisId.fIdentifier = c3_identifier;
  c3_thisId.fParent = NULL;
  c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_state), &c3_thisId, c3_y);
  sf_mex_destroy(&c3_state);
  for (c3_i10 = 0; c3_i10 < 6; c3_i10++) {
    (*(real_T (*)[6])c3_outData)[c3_i10] = c3_y[c3_i10];
  }

  sf_mex_destroy(&c3_mxArrayInData);
}
Exemplo n.º 17
0
static void set_sim_state_c3_car_model(SFc3_car_modelInstanceStruct
  *chartInstance, const mxArray *c3_st)
{
  const mxArray *c3_u;
  real_T c3_dv0[2];
  int32_T c3_i2;
  real_T (*c3_s)[2];
  c3_s = (real_T (*)[2])ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c3_doneDoubleBufferReInit = TRUE;
  c3_u = sf_mex_dup(c3_st);
  c3_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 0)), "s",
                      c3_dv0);
  for (c3_i2 = 0; c3_i2 < 2; c3_i2 = c3_i2 + 1) {
    (*c3_s)[c3_i2] = c3_dv0[c3_i2];
  }

  chartInstance->c3_is_active_c3_car_model = c3_b_emlrt_marshallIn(chartInstance,
    sf_mex_dup(sf_mex_getcell(c3_u, 1)),
    "is_active_c3_car_model");
  sf_mex_destroy(&c3_u);
  c3_update_debugger_state_c3_car_model(chartInstance);
  sf_mex_destroy(&c3_st);
}
static void set_sim_state_c3_Engine_Vehicle_CVT_Wit_System1_trial1
(SFc3_Engine_Vehicle_CVT_Wit_System1_trial1InstanceStruct *chartInstance,
 const mxArray *c3_st)
{
    const mxArray *c3_u;
    boolean_T c3_bv0[1];
    chartInstance->c3_doneDoubleBufferReInit = true;
    c3_u = sf_mex_dup(c3_st);
    *chartInstance->c3_ClutchON = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup
                                  (sf_mex_getcell(c3_u, 0)), "ClutchON");
    chartInstance->c3_is_active_c3_Engine_Vehicle_CVT_Wit_System1_trial1 =
        c3_e_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 1)),
                              "is_active_c3_Engine_Vehicle_CVT_Wit_System1_trial1");
    c3_g_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 2)),
                          "dataWrittenToVector", c3_bv0);
    chartInstance->c3_dataWrittenToVector[0] = c3_bv0[0];
    sf_mex_assign(&chartInstance->c3_setSimStateSideEffectsInfo,
                  c3_i_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell
                                        (c3_u, 3)), "setSimStateSideEffectsInfo"), true);
    sf_mex_destroy(&c3_u);
    chartInstance->c3_doSetSimStateSideEffects = 1U;
    c3_update_debugger_state_c3_Engine_Vehicle_CVT_Wit_System1_trial(chartInstance);
    sf_mex_destroy(&c3_st);
}