cr929 first release
This commit is contained in:
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,879 @@
|
||||
/*
|
||||
* File: cr929_SIL_capi.c
|
||||
*
|
||||
* Code generated for Simulink model 'cr929_SIL'.
|
||||
*
|
||||
* Model version : 1.909
|
||||
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
|
||||
* C/C++ source code generated on : Sun Dec 20 14:35:51 2020
|
||||
*
|
||||
* Target selection: ert_shrlib.tlc
|
||||
* Embedded hardware selection: Intel->x86-64 (Windows64)
|
||||
* Code generation objectives: Unspecified
|
||||
* Validation result: Not run
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#include "rtw_capi.h"
|
||||
#ifdef HOST_CAPI_BUILD
|
||||
#include "cr929_SIL_capi_host.h"
|
||||
#define sizeof(s) ((size_t)(0xFFFF))
|
||||
#undef rt_offsetof
|
||||
#define rt_offsetof(s,el) ((uint16_T)(0xFFFF))
|
||||
#define TARGET_CONST
|
||||
#define TARGET_STRING(s) (s)
|
||||
#else /* HOST_CAPI_BUILD */
|
||||
#include "builtin_typeid_types.h"
|
||||
#include "cr929_SIL.h"
|
||||
#include "cr929_SIL_capi.h"
|
||||
#include "cr929_SIL_private.h"
|
||||
#ifdef LIGHT_WEIGHT_CAPI
|
||||
#define TARGET_CONST
|
||||
#define TARGET_STRING(s) (NULL)
|
||||
#else
|
||||
#define TARGET_CONST const
|
||||
#define TARGET_STRING(s) (s)
|
||||
#endif
|
||||
#endif /* HOST_CAPI_BUILD */
|
||||
|
||||
/* Individual block tuning is not valid when inline parameters is *
|
||||
* selected. An empty map is produced to provide a consistent *
|
||||
* interface independent of inlining parameters. *
|
||||
*/
|
||||
static const rtwCAPI_BlockParameters rtBlockParameters[] = {
|
||||
/* addrMapIndex, blockPath,
|
||||
* paramName, dataTypeIndex, dimIndex, fixPtIdx
|
||||
*/
|
||||
{
|
||||
0, (NULL), (NULL), 0, 0, 0
|
||||
}
|
||||
};
|
||||
|
||||
/* Tunable variable parameters */
|
||||
static const rtwCAPI_ModelParameters rtModelParameters[] = {
|
||||
/* addrMapIndex, varName, dataTypeIndex, dimIndex, fixPtIndex */
|
||||
{ 0, TARGET_STRING("AccelBias"), 0, 0, 0 },
|
||||
|
||||
{ 1, TARGET_STRING("AccelScaleMatrix"), 0, 1, 0 },
|
||||
|
||||
{ 2, TARGET_STRING("GyroBias"), 0, 0, 0 },
|
||||
|
||||
{ 3, TARGET_STRING("GyroGBias"), 0, 0, 0 },
|
||||
|
||||
{ 4, TARGET_STRING("GyroScaleMatrix"), 0, 1, 0 },
|
||||
|
||||
{ 5, TARGET_STRING("IMUloc"), 0, 0, 0 },
|
||||
|
||||
{ 6, TARGET_STRING("deadband_da"), 0, 2, 0 },
|
||||
|
||||
{ 7, TARGET_STRING("deadband_de"), 0, 2, 0 },
|
||||
|
||||
{ 8, TARGET_STRING("deadband_dht"), 0, 2, 0 },
|
||||
|
||||
{ 9, TARGET_STRING("deadband_dr"), 0, 2, 0 },
|
||||
|
||||
{ 10, TARGET_STRING("deadband_dsp"), 0, 2, 0 },
|
||||
|
||||
{ 11, TARGET_STRING("map_rpm_lst"), 0, 3, 0 },
|
||||
|
||||
{ 12, TARGET_STRING("map_thr_lst"), 0, 3, 0 },
|
||||
|
||||
{ 13, TARGET_STRING("mass0"), 0, 2, 0 },
|
||||
|
||||
{ 14, TARGET_STRING("throttle_k"), 0, 2, 0 },
|
||||
|
||||
{ 15, TARGET_STRING("wind_east"), 0, 0, 0 },
|
||||
|
||||
{ 16, TARGET_STRING("wind_level"), 0, 0, 0 },
|
||||
|
||||
{ 17, TARGET_STRING("wind_north"), 0, 0, 0 },
|
||||
|
||||
{ 18, TARGET_STRING("CLa"), 1, 2, 0 },
|
||||
|
||||
{ 19, TARGET_STRING("Clda"), 1, 2, 0 },
|
||||
|
||||
{ 20, TARGET_STRING("Clp"), 1, 2, 0 },
|
||||
|
||||
{ 21, TARGET_STRING("Cmde"), 1, 2, 0 },
|
||||
|
||||
{ 22, TARGET_STRING("Cmq"), 1, 2, 0 },
|
||||
|
||||
{ 23, TARGET_STRING("Cndr"), 1, 2, 0 },
|
||||
|
||||
{ 24, TARGET_STRING("Cnr"), 1, 2, 0 },
|
||||
|
||||
{ 25, TARGET_STRING("CruiseSpeed"), 1, 2, 0 },
|
||||
|
||||
{ 26, TARGET_STRING("FlareAlt"), 1, 2, 0 },
|
||||
|
||||
{ 27, TARGET_STRING("GearDownSpeed"), 1, 2, 0 },
|
||||
|
||||
{ 28, TARGET_STRING("Ixx"), 1, 2, 0 },
|
||||
|
||||
{ 29, TARGET_STRING("Iyy"), 1, 2, 0 },
|
||||
|
||||
{ 30, TARGET_STRING("Izz"), 1, 2, 0 },
|
||||
|
||||
{ 31, TARGET_STRING("LandingSpeed"), 1, 2, 0 },
|
||||
|
||||
{ 32, TARGET_STRING("RefArea"), 1, 2, 0 },
|
||||
|
||||
{ 33, TARGET_STRING("RefLen"), 1, 2, 0 },
|
||||
|
||||
{ 34, TARGET_STRING("RefSpan"), 1, 2, 0 },
|
||||
|
||||
{ 35, TARGET_STRING("STEER_POWER"), 1, 2, 0 },
|
||||
|
||||
{ 36, TARGET_STRING("TakeOffAlt"), 1, 2, 0 },
|
||||
|
||||
{ 37, TARGET_STRING("TakeOffThrottle"), 1, 2, 0 },
|
||||
|
||||
{ 38, TARGET_STRING("TaxiSpeed"), 1, 2, 0 },
|
||||
|
||||
{ 39, TARGET_STRING("ThrottleRate"), 1, 2, 0 },
|
||||
|
||||
{ 40, TARGET_STRING("V1"), 1, 2, 0 },
|
||||
|
||||
{ 41, TARGET_STRING("antistall_lock"), 1, 2, 0 },
|
||||
|
||||
{ 42, TARGET_STRING("antistall_release"), 1, 2, 0 },
|
||||
|
||||
{ 43, TARGET_STRING("auto_gear_updown"), 1, 2, 0 },
|
||||
|
||||
{ 44, TARGET_STRING("brake_lock"), 1, 2, 0 },
|
||||
|
||||
{ 45, TARGET_STRING("brake_release"), 1, 2, 0 },
|
||||
|
||||
{ 46, TARGET_STRING("dal_pos"), 1, 0, 0 },
|
||||
|
||||
{ 47, TARGET_STRING("dal_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 48, TARGET_STRING("dar_pos"), 1, 0, 0 },
|
||||
|
||||
{ 49, TARGET_STRING("dar_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 50, TARGET_STRING("del_pos"), 1, 0, 0 },
|
||||
|
||||
{ 51, TARGET_STRING("del_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 52, TARGET_STRING("der_pos"), 1, 0, 0 },
|
||||
|
||||
{ 53, TARGET_STRING("der_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 54, TARGET_STRING("det_time"), 1, 2, 0 },
|
||||
|
||||
{ 55, TARGET_STRING("dflii_pos"), 1, 4, 0 },
|
||||
|
||||
{ 56, TARGET_STRING("dflii_pwm"), 1, 4, 0 },
|
||||
|
||||
{ 57, TARGET_STRING("dflio_pos"), 1, 4, 0 },
|
||||
|
||||
{ 58, TARGET_STRING("dflio_pwm"), 1, 4, 0 },
|
||||
|
||||
{ 59, TARGET_STRING("dflo2_pos"), 1, 4, 0 },
|
||||
|
||||
{ 60, TARGET_STRING("dflo2_pwm"), 1, 4, 0 },
|
||||
|
||||
{ 61, TARGET_STRING("dflo_pos"), 1, 4, 0 },
|
||||
|
||||
{ 62, TARGET_STRING("dflo_pwm"), 1, 4, 0 },
|
||||
|
||||
{ 63, TARGET_STRING("dfrii_pos"), 1, 4, 0 },
|
||||
|
||||
{ 64, TARGET_STRING("dfrii_pwm"), 1, 4, 0 },
|
||||
|
||||
{ 65, TARGET_STRING("dfrio_pos"), 1, 4, 0 },
|
||||
|
||||
{ 66, TARGET_STRING("dfrio_pwm"), 1, 4, 0 },
|
||||
|
||||
{ 67, TARGET_STRING("dfro2_pos"), 1, 4, 0 },
|
||||
|
||||
{ 68, TARGET_STRING("dfro2_pwm"), 1, 4, 0 },
|
||||
|
||||
{ 69, TARGET_STRING("dfro_pos"), 1, 4, 0 },
|
||||
|
||||
{ 70, TARGET_STRING("dfro_pwm"), 1, 4, 0 },
|
||||
|
||||
{ 71, TARGET_STRING("dhl_pos"), 1, 5, 0 },
|
||||
|
||||
{ 72, TARGET_STRING("dhl_pwm"), 1, 5, 0 },
|
||||
|
||||
{ 73, TARGET_STRING("dhr_pos"), 1, 5, 0 },
|
||||
|
||||
{ 74, TARGET_STRING("dhr_pwm"), 1, 5, 0 },
|
||||
|
||||
{ 75, TARGET_STRING("dr_pos"), 1, 6, 0 },
|
||||
|
||||
{ 76, TARGET_STRING("dr_pwm"), 1, 6, 0 },
|
||||
|
||||
{ 77, TARGET_STRING("dspli1_pos"), 1, 0, 0 },
|
||||
|
||||
{ 78, TARGET_STRING("dspli1_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 79, TARGET_STRING("dspli2_pos"), 1, 0, 0 },
|
||||
|
||||
{ 80, TARGET_STRING("dspli2_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 81, TARGET_STRING("dspli3_pos"), 1, 0, 0 },
|
||||
|
||||
{ 82, TARGET_STRING("dspli3_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 83, TARGET_STRING("dsplo1_pos"), 1, 0, 0 },
|
||||
|
||||
{ 84, TARGET_STRING("dsplo1_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 85, TARGET_STRING("dsplo2_pos"), 1, 0, 0 },
|
||||
|
||||
{ 86, TARGET_STRING("dsplo2_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 87, TARGET_STRING("dsplo3_pos"), 1, 0, 0 },
|
||||
|
||||
{ 88, TARGET_STRING("dsplo3_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 89, TARGET_STRING("dsplo4_pos"), 1, 0, 0 },
|
||||
|
||||
{ 90, TARGET_STRING("dsplo4_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 91, TARGET_STRING("dsplo5_pos"), 1, 0, 0 },
|
||||
|
||||
{ 92, TARGET_STRING("dsplo5_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 93, TARGET_STRING("dspri1_pos"), 1, 0, 0 },
|
||||
|
||||
{ 94, TARGET_STRING("dspri1_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 95, TARGET_STRING("dspri2_pos"), 1, 0, 0 },
|
||||
|
||||
{ 96, TARGET_STRING("dspri2_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 97, TARGET_STRING("dspri3_pos"), 1, 0, 0 },
|
||||
|
||||
{ 98, TARGET_STRING("dspri3_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 99, TARGET_STRING("dspro1_pos"), 1, 0, 0 },
|
||||
|
||||
{ 100, TARGET_STRING("dspro1_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 101, TARGET_STRING("dspro2_pos"), 1, 0, 0 },
|
||||
|
||||
{ 102, TARGET_STRING("dspro2_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 103, TARGET_STRING("dspro3_pos"), 1, 0, 0 },
|
||||
|
||||
{ 104, TARGET_STRING("dspro3_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 105, TARGET_STRING("dspro4_pos"), 1, 0, 0 },
|
||||
|
||||
{ 106, TARGET_STRING("dspro4_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 107, TARGET_STRING("dspro5_pos"), 1, 0, 0 },
|
||||
|
||||
{ 108, TARGET_STRING("dspro5_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 109, TARGET_STRING("k_p"), 1, 2, 0 },
|
||||
|
||||
{ 110, TARGET_STRING("k_phi"), 1, 2, 0 },
|
||||
|
||||
{ 111, TARGET_STRING("k_psi"), 1, 2, 0 },
|
||||
|
||||
{ 112, TARGET_STRING("k_q"), 1, 2, 0 },
|
||||
|
||||
{ 113, TARGET_STRING("k_r"), 1, 2, 0 },
|
||||
|
||||
{ 114, TARGET_STRING("k_tht"), 1, 2, 0 },
|
||||
|
||||
{ 115, TARGET_STRING("ksi_v2tht"), 1, 2, 0 },
|
||||
|
||||
{ 116, TARGET_STRING("m"), 1, 2, 0 },
|
||||
|
||||
{ 117, TARGET_STRING("max_GS"), 1, 2, 0 },
|
||||
|
||||
{ 118, TARGET_STRING("max_az"), 1, 2, 0 },
|
||||
|
||||
{ 119, TARGET_STRING("max_da"), 1, 2, 0 },
|
||||
|
||||
{ 120, TARGET_STRING("max_de"), 1, 2, 0 },
|
||||
|
||||
{ 121, TARGET_STRING("max_df"), 1, 2, 0 },
|
||||
|
||||
{ 122, TARGET_STRING("max_dh"), 1, 2, 0 },
|
||||
|
||||
{ 123, TARGET_STRING("max_dr"), 1, 2, 0 },
|
||||
|
||||
{ 124, TARGET_STRING("max_dsp"), 1, 2, 0 },
|
||||
|
||||
{ 125, TARGET_STRING("max_hdot"), 1, 2, 0 },
|
||||
|
||||
{ 126, TARGET_STRING("max_p"), 1, 2, 0 },
|
||||
|
||||
{ 127, TARGET_STRING("max_phi"), 1, 2, 0 },
|
||||
|
||||
{ 128, TARGET_STRING("max_q"), 1, 2, 0 },
|
||||
|
||||
{ 129, TARGET_STRING("max_r"), 1, 2, 0 },
|
||||
|
||||
{ 130, TARGET_STRING("max_steer"), 1, 2, 0 },
|
||||
|
||||
{ 131, TARGET_STRING("max_taxi"), 1, 2, 0 },
|
||||
|
||||
{ 132, TARGET_STRING("max_thr"), 1, 2, 0 },
|
||||
|
||||
{ 133, TARGET_STRING("max_thrust"), 1, 2, 0 },
|
||||
|
||||
{ 134, TARGET_STRING("max_tht"), 1, 2, 0 },
|
||||
|
||||
{ 135, TARGET_STRING("min_AS"), 1, 2, 0 },
|
||||
|
||||
{ 136, TARGET_STRING("min_de"), 1, 2, 0 },
|
||||
|
||||
{ 137, TARGET_STRING("min_dh"), 1, 2, 0 },
|
||||
|
||||
{ 138, TARGET_STRING("min_dsp"), 1, 2, 0 },
|
||||
|
||||
{ 139, TARGET_STRING("min_hdot"), 1, 2, 0 },
|
||||
|
||||
{ 140, TARGET_STRING("min_ias"), 1, 2, 0 },
|
||||
|
||||
{ 141, TARGET_STRING("min_thr"), 1, 2, 0 },
|
||||
|
||||
{ 142, TARGET_STRING("min_tht"), 1, 2, 0 },
|
||||
|
||||
{ 143, TARGET_STRING("parachute_lock"), 1, 2, 0 },
|
||||
|
||||
{ 144, TARGET_STRING("parachute_release"), 1, 2, 0 },
|
||||
|
||||
{ 145, TARGET_STRING("raise_tht"), 1, 2, 0 },
|
||||
|
||||
{ 146, TARGET_STRING("steer_pos"), 1, 0, 0 },
|
||||
|
||||
{ 147, TARGET_STRING("steer_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 148, TARGET_STRING("taxi_de"), 1, 2, 0 },
|
||||
|
||||
{ 149, TARGET_STRING("thr_pos"), 1, 0, 0 },
|
||||
|
||||
{ 150, TARGET_STRING("thr_pwm"), 1, 0, 0 },
|
||||
|
||||
{ 151, TARGET_STRING("w_as"), 1, 2, 0 },
|
||||
|
||||
{ 152, TARGET_STRING("w_p"), 1, 2, 0 },
|
||||
|
||||
{ 153, TARGET_STRING("w_q"), 1, 2, 0 },
|
||||
|
||||
{ 154, TARGET_STRING("w_r"), 1, 2, 0 },
|
||||
|
||||
{ 155, TARGET_STRING("w_v"), 1, 2, 0 },
|
||||
|
||||
{ 156, TARGET_STRING("w_v2tht"), 1, 2, 0 },
|
||||
|
||||
{ 157, TARGET_STRING("w_x"), 1, 2, 0 },
|
||||
|
||||
{ 158, TARGET_STRING("w_y"), 1, 2, 0 },
|
||||
|
||||
{ 159, TARGET_STRING("washout_r_den"), 1, 0, 0 },
|
||||
|
||||
{ 160, TARGET_STRING("washout_r_num"), 1, 7, 0 },
|
||||
|
||||
{ 161, TARGET_STRING("yaw_damping"), 1, 2, 0 },
|
||||
|
||||
{ 162, TARGET_STRING("zeta_v"), 1, 2, 0 },
|
||||
|
||||
{ 163, TARGET_STRING("transrate"), 2, 2, 0 },
|
||||
|
||||
{ 164, TARGET_STRING("actuator_trim"), 3, 8, 0 },
|
||||
|
||||
{ 165, TARGET_STRING("system_id"), 3, 2, 0 },
|
||||
|
||||
{ 166, TARGET_STRING("map_pwm"), 4, 9, 0 },
|
||||
|
||||
{ 167, TARGET_STRING("Att0"), 0, 0, 0 },
|
||||
|
||||
{ 168, TARGET_STRING("CD0UncertVal"), 0, 2, 0 },
|
||||
|
||||
{ 169, TARGET_STRING("CG_bias_m"), 0, 0, 0 },
|
||||
|
||||
{ 170, TARGET_STRING("CL0UncertVal"), 0, 2, 0 },
|
||||
|
||||
{ 171, TARGET_STRING("CLaUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 172, TARGET_STRING("CLdeUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 173, TARGET_STRING("CLqUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 174, TARGET_STRING("CY0UncertVal"), 0, 2, 0 },
|
||||
|
||||
{ 175, TARGET_STRING("CYbUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 176, TARGET_STRING("CYdrUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 177, TARGET_STRING("CYpUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 178, TARGET_STRING("CYrUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 179, TARGET_STRING("Cl0UncertVal"), 0, 2, 0 },
|
||||
|
||||
{ 180, TARGET_STRING("ClbUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 181, TARGET_STRING("CldalUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 182, TARGET_STRING("CldarUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 183, TARGET_STRING("CldrUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 184, TARGET_STRING("ClpUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 185, TARGET_STRING("ClrUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 186, TARGET_STRING("Cm0UncertVal"), 0, 2, 0 },
|
||||
|
||||
{ 187, TARGET_STRING("CmaUncertPct"), 0, 2, 0 },
|
||||
|
||||
{ 188, TARGET_STRING("CmdeUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 189, TARGET_STRING("CmqUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 190, TARGET_STRING("Cn0UncertVal"), 0, 2, 0 },
|
||||
|
||||
{ 191, TARGET_STRING("CnbUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 192, TARGET_STRING("CndalUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 193, TARGET_STRING("CndarUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 194, TARGET_STRING("CndrUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 195, TARGET_STRING("CnpUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 196, TARGET_STRING("CnrUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 197, TARGET_STRING("InertiaMoments_bias_kg_m2"), 0, 1, 0 },
|
||||
|
||||
{ 198, TARGET_STRING("ThrustUncertGain"), 0, 2, 0 },
|
||||
|
||||
{ 199, TARGET_STRING("X0"), 0, 0, 0 },
|
||||
|
||||
{ 200, TARGET_STRING("engine_att_rad"), 0, 10, 0 },
|
||||
|
||||
{ 201, TARGET_STRING("engine_pos_m"), 0, 10, 0 },
|
||||
|
||||
{ 202, TARGET_STRING("hground"), 0, 2, 0 },
|
||||
|
||||
{ 0, (NULL), 0, 0, 0 }
|
||||
};
|
||||
|
||||
#ifndef HOST_CAPI_BUILD
|
||||
|
||||
/* Declare Data Addresses statically */
|
||||
static void* rtDataAddrMap[] = {
|
||||
&cr929_SIL_P.AccelBias[0], /* 0: Model Parameter */
|
||||
&cr929_SIL_P.AccelScaleMatrix[0], /* 1: Model Parameter */
|
||||
&cr929_SIL_P.GyroBias[0], /* 2: Model Parameter */
|
||||
&cr929_SIL_P.GyroGBias[0], /* 3: Model Parameter */
|
||||
&cr929_SIL_P.GyroScaleMatrix[0], /* 4: Model Parameter */
|
||||
&cr929_SIL_P.IMUloc[0], /* 5: Model Parameter */
|
||||
&cr929_SIL_P.deadband_da, /* 6: Model Parameter */
|
||||
&cr929_SIL_P.deadband_de, /* 7: Model Parameter */
|
||||
&cr929_SIL_P.deadband_dht, /* 8: Model Parameter */
|
||||
&cr929_SIL_P.deadband_dr, /* 9: Model Parameter */
|
||||
&cr929_SIL_P.deadband_dsp, /* 10: Model Parameter */
|
||||
&cr929_SIL_P.map_rpm_lst[0], /* 11: Model Parameter */
|
||||
&cr929_SIL_P.map_thr_lst[0], /* 12: Model Parameter */
|
||||
&cr929_SIL_P.mass0, /* 13: Model Parameter */
|
||||
&cr929_SIL_P.throttle_k, /* 14: Model Parameter */
|
||||
&cr929_SIL_P.wind_east[0], /* 15: Model Parameter */
|
||||
&cr929_SIL_P.wind_level[0], /* 16: Model Parameter */
|
||||
&cr929_SIL_P.wind_north[0], /* 17: Model Parameter */
|
||||
&cr929_SIL_P.CLa, /* 18: Model Parameter */
|
||||
&cr929_SIL_P.Clda, /* 19: Model Parameter */
|
||||
&cr929_SIL_P.Clp, /* 20: Model Parameter */
|
||||
&cr929_SIL_P.Cmde, /* 21: Model Parameter */
|
||||
&cr929_SIL_P.Cmq, /* 22: Model Parameter */
|
||||
&cr929_SIL_P.Cndr, /* 23: Model Parameter */
|
||||
&cr929_SIL_P.Cnr, /* 24: Model Parameter */
|
||||
&cr929_SIL_P.CruiseSpeed, /* 25: Model Parameter */
|
||||
&cr929_SIL_P.FlareAlt, /* 26: Model Parameter */
|
||||
&cr929_SIL_P.GearDownSpeed, /* 27: Model Parameter */
|
||||
&cr929_SIL_P.Ixx, /* 28: Model Parameter */
|
||||
&cr929_SIL_P.Iyy, /* 29: Model Parameter */
|
||||
&cr929_SIL_P.Izz, /* 30: Model Parameter */
|
||||
&cr929_SIL_P.LandingSpeed, /* 31: Model Parameter */
|
||||
&cr929_SIL_P.RefArea, /* 32: Model Parameter */
|
||||
&cr929_SIL_P.RefLen, /* 33: Model Parameter */
|
||||
&cr929_SIL_P.RefSpan, /* 34: Model Parameter */
|
||||
&cr929_SIL_P.STEER_POWER, /* 35: Model Parameter */
|
||||
&cr929_SIL_P.TakeOffAlt, /* 36: Model Parameter */
|
||||
&cr929_SIL_P.TakeOffThrottle, /* 37: Model Parameter */
|
||||
&cr929_SIL_P.TaxiSpeed, /* 38: Model Parameter */
|
||||
&cr929_SIL_P.ThrottleRate, /* 39: Model Parameter */
|
||||
&cr929_SIL_P.V1, /* 40: Model Parameter */
|
||||
&cr929_SIL_P.antistall_lock, /* 41: Model Parameter */
|
||||
&cr929_SIL_P.antistall_release, /* 42: Model Parameter */
|
||||
&cr929_SIL_P.auto_gear_updown, /* 43: Model Parameter */
|
||||
&cr929_SIL_P.brake_lock, /* 44: Model Parameter */
|
||||
&cr929_SIL_P.brake_release, /* 45: Model Parameter */
|
||||
&cr929_SIL_P.dal_pos[0], /* 46: Model Parameter */
|
||||
&cr929_SIL_P.dal_pwm[0], /* 47: Model Parameter */
|
||||
&cr929_SIL_P.dar_pos[0], /* 48: Model Parameter */
|
||||
&cr929_SIL_P.dar_pwm[0], /* 49: Model Parameter */
|
||||
&cr929_SIL_P.del_pos[0], /* 50: Model Parameter */
|
||||
&cr929_SIL_P.del_pwm[0], /* 51: Model Parameter */
|
||||
&cr929_SIL_P.der_pos[0], /* 52: Model Parameter */
|
||||
&cr929_SIL_P.der_pwm[0], /* 53: Model Parameter */
|
||||
&cr929_SIL_P.det_time, /* 54: Model Parameter */
|
||||
&cr929_SIL_P.dflii_pos[0], /* 55: Model Parameter */
|
||||
&cr929_SIL_P.dflii_pwm[0], /* 56: Model Parameter */
|
||||
&cr929_SIL_P.dflio_pos[0], /* 57: Model Parameter */
|
||||
&cr929_SIL_P.dflio_pwm[0], /* 58: Model Parameter */
|
||||
&cr929_SIL_P.dflo2_pos[0], /* 59: Model Parameter */
|
||||
&cr929_SIL_P.dflo2_pwm[0], /* 60: Model Parameter */
|
||||
&cr929_SIL_P.dflo_pos[0], /* 61: Model Parameter */
|
||||
&cr929_SIL_P.dflo_pwm[0], /* 62: Model Parameter */
|
||||
&cr929_SIL_P.dfrii_pos[0], /* 63: Model Parameter */
|
||||
&cr929_SIL_P.dfrii_pwm[0], /* 64: Model Parameter */
|
||||
&cr929_SIL_P.dfrio_pos[0], /* 65: Model Parameter */
|
||||
&cr929_SIL_P.dfrio_pwm[0], /* 66: Model Parameter */
|
||||
&cr929_SIL_P.dfro2_pos[0], /* 67: Model Parameter */
|
||||
&cr929_SIL_P.dfro2_pwm[0], /* 68: Model Parameter */
|
||||
&cr929_SIL_P.dfro_pos[0], /* 69: Model Parameter */
|
||||
&cr929_SIL_P.dfro_pwm[0], /* 70: Model Parameter */
|
||||
&cr929_SIL_P.dhl_pos[0], /* 71: Model Parameter */
|
||||
&cr929_SIL_P.dhl_pwm[0], /* 72: Model Parameter */
|
||||
&cr929_SIL_P.dhr_pos[0], /* 73: Model Parameter */
|
||||
&cr929_SIL_P.dhr_pwm[0], /* 74: Model Parameter */
|
||||
&cr929_SIL_P.dr_pos[0], /* 75: Model Parameter */
|
||||
&cr929_SIL_P.dr_pwm[0], /* 76: Model Parameter */
|
||||
&cr929_SIL_P.dspli1_pos[0], /* 77: Model Parameter */
|
||||
&cr929_SIL_P.dspli1_pwm[0], /* 78: Model Parameter */
|
||||
&cr929_SIL_P.dspli2_pos[0], /* 79: Model Parameter */
|
||||
&cr929_SIL_P.dspli2_pwm[0], /* 80: Model Parameter */
|
||||
&cr929_SIL_P.dspli3_pos[0], /* 81: Model Parameter */
|
||||
&cr929_SIL_P.dspli3_pwm[0], /* 82: Model Parameter */
|
||||
&cr929_SIL_P.dsplo1_pos[0], /* 83: Model Parameter */
|
||||
&cr929_SIL_P.dsplo1_pwm[0], /* 84: Model Parameter */
|
||||
&cr929_SIL_P.dsplo2_pos[0], /* 85: Model Parameter */
|
||||
&cr929_SIL_P.dsplo2_pwm[0], /* 86: Model Parameter */
|
||||
&cr929_SIL_P.dsplo3_pos[0], /* 87: Model Parameter */
|
||||
&cr929_SIL_P.dsplo3_pwm[0], /* 88: Model Parameter */
|
||||
&cr929_SIL_P.dsplo4_pos[0], /* 89: Model Parameter */
|
||||
&cr929_SIL_P.dsplo4_pwm[0], /* 90: Model Parameter */
|
||||
&cr929_SIL_P.dsplo5_pos[0], /* 91: Model Parameter */
|
||||
&cr929_SIL_P.dsplo5_pwm[0], /* 92: Model Parameter */
|
||||
&cr929_SIL_P.dspri1_pos[0], /* 93: Model Parameter */
|
||||
&cr929_SIL_P.dspri1_pwm[0], /* 94: Model Parameter */
|
||||
&cr929_SIL_P.dspri2_pos[0], /* 95: Model Parameter */
|
||||
&cr929_SIL_P.dspri2_pwm[0], /* 96: Model Parameter */
|
||||
&cr929_SIL_P.dspri3_pos[0], /* 97: Model Parameter */
|
||||
&cr929_SIL_P.dspri3_pwm[0], /* 98: Model Parameter */
|
||||
&cr929_SIL_P.dspro1_pos[0], /* 99: Model Parameter */
|
||||
&cr929_SIL_P.dspro1_pwm[0], /* 100: Model Parameter */
|
||||
&cr929_SIL_P.dspro2_pos[0], /* 101: Model Parameter */
|
||||
&cr929_SIL_P.dspro2_pwm[0], /* 102: Model Parameter */
|
||||
&cr929_SIL_P.dspro3_pos[0], /* 103: Model Parameter */
|
||||
&cr929_SIL_P.dspro3_pwm[0], /* 104: Model Parameter */
|
||||
&cr929_SIL_P.dspro4_pos[0], /* 105: Model Parameter */
|
||||
&cr929_SIL_P.dspro4_pwm[0], /* 106: Model Parameter */
|
||||
&cr929_SIL_P.dspro5_pos[0], /* 107: Model Parameter */
|
||||
&cr929_SIL_P.dspro5_pwm[0], /* 108: Model Parameter */
|
||||
&cr929_SIL_P.k_p, /* 109: Model Parameter */
|
||||
&cr929_SIL_P.k_phi, /* 110: Model Parameter */
|
||||
&cr929_SIL_P.k_psi, /* 111: Model Parameter */
|
||||
&cr929_SIL_P.k_q, /* 112: Model Parameter */
|
||||
&cr929_SIL_P.k_r, /* 113: Model Parameter */
|
||||
&cr929_SIL_P.k_tht, /* 114: Model Parameter */
|
||||
&cr929_SIL_P.ksi_v2tht, /* 115: Model Parameter */
|
||||
&cr929_SIL_P.m, /* 116: Model Parameter */
|
||||
&cr929_SIL_P.max_GS, /* 117: Model Parameter */
|
||||
&cr929_SIL_P.max_az, /* 118: Model Parameter */
|
||||
&cr929_SIL_P.max_da, /* 119: Model Parameter */
|
||||
&cr929_SIL_P.max_de, /* 120: Model Parameter */
|
||||
&cr929_SIL_P.max_df, /* 121: Model Parameter */
|
||||
&cr929_SIL_P.max_dh, /* 122: Model Parameter */
|
||||
&cr929_SIL_P.max_dr, /* 123: Model Parameter */
|
||||
&cr929_SIL_P.max_dsp, /* 124: Model Parameter */
|
||||
&cr929_SIL_P.max_hdot, /* 125: Model Parameter */
|
||||
&cr929_SIL_P.max_p, /* 126: Model Parameter */
|
||||
&cr929_SIL_P.max_phi, /* 127: Model Parameter */
|
||||
&cr929_SIL_P.max_q, /* 128: Model Parameter */
|
||||
&cr929_SIL_P.max_r, /* 129: Model Parameter */
|
||||
&cr929_SIL_P.max_steer, /* 130: Model Parameter */
|
||||
&cr929_SIL_P.max_taxi, /* 131: Model Parameter */
|
||||
&cr929_SIL_P.max_thr, /* 132: Model Parameter */
|
||||
&cr929_SIL_P.max_thrust, /* 133: Model Parameter */
|
||||
&cr929_SIL_P.max_tht, /* 134: Model Parameter */
|
||||
&cr929_SIL_P.min_AS, /* 135: Model Parameter */
|
||||
&cr929_SIL_P.min_de, /* 136: Model Parameter */
|
||||
&cr929_SIL_P.min_dh, /* 137: Model Parameter */
|
||||
&cr929_SIL_P.min_dsp, /* 138: Model Parameter */
|
||||
&cr929_SIL_P.min_hdot, /* 139: Model Parameter */
|
||||
&cr929_SIL_P.min_ias, /* 140: Model Parameter */
|
||||
&cr929_SIL_P.min_thr, /* 141: Model Parameter */
|
||||
&cr929_SIL_P.min_tht, /* 142: Model Parameter */
|
||||
&cr929_SIL_P.parachute_lock, /* 143: Model Parameter */
|
||||
&cr929_SIL_P.parachute_release, /* 144: Model Parameter */
|
||||
&cr929_SIL_P.raise_tht, /* 145: Model Parameter */
|
||||
&cr929_SIL_P.steer_pos[0], /* 146: Model Parameter */
|
||||
&cr929_SIL_P.steer_pwm[0], /* 147: Model Parameter */
|
||||
&cr929_SIL_P.taxi_de, /* 148: Model Parameter */
|
||||
&cr929_SIL_P.thr_pos[0], /* 149: Model Parameter */
|
||||
&cr929_SIL_P.thr_pwm[0], /* 150: Model Parameter */
|
||||
&cr929_SIL_P.w_as, /* 151: Model Parameter */
|
||||
&cr929_SIL_P.w_p, /* 152: Model Parameter */
|
||||
&cr929_SIL_P.w_q, /* 153: Model Parameter */
|
||||
&cr929_SIL_P.w_r, /* 154: Model Parameter */
|
||||
&cr929_SIL_P.w_v, /* 155: Model Parameter */
|
||||
&cr929_SIL_P.w_v2tht, /* 156: Model Parameter */
|
||||
&cr929_SIL_P.w_x, /* 157: Model Parameter */
|
||||
&cr929_SIL_P.w_y, /* 158: Model Parameter */
|
||||
&cr929_SIL_P.washout_r_den[0], /* 159: Model Parameter */
|
||||
&cr929_SIL_P.washout_r_num[0], /* 160: Model Parameter */
|
||||
&cr929_SIL_P.yaw_damping, /* 161: Model Parameter */
|
||||
&cr929_SIL_P.zeta_v, /* 162: Model Parameter */
|
||||
&cr929_SIL_P.transrate, /* 163: Model Parameter */
|
||||
&cr929_SIL_P.actuator_trim[0], /* 164: Model Parameter */
|
||||
&cr929_SIL_P.system_id, /* 165: Model Parameter */
|
||||
&cr929_SIL_P.map_pwm[0], /* 166: Model Parameter */
|
||||
Att0, /* 167: Model Parameter */
|
||||
&CD0UncertVal, /* 168: Model Parameter */
|
||||
CG_bias_m, /* 169: Model Parameter */
|
||||
&CL0UncertVal, /* 170: Model Parameter */
|
||||
&CLaUncertGain, /* 171: Model Parameter */
|
||||
&CLdeUncertGain, /* 172: Model Parameter */
|
||||
&CLqUncertGain, /* 173: Model Parameter */
|
||||
&CY0UncertVal, /* 174: Model Parameter */
|
||||
&CYbUncertGain, /* 175: Model Parameter */
|
||||
&CYdrUncertGain, /* 176: Model Parameter */
|
||||
&CYpUncertGain, /* 177: Model Parameter */
|
||||
&CYrUncertGain, /* 178: Model Parameter */
|
||||
&Cl0UncertVal, /* 179: Model Parameter */
|
||||
&ClbUncertGain, /* 180: Model Parameter */
|
||||
&CldalUncertGain, /* 181: Model Parameter */
|
||||
&CldarUncertGain, /* 182: Model Parameter */
|
||||
&CldrUncertGain, /* 183: Model Parameter */
|
||||
&ClpUncertGain, /* 184: Model Parameter */
|
||||
&ClrUncertGain, /* 185: Model Parameter */
|
||||
&Cm0UncertVal, /* 186: Model Parameter */
|
||||
&CmaUncertPct, /* 187: Model Parameter */
|
||||
&CmdeUncertGain, /* 188: Model Parameter */
|
||||
&CmqUncertGain, /* 189: Model Parameter */
|
||||
&Cn0UncertVal, /* 190: Model Parameter */
|
||||
&CnbUncertGain, /* 191: Model Parameter */
|
||||
&CndalUncertGain, /* 192: Model Parameter */
|
||||
&CndarUncertGain, /* 193: Model Parameter */
|
||||
&CndrUncertGain, /* 194: Model Parameter */
|
||||
&CnpUncertGain, /* 195: Model Parameter */
|
||||
&CnrUncertGain, /* 196: Model Parameter */
|
||||
InertiaMoments_bias_kg_m2, /* 197: Model Parameter */
|
||||
&ThrustUncertGain, /* 198: Model Parameter */
|
||||
X0, /* 199: Model Parameter */
|
||||
engine_att_rad, /* 200: Model Parameter */
|
||||
engine_pos_m, /* 201: Model Parameter */
|
||||
&hground, /* 202: Model Parameter */
|
||||
};
|
||||
|
||||
/* Declare Data Run-Time Dimension Buffer Addresses statically */
|
||||
static int32_T* rtVarDimsAddrMap[] = {
|
||||
(NULL)
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/* Data Type Map - use dataTypeMapIndex to access this structure */
|
||||
static TARGET_CONST rtwCAPI_DataTypeMap rtDataTypeMap[] = {
|
||||
/* cName, mwName, numElements, elemMapIndex, dataSize, slDataId, *
|
||||
* isComplex, isPointer */
|
||||
{ "double", "real_T", 0, 0, sizeof(real_T), SS_DOUBLE, 0, 0 },
|
||||
|
||||
{ "float", "real32_T", 0, 0, sizeof(real32_T), SS_SINGLE, 0, 0 },
|
||||
|
||||
{ "unsigned int", "uint32_T", 0, 0, sizeof(uint32_T), SS_UINT32, 0, 0 },
|
||||
|
||||
{ "unsigned short", "uint16_T", 0, 0, sizeof(uint16_T), SS_UINT16, 0, 0 },
|
||||
|
||||
{ "unsigned char", "uint8_T", 0, 0, sizeof(uint8_T), SS_UINT8, 0, 0 }
|
||||
};
|
||||
|
||||
#ifdef HOST_CAPI_BUILD
|
||||
#undef sizeof
|
||||
#endif
|
||||
|
||||
/* Structure Element Map - use elemMapIndex to access this structure */
|
||||
static TARGET_CONST rtwCAPI_ElementMap rtElementMap[] = {
|
||||
/* elementName, elementOffset, dataTypeIndex, dimIndex, fxpIndex */
|
||||
{ (NULL), 0, 0, 0, 0 },
|
||||
};
|
||||
|
||||
/* Dimension Map - use dimensionMapIndex to access elements of ths structure*/
|
||||
static const rtwCAPI_DimensionMap rtDimensionMap[] = {
|
||||
/* dataOrientation, dimArrayIndex, numDims, vardimsIndex */
|
||||
{ rtwCAPI_VECTOR, 0, 2, 0 },
|
||||
|
||||
{ rtwCAPI_MATRIX_COL_MAJOR, 2, 2, 0 },
|
||||
|
||||
{ rtwCAPI_SCALAR, 4, 2, 0 },
|
||||
|
||||
{ rtwCAPI_VECTOR, 6, 2, 0 },
|
||||
|
||||
{ rtwCAPI_VECTOR, 8, 2, 0 },
|
||||
|
||||
{ rtwCAPI_VECTOR, 10, 2, 0 },
|
||||
|
||||
{ rtwCAPI_VECTOR, 12, 2, 0 },
|
||||
|
||||
{ rtwCAPI_VECTOR, 14, 2, 0 },
|
||||
|
||||
{ rtwCAPI_VECTOR, 16, 2, 0 },
|
||||
|
||||
{ rtwCAPI_VECTOR, 18, 2, 0 },
|
||||
|
||||
{ rtwCAPI_MATRIX_COL_MAJOR, 20, 2, 0 }
|
||||
};
|
||||
|
||||
/* Dimension Array- use dimArrayIndex to access elements of this array */
|
||||
static const uint_T rtDimensionArray[] = {
|
||||
1, /* 0 */
|
||||
3, /* 1 */
|
||||
3, /* 2 */
|
||||
3, /* 3 */
|
||||
1, /* 4 */
|
||||
1, /* 5 */
|
||||
1, /* 6 */
|
||||
12, /* 7 */
|
||||
1, /* 8 */
|
||||
5, /* 9 */
|
||||
1, /* 10 */
|
||||
6, /* 11 */
|
||||
1, /* 12 */
|
||||
9, /* 13 */
|
||||
1, /* 14 */
|
||||
2, /* 15 */
|
||||
1, /* 16 */
|
||||
8, /* 17 */
|
||||
1, /* 18 */
|
||||
20, /* 19 */
|
||||
2, /* 20 */
|
||||
3 /* 21 */
|
||||
};
|
||||
|
||||
/* Fixed Point Map */
|
||||
static const rtwCAPI_FixPtMap rtFixPtMap[] = {
|
||||
/* fracSlopePtr, biasPtr, scaleType, wordLength, exponent, isSigned */
|
||||
{ (NULL), (NULL), rtwCAPI_FIX_RESERVED, 0, 0, 0 },
|
||||
};
|
||||
|
||||
/* Sample Time Map - use sTimeIndex to access elements of ths structure */
|
||||
static const rtwCAPI_SampleTimeMap rtSampleTimeMap[] = {
|
||||
/* samplePeriodPtr, sampleOffsetPtr, tid, samplingMode */
|
||||
{
|
||||
(NULL), (NULL), 0, 0
|
||||
}
|
||||
};
|
||||
|
||||
static rtwCAPI_ModelMappingStaticInfo mmiStatic = {
|
||||
/* Signals:{signals, numSignals,
|
||||
* rootInputs, numRootInputs,
|
||||
* rootOutputs, numRootOutputs},
|
||||
* Params: {blockParameters, numBlockParameters,
|
||||
* modelParameters, numModelParameters},
|
||||
* States: {states, numStates},
|
||||
* Maps: {dataTypeMap, dimensionMap, fixPtMap,
|
||||
* elementMap, sampleTimeMap, dimensionArray},
|
||||
* TargetType: targetType
|
||||
*/
|
||||
{ (NULL), 0,
|
||||
(NULL), 0,
|
||||
(NULL), 0 },
|
||||
|
||||
{ rtBlockParameters, 0,
|
||||
rtModelParameters, 203 },
|
||||
|
||||
{ (NULL), 0 },
|
||||
|
||||
{ rtDataTypeMap, rtDimensionMap, rtFixPtMap,
|
||||
rtElementMap, rtSampleTimeMap, rtDimensionArray },
|
||||
"float",
|
||||
|
||||
{ 3381369725U,
|
||||
3255878490U,
|
||||
1754559481U,
|
||||
732444126U },
|
||||
(NULL), 0,
|
||||
0
|
||||
};
|
||||
|
||||
/* Function to get C API Model Mapping Static Info */
|
||||
const rtwCAPI_ModelMappingStaticInfo*
|
||||
cr929_SIL_GetCAPIStaticMap(void)
|
||||
{
|
||||
return &mmiStatic;
|
||||
}
|
||||
|
||||
/* Cache pointers into DataMapInfo substructure of RTModel */
|
||||
#ifndef HOST_CAPI_BUILD
|
||||
|
||||
void cr929_SIL_InitializeDataMapInfo(void)
|
||||
{
|
||||
/* Set C-API version */
|
||||
rtwCAPI_SetVersion(cr929_SIL_M->DataMapInfo.mmi, 1);
|
||||
|
||||
/* Cache static C-API data into the Real-time Model Data structure */
|
||||
rtwCAPI_SetStaticMap(cr929_SIL_M->DataMapInfo.mmi, &mmiStatic);
|
||||
|
||||
/* Cache static C-API logging data into the Real-time Model Data structure */
|
||||
rtwCAPI_SetLoggingStaticMap(cr929_SIL_M->DataMapInfo.mmi, (NULL));
|
||||
|
||||
/* Cache C-API Data Addresses into the Real-Time Model Data structure */
|
||||
rtwCAPI_SetDataAddressMap(cr929_SIL_M->DataMapInfo.mmi, rtDataAddrMap);
|
||||
|
||||
/* Cache C-API Data Run-Time Dimension Buffer Addresses into the Real-Time Model Data structure */
|
||||
rtwCAPI_SetVarDimsAddressMap(cr929_SIL_M->DataMapInfo.mmi, rtVarDimsAddrMap);
|
||||
|
||||
/* Cache the instance C-API logging pointer */
|
||||
rtwCAPI_SetInstanceLoggingInfo(cr929_SIL_M->DataMapInfo.mmi, (NULL));
|
||||
|
||||
/* Set reference to submodels */
|
||||
rtwCAPI_SetChildMMIArray(cr929_SIL_M->DataMapInfo.mmi, (NULL));
|
||||
rtwCAPI_SetChildMMIArrayLen(cr929_SIL_M->DataMapInfo.mmi, 0);
|
||||
}
|
||||
|
||||
#else /* HOST_CAPI_BUILD */
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif
|
||||
|
||||
void cr929_SIL_host_InitializeDataMapInfo(cr929_SIL_host_DataMapInfo_T
|
||||
*dataMap, const char *path)
|
||||
{
|
||||
/* Set C-API version */
|
||||
rtwCAPI_SetVersion(dataMap->mmi, 1);
|
||||
|
||||
/* Cache static C-API data into the Real-time Model Data structure */
|
||||
rtwCAPI_SetStaticMap(dataMap->mmi, &mmiStatic);
|
||||
|
||||
/* host data address map is NULL */
|
||||
rtwCAPI_SetDataAddressMap(dataMap->mmi, NULL);
|
||||
|
||||
/* host vardims address map is NULL */
|
||||
rtwCAPI_SetVarDimsAddressMap(dataMap->mmi, NULL);
|
||||
|
||||
/* Set Instance specific path */
|
||||
rtwCAPI_SetPath(dataMap->mmi, path);
|
||||
rtwCAPI_SetFullPath(dataMap->mmi, NULL);
|
||||
|
||||
/* Set reference to submodels */
|
||||
rtwCAPI_SetChildMMIArray(dataMap->mmi, (NULL));
|
||||
rtwCAPI_SetChildMMIArrayLen(dataMap->mmi, 0);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
}
|
||||
#endif
|
||||
#endif /* HOST_CAPI_BUILD */
|
||||
|
||||
/*
|
||||
* File trailer for generated code.
|
||||
*
|
||||
* [EOF]
|
||||
*/
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* File: cr929_SIL_capi.h
|
||||
*
|
||||
* Code generated for Simulink model 'cr929_SIL'.
|
||||
*
|
||||
* Model version : 1.909
|
||||
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
|
||||
* C/C++ source code generated on : Sun Dec 20 14:35:51 2020
|
||||
*
|
||||
* Target selection: ert_shrlib.tlc
|
||||
* Embedded hardware selection: Intel->x86-64 (Windows64)
|
||||
* Code generation objectives: Unspecified
|
||||
* Validation result: Not run
|
||||
*/
|
||||
|
||||
#ifndef RTW_HEADER_cr929_SIL_capi_h_
|
||||
#define RTW_HEADER_cr929_SIL_capi_h_
|
||||
#include "cr929_SIL.h"
|
||||
|
||||
extern void cr929_SIL_InitializeDataMapInfo(void);
|
||||
|
||||
#endif /* RTW_HEADER_cr929_SIL_capi_h_ */
|
||||
|
||||
/*
|
||||
* File trailer for generated code.
|
||||
*
|
||||
* [EOF]
|
||||
*/
|
||||
@@ -0,0 +1,27 @@
|
||||
#ifndef RTW_HEADER_cr929_SIL_cap_host_h_
|
||||
#define RTW_HEADER_cr929_SIL_cap_host_h_
|
||||
#ifdef HOST_CAPI_BUILD
|
||||
#include "rtw_capi.h"
|
||||
#include "rtw_modelmap.h"
|
||||
|
||||
typedef struct {
|
||||
rtwCAPI_ModelMappingInfo mmi;
|
||||
} cr929_SIL_host_DataMapInfo_T;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
|
||||
#endif
|
||||
|
||||
void cr929_SIL_host_InitializeDataMapInfo(cr929_SIL_host_DataMapInfo_T
|
||||
*dataMap, const char *path);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
}
|
||||
#endif
|
||||
#endif /* HOST_CAPI_BUILD */
|
||||
#endif /* RTW_HEADER_cr929_SIL_cap_host_h_ */
|
||||
|
||||
/* EOF: cr929_SIL_capi_host.h */
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,18 @@
|
||||
MODEL=cr929_SIL
|
||||
NUMST=2
|
||||
NCSTATES=31
|
||||
HAVESTDIO
|
||||
MODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0
|
||||
CLASSIC_INTERFACE=0
|
||||
ALLOCATIONFCN=0
|
||||
TID01EQ=1
|
||||
WITH_CAPI
|
||||
MAVLINK_USE_MESSAGE_INFO
|
||||
CAPI_MDL=cr929_SIL
|
||||
HDR_MDL=cr929_SIL.h
|
||||
TERMFCN=1
|
||||
ONESTEPFCN=1
|
||||
MAT_FILE=0
|
||||
MULTI_INSTANCE_CODE=0
|
||||
INTEGER_CODE=0
|
||||
MT=0
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* File: rtmodel.h
|
||||
*
|
||||
* Code generated for Simulink model 'cr929_SIL'.
|
||||
*
|
||||
* Model version : 1.909
|
||||
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
|
||||
* C/C++ source code generated on : Sun Dec 20 14:35:51 2020
|
||||
*
|
||||
* Target selection: ert_shrlib.tlc
|
||||
* Embedded hardware selection: Intel->x86-64 (Windows64)
|
||||
* Code generation objectives: Unspecified
|
||||
* Validation result: Not run
|
||||
*/
|
||||
|
||||
#ifndef RTW_HEADER_rtmodel_h_
|
||||
#define RTW_HEADER_rtmodel_h_
|
||||
#include "cr929_SIL.h"
|
||||
#endif /* RTW_HEADER_rtmodel_h_ */
|
||||
|
||||
/*
|
||||
* File trailer for generated code.
|
||||
*
|
||||
* [EOF]
|
||||
*/
|
||||
Reference in New Issue
Block a user