Files
sil/SIL/work/SIL_ert_shrlib_rtw/SIL_capi.c
T

618 lines
21 KiB
C
Raw Normal View History

2020-09-30 11:44:05 +08:00
/*
* File: SIL_capi.c
*
* Code generated for Simulink model 'SIL'.
*
2020-12-15 15:13:58 +08:00
* Model version : 1.580
2020-09-30 11:44:05 +08:00
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
2020-12-15 15:13:58 +08:00
* C/C++ source code generated on : Tue Dec 15 15:02:31 2020
2020-09-30 11:44:05 +08:00
*
* 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 "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 "SIL.h"
#include "SIL_capi.h"
#include "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 },
2020-12-10 05:34:24 +08:00
{ 2, TARGET_STRING("CD_parachute"), 0, 2, 0 },
2020-09-30 11:44:05 +08:00
2020-12-08 17:29:54 +08:00
{ 3, TARGET_STRING("GyroBias"), 0, 0, 0 },
2020-09-30 11:44:05 +08:00
2020-12-08 17:29:54 +08:00
{ 4, TARGET_STRING("GyroGBias"), 0, 0, 0 },
2020-09-30 11:44:05 +08:00
2020-12-08 17:29:54 +08:00
{ 5, TARGET_STRING("GyroScaleMatrix"), 0, 1, 0 },
2020-09-30 11:44:05 +08:00
2020-12-08 17:29:54 +08:00
{ 6, TARGET_STRING("IMUloc"), 0, 0, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 7, TARGET_STRING("dt_parachute"), 0, 2, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 8, TARGET_STRING("mass0"), 0, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 9, TARGET_STRING("throttle_k"), 0, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 10, TARGET_STRING("throttle_rate"), 0, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 11, TARGET_STRING("wind_east"), 0, 0, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 12, TARGET_STRING("wind_level"), 0, 0, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 13, TARGET_STRING("wind_north"), 0, 0, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 14, TARGET_STRING("CLa"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 15, TARGET_STRING("Clda_lst"), 1, 4, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 16, TARGET_STRING("Clp_lst"), 1, 4, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 17, TARGET_STRING("Cmde_lst"), 1, 4, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 18, TARGET_STRING("Cmq_lst"), 1, 4, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 19, TARGET_STRING("Gamma_L1"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 20, TARGET_STRING("Ixx"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 21, TARGET_STRING("Iyy"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 22, TARGET_STRING("Ma_lst"), 1, 4, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 23, TARGET_STRING("RefArea"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 24, TARGET_STRING("RefLen"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 25, TARGET_STRING("RefSpan"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-11 16:58:14 +08:00
{ 26, TARGET_STRING("alt_lst"), 1, 5, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 27, TARGET_STRING("aoa_scale"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 28, TARGET_STRING("aos_scale"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 29, TARGET_STRING("dal0"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 30, TARGET_STRING("dar0"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 31, TARGET_STRING("de_takeoff"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 32, TARGET_STRING("deadband_da"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 33, TARGET_STRING("deadband_de"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 34, TARGET_STRING("deadband_dr"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 35, TARGET_STRING("del0"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ 36, TARGET_STRING("der0"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-11 16:58:14 +08:00
{ 37, TARGET_STRING("det_time"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-11 16:58:14 +08:00
{ 38, TARGET_STRING("dr0"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 39, TARGET_STRING("emergency_ias"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 40, TARGET_STRING("h_thr2rpm"), 1, 0, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 41, TARGET_STRING("inflect_time"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 42, TARGET_STRING("k_dal"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 43, TARGET_STRING("k_dar"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 44, TARGET_STRING("k_del"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 45, TARGET_STRING("k_der"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 46, TARGET_STRING("k_dr"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 47, TARGET_STRING("ksi_v2tht"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 48, TARGET_STRING("load_detect"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 49, TARGET_STRING("m"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 50, TARGET_STRING("max_az"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 51, TARGET_STRING("max_da"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 52, TARGET_STRING("max_de"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 53, TARGET_STRING("max_dr"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 54, TARGET_STRING("max_hdot"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 55, TARGET_STRING("max_p"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 56, TARGET_STRING("max_phi"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 57, TARGET_STRING("max_q"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 58, TARGET_STRING("max_rpm"), 1, 0, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 59, TARGET_STRING("max_thr"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 60, TARGET_STRING("max_thrust"), 1, 0, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 61, TARGET_STRING("max_tht"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 62, TARGET_STRING("min_abs_alt"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 63, TARGET_STRING("min_de"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 64, TARGET_STRING("min_hdot"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 65, TARGET_STRING("min_ias"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 66, TARGET_STRING("min_rpm"), 1, 0, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 67, TARGET_STRING("min_tht"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 68, TARGET_STRING("recovery_ias"), 1, 3, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 69, TARGET_STRING("tas_gl"), 1, 5, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 70, TARGET_STRING("tas_qc"), 1, 5, 0 },
2020-09-30 11:44:05 +08:00
2020-12-14 21:30:15 +08:00
{ 71, TARGET_STRING("w_as"), 1, 3, 0 },
2020-10-05 10:41:44 +08:00
2020-12-14 21:30:15 +08:00
{ 72, TARGET_STRING("w_v"), 1, 3, 0 },
2020-10-05 10:41:44 +08:00
2020-12-14 21:30:15 +08:00
{ 73, TARGET_STRING("w_v2tht"), 1, 3, 0 },
2020-10-05 10:41:44 +08:00
2020-12-14 21:30:15 +08:00
{ 74, TARGET_STRING("w_x"), 1, 3, 0 },
2020-10-05 10:41:44 +08:00
2020-12-14 21:30:15 +08:00
{ 75, TARGET_STRING("w_y"), 1, 3, 0 },
2020-10-05 10:41:44 +08:00
2020-12-14 21:30:15 +08:00
{ 76, TARGET_STRING("washout_r_den"), 1, 0, 0 },
2020-10-05 10:41:44 +08:00
2020-12-14 21:30:15 +08:00
{ 77, TARGET_STRING("washout_r_num"), 1, 6, 0 },
2020-10-05 10:41:44 +08:00
2020-12-14 21:30:15 +08:00
{ 78, TARGET_STRING("system_id"), 2, 3, 0 },
2020-10-05 10:41:44 +08:00
2020-12-14 21:30:15 +08:00
{ 79, TARGET_STRING("use_ext_ins"), 3, 3, 0 },
2020-10-05 10:41:44 +08:00
2020-12-14 21:30:15 +08:00
{ 80, TARGET_STRING("Att0"), 0, 0, 0 },
2020-10-05 10:41:44 +08:00
2020-12-14 21:30:15 +08:00
{ 81, TARGET_STRING("BoosterUncertGain"), 0, 3, 0 },
2020-10-22 10:50:04 +08:00
2020-12-14 21:30:15 +08:00
{ 82, TARGET_STRING("CD0UncertVal"), 0, 3, 0 },
2020-10-22 10:50:04 +08:00
2020-12-14 21:30:15 +08:00
{ 83, TARGET_STRING("CG_bias_m"), 0, 0, 0 },
2020-10-22 10:50:04 +08:00
2020-12-14 21:30:15 +08:00
{ 84, TARGET_STRING("CL0UncertVal"), 0, 3, 0 },
2020-10-22 10:50:04 +08:00
2020-12-14 21:30:15 +08:00
{ 85, TARGET_STRING("CLaUncertGain"), 0, 3, 0 },
2020-10-22 10:50:04 +08:00
2020-12-14 21:30:15 +08:00
{ 86, TARGET_STRING("CLdeUncertGain"), 0, 3, 0 },
2020-10-22 10:50:04 +08:00
2020-12-14 21:30:15 +08:00
{ 87, TARGET_STRING("CLqUncertGain"), 0, 3, 0 },
2020-10-22 10:50:04 +08:00
2020-12-14 21:30:15 +08:00
{ 88, TARGET_STRING("CY0UncertVal"), 0, 3, 0 },
2020-10-22 10:50:04 +08:00
2020-12-14 21:30:15 +08:00
{ 89, TARGET_STRING("CYbUncertGain"), 0, 3, 0 },
2020-10-26 17:04:48 +08:00
2020-12-14 21:30:15 +08:00
{ 90, TARGET_STRING("CYdrUncertGain"), 0, 3, 0 },
2020-11-13 07:06:02 +08:00
2020-12-14 21:30:15 +08:00
{ 91, TARGET_STRING("CYpUncertGain"), 0, 3, 0 },
2020-11-13 07:06:02 +08:00
2020-12-14 21:30:15 +08:00
{ 92, TARGET_STRING("CYrUncertGain"), 0, 3, 0 },
2020-11-13 07:06:02 +08:00
2020-12-14 21:30:15 +08:00
{ 93, TARGET_STRING("Cl0UncertVal"), 0, 3, 0 },
2020-11-13 07:06:02 +08:00
2020-12-14 21:30:15 +08:00
{ 94, TARGET_STRING("ClbUncertGain"), 0, 3, 0 },
2020-11-18 16:43:00 +08:00
2020-12-14 21:30:15 +08:00
{ 95, TARGET_STRING("CldaUncertGain"), 0, 3, 0 },
2020-11-18 16:43:00 +08:00
2020-12-14 21:30:15 +08:00
{ 96, TARGET_STRING("CldrUncertGain"), 0, 3, 0 },
2020-11-18 16:43:00 +08:00
2020-12-14 21:30:15 +08:00
{ 97, TARGET_STRING("ClpUncertGain"), 0, 3, 0 },
2020-11-19 15:43:17 +08:00
2020-12-14 21:30:15 +08:00
{ 98, TARGET_STRING("ClrUncertGain"), 0, 3, 0 },
2020-11-20 11:47:24 +08:00
2020-12-14 21:30:15 +08:00
{ 99, TARGET_STRING("Cm0UncertVal"), 0, 3, 0 },
2020-11-20 11:47:24 +08:00
2020-12-14 21:30:15 +08:00
{ 100, TARGET_STRING("CmaUncertGain"), 0, 3, 0 },
2020-11-20 11:47:24 +08:00
2020-12-14 21:30:15 +08:00
{ 101, TARGET_STRING("CmdeUncertGain"), 0, 3, 0 },
2020-11-20 11:47:24 +08:00
2020-12-14 21:30:15 +08:00
{ 102, TARGET_STRING("CmqUncertGain"), 0, 3, 0 },
2020-11-20 11:47:24 +08:00
2020-12-14 21:30:15 +08:00
{ 103, TARGET_STRING("Cn0UncertVal"), 0, 3, 0 },
2020-11-20 11:47:24 +08:00
2020-12-14 21:30:15 +08:00
{ 104, TARGET_STRING("CnbUncertGain"), 0, 3, 0 },
2020-12-08 11:56:39 +08:00
2020-12-14 21:30:15 +08:00
{ 105, TARGET_STRING("CndaUncertGain"), 0, 3, 0 },
2020-12-08 11:56:39 +08:00
2020-12-14 21:30:15 +08:00
{ 106, TARGET_STRING("CndrUncertGain"), 0, 3, 0 },
2020-12-08 11:56:39 +08:00
2020-12-14 21:30:15 +08:00
{ 107, TARGET_STRING("CnpUncertGain"), 0, 3, 0 },
2020-12-08 17:29:54 +08:00
2020-12-14 21:30:15 +08:00
{ 108, TARGET_STRING("CnrUncertGain"), 0, 3, 0 },
2020-12-08 17:29:54 +08:00
2020-12-14 21:30:15 +08:00
{ 109, TARGET_STRING("InertiaMoments_bias_kg_m2"), 0, 1, 0 },
2020-12-08 17:29:54 +08:00
2020-12-14 21:30:15 +08:00
{ 110, TARGET_STRING("ThrustUncertGain"), 0, 3, 0 },
2020-12-08 17:29:54 +08:00
2020-12-14 21:30:15 +08:00
{ 111, TARGET_STRING("V0"), 0, 0, 0 },
2020-12-08 17:29:54 +08:00
2020-12-14 21:30:15 +08:00
{ 112, TARGET_STRING("X0"), 0, 0, 0 },
2020-12-10 05:34:24 +08:00
2020-12-14 21:30:15 +08:00
{ 113, TARGET_STRING("booster_att_rad"), 0, 0, 0 },
2020-12-10 05:34:24 +08:00
2020-12-14 21:30:15 +08:00
{ 114, TARGET_STRING("booster_pos_m"), 0, 0, 0 },
2020-12-10 05:34:24 +08:00
2020-12-14 21:30:15 +08:00
{ 115, TARGET_STRING("engine_att_rad"), 0, 0, 0 },
2020-12-10 05:34:24 +08:00
2020-12-14 21:30:15 +08:00
{ 116, TARGET_STRING("engine_pos_m"), 0, 0, 0 },
2020-12-11 16:58:14 +08:00
2020-12-14 21:30:15 +08:00
{ 117, TARGET_STRING("force_CG"), 0, 3, 0 },
2020-12-11 16:58:14 +08:00
2020-12-14 21:30:15 +08:00
{ 118, TARGET_STRING("force_CG_pos_m"), 0, 0, 0 },
{ 119, TARGET_STRING("hground"), 0, 3, 0 },
{ 120, TARGET_STRING("transrate"), 4, 3, 0 },
2020-09-30 11:44:05 +08:00
{ 0, (NULL), 0, 0, 0 }
};
#ifndef HOST_CAPI_BUILD
/* Declare Data Addresses statically */
static void* rtDataAddrMap[] = {
&SIL_P.AccelBias[0], /* 0: Model Parameter */
&SIL_P.AccelScaleMatrix[0], /* 1: Model Parameter */
2020-12-10 05:34:24 +08:00
&SIL_P.CD_parachute[0], /* 2: Model Parameter */
2020-12-08 17:29:54 +08:00
&SIL_P.GyroBias[0], /* 3: Model Parameter */
&SIL_P.GyroGBias[0], /* 4: Model Parameter */
&SIL_P.GyroScaleMatrix[0], /* 5: Model Parameter */
&SIL_P.IMUloc[0], /* 6: Model Parameter */
2020-12-10 05:34:24 +08:00
&SIL_P.dt_parachute[0], /* 7: Model Parameter */
&SIL_P.mass0, /* 8: Model Parameter */
&SIL_P.throttle_k, /* 9: Model Parameter */
&SIL_P.throttle_rate, /* 10: Model Parameter */
&SIL_P.wind_east[0], /* 11: Model Parameter */
&SIL_P.wind_level[0], /* 12: Model Parameter */
&SIL_P.wind_north[0], /* 13: Model Parameter */
&SIL_P.CLa, /* 14: Model Parameter */
&SIL_P.Clda_lst[0], /* 15: Model Parameter */
&SIL_P.Clp_lst[0], /* 16: Model Parameter */
&SIL_P.Cmde_lst[0], /* 17: Model Parameter */
&SIL_P.Cmq_lst[0], /* 18: Model Parameter */
&SIL_P.Gamma_L1, /* 19: Model Parameter */
&SIL_P.Ixx, /* 20: Model Parameter */
&SIL_P.Iyy, /* 21: Model Parameter */
&SIL_P.Ma_lst[0], /* 22: Model Parameter */
&SIL_P.RefArea, /* 23: Model Parameter */
&SIL_P.RefLen, /* 24: Model Parameter */
&SIL_P.RefSpan, /* 25: Model Parameter */
&SIL_P.alt_lst[0], /* 26: Model Parameter */
&SIL_P.aoa_scale, /* 27: Model Parameter */
&SIL_P.aos_scale, /* 28: Model Parameter */
&SIL_P.dal0, /* 29: Model Parameter */
&SIL_P.dar0, /* 30: Model Parameter */
&SIL_P.de_takeoff, /* 31: Model Parameter */
&SIL_P.deadband_da, /* 32: Model Parameter */
&SIL_P.deadband_de, /* 33: Model Parameter */
&SIL_P.deadband_dr, /* 34: Model Parameter */
&SIL_P.del0, /* 35: Model Parameter */
&SIL_P.der0, /* 36: Model Parameter */
2020-12-11 16:58:14 +08:00
&SIL_P.det_time, /* 37: Model Parameter */
&SIL_P.dr0, /* 38: Model Parameter */
2020-12-14 21:30:15 +08:00
&SIL_P.emergency_ias, /* 39: Model Parameter */
&SIL_P.h_thr2rpm[0], /* 40: Model Parameter */
&SIL_P.inflect_time, /* 41: Model Parameter */
&SIL_P.k_dal, /* 42: Model Parameter */
&SIL_P.k_dar, /* 43: Model Parameter */
&SIL_P.k_del, /* 44: Model Parameter */
&SIL_P.k_der, /* 45: Model Parameter */
&SIL_P.k_dr, /* 46: Model Parameter */
&SIL_P.ksi_v2tht, /* 47: Model Parameter */
&SIL_P.load_detect, /* 48: Model Parameter */
&SIL_P.m, /* 49: Model Parameter */
&SIL_P.max_az, /* 50: Model Parameter */
&SIL_P.max_da, /* 51: Model Parameter */
&SIL_P.max_de, /* 52: Model Parameter */
&SIL_P.max_dr, /* 53: Model Parameter */
&SIL_P.max_hdot, /* 54: Model Parameter */
&SIL_P.max_p, /* 55: Model Parameter */
&SIL_P.max_phi, /* 56: Model Parameter */
&SIL_P.max_q, /* 57: Model Parameter */
&SIL_P.max_rpm[0], /* 58: Model Parameter */
&SIL_P.max_thr, /* 59: Model Parameter */
&SIL_P.max_thrust[0], /* 60: Model Parameter */
&SIL_P.max_tht, /* 61: Model Parameter */
&SIL_P.min_abs_alt, /* 62: Model Parameter */
&SIL_P.min_de, /* 63: Model Parameter */
&SIL_P.min_hdot, /* 64: Model Parameter */
&SIL_P.min_ias, /* 65: Model Parameter */
&SIL_P.min_rpm[0], /* 66: Model Parameter */
&SIL_P.min_tht, /* 67: Model Parameter */
&SIL_P.recovery_ias, /* 68: Model Parameter */
&SIL_P.tas_gl[0], /* 69: Model Parameter */
&SIL_P.tas_qc[0], /* 70: Model Parameter */
&SIL_P.w_as, /* 71: Model Parameter */
&SIL_P.w_v, /* 72: Model Parameter */
&SIL_P.w_v2tht, /* 73: Model Parameter */
&SIL_P.w_x, /* 74: Model Parameter */
&SIL_P.w_y, /* 75: Model Parameter */
&SIL_P.washout_r_den[0], /* 76: Model Parameter */
&SIL_P.washout_r_num[0], /* 77: Model Parameter */
&SIL_P.system_id, /* 78: Model Parameter */
&SIL_P.use_ext_ins, /* 79: Model Parameter */
Att0, /* 80: Model Parameter */
&BoosterUncertGain, /* 81: Model Parameter */
&CD0UncertVal, /* 82: Model Parameter */
CG_bias_m, /* 83: Model Parameter */
&CL0UncertVal, /* 84: Model Parameter */
&CLaUncertGain, /* 85: Model Parameter */
&CLdeUncertGain, /* 86: Model Parameter */
&CLqUncertGain, /* 87: Model Parameter */
&CY0UncertVal, /* 88: Model Parameter */
&CYbUncertGain, /* 89: Model Parameter */
&CYdrUncertGain, /* 90: Model Parameter */
&CYpUncertGain, /* 91: Model Parameter */
&CYrUncertGain, /* 92: Model Parameter */
&Cl0UncertVal, /* 93: Model Parameter */
&ClbUncertGain, /* 94: Model Parameter */
&CldaUncertGain, /* 95: Model Parameter */
&CldrUncertGain, /* 96: Model Parameter */
&ClpUncertGain, /* 97: Model Parameter */
&ClrUncertGain, /* 98: Model Parameter */
&Cm0UncertVal, /* 99: Model Parameter */
&CmaUncertGain, /* 100: Model Parameter */
&CmdeUncertGain, /* 101: Model Parameter */
&CmqUncertGain, /* 102: Model Parameter */
&Cn0UncertVal, /* 103: Model Parameter */
&CnbUncertGain, /* 104: Model Parameter */
&CndaUncertGain, /* 105: Model Parameter */
&CndrUncertGain, /* 106: Model Parameter */
&CnpUncertGain, /* 107: Model Parameter */
&CnrUncertGain, /* 108: Model Parameter */
InertiaMoments_bias_kg_m2, /* 109: Model Parameter */
&ThrustUncertGain, /* 110: Model Parameter */
V0, /* 111: Model Parameter */
X0, /* 112: Model Parameter */
booster_att_rad, /* 113: Model Parameter */
booster_pos_m, /* 114: Model Parameter */
engine_att_rad, /* 115: Model Parameter */
engine_pos_m, /* 116: Model Parameter */
&force_CG, /* 117: Model Parameter */
force_CG_pos_m, /* 118: Model Parameter */
&hground, /* 119: Model Parameter */
&transrate, /* 120: Model Parameter */
2020-09-30 11:44:05 +08:00
};
/* 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 short", "uint16_T", 0, 0, sizeof(uint16_T), SS_UINT16, 0, 0 },
2020-12-08 17:29:54 +08:00
{ "unsigned char", "boolean_T", 0, 0, sizeof(boolean_T), SS_BOOLEAN, 0, 0 },
2020-10-05 10:41:44 +08:00
{ "unsigned int", "uint32_T", 0, 0, sizeof(uint32_T), SS_UINT32, 0, 0 }
2020-09-30 11:44:05 +08:00
};
#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 },
2020-12-10 05:34:24 +08:00
{ rtwCAPI_VECTOR, 4, 2, 0 },
2020-09-30 11:44:05 +08:00
2020-12-10 05:34:24 +08:00
{ rtwCAPI_SCALAR, 6, 2, 0 },
2020-09-30 11:44:05 +08:00
2020-12-08 17:29:54 +08:00
{ rtwCAPI_VECTOR, 8, 2, 0 },
2020-12-11 16:58:14 +08:00
{ rtwCAPI_VECTOR, 10, 2, 0 },
{ rtwCAPI_VECTOR, 12, 2, 0 }
2020-09-30 11:44:05 +08:00
};
/* 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 */
2020-12-11 16:58:14 +08:00
7, /* 5 */
2020-09-30 11:44:05 +08:00
1, /* 6 */
2020-12-10 05:34:24 +08:00
1, /* 7 */
2020-09-30 11:44:05 +08:00
1, /* 8 */
2020-12-10 05:34:24 +08:00
11, /* 9 */
2020-12-08 17:29:54 +08:00
1, /* 10 */
2020-12-11 16:58:14 +08:00
6, /* 11 */
1, /* 12 */
2 /* 13 */
2020-09-30 11:44:05 +08:00
};
/* 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,
2020-12-14 21:30:15 +08:00
rtModelParameters, 121 },
2020-09-30 11:44:05 +08:00
{ (NULL), 0 },
{ rtDataTypeMap, rtDimensionMap, rtFixPtMap,
rtElementMap, rtSampleTimeMap, rtDimensionArray },
"float",
2020-12-15 15:13:58 +08:00
{ 1669462534U,
3195022813U,
3268302201U,
1497955174U },
2020-09-30 11:44:05 +08:00
(NULL), 0,
0
};
/* Function to get C API Model Mapping Static Info */
const rtwCAPI_ModelMappingStaticInfo*
SIL_GetCAPIStaticMap(void)
{
return &mmiStatic;
}
/* Cache pointers into DataMapInfo substructure of RTModel */
#ifndef HOST_CAPI_BUILD
void SIL_InitializeDataMapInfo(void)
{
/* Set C-API version */
rtwCAPI_SetVersion(SIL_M->DataMapInfo.mmi, 1);
/* Cache static C-API data into the Real-time Model Data structure */
rtwCAPI_SetStaticMap(SIL_M->DataMapInfo.mmi, &mmiStatic);
/* Cache static C-API logging data into the Real-time Model Data structure */
rtwCAPI_SetLoggingStaticMap(SIL_M->DataMapInfo.mmi, (NULL));
/* Cache C-API Data Addresses into the Real-Time Model Data structure */
rtwCAPI_SetDataAddressMap(SIL_M->DataMapInfo.mmi, rtDataAddrMap);
/* Cache C-API Data Run-Time Dimension Buffer Addresses into the Real-Time Model Data structure */
rtwCAPI_SetVarDimsAddressMap(SIL_M->DataMapInfo.mmi, rtVarDimsAddrMap);
/* Cache the instance C-API logging pointer */
rtwCAPI_SetInstanceLoggingInfo(SIL_M->DataMapInfo.mmi, (NULL));
/* Set reference to submodels */
rtwCAPI_SetChildMMIArray(SIL_M->DataMapInfo.mmi, (NULL));
rtwCAPI_SetChildMMIArrayLen(SIL_M->DataMapInfo.mmi, 0);
}
#else /* HOST_CAPI_BUILD */
#ifdef __cplusplus
extern "C" {
#endif
void SIL_host_InitializeDataMapInfo(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]
*/