diff options
Diffstat (limited to 'Prof_Arya/slprj/_sfprj')
17 files changed, 2371 insertions, 0 deletions
diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/binfo.mat b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/binfo.mat Binary files differnew file mode 100644 index 0000000..8c3d4c4 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/binfo.mat diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_61lDY9MbzCSyk6tMTxmxsG.mat b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_61lDY9MbzCSyk6tMTxmxsG.mat Binary files differnew file mode 100644 index 0000000..96112df --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_61lDY9MbzCSyk6tMTxmxsG.mat diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_jFM61yZv4AZtAtyV4ewisH.mat b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_jFM61yZv4AZtAtyV4ewisH.mat Binary files differnew file mode 100644 index 0000000..3e61301 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_jFM61yZv4AZtAtyV4ewisH.mat diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_v045JFXizl4FQXSha8a34C.mat b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_v045JFXizl4FQXSha8a34C.mat Binary files differnew file mode 100644 index 0000000..cd926a4 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_v045JFXizl4FQXSha8a34C.mat diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_Cessna_6DOF.c b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_Cessna_6DOF.c new file mode 100644 index 0000000..cbd0534 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_Cessna_6DOF.c @@ -0,0 +1,2330 @@ +/* Include files */
+
+#include <stddef.h>
+#include "blas.h"
+#include "Cessna_6DOF_sfun.h"
+#include "c1_Cessna_6DOF.h"
+#include "mwmathutil.h"
+#define CHARTINSTANCE_CHARTNUMBER (chartInstance->chartNumber)
+#define CHARTINSTANCE_INSTANCENUMBER (chartInstance->instanceNumber)
+#include "Cessna_6DOF_sfun_debug_macros.h"
+#define _SF_MEX_LISTEN_FOR_CTRL_C(S) sf_mex_listen_for_ctrl_c(sfGlobalDebugInstanceStruct,S);
+
+/* Type Definitions */
+
+/* Named Constants */
+#define CALL_EVENT (-1)
+
+/* Variable Declarations */
+
+/* Variable Definitions */
+static real_T _sfTime_;
+static const char * c1_debug_family_names[55] = { "g", "rho", "m", "C_bar", "b",
+ "S_ref", "C_L_0", "C_L_alpha", "C_L_q", "C_L_delta_e", "C_D_0", "k",
+ "C_Y_beta", "C_Y_p", "C_Y_r", "C_Y_delta_a", "C_l_beta", "C_l_p", "C_l_r",
+ "C_l_delta_a", "C_l_delta_r", "C_M_0", "C_M_alpha", "C_M_alpha_dot",
+ "C_M_delta_e", "C_N_beta", "C_N_p", "C_N_r", "C_N_delta_a", "C_N_delta_r",
+ "delta_e", "delta_a", "delta_r", "thrust", "C_L", "C_D", "C_Y", "C_l", "C_M",
+ "C_N", "C_X", "C_Z", "q_bar", "nargin", "nargout", "V", "alpha", "alpha_dot",
+ "beta", "p", "q", "r", "theta", "F", "M" };
+
+/* Function Declarations */
+static void initialize_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance);
+static void initialize_params_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance);
+static void enable_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct *chartInstance);
+static void disable_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct *chartInstance);
+static void c1_update_debugger_state_c1_Cessna_6DOF
+ (SFc1_Cessna_6DOFInstanceStruct *chartInstance);
+static const mxArray *get_sim_state_c1_Cessna_6DOF
+ (SFc1_Cessna_6DOFInstanceStruct *chartInstance);
+static void set_sim_state_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_st);
+static void finalize_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance);
+static void sf_gateway_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance);
+static void c1_chartstep_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance);
+static void initSimStructsc1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance);
+static void init_script_number_translation(uint32_T c1_machineNumber, uint32_T
+ c1_chartNumber, uint32_T c1_instanceNumber);
+static const mxArray *c1_sf_marshallOut(void *chartInstanceVoid, void *c1_inData);
+static void c1_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct *chartInstance,
+ const mxArray *c1_M, const char_T *c1_identifier, real_T c1_y[3]);
+static void c1_b_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct *chartInstance,
+ const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId, real_T c1_y[3]);
+static void c1_sf_marshallIn(void *chartInstanceVoid, const mxArray
+ *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData);
+static const mxArray *c1_b_sf_marshallOut(void *chartInstanceVoid, void
+ *c1_inData);
+static real_T c1_c_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId);
+static void c1_b_sf_marshallIn(void *chartInstanceVoid, const mxArray
+ *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData);
+static void c1_info_helper(const mxArray **c1_info);
+static const mxArray *c1_emlrt_marshallOut(const char * c1_u);
+static const mxArray *c1_b_emlrt_marshallOut(const uint32_T c1_u);
+static real_T c1_mpower(SFc1_Cessna_6DOFInstanceStruct *chartInstance, real_T
+ c1_a);
+static void c1_eml_scalar_eg(SFc1_Cessna_6DOFInstanceStruct *chartInstance);
+static const mxArray *c1_c_sf_marshallOut(void *chartInstanceVoid, void
+ *c1_inData);
+static int32_T c1_d_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId);
+static void c1_c_sf_marshallIn(void *chartInstanceVoid, const mxArray
+ *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData);
+static uint8_T c1_e_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_b_is_active_c1_Cessna_6DOF, const char_T
+ *c1_identifier);
+static uint8_T c1_f_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId);
+static void init_dsm_address_info(SFc1_Cessna_6DOFInstanceStruct *chartInstance);
+
+/* Function Definitions */
+static void initialize_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance)
+{
+ chartInstance->c1_sfEvent = CALL_EVENT;
+ _sfTime_ = sf_get_time(chartInstance->S);
+ chartInstance->c1_is_active_c1_Cessna_6DOF = 0U;
+}
+
+static void initialize_params_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance)
+{
+ (void)chartInstance;
+}
+
+static void enable_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct *chartInstance)
+{
+ _sfTime_ = sf_get_time(chartInstance->S);
+}
+
+static void disable_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct *chartInstance)
+{
+ _sfTime_ = sf_get_time(chartInstance->S);
+}
+
+static void c1_update_debugger_state_c1_Cessna_6DOF
+ (SFc1_Cessna_6DOFInstanceStruct *chartInstance)
+{
+ (void)chartInstance;
+}
+
+static const mxArray *get_sim_state_c1_Cessna_6DOF
+ (SFc1_Cessna_6DOFInstanceStruct *chartInstance)
+{
+ const mxArray *c1_st;
+ const mxArray *c1_y = NULL;
+ int32_T c1_i0;
+ real_T c1_u[3];
+ const mxArray *c1_b_y = NULL;
+ int32_T c1_i1;
+ real_T c1_b_u[3];
+ const mxArray *c1_c_y = NULL;
+ uint8_T c1_hoistedGlobal;
+ uint8_T c1_c_u;
+ const mxArray *c1_d_y = NULL;
+ real_T (*c1_M)[3];
+ real_T (*c1_F)[3];
+ c1_M = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 2);
+ c1_F = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 1);
+ c1_st = NULL;
+ c1_st = NULL;
+ c1_y = NULL;
+ sf_mex_assign(&c1_y, sf_mex_createcellmatrix(3, 1), false);
+ for (c1_i0 = 0; c1_i0 < 3; c1_i0++) {
+ c1_u[c1_i0] = (*c1_F)[c1_i0];
+ }
+
+ c1_b_y = NULL;
+ sf_mex_assign(&c1_b_y, sf_mex_create("y", c1_u, 0, 0U, 1U, 0U, 1, 3), false);
+ sf_mex_setcell(c1_y, 0, c1_b_y);
+ for (c1_i1 = 0; c1_i1 < 3; c1_i1++) {
+ c1_b_u[c1_i1] = (*c1_M)[c1_i1];
+ }
+
+ c1_c_y = NULL;
+ sf_mex_assign(&c1_c_y, sf_mex_create("y", c1_b_u, 0, 0U, 1U, 0U, 1, 3), false);
+ sf_mex_setcell(c1_y, 1, c1_c_y);
+ c1_hoistedGlobal = chartInstance->c1_is_active_c1_Cessna_6DOF;
+ c1_c_u = c1_hoistedGlobal;
+ c1_d_y = NULL;
+ sf_mex_assign(&c1_d_y, sf_mex_create("y", &c1_c_u, 3, 0U, 0U, 0U, 0), false);
+ sf_mex_setcell(c1_y, 2, c1_d_y);
+ sf_mex_assign(&c1_st, c1_y, false);
+ return c1_st;
+}
+
+static void set_sim_state_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_st)
+{
+ const mxArray *c1_u;
+ real_T c1_dv0[3];
+ int32_T c1_i2;
+ real_T c1_dv1[3];
+ int32_T c1_i3;
+ real_T (*c1_F)[3];
+ real_T (*c1_M)[3];
+ c1_M = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 2);
+ c1_F = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 1);
+ chartInstance->c1_doneDoubleBufferReInit = true;
+ c1_u = sf_mex_dup(c1_st);
+ c1_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 0)), "F",
+ c1_dv0);
+ for (c1_i2 = 0; c1_i2 < 3; c1_i2++) {
+ (*c1_F)[c1_i2] = c1_dv0[c1_i2];
+ }
+
+ c1_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 1)), "M",
+ c1_dv1);
+ for (c1_i3 = 0; c1_i3 < 3; c1_i3++) {
+ (*c1_M)[c1_i3] = c1_dv1[c1_i3];
+ }
+
+ chartInstance->c1_is_active_c1_Cessna_6DOF = c1_e_emlrt_marshallIn
+ (chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 2)),
+ "is_active_c1_Cessna_6DOF");
+ sf_mex_destroy(&c1_u);
+ c1_update_debugger_state_c1_Cessna_6DOF(chartInstance);
+ sf_mex_destroy(&c1_st);
+}
+
+static void finalize_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance)
+{
+ (void)chartInstance;
+}
+
+static void sf_gateway_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance)
+{
+ int32_T c1_i4;
+ int32_T c1_i5;
+ real_T *c1_V;
+ real_T *c1_alpha;
+ real_T *c1_alpha_dot;
+ real_T *c1_beta;
+ real_T *c1_p;
+ real_T *c1_q;
+ real_T *c1_r;
+ real_T *c1_theta;
+ real_T (*c1_M)[3];
+ real_T (*c1_F)[3];
+ c1_M = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 2);
+ c1_theta = (real_T *)ssGetInputPortSignal(chartInstance->S, 7);
+ c1_r = (real_T *)ssGetInputPortSignal(chartInstance->S, 6);
+ c1_q = (real_T *)ssGetInputPortSignal(chartInstance->S, 5);
+ c1_p = (real_T *)ssGetInputPortSignal(chartInstance->S, 4);
+ c1_beta = (real_T *)ssGetInputPortSignal(chartInstance->S, 3);
+ c1_alpha_dot = (real_T *)ssGetInputPortSignal(chartInstance->S, 2);
+ c1_alpha = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);
+ c1_F = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 1);
+ c1_V = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);
+ _SFD_SYMBOL_SCOPE_PUSH(0U, 0U);
+ _sfTime_ = sf_get_time(chartInstance->S);
+ _SFD_CC_CALL(CHART_ENTER_SFUNCTION_TAG, 0U, chartInstance->c1_sfEvent);
+ _SFD_DATA_RANGE_CHECK(*c1_V, 0U);
+ chartInstance->c1_sfEvent = CALL_EVENT;
+ c1_chartstep_c1_Cessna_6DOF(chartInstance);
+ _SFD_SYMBOL_SCOPE_POP();
+ _SFD_CHECK_FOR_STATE_INCONSISTENCY(_Cessna_6DOFMachineNumber_,
+ chartInstance->chartNumber, chartInstance->instanceNumber);
+ for (c1_i4 = 0; c1_i4 < 3; c1_i4++) {
+ _SFD_DATA_RANGE_CHECK((*c1_F)[c1_i4], 1U);
+ }
+
+ _SFD_DATA_RANGE_CHECK(*c1_alpha, 2U);
+ _SFD_DATA_RANGE_CHECK(*c1_alpha_dot, 3U);
+ _SFD_DATA_RANGE_CHECK(*c1_beta, 4U);
+ _SFD_DATA_RANGE_CHECK(*c1_p, 5U);
+ _SFD_DATA_RANGE_CHECK(*c1_q, 6U);
+ _SFD_DATA_RANGE_CHECK(*c1_r, 7U);
+ _SFD_DATA_RANGE_CHECK(*c1_theta, 8U);
+ for (c1_i5 = 0; c1_i5 < 3; c1_i5++) {
+ _SFD_DATA_RANGE_CHECK((*c1_M)[c1_i5], 9U);
+ }
+}
+
+static void c1_chartstep_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance)
+{
+ real_T c1_hoistedGlobal;
+ real_T c1_b_hoistedGlobal;
+ real_T c1_c_hoistedGlobal;
+ real_T c1_d_hoistedGlobal;
+ real_T c1_e_hoistedGlobal;
+ real_T c1_f_hoistedGlobal;
+ real_T c1_g_hoistedGlobal;
+ real_T c1_h_hoistedGlobal;
+ real_T c1_V;
+ real_T c1_alpha;
+ real_T c1_alpha_dot;
+ real_T c1_beta;
+ real_T c1_p;
+ real_T c1_q;
+ real_T c1_r;
+ real_T c1_theta;
+ uint32_T c1_debug_family_var_map[55];
+ real_T c1_g;
+ real_T c1_rho;
+ real_T c1_m;
+ real_T c1_C_bar;
+ real_T c1_b;
+ real_T c1_S_ref;
+ real_T c1_C_L_0;
+ real_T c1_C_L_alpha;
+ real_T c1_C_L_q;
+ real_T c1_C_L_delta_e;
+ real_T c1_C_D_0;
+ real_T c1_k;
+ real_T c1_C_Y_beta;
+ real_T c1_C_Y_p;
+ real_T c1_C_Y_r;
+ real_T c1_C_Y_delta_a;
+ real_T c1_C_l_beta;
+ real_T c1_C_l_p;
+ real_T c1_C_l_r;
+ real_T c1_C_l_delta_a;
+ real_T c1_C_l_delta_r;
+ real_T c1_C_M_0;
+ real_T c1_C_M_alpha;
+ real_T c1_C_M_alpha_dot;
+ real_T c1_C_M_delta_e;
+ real_T c1_C_N_beta;
+ real_T c1_C_N_p;
+ real_T c1_C_N_r;
+ real_T c1_C_N_delta_a;
+ real_T c1_C_N_delta_r;
+ real_T c1_delta_e;
+ real_T c1_delta_a;
+ real_T c1_delta_r;
+ real_T c1_thrust;
+ real_T c1_C_L;
+ real_T c1_C_D;
+ real_T c1_C_Y;
+ real_T c1_C_l;
+ real_T c1_C_M;
+ real_T c1_C_N;
+ real_T c1_C_X;
+ real_T c1_C_Z;
+ real_T c1_q_bar;
+ real_T c1_nargin = 8.0;
+ real_T c1_nargout = 2.0;
+ real_T c1_F[3];
+ real_T c1_M[3];
+ real_T c1_A;
+ real_T c1_B;
+ real_T c1_x;
+ real_T c1_y;
+ real_T c1_b_x;
+ real_T c1_b_y;
+ real_T c1_c_x;
+ real_T c1_c_y;
+ real_T c1_d_y;
+ real_T c1_b_A;
+ real_T c1_b_B;
+ real_T c1_d_x;
+ real_T c1_e_y;
+ real_T c1_e_x;
+ real_T c1_f_y;
+ real_T c1_f_x;
+ real_T c1_g_y;
+ real_T c1_h_y;
+ real_T c1_c_A;
+ real_T c1_c_B;
+ real_T c1_g_x;
+ real_T c1_i_y;
+ real_T c1_h_x;
+ real_T c1_j_y;
+ real_T c1_i_x;
+ real_T c1_k_y;
+ real_T c1_l_y;
+ real_T c1_d_A;
+ real_T c1_d_B;
+ real_T c1_j_x;
+ real_T c1_m_y;
+ real_T c1_k_x;
+ real_T c1_n_y;
+ real_T c1_l_x;
+ real_T c1_o_y;
+ real_T c1_p_y;
+ real_T c1_e_A;
+ real_T c1_e_B;
+ real_T c1_m_x;
+ real_T c1_q_y;
+ real_T c1_n_x;
+ real_T c1_r_y;
+ real_T c1_o_x;
+ real_T c1_s_y;
+ real_T c1_t_y;
+ real_T c1_f_A;
+ real_T c1_f_B;
+ real_T c1_p_x;
+ real_T c1_u_y;
+ real_T c1_q_x;
+ real_T c1_v_y;
+ real_T c1_r_x;
+ real_T c1_w_y;
+ real_T c1_x_y;
+ real_T c1_g_A;
+ real_T c1_g_B;
+ real_T c1_s_x;
+ real_T c1_y_y;
+ real_T c1_t_x;
+ real_T c1_ab_y;
+ real_T c1_u_x;
+ real_T c1_bb_y;
+ real_T c1_cb_y;
+ real_T c1_h_A;
+ real_T c1_h_B;
+ real_T c1_v_x;
+ real_T c1_db_y;
+ real_T c1_w_x;
+ real_T c1_eb_y;
+ real_T c1_x_x;
+ real_T c1_fb_y;
+ real_T c1_gb_y;
+ real_T c1_y_x;
+ real_T c1_ab_x;
+ real_T c1_bb_x;
+ real_T c1_cb_x;
+ real_T c1_db_x;
+ real_T c1_eb_x;
+ real_T c1_fb_x;
+ real_T c1_gb_x;
+ int32_T c1_i6;
+ int32_T c1_i7;
+ real_T c1_hb_x;
+ real_T c1_ib_x;
+ real_T c1_jb_x;
+ real_T c1_kb_x;
+ int32_T c1_i8;
+ int32_T c1_i9;
+ real_T *c1_b_theta;
+ real_T *c1_b_r;
+ real_T *c1_b_q;
+ real_T *c1_b_p;
+ real_T *c1_b_beta;
+ real_T *c1_b_alpha_dot;
+ real_T *c1_b_alpha;
+ real_T *c1_b_V;
+ real_T (*c1_b_F)[3];
+ real_T (*c1_b_M)[3];
+ c1_b_M = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 2);
+ c1_b_theta = (real_T *)ssGetInputPortSignal(chartInstance->S, 7);
+ c1_b_r = (real_T *)ssGetInputPortSignal(chartInstance->S, 6);
+ c1_b_q = (real_T *)ssGetInputPortSignal(chartInstance->S, 5);
+ c1_b_p = (real_T *)ssGetInputPortSignal(chartInstance->S, 4);
+ c1_b_beta = (real_T *)ssGetInputPortSignal(chartInstance->S, 3);
+ c1_b_alpha_dot = (real_T *)ssGetInputPortSignal(chartInstance->S, 2);
+ c1_b_alpha = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);
+ c1_b_F = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 1);
+ c1_b_V = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);
+ _SFD_CC_CALL(CHART_ENTER_DURING_FUNCTION_TAG, 0U, chartInstance->c1_sfEvent);
+ c1_hoistedGlobal = *c1_b_V;
+ c1_b_hoistedGlobal = *c1_b_alpha;
+ c1_c_hoistedGlobal = *c1_b_alpha_dot;
+ c1_d_hoistedGlobal = *c1_b_beta;
+ c1_e_hoistedGlobal = *c1_b_p;
+ c1_f_hoistedGlobal = *c1_b_q;
+ c1_g_hoistedGlobal = *c1_b_r;
+ c1_h_hoistedGlobal = *c1_b_theta;
+ c1_V = c1_hoistedGlobal;
+ c1_alpha = c1_b_hoistedGlobal;
+ c1_alpha_dot = c1_c_hoistedGlobal;
+ c1_beta = c1_d_hoistedGlobal;
+ c1_p = c1_e_hoistedGlobal;
+ c1_q = c1_f_hoistedGlobal;
+ c1_r = c1_g_hoistedGlobal;
+ c1_theta = c1_h_hoistedGlobal;
+ _SFD_SYMBOL_SCOPE_PUSH_EML(0U, 55U, 55U, c1_debug_family_names,
+ c1_debug_family_var_map);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_g, 0U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_rho, 1U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_m, 2U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_bar, 3U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_b, 4U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_S_ref, 5U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_L_0, 6U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_L_alpha, 7U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_L_q, 8U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_L_delta_e, 9U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_D_0, 10U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_k, 11U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_Y_beta, 12U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_Y_p, 13U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_Y_r, 14U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_Y_delta_a, 15U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_l_beta, 16U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_l_p, 17U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_l_r, 18U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_l_delta_a, 19U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_l_delta_r, 20U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_M_0, 21U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_M_alpha, 22U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_M_alpha_dot, 23U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_M_delta_e, 24U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_N_beta, 25U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_N_p, 26U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_N_r, 27U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_N_delta_a, 28U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_N_delta_r, 29U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_delta_e, 30U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_delta_a, 31U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_delta_r, 32U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_thrust, 33U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_L, 34U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_D, 35U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_Y, 36U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_l, 37U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_M, 38U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_N, 39U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_X, 40U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_Z, 41U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_q_bar, 42U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_nargin, 43U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_nargout, 44U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_V, 45U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_alpha, 46U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_alpha_dot, 47U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_beta, 48U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_p, 49U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_q, 50U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_r, 51U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_theta, 52U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(c1_F, 53U, c1_sf_marshallOut,
+ c1_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(c1_M, 54U, c1_sf_marshallOut,
+ c1_sf_marshallIn);
+ CV_EML_FCN(0, 0);
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 3);
+ c1_g = 9.8;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 4);
+ c1_rho = 1.225;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 6);
+ c1_m = 1043.26;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 7);
+ c1_C_bar = 1.493;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 8);
+ c1_b = 10.911;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 9);
+ c1_S_ref = 16.1651;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 11);
+ c1_C_L_0 = 0.25;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 12);
+ c1_C_L_alpha = 4.47;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 13);
+ c1_C_L_q = 1.7;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 14);
+ c1_C_L_delta_e = 0.3476;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 19);
+ c1_C_D_0 = 0.036;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 20);
+ c1_k = 0.3;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 22);
+ c1_C_Y_beta = -0.31;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 23);
+ c1_C_Y_p = -0.037;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 24);
+ c1_C_Y_r = 0.21;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 25);
+ c1_C_Y_delta_a = 0.0;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 27);
+ c1_C_l_beta = -0.089;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 28);
+ c1_C_l_p = -0.47;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 29);
+ c1_C_l_r = 0.096;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 30);
+ c1_C_l_delta_a = -0.09;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 31);
+ c1_C_l_delta_r = 0.0147;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 33);
+ c1_C_M_0 = -0.02;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 34);
+ c1_C_M_alpha = -1.8;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 35);
+ c1_C_M_alpha_dot = -12.4;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 36);
+ c1_C_M_delta_e = -1.28;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 38);
+ c1_C_N_beta = 0.065;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 39);
+ c1_C_N_p = -0.03;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 40);
+ c1_C_N_r = -0.99;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 41);
+ c1_C_N_delta_a = -0.0053;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 42);
+ c1_C_N_delta_r = -0.0657;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 46);
+ c1_delta_e = 0.0338;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 47);
+ c1_delta_a = 0.0;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 48);
+ c1_delta_r = 0.0;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 49);
+ c1_thrust = 4219.6;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 51);
+ c1_A = c1_q * 1.493;
+ c1_B = 2.0 * c1_V;
+ c1_x = c1_A;
+ c1_y = c1_B;
+ c1_b_x = c1_x;
+ c1_b_y = c1_y;
+ c1_c_x = c1_b_x;
+ c1_c_y = c1_b_y;
+ c1_d_y = c1_c_x / c1_c_y;
+ c1_C_L = ((c1_C_L_0 + 4.47 * c1_alpha) + 1.7 * c1_d_y) + 0.01174888;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 52);
+ c1_C_D = c1_C_D_0 + 0.3 * c1_mpower(chartInstance, c1_C_L);
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 53);
+ c1_b_A = c1_p * 10.911;
+ c1_b_B = 2.0 * c1_V;
+ c1_d_x = c1_b_A;
+ c1_e_y = c1_b_B;
+ c1_e_x = c1_d_x;
+ c1_f_y = c1_e_y;
+ c1_f_x = c1_e_x;
+ c1_g_y = c1_f_y;
+ c1_h_y = c1_f_x / c1_g_y;
+ c1_c_A = c1_r * 10.911;
+ c1_c_B = 2.0 * c1_V;
+ c1_g_x = c1_c_A;
+ c1_i_y = c1_c_B;
+ c1_h_x = c1_g_x;
+ c1_j_y = c1_i_y;
+ c1_i_x = c1_h_x;
+ c1_k_y = c1_j_y;
+ c1_l_y = c1_i_x / c1_k_y;
+ c1_C_Y = (-0.31 * c1_beta + -0.037 * c1_h_y) + 0.21 * c1_l_y;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 55);
+ c1_d_A = c1_p * 10.911;
+ c1_d_B = 2.0 * c1_V;
+ c1_j_x = c1_d_A;
+ c1_m_y = c1_d_B;
+ c1_k_x = c1_j_x;
+ c1_n_y = c1_m_y;
+ c1_l_x = c1_k_x;
+ c1_o_y = c1_n_y;
+ c1_p_y = c1_l_x / c1_o_y;
+ c1_e_A = c1_r * 10.911;
+ c1_e_B = 2.0 * c1_V;
+ c1_m_x = c1_e_A;
+ c1_q_y = c1_e_B;
+ c1_n_x = c1_m_x;
+ c1_r_y = c1_q_y;
+ c1_o_x = c1_n_x;
+ c1_s_y = c1_r_y;
+ c1_t_y = c1_o_x / c1_s_y;
+ c1_C_l = (-0.089 * c1_beta + -0.47 * c1_p_y) + 0.096 * c1_t_y;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 56);
+ c1_f_A = c1_alpha_dot * 1.493;
+ c1_f_B = 2.0 * c1_V;
+ c1_p_x = c1_f_A;
+ c1_u_y = c1_f_B;
+ c1_q_x = c1_p_x;
+ c1_v_y = c1_u_y;
+ c1_r_x = c1_q_x;
+ c1_w_y = c1_v_y;
+ c1_x_y = c1_r_x / c1_w_y;
+ c1_C_M = ((c1_C_M_0 + -1.8 * c1_alpha) + -12.4 * c1_x_y) + -0.043264;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 57);
+ c1_g_A = c1_p * 10.911;
+ c1_g_B = 2.0 * c1_V;
+ c1_s_x = c1_g_A;
+ c1_y_y = c1_g_B;
+ c1_t_x = c1_s_x;
+ c1_ab_y = c1_y_y;
+ c1_u_x = c1_t_x;
+ c1_bb_y = c1_ab_y;
+ c1_cb_y = c1_u_x / c1_bb_y;
+ c1_h_A = c1_r * 10.911;
+ c1_h_B = 2.0 * c1_V;
+ c1_v_x = c1_h_A;
+ c1_db_y = c1_h_B;
+ c1_w_x = c1_v_x;
+ c1_eb_y = c1_db_y;
+ c1_x_x = c1_w_x;
+ c1_fb_y = c1_eb_y;
+ c1_gb_y = c1_x_x / c1_fb_y;
+ c1_C_N = (0.065 * c1_beta + -0.03 * c1_cb_y) + -0.99 * c1_gb_y;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 59);
+ c1_y_x = c1_alpha;
+ c1_ab_x = c1_y_x;
+ c1_ab_x = muDoubleScalarCos(c1_ab_x);
+ c1_bb_x = c1_alpha;
+ c1_cb_x = c1_bb_x;
+ c1_cb_x = muDoubleScalarSin(c1_cb_x);
+ c1_C_X = -c1_C_D * c1_ab_x + c1_C_L * c1_cb_x;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 60);
+ c1_db_x = c1_alpha;
+ c1_eb_x = c1_db_x;
+ c1_eb_x = muDoubleScalarSin(c1_eb_x);
+ c1_fb_x = c1_alpha;
+ c1_gb_x = c1_fb_x;
+ c1_gb_x = muDoubleScalarCos(c1_gb_x);
+ c1_C_Z = -c1_C_D * c1_eb_x - c1_C_L * c1_gb_x;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 62);
+ for (c1_i6 = 0; c1_i6 < 3; c1_i6++) {
+ c1_F[c1_i6] = 0.0;
+ }
+
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 63);
+ for (c1_i7 = 0; c1_i7 < 3; c1_i7++) {
+ c1_M[c1_i7] = 0.0;
+ }
+
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 65);
+ c1_q_bar = 0.6125 * c1_V * c1_V;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 67);
+ c1_hb_x = c1_theta;
+ c1_ib_x = c1_hb_x;
+ c1_ib_x = muDoubleScalarSin(c1_ib_x);
+ c1_F[0] = (c1_q_bar * 16.1651 * c1_C_X - 10223.948 * c1_ib_x) + c1_thrust;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 68);
+ c1_F[1] = c1_q_bar * 16.1651 * c1_C_Y;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 69);
+ c1_jb_x = c1_theta;
+ c1_kb_x = c1_jb_x;
+ c1_kb_x = muDoubleScalarCos(c1_kb_x);
+ c1_F[2] = c1_q_bar * 16.1651 * c1_C_Z + 10223.948 * c1_kb_x;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 71);
+ c1_M[0] = c1_q_bar * 10.911 * 16.1651 * c1_C_l;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 72);
+ c1_M[1] = c1_q_bar * 1.493 * 16.1651 * c1_C_M;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 73);
+ c1_M[2] = c1_q_bar * 10.911 * 16.1651 * c1_C_N;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, -73);
+ _SFD_SYMBOL_SCOPE_POP();
+ for (c1_i8 = 0; c1_i8 < 3; c1_i8++) {
+ (*c1_b_F)[c1_i8] = c1_F[c1_i8];
+ }
+
+ for (c1_i9 = 0; c1_i9 < 3; c1_i9++) {
+ (*c1_b_M)[c1_i9] = c1_M[c1_i9];
+ }
+
+ _SFD_CC_CALL(EXIT_OUT_OF_FUNCTION_TAG, 0U, chartInstance->c1_sfEvent);
+}
+
+static void initSimStructsc1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance)
+{
+ (void)chartInstance;
+}
+
+static void init_script_number_translation(uint32_T c1_machineNumber, uint32_T
+ c1_chartNumber, uint32_T c1_instanceNumber)
+{
+ (void)c1_machineNumber;
+ (void)c1_chartNumber;
+ (void)c1_instanceNumber;
+}
+
+static const mxArray *c1_sf_marshallOut(void *chartInstanceVoid, void *c1_inData)
+{
+ const mxArray *c1_mxArrayOutData = NULL;
+ int32_T c1_i10;
+ real_T c1_b_inData[3];
+ int32_T c1_i11;
+ real_T c1_u[3];
+ const mxArray *c1_y = NULL;
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *)chartInstanceVoid;
+ c1_mxArrayOutData = NULL;
+ for (c1_i10 = 0; c1_i10 < 3; c1_i10++) {
+ c1_b_inData[c1_i10] = (*(real_T (*)[3])c1_inData)[c1_i10];
+ }
+
+ for (c1_i11 = 0; c1_i11 < 3; c1_i11++) {
+ c1_u[c1_i11] = c1_b_inData[c1_i11];
+ }
+
+ c1_y = NULL;
+ sf_mex_assign(&c1_y, sf_mex_create("y", c1_u, 0, 0U, 1U, 0U, 1, 3), false);
+ sf_mex_assign(&c1_mxArrayOutData, c1_y, false);
+ return c1_mxArrayOutData;
+}
+
+static void c1_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct *chartInstance,
+ const mxArray *c1_M, const char_T *c1_identifier, real_T c1_y[3])
+{
+ emlrtMsgIdentifier c1_thisId;
+ c1_thisId.fIdentifier = c1_identifier;
+ c1_thisId.fParent = NULL;
+ c1_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_M), &c1_thisId, c1_y);
+ sf_mex_destroy(&c1_M);
+}
+
+static void c1_b_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct *chartInstance,
+ const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId, real_T c1_y[3])
+{
+ real_T c1_dv2[3];
+ int32_T c1_i12;
+ (void)chartInstance;
+ sf_mex_import(c1_parentId, sf_mex_dup(c1_u), c1_dv2, 1, 0, 0U, 1, 0U, 1, 3);
+ for (c1_i12 = 0; c1_i12 < 3; c1_i12++) {
+ c1_y[c1_i12] = c1_dv2[c1_i12];
+ }
+
+ sf_mex_destroy(&c1_u);
+}
+
+static void c1_sf_marshallIn(void *chartInstanceVoid, const mxArray
+ *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData)
+{
+ const mxArray *c1_M;
+ const char_T *c1_identifier;
+ emlrtMsgIdentifier c1_thisId;
+ real_T c1_y[3];
+ int32_T c1_i13;
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *)chartInstanceVoid;
+ c1_M = sf_mex_dup(c1_mxArrayInData);
+ c1_identifier = c1_varName;
+ c1_thisId.fIdentifier = c1_identifier;
+ c1_thisId.fParent = NULL;
+ c1_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_M), &c1_thisId, c1_y);
+ sf_mex_destroy(&c1_M);
+ for (c1_i13 = 0; c1_i13 < 3; c1_i13++) {
+ (*(real_T (*)[3])c1_outData)[c1_i13] = c1_y[c1_i13];
+ }
+
+ sf_mex_destroy(&c1_mxArrayInData);
+}
+
+static const mxArray *c1_b_sf_marshallOut(void *chartInstanceVoid, void
+ *c1_inData)
+{
+ const mxArray *c1_mxArrayOutData = NULL;
+ real_T c1_u;
+ const mxArray *c1_y = NULL;
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *)chartInstanceVoid;
+ c1_mxArrayOutData = NULL;
+ c1_u = *(real_T *)c1_inData;
+ c1_y = NULL;
+ sf_mex_assign(&c1_y, sf_mex_create("y", &c1_u, 0, 0U, 0U, 0U, 0), false);
+ sf_mex_assign(&c1_mxArrayOutData, c1_y, false);
+ return c1_mxArrayOutData;
+}
+
+static real_T c1_c_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId)
+{
+ real_T c1_y;
+ real_T c1_d0;
+ (void)chartInstance;
+ sf_mex_import(c1_parentId, sf_mex_dup(c1_u), &c1_d0, 1, 0, 0U, 0, 0U, 0);
+ c1_y = c1_d0;
+ sf_mex_destroy(&c1_u);
+ return c1_y;
+}
+
+static void c1_b_sf_marshallIn(void *chartInstanceVoid, const mxArray
+ *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData)
+{
+ const mxArray *c1_nargout;
+ const char_T *c1_identifier;
+ emlrtMsgIdentifier c1_thisId;
+ real_T c1_y;
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *)chartInstanceVoid;
+ c1_nargout = sf_mex_dup(c1_mxArrayInData);
+ c1_identifier = c1_varName;
+ c1_thisId.fIdentifier = c1_identifier;
+ c1_thisId.fParent = NULL;
+ c1_y = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_nargout), &c1_thisId);
+ sf_mex_destroy(&c1_nargout);
+ *(real_T *)c1_outData = c1_y;
+ sf_mex_destroy(&c1_mxArrayInData);
+}
+
+const mxArray *sf_c1_Cessna_6DOF_get_eml_resolved_functions_info(void)
+{
+ const mxArray *c1_nameCaptureInfo = NULL;
+ c1_nameCaptureInfo = NULL;
+ sf_mex_assign(&c1_nameCaptureInfo, sf_mex_createstruct("structure", 2, 24, 1),
+ false);
+ c1_info_helper(&c1_nameCaptureInfo);
+ sf_mex_emlrtNameCapturePostProcessR2012a(&c1_nameCaptureInfo);
+ return c1_nameCaptureInfo;
+}
+
+static void c1_info_helper(const mxArray **c1_info)
+{
+ const mxArray *c1_rhs0 = NULL;
+ const mxArray *c1_lhs0 = NULL;
+ const mxArray *c1_rhs1 = NULL;
+ const mxArray *c1_lhs1 = NULL;
+ const mxArray *c1_rhs2 = NULL;
+ const mxArray *c1_lhs2 = NULL;
+ const mxArray *c1_rhs3 = NULL;
+ const mxArray *c1_lhs3 = NULL;
+ const mxArray *c1_rhs4 = NULL;
+ const mxArray *c1_lhs4 = NULL;
+ const mxArray *c1_rhs5 = NULL;
+ const mxArray *c1_lhs5 = NULL;
+ const mxArray *c1_rhs6 = NULL;
+ const mxArray *c1_lhs6 = NULL;
+ const mxArray *c1_rhs7 = NULL;
+ const mxArray *c1_lhs7 = NULL;
+ const mxArray *c1_rhs8 = NULL;
+ const mxArray *c1_lhs8 = NULL;
+ const mxArray *c1_rhs9 = NULL;
+ const mxArray *c1_lhs9 = NULL;
+ const mxArray *c1_rhs10 = NULL;
+ const mxArray *c1_lhs10 = NULL;
+ const mxArray *c1_rhs11 = NULL;
+ const mxArray *c1_lhs11 = NULL;
+ const mxArray *c1_rhs12 = NULL;
+ const mxArray *c1_lhs12 = NULL;
+ const mxArray *c1_rhs13 = NULL;
+ const mxArray *c1_lhs13 = NULL;
+ const mxArray *c1_rhs14 = NULL;
+ const mxArray *c1_lhs14 = NULL;
+ const mxArray *c1_rhs15 = NULL;
+ const mxArray *c1_lhs15 = NULL;
+ const mxArray *c1_rhs16 = NULL;
+ const mxArray *c1_lhs16 = NULL;
+ const mxArray *c1_rhs17 = NULL;
+ const mxArray *c1_lhs17 = NULL;
+ const mxArray *c1_rhs18 = NULL;
+ const mxArray *c1_lhs18 = NULL;
+ const mxArray *c1_rhs19 = NULL;
+ const mxArray *c1_lhs19 = NULL;
+ const mxArray *c1_rhs20 = NULL;
+ const mxArray *c1_lhs20 = NULL;
+ const mxArray *c1_rhs21 = NULL;
+ const mxArray *c1_lhs21 = NULL;
+ const mxArray *c1_rhs22 = NULL;
+ const mxArray *c1_lhs22 = NULL;
+ const mxArray *c1_rhs23 = NULL;
+ const mxArray *c1_lhs23 = NULL;
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(""), "context", "context", 0);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("mrdivide"), "name", "name", 0);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 0);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mrdivide.p"), "resolved",
+ "resolved", 0);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1388463696U), "fileTimeLo",
+ "fileTimeLo", 0);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 0);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1370017086U), "mFileTimeLo",
+ "mFileTimeLo", 0);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 0);
+ sf_mex_assign(&c1_rhs0, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs0, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs0), "rhs", "rhs", 0);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs0), "lhs", "lhs", 0);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mrdivide.p"), "context",
+ "context", 1);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("coder.internal.assert"),
+ "name", "name", 1);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("char"), "dominantType",
+ "dominantType", 1);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/assert.m"),
+ "resolved", "resolved", 1);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363718156U), "fileTimeLo",
+ "fileTimeLo", 1);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 1);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 1);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 1);
+ sf_mex_assign(&c1_rhs1, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs1, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs1), "rhs", "rhs", 1);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs1), "lhs", "lhs", 1);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mrdivide.p"), "context",
+ "context", 2);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("rdivide"), "name", "name", 2);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 2);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/rdivide.m"), "resolved",
+ "resolved", 2);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363717480U), "fileTimeLo",
+ "fileTimeLo", 2);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 2);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 2);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 2);
+ sf_mex_assign(&c1_rhs2, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs2, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs2), "rhs", "rhs", 2);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs2), "lhs", "lhs", 2);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/rdivide.m"), "context",
+ "context", 3);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "coder.internal.isBuiltInNumeric"), "name", "name", 3);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 3);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/isBuiltInNumeric.m"),
+ "resolved", "resolved", 3);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363718156U), "fileTimeLo",
+ "fileTimeLo", 3);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 3);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 3);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 3);
+ sf_mex_assign(&c1_rhs3, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs3, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs3), "rhs", "rhs", 3);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs3), "lhs", "lhs", 3);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/rdivide.m"), "context",
+ "context", 4);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_scalexp_compatible"),
+ "name", "name", 4);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 4);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalexp_compatible.m"),
+ "resolved", "resolved", 4);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1286825996U), "fileTimeLo",
+ "fileTimeLo", 4);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 4);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 4);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 4);
+ sf_mex_assign(&c1_rhs4, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs4, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs4), "rhs", "rhs", 4);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs4), "lhs", "lhs", 4);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/rdivide.m"), "context",
+ "context", 5);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_div"), "name", "name", 5);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 5);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_div.m"), "resolved",
+ "resolved", 5);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1375987888U), "fileTimeLo",
+ "fileTimeLo", 5);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 5);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 5);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 5);
+ sf_mex_assign(&c1_rhs5, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs5, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs5), "rhs", "rhs", 5);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs5), "lhs", "lhs", 5);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_div.m"), "context",
+ "context", 6);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("coder.internal.div"), "name",
+ "name", 6);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 6);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/coder/coder/+coder/+internal/div.p"), "resolved",
+ "resolved", 6);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1389311520U), "fileTimeLo",
+ "fileTimeLo", 6);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 6);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 6);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 6);
+ sf_mex_assign(&c1_rhs6, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs6, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs6), "rhs", "rhs", 6);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs6), "lhs", "lhs", 6);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(""), "context", "context", 7);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("mpower"), "name", "name", 7);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 7);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mpower.m"), "resolved",
+ "resolved", 7);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363717478U), "fileTimeLo",
+ "fileTimeLo", 7);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 7);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 7);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 7);
+ sf_mex_assign(&c1_rhs7, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs7, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs7), "rhs", "rhs", 7);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs7), "lhs", "lhs", 7);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mpower.m"), "context",
+ "context", 8);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "coder.internal.isBuiltInNumeric"), "name", "name", 8);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 8);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/isBuiltInNumeric.m"),
+ "resolved", "resolved", 8);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363718156U), "fileTimeLo",
+ "fileTimeLo", 8);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 8);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 8);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 8);
+ sf_mex_assign(&c1_rhs8, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs8, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs8), "rhs", "rhs", 8);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs8), "lhs", "lhs", 8);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mpower.m"), "context",
+ "context", 9);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("ismatrix"), "name", "name", 9);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 9);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elmat/ismatrix.m"), "resolved",
+ "resolved", 9);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1331308458U), "fileTimeLo",
+ "fileTimeLo", 9);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 9);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 9);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 9);
+ sf_mex_assign(&c1_rhs9, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs9, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs9), "rhs", "rhs", 9);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs9), "lhs", "lhs", 9);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mpower.m"), "context",
+ "context", 10);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("power"), "name", "name", 10);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 10);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/power.m"), "resolved",
+ "resolved", 10);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363717480U), "fileTimeLo",
+ "fileTimeLo", 10);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 10);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 10);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 10);
+ sf_mex_assign(&c1_rhs10, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs10, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs10), "rhs", "rhs",
+ 10);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs10), "lhs", "lhs",
+ 10);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/power.m"), "context",
+ "context", 11);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "coder.internal.isBuiltInNumeric"), "name", "name", 11);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 11);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/isBuiltInNumeric.m"),
+ "resolved", "resolved", 11);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363718156U), "fileTimeLo",
+ "fileTimeLo", 11);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 11);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 11);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 11);
+ sf_mex_assign(&c1_rhs11, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs11, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs11), "rhs", "rhs",
+ 11);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs11), "lhs", "lhs",
+ 11);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/power.m!fltpower"), "context",
+ "context", 12);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_scalar_eg"), "name",
+ "name", 12);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 12);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalar_eg.m"), "resolved",
+ "resolved", 12);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1375987888U), "fileTimeLo",
+ "fileTimeLo", 12);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 12);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 12);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 12);
+ sf_mex_assign(&c1_rhs12, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs12, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs12), "rhs", "rhs",
+ 12);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs12), "lhs", "lhs",
+ 12);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalar_eg.m"), "context",
+ "context", 13);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("coder.internal.scalarEg"),
+ "name", "name", 13);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 13);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/coder/coder/+coder/+internal/scalarEg.p"),
+ "resolved", "resolved", 13);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1389311520U), "fileTimeLo",
+ "fileTimeLo", 13);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 13);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 13);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 13);
+ sf_mex_assign(&c1_rhs13, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs13, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs13), "rhs", "rhs",
+ 13);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs13), "lhs", "lhs",
+ 13);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/power.m!fltpower"), "context",
+ "context", 14);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_scalexp_alloc"), "name",
+ "name", 14);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 14);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalexp_alloc.m"),
+ "resolved", "resolved", 14);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1375987888U), "fileTimeLo",
+ "fileTimeLo", 14);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 14);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 14);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 14);
+ sf_mex_assign(&c1_rhs14, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs14, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs14), "rhs", "rhs",
+ 14);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs14), "lhs", "lhs",
+ 14);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalexp_alloc.m"),
+ "context", "context", 15);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("coder.internal.scalexpAlloc"),
+ "name", "name", 15);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 15);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/coder/coder/+coder/+internal/scalexpAlloc.p"),
+ "resolved", "resolved", 15);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1389311520U), "fileTimeLo",
+ "fileTimeLo", 15);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 15);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 15);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 15);
+ sf_mex_assign(&c1_rhs15, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs15, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs15), "rhs", "rhs",
+ 15);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs15), "lhs", "lhs",
+ 15);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/power.m!fltpower"), "context",
+ "context", 16);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("floor"), "name", "name", 16);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 16);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/floor.m"), "resolved",
+ "resolved", 16);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363717454U), "fileTimeLo",
+ "fileTimeLo", 16);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 16);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 16);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 16);
+ sf_mex_assign(&c1_rhs16, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs16, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs16), "rhs", "rhs",
+ 16);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs16), "lhs", "lhs",
+ 16);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/floor.m"), "context",
+ "context", 17);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "coder.internal.isBuiltInNumeric"), "name", "name", 17);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 17);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/isBuiltInNumeric.m"),
+ "resolved", "resolved", 17);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363718156U), "fileTimeLo",
+ "fileTimeLo", 17);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 17);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 17);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 17);
+ sf_mex_assign(&c1_rhs17, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs17, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs17), "rhs", "rhs",
+ 17);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs17), "lhs", "lhs",
+ 17);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/floor.m"), "context",
+ "context", 18);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_scalar_floor"), "name",
+ "name", 18);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 18);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/eml_scalar_floor.m"),
+ "resolved", "resolved", 18);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1286825926U), "fileTimeLo",
+ "fileTimeLo", 18);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 18);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 18);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 18);
+ sf_mex_assign(&c1_rhs18, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs18, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs18), "rhs", "rhs",
+ 18);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs18), "lhs", "lhs",
+ 18);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/power.m!scalar_float_power"),
+ "context", "context", 19);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_scalar_eg"), "name",
+ "name", 19);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 19);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalar_eg.m"), "resolved",
+ "resolved", 19);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1375987888U), "fileTimeLo",
+ "fileTimeLo", 19);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 19);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 19);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 19);
+ sf_mex_assign(&c1_rhs19, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs19, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs19), "rhs", "rhs",
+ 19);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs19), "lhs", "lhs",
+ 19);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(""), "context", "context", 20);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("cos"), "name", "name", 20);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 20);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/cos.m"), "resolved",
+ "resolved", 20);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1343837572U), "fileTimeLo",
+ "fileTimeLo", 20);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 20);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 20);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 20);
+ sf_mex_assign(&c1_rhs20, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs20, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs20), "rhs", "rhs",
+ 20);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs20), "lhs", "lhs",
+ 20);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/cos.m"), "context",
+ "context", 21);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_scalar_cos"), "name",
+ "name", 21);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 21);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/eml_scalar_cos.m"),
+ "resolved", "resolved", 21);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1286825922U), "fileTimeLo",
+ "fileTimeLo", 21);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 21);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 21);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 21);
+ sf_mex_assign(&c1_rhs21, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs21, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs21), "rhs", "rhs",
+ 21);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs21), "lhs", "lhs",
+ 21);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(""), "context", "context", 22);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("sin"), "name", "name", 22);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 22);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/sin.m"), "resolved",
+ "resolved", 22);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1343837586U), "fileTimeLo",
+ "fileTimeLo", 22);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 22);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 22);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 22);
+ sf_mex_assign(&c1_rhs22, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs22, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs22), "rhs", "rhs",
+ 22);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs22), "lhs", "lhs",
+ 22);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/sin.m"), "context",
+ "context", 23);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_scalar_sin"), "name",
+ "name", 23);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 23);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/eml_scalar_sin.m"),
+ "resolved", "resolved", 23);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1286825936U), "fileTimeLo",
+ "fileTimeLo", 23);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 23);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 23);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 23);
+ sf_mex_assign(&c1_rhs23, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs23, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs23), "rhs", "rhs",
+ 23);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs23), "lhs", "lhs",
+ 23);
+ sf_mex_destroy(&c1_rhs0);
+ sf_mex_destroy(&c1_lhs0);
+ sf_mex_destroy(&c1_rhs1);
+ sf_mex_destroy(&c1_lhs1);
+ sf_mex_destroy(&c1_rhs2);
+ sf_mex_destroy(&c1_lhs2);
+ sf_mex_destroy(&c1_rhs3);
+ sf_mex_destroy(&c1_lhs3);
+ sf_mex_destroy(&c1_rhs4);
+ sf_mex_destroy(&c1_lhs4);
+ sf_mex_destroy(&c1_rhs5);
+ sf_mex_destroy(&c1_lhs5);
+ sf_mex_destroy(&c1_rhs6);
+ sf_mex_destroy(&c1_lhs6);
+ sf_mex_destroy(&c1_rhs7);
+ sf_mex_destroy(&c1_lhs7);
+ sf_mex_destroy(&c1_rhs8);
+ sf_mex_destroy(&c1_lhs8);
+ sf_mex_destroy(&c1_rhs9);
+ sf_mex_destroy(&c1_lhs9);
+ sf_mex_destroy(&c1_rhs10);
+ sf_mex_destroy(&c1_lhs10);
+ sf_mex_destroy(&c1_rhs11);
+ sf_mex_destroy(&c1_lhs11);
+ sf_mex_destroy(&c1_rhs12);
+ sf_mex_destroy(&c1_lhs12);
+ sf_mex_destroy(&c1_rhs13);
+ sf_mex_destroy(&c1_lhs13);
+ sf_mex_destroy(&c1_rhs14);
+ sf_mex_destroy(&c1_lhs14);
+ sf_mex_destroy(&c1_rhs15);
+ sf_mex_destroy(&c1_lhs15);
+ sf_mex_destroy(&c1_rhs16);
+ sf_mex_destroy(&c1_lhs16);
+ sf_mex_destroy(&c1_rhs17);
+ sf_mex_destroy(&c1_lhs17);
+ sf_mex_destroy(&c1_rhs18);
+ sf_mex_destroy(&c1_lhs18);
+ sf_mex_destroy(&c1_rhs19);
+ sf_mex_destroy(&c1_lhs19);
+ sf_mex_destroy(&c1_rhs20);
+ sf_mex_destroy(&c1_lhs20);
+ sf_mex_destroy(&c1_rhs21);
+ sf_mex_destroy(&c1_lhs21);
+ sf_mex_destroy(&c1_rhs22);
+ sf_mex_destroy(&c1_lhs22);
+ sf_mex_destroy(&c1_rhs23);
+ sf_mex_destroy(&c1_lhs23);
+}
+
+static const mxArray *c1_emlrt_marshallOut(const char * c1_u)
+{
+ const mxArray *c1_y = NULL;
+ c1_y = NULL;
+ sf_mex_assign(&c1_y, sf_mex_create("y", c1_u, 15, 0U, 0U, 0U, 2, 1, strlen
+ (c1_u)), false);
+ return c1_y;
+}
+
+static const mxArray *c1_b_emlrt_marshallOut(const uint32_T c1_u)
+{
+ const mxArray *c1_y = NULL;
+ c1_y = NULL;
+ sf_mex_assign(&c1_y, sf_mex_create("y", &c1_u, 7, 0U, 0U, 0U, 0), false);
+ return c1_y;
+}
+
+static real_T c1_mpower(SFc1_Cessna_6DOFInstanceStruct *chartInstance, real_T
+ c1_a)
+{
+ real_T c1_b_a;
+ real_T c1_c_a;
+ real_T c1_ak;
+ real_T c1_d_a;
+ c1_b_a = c1_a;
+ c1_c_a = c1_b_a;
+ c1_eml_scalar_eg(chartInstance);
+ c1_ak = c1_c_a;
+ c1_d_a = c1_ak;
+ c1_eml_scalar_eg(chartInstance);
+ return c1_d_a * c1_d_a;
+}
+
+static void c1_eml_scalar_eg(SFc1_Cessna_6DOFInstanceStruct *chartInstance)
+{
+ (void)chartInstance;
+}
+
+static const mxArray *c1_c_sf_marshallOut(void *chartInstanceVoid, void
+ *c1_inData)
+{
+ const mxArray *c1_mxArrayOutData = NULL;
+ int32_T c1_u;
+ const mxArray *c1_y = NULL;
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *)chartInstanceVoid;
+ c1_mxArrayOutData = NULL;
+ c1_u = *(int32_T *)c1_inData;
+ c1_y = NULL;
+ sf_mex_assign(&c1_y, sf_mex_create("y", &c1_u, 6, 0U, 0U, 0U, 0), false);
+ sf_mex_assign(&c1_mxArrayOutData, c1_y, false);
+ return c1_mxArrayOutData;
+}
+
+static int32_T c1_d_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId)
+{
+ int32_T c1_y;
+ int32_T c1_i14;
+ (void)chartInstance;
+ sf_mex_import(c1_parentId, sf_mex_dup(c1_u), &c1_i14, 1, 6, 0U, 0, 0U, 0);
+ c1_y = c1_i14;
+ sf_mex_destroy(&c1_u);
+ return c1_y;
+}
+
+static void c1_c_sf_marshallIn(void *chartInstanceVoid, const mxArray
+ *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData)
+{
+ const mxArray *c1_b_sfEvent;
+ const char_T *c1_identifier;
+ emlrtMsgIdentifier c1_thisId;
+ int32_T c1_y;
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *)chartInstanceVoid;
+ c1_b_sfEvent = sf_mex_dup(c1_mxArrayInData);
+ c1_identifier = c1_varName;
+ c1_thisId.fIdentifier = c1_identifier;
+ c1_thisId.fParent = NULL;
+ c1_y = c1_d_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_sfEvent),
+ &c1_thisId);
+ sf_mex_destroy(&c1_b_sfEvent);
+ *(int32_T *)c1_outData = c1_y;
+ sf_mex_destroy(&c1_mxArrayInData);
+}
+
+static uint8_T c1_e_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_b_is_active_c1_Cessna_6DOF, const char_T
+ *c1_identifier)
+{
+ uint8_T c1_y;
+ emlrtMsgIdentifier c1_thisId;
+ c1_thisId.fIdentifier = c1_identifier;
+ c1_thisId.fParent = NULL;
+ c1_y = c1_f_emlrt_marshallIn(chartInstance, sf_mex_dup
+ (c1_b_is_active_c1_Cessna_6DOF), &c1_thisId);
+ sf_mex_destroy(&c1_b_is_active_c1_Cessna_6DOF);
+ return c1_y;
+}
+
+static uint8_T c1_f_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId)
+{
+ uint8_T c1_y;
+ uint8_T c1_u0;
+ (void)chartInstance;
+ sf_mex_import(c1_parentId, sf_mex_dup(c1_u), &c1_u0, 1, 3, 0U, 0, 0U, 0);
+ c1_y = c1_u0;
+ sf_mex_destroy(&c1_u);
+ return c1_y;
+}
+
+static void init_dsm_address_info(SFc1_Cessna_6DOFInstanceStruct *chartInstance)
+{
+ (void)chartInstance;
+}
+
+/* SFunction Glue Code */
+#ifdef utFree
+#undef utFree
+#endif
+
+#ifdef utMalloc
+#undef utMalloc
+#endif
+
+#ifdef __cplusplus
+
+extern "C" void *utMalloc(size_t size);
+extern "C" void utFree(void*);
+
+#else
+
+extern void *utMalloc(size_t size);
+extern void utFree(void*);
+
+#endif
+
+void sf_c1_Cessna_6DOF_get_check_sum(mxArray *plhs[])
+{
+ ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(2441411494U);
+ ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(3799077463U);
+ ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(3332296302U);
+ ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(1856172960U);
+}
+
+mxArray *sf_c1_Cessna_6DOF_get_autoinheritance_info(void)
+{
+ const char *autoinheritanceFields[] = { "checksum", "inputs", "parameters",
+ "outputs", "locals" };
+
+ mxArray *mxAutoinheritanceInfo = mxCreateStructMatrix(1,1,5,
+ autoinheritanceFields);
+
+ {
+ mxArray *mxChecksum = mxCreateString("B6ShapczQeOvAhTG9KtlQC");
+ mxSetField(mxAutoinheritanceInfo,0,"checksum",mxChecksum);
+ }
+
+ {
+ const char *dataFields[] = { "size", "type", "complexity" };
+
+ mxArray *mxData = mxCreateStructMatrix(1,8,3,dataFields);
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,0,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,0,"type",mxType);
+ }
+
+ mxSetField(mxData,0,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,1,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,1,"type",mxType);
+ }
+
+ mxSetField(mxData,1,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,2,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,2,"type",mxType);
+ }
+
+ mxSetField(mxData,2,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,3,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,3,"type",mxType);
+ }
+
+ mxSetField(mxData,3,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,4,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,4,"type",mxType);
+ }
+
+ mxSetField(mxData,4,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,5,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,5,"type",mxType);
+ }
+
+ mxSetField(mxData,5,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,6,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,6,"type",mxType);
+ }
+
+ mxSetField(mxData,6,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,7,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,7,"type",mxType);
+ }
+
+ mxSetField(mxData,7,"complexity",mxCreateDoubleScalar(0));
+ mxSetField(mxAutoinheritanceInfo,0,"inputs",mxData);
+ }
+
+ {
+ mxSetField(mxAutoinheritanceInfo,0,"parameters",mxCreateDoubleMatrix(0,0,
+ mxREAL));
+ }
+
+ {
+ const char *dataFields[] = { "size", "type", "complexity" };
+
+ mxArray *mxData = mxCreateStructMatrix(1,2,3,dataFields);
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(3);
+ pr[1] = (double)(1);
+ mxSetField(mxData,0,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,0,"type",mxType);
+ }
+
+ mxSetField(mxData,0,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(3);
+ pr[1] = (double)(1);
+ mxSetField(mxData,1,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,1,"type",mxType);
+ }
+
+ mxSetField(mxData,1,"complexity",mxCreateDoubleScalar(0));
+ mxSetField(mxAutoinheritanceInfo,0,"outputs",mxData);
+ }
+
+ {
+ mxSetField(mxAutoinheritanceInfo,0,"locals",mxCreateDoubleMatrix(0,0,mxREAL));
+ }
+
+ return(mxAutoinheritanceInfo);
+}
+
+mxArray *sf_c1_Cessna_6DOF_third_party_uses_info(void)
+{
+ mxArray * mxcell3p = mxCreateCellMatrix(1,0);
+ return(mxcell3p);
+}
+
+mxArray *sf_c1_Cessna_6DOF_updateBuildInfo_args_info(void)
+{
+ mxArray *mxBIArgs = mxCreateCellMatrix(1,0);
+ return mxBIArgs;
+}
+
+static const mxArray *sf_get_sim_state_info_c1_Cessna_6DOF(void)
+{
+ const char *infoFields[] = { "chartChecksum", "varInfo" };
+
+ mxArray *mxInfo = mxCreateStructMatrix(1, 1, 2, infoFields);
+ const char *infoEncStr[] = {
+ "100 S1x3'type','srcId','name','auxInfo'{{M[1],M[5],T\"F\",},{M[1],M[12],T\"M\",},{M[8],M[0],T\"is_active_c1_Cessna_6DOF\",}}"
+ };
+
+ mxArray *mxVarInfo = sf_mex_decode_encoded_mx_struct_array(infoEncStr, 3, 10);
+ mxArray *mxChecksum = mxCreateDoubleMatrix(1, 4, mxREAL);
+ sf_c1_Cessna_6DOF_get_check_sum(&mxChecksum);
+ mxSetField(mxInfo, 0, infoFields[0], mxChecksum);
+ mxSetField(mxInfo, 0, infoFields[1], mxVarInfo);
+ return mxInfo;
+}
+
+static void chart_debug_initialization(SimStruct *S, unsigned int
+ fullDebuggerInitialization)
+{
+ if (!sim_mode_is_rtw_gen(S)) {
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
+ ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *) chartInfo->chartInstance;
+ if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
+ /* do this only if simulation is starting */
+ {
+ unsigned int chartAlreadyPresent;
+ chartAlreadyPresent = sf_debug_initialize_chart
+ (sfGlobalDebugInstanceStruct,
+ _Cessna_6DOFMachineNumber_,
+ 1,
+ 1,
+ 1,
+ 0,
+ 10,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ &(chartInstance->chartNumber),
+ &(chartInstance->instanceNumber),
+ (void *)S);
+
+ /* Each instance must initialize ist own list of scripts */
+ init_script_number_translation(_Cessna_6DOFMachineNumber_,
+ chartInstance->chartNumber,chartInstance->instanceNumber);
+ if (chartAlreadyPresent==0) {
+ /* this is the first instance */
+ sf_debug_set_chart_disable_implicit_casting
+ (sfGlobalDebugInstanceStruct,_Cessna_6DOFMachineNumber_,
+ chartInstance->chartNumber,1);
+ sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
+ _Cessna_6DOFMachineNumber_,
+ chartInstance->chartNumber,
+ 0,
+ 0,
+ 0);
+ _SFD_SET_DATA_PROPS(0,1,1,0,"V");
+ _SFD_SET_DATA_PROPS(1,2,0,1,"F");
+ _SFD_SET_DATA_PROPS(2,1,1,0,"alpha");
+ _SFD_SET_DATA_PROPS(3,1,1,0,"alpha_dot");
+ _SFD_SET_DATA_PROPS(4,1,1,0,"beta");
+ _SFD_SET_DATA_PROPS(5,1,1,0,"p");
+ _SFD_SET_DATA_PROPS(6,1,1,0,"q");
+ _SFD_SET_DATA_PROPS(7,1,1,0,"r");
+ _SFD_SET_DATA_PROPS(8,1,1,0,"theta");
+ _SFD_SET_DATA_PROPS(9,2,0,1,"M");
+ _SFD_STATE_INFO(0,0,2);
+ _SFD_CH_SUBSTATE_COUNT(0);
+ _SFD_CH_SUBSTATE_DECOMP(0);
+ }
+
+ _SFD_CV_INIT_CHART(0,0,0,0);
+
+ {
+ _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);
+ }
+
+ _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);
+
+ /* Initialization of MATLAB Function Model Coverage */
+ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0,0);
+ _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,1623);
+ _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+
+ {
+ unsigned int dimVector[1];
+ dimVector[0]= 3;
+ _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,
+ 1.0,0,0,(MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)
+ c1_sf_marshallIn);
+ }
+
+ _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+ _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+ _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+ _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+ _SFD_SET_DATA_COMPILED_PROPS(6,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+ _SFD_SET_DATA_COMPILED_PROPS(7,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+ _SFD_SET_DATA_COMPILED_PROPS(8,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+
+ {
+ unsigned int dimVector[1];
+ dimVector[0]= 3;
+ _SFD_SET_DATA_COMPILED_PROPS(9,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,
+ 1.0,0,0,(MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)
+ c1_sf_marshallIn);
+ }
+
+ {
+ real_T *c1_V;
+ real_T *c1_alpha;
+ real_T *c1_alpha_dot;
+ real_T *c1_beta;
+ real_T *c1_p;
+ real_T *c1_q;
+ real_T *c1_r;
+ real_T *c1_theta;
+ real_T (*c1_F)[3];
+ real_T (*c1_M)[3];
+ c1_M = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 2);
+ c1_theta = (real_T *)ssGetInputPortSignal(chartInstance->S, 7);
+ c1_r = (real_T *)ssGetInputPortSignal(chartInstance->S, 6);
+ c1_q = (real_T *)ssGetInputPortSignal(chartInstance->S, 5);
+ c1_p = (real_T *)ssGetInputPortSignal(chartInstance->S, 4);
+ c1_beta = (real_T *)ssGetInputPortSignal(chartInstance->S, 3);
+ c1_alpha_dot = (real_T *)ssGetInputPortSignal(chartInstance->S, 2);
+ c1_alpha = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);
+ c1_F = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 1);
+ c1_V = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);
+ _SFD_SET_DATA_VALUE_PTR(0U, c1_V);
+ _SFD_SET_DATA_VALUE_PTR(1U, *c1_F);
+ _SFD_SET_DATA_VALUE_PTR(2U, c1_alpha);
+ _SFD_SET_DATA_VALUE_PTR(3U, c1_alpha_dot);
+ _SFD_SET_DATA_VALUE_PTR(4U, c1_beta);
+ _SFD_SET_DATA_VALUE_PTR(5U, c1_p);
+ _SFD_SET_DATA_VALUE_PTR(6U, c1_q);
+ _SFD_SET_DATA_VALUE_PTR(7U, c1_r);
+ _SFD_SET_DATA_VALUE_PTR(8U, c1_theta);
+ _SFD_SET_DATA_VALUE_PTR(9U, *c1_M);
+ }
+ }
+ } else {
+ sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,
+ _Cessna_6DOFMachineNumber_,chartInstance->chartNumber,
+ chartInstance->instanceNumber);
+ }
+ }
+}
+
+static const char* sf_get_instance_specialization(void)
+{
+ return "v045JFXizl4FQXSha8a34C";
+}
+
+static void sf_opaque_initialize_c1_Cessna_6DOF(void *chartInstanceVar)
+{
+ chart_debug_initialization(((SFc1_Cessna_6DOFInstanceStruct*) chartInstanceVar)
+ ->S,0);
+ initialize_params_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*)
+ chartInstanceVar);
+ initialize_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*) chartInstanceVar);
+}
+
+static void sf_opaque_enable_c1_Cessna_6DOF(void *chartInstanceVar)
+{
+ enable_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*) chartInstanceVar);
+}
+
+static void sf_opaque_disable_c1_Cessna_6DOF(void *chartInstanceVar)
+{
+ disable_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*) chartInstanceVar);
+}
+
+static void sf_opaque_gateway_c1_Cessna_6DOF(void *chartInstanceVar)
+{
+ sf_gateway_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*) chartInstanceVar);
+}
+
+extern const mxArray* sf_internal_get_sim_state_c1_Cessna_6DOF(SimStruct* S)
+{
+ ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
+ ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
+ mxArray *plhs[1] = { NULL };
+
+ mxArray *prhs[4];
+ int mxError = 0;
+ prhs[0] = mxCreateString("chart_simctx_raw2high");
+ prhs[1] = mxCreateDoubleScalar(ssGetSFuncBlockHandle(S));
+ prhs[2] = (mxArray*) get_sim_state_c1_Cessna_6DOF
+ ((SFc1_Cessna_6DOFInstanceStruct*)chartInfo->chartInstance);/* raw sim ctx */
+ prhs[3] = (mxArray*) sf_get_sim_state_info_c1_Cessna_6DOF();/* state var info */
+ mxError = sf_mex_call_matlab(1, plhs, 4, prhs, "sfprivate");
+ mxDestroyArray(prhs[0]);
+ mxDestroyArray(prhs[1]);
+ mxDestroyArray(prhs[2]);
+ mxDestroyArray(prhs[3]);
+ if (mxError || plhs[0] == NULL) {
+ sf_mex_error_message("Stateflow Internal Error: \nError calling 'chart_simctx_raw2high'.\n");
+ }
+
+ return plhs[0];
+}
+
+extern void sf_internal_set_sim_state_c1_Cessna_6DOF(SimStruct* S, const mxArray
+ *st)
+{
+ ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
+ ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
+ mxArray *plhs[1] = { NULL };
+
+ mxArray *prhs[3];
+ int mxError = 0;
+ prhs[0] = mxCreateString("chart_simctx_high2raw");
+ prhs[1] = mxDuplicateArray(st); /* high level simctx */
+ prhs[2] = (mxArray*) sf_get_sim_state_info_c1_Cessna_6DOF();/* state var info */
+ mxError = sf_mex_call_matlab(1, plhs, 3, prhs, "sfprivate");
+ mxDestroyArray(prhs[0]);
+ mxDestroyArray(prhs[1]);
+ mxDestroyArray(prhs[2]);
+ if (mxError || plhs[0] == NULL) {
+ sf_mex_error_message("Stateflow Internal Error: \nError calling 'chart_simctx_high2raw'.\n");
+ }
+
+ set_sim_state_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*)
+ chartInfo->chartInstance, mxDuplicateArray(plhs[0]));
+ mxDestroyArray(plhs[0]);
+}
+
+static const mxArray* sf_opaque_get_sim_state_c1_Cessna_6DOF(SimStruct* S)
+{
+ return sf_internal_get_sim_state_c1_Cessna_6DOF(S);
+}
+
+static void sf_opaque_set_sim_state_c1_Cessna_6DOF(SimStruct* S, const mxArray
+ *st)
+{
+ sf_internal_set_sim_state_c1_Cessna_6DOF(S, st);
+}
+
+static void sf_opaque_terminate_c1_Cessna_6DOF(void *chartInstanceVar)
+{
+ if (chartInstanceVar!=NULL) {
+ SimStruct *S = ((SFc1_Cessna_6DOFInstanceStruct*) chartInstanceVar)->S;
+ ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
+ if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
+ sf_clear_rtw_identifier(S);
+ unload_Cessna_6DOF_optimization_info();
+ }
+
+ finalize_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*) chartInstanceVar);
+ utFree((void *)chartInstanceVar);
+ if (crtInfo != NULL) {
+ utFree((void *)crtInfo);
+ }
+
+ ssSetUserData(S,NULL);
+ }
+}
+
+static void sf_opaque_init_subchart_simstructs(void *chartInstanceVar)
+{
+ initSimStructsc1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*)
+ chartInstanceVar);
+}
+
+extern unsigned int sf_machine_global_initializer_called(void);
+static void mdlProcessParameters_c1_Cessna_6DOF(SimStruct *S)
+{
+ int i;
+ for (i=0;i<ssGetNumRunTimeParams(S);i++) {
+ if (ssGetSFcnParamTunable(S,i)) {
+ ssUpdateDlgParamAsRunTimeParam(S,i);
+ }
+ }
+
+ if (sf_machine_global_initializer_called()) {
+ ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
+ ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
+ initialize_params_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*)
+ (chartInfo->chartInstance));
+ }
+}
+
+static void mdlSetWorkWidths_c1_Cessna_6DOF(SimStruct *S)
+{
+ if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
+ mxArray *infoStruct = load_Cessna_6DOF_optimization_info();
+ int_T chartIsInlinable =
+ (int_T)sf_is_chart_inlinable(sf_get_instance_specialization(),infoStruct,1);
+ ssSetStateflowIsInlinable(S,chartIsInlinable);
+ ssSetRTWCG(S,sf_rtw_info_uint_prop(sf_get_instance_specialization(),
+ infoStruct,1,"RTWCG"));
+ ssSetEnableFcnIsTrivial(S,1);
+ ssSetDisableFcnIsTrivial(S,1);
+ ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop
+ (sf_get_instance_specialization(),infoStruct,1,
+ "gatewayCannotBeInlinedMultipleTimes"));
+ sf_update_buildInfo(sf_get_instance_specialization(),infoStruct,1);
+ if (chartIsInlinable) {
+ ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
+ ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
+ ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL);
+ ssSetInputPortOptimOpts(S, 3, SS_REUSABLE_AND_LOCAL);
+ ssSetInputPortOptimOpts(S, 4, SS_REUSABLE_AND_LOCAL);
+ ssSetInputPortOptimOpts(S, 5, SS_REUSABLE_AND_LOCAL);
+ ssSetInputPortOptimOpts(S, 6, SS_REUSABLE_AND_LOCAL);
+ ssSetInputPortOptimOpts(S, 7, SS_REUSABLE_AND_LOCAL);
+ sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
+ infoStruct,1,8);
+ sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
+ infoStruct,1,2);
+ }
+
+ {
+ unsigned int outPortIdx;
+ for (outPortIdx=1; outPortIdx<=2; ++outPortIdx) {
+ ssSetOutputPortOptimizeInIR(S, outPortIdx, 1U);
+ }
+ }
+
+ {
+ unsigned int inPortIdx;
+ for (inPortIdx=0; inPortIdx < 8; ++inPortIdx) {
+ ssSetInputPortOptimizeInIR(S, inPortIdx, 1U);
+ }
+ }
+
+ sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,1);
+ ssSetHasSubFunctions(S,!(chartIsInlinable));
+ } else {
+ }
+
+ ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
+ ssSetChecksum0(S,(1256833735U));
+ ssSetChecksum1(S,(1696076141U));
+ ssSetChecksum2(S,(3784906244U));
+ ssSetChecksum3(S,(1371581968U));
+ ssSetmdlDerivatives(S, NULL);
+ ssSetExplicitFCSSCtrl(S,1);
+ ssSupportsMultipleExecInstances(S,1);
+}
+
+static void mdlRTW_c1_Cessna_6DOF(SimStruct *S)
+{
+ if (sim_mode_is_rtw_gen(S)) {
+ ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB");
+ }
+}
+
+static void mdlStart_c1_Cessna_6DOF(SimStruct *S)
+{
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)utMalloc(sizeof
+ (ChartRunTimeInfo));
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *)utMalloc(sizeof
+ (SFc1_Cessna_6DOFInstanceStruct));
+ memset(chartInstance, 0, sizeof(SFc1_Cessna_6DOFInstanceStruct));
+ if (chartInstance==NULL) {
+ sf_mex_error_message("Could not allocate memory for chart instance.");
+ }
+
+ chartInstance->chartInfo.chartInstance = chartInstance;
+ chartInstance->chartInfo.isEMLChart = 1;
+ chartInstance->chartInfo.chartInitialized = 0;
+ chartInstance->chartInfo.sFunctionGateway = sf_opaque_gateway_c1_Cessna_6DOF;
+ chartInstance->chartInfo.initializeChart = sf_opaque_initialize_c1_Cessna_6DOF;
+ chartInstance->chartInfo.terminateChart = sf_opaque_terminate_c1_Cessna_6DOF;
+ chartInstance->chartInfo.enableChart = sf_opaque_enable_c1_Cessna_6DOF;
+ chartInstance->chartInfo.disableChart = sf_opaque_disable_c1_Cessna_6DOF;
+ chartInstance->chartInfo.getSimState = sf_opaque_get_sim_state_c1_Cessna_6DOF;
+ chartInstance->chartInfo.setSimState = sf_opaque_set_sim_state_c1_Cessna_6DOF;
+ chartInstance->chartInfo.getSimStateInfo =
+ sf_get_sim_state_info_c1_Cessna_6DOF;
+ chartInstance->chartInfo.zeroCrossings = NULL;
+ chartInstance->chartInfo.outputs = NULL;
+ chartInstance->chartInfo.derivatives = NULL;
+ chartInstance->chartInfo.mdlRTW = mdlRTW_c1_Cessna_6DOF;
+ chartInstance->chartInfo.mdlStart = mdlStart_c1_Cessna_6DOF;
+ chartInstance->chartInfo.mdlSetWorkWidths = mdlSetWorkWidths_c1_Cessna_6DOF;
+ chartInstance->chartInfo.extModeExec = NULL;
+ chartInstance->chartInfo.restoreLastMajorStepConfiguration = NULL;
+ chartInstance->chartInfo.restoreBeforeLastMajorStepConfiguration = NULL;
+ chartInstance->chartInfo.storeCurrentConfiguration = NULL;
+ chartInstance->chartInfo.debugInstance = sfGlobalDebugInstanceStruct;
+ chartInstance->S = S;
+ crtInfo->instanceInfo = (&(chartInstance->chartInfo));
+ crtInfo->isJITEnabled = false;
+ ssSetUserData(S,(void *)(crtInfo)); /* register the chart instance with simstruct */
+ init_dsm_address_info(chartInstance);
+ if (!sim_mode_is_rtw_gen(S)) {
+ }
+
+ sf_opaque_init_subchart_simstructs(chartInstance->chartInfo.chartInstance);
+ chart_debug_initialization(S,1);
+}
+
+void c1_Cessna_6DOF_method_dispatcher(SimStruct *S, int_T method, void *data)
+{
+ switch (method) {
+ case SS_CALL_MDL_START:
+ mdlStart_c1_Cessna_6DOF(S);
+ break;
+
+ case SS_CALL_MDL_SET_WORK_WIDTHS:
+ mdlSetWorkWidths_c1_Cessna_6DOF(S);
+ break;
+
+ case SS_CALL_MDL_PROCESS_PARAMETERS:
+ mdlProcessParameters_c1_Cessna_6DOF(S);
+ break;
+
+ default:
+ /* Unhandled method */
+ sf_mex_error_message("Stateflow Internal Error:\n"
+ "Error calling c1_Cessna_6DOF_method_dispatcher.\n"
+ "Can't handle method %d.\n", method);
+ break;
+ }
+}
diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_Cessna_6DOF.h b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_Cessna_6DOF.h new file mode 100644 index 0000000..99a7210 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_Cessna_6DOF.h @@ -0,0 +1,41 @@ +#ifndef __c1_Cessna_6DOF_h__
+#define __c1_Cessna_6DOF_h__
+
+/* Include files */
+#include "sf_runtime/sfc_sf.h"
+#include "sf_runtime/sfc_mex.h"
+#include "rtwtypes.h"
+#include "multiword_types.h"
+
+/* Type Definitions */
+#ifndef typedef_SFc1_Cessna_6DOFInstanceStruct
+#define typedef_SFc1_Cessna_6DOFInstanceStruct
+
+typedef struct {
+ SimStruct *S;
+ ChartInfoStruct chartInfo;
+ uint32_T chartNumber;
+ uint32_T instanceNumber;
+ int32_T c1_sfEvent;
+ boolean_T c1_isStable;
+ boolean_T c1_doneDoubleBufferReInit;
+ uint8_T c1_is_active_c1_Cessna_6DOF;
+} SFc1_Cessna_6DOFInstanceStruct;
+
+#endif /*typedef_SFc1_Cessna_6DOFInstanceStruct*/
+
+/* Named Constants */
+
+/* Variable Declarations */
+
+/* Variable Definitions */
+
+/* Function Declarations */
+extern const mxArray *sf_c1_Cessna_6DOF_get_eml_resolved_functions_info(void);
+
+/* Function Definitions */
+extern void sf_c1_Cessna_6DOF_get_check_sum(mxArray *plhs[]);
+extern void c1_Cessna_6DOF_method_dispatcher(SimStruct *S, int_T method, void
+ *data);
+
+#endif
diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_cessna_6dof.obj b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_cessna_6dof.obj new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_cessna_6dof.obj diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF_Wind_trim/_self/sfun/info/binfo.mat b/Prof_Arya/slprj/_sfprj/Cessna_6DOF_Wind_trim/_self/sfun/info/binfo.mat Binary files differnew file mode 100644 index 0000000..02848c4 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF_Wind_trim/_self/sfun/info/binfo.mat diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF_trim_ha/_self/sfun/info/binfo.mat b/Prof_Arya/slprj/_sfprj/Cessna_6DOF_trim_ha/_self/sfun/info/binfo.mat Binary files differnew file mode 100644 index 0000000..2ca213f --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF_trim_ha/_self/sfun/info/binfo.mat diff --git a/Prof_Arya/slprj/_sfprj/EMLReport/emlReportAccessInfo.mat b/Prof_Arya/slprj/_sfprj/EMLReport/emlReportAccessInfo.mat Binary files differnew file mode 100644 index 0000000..c5a1037 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/EMLReport/emlReportAccessInfo.mat diff --git a/Prof_Arya/slprj/_sfprj/EMLReport/sEI9p49izcHUxn63CWpG2IC.mat b/Prof_Arya/slprj/_sfprj/EMLReport/sEI9p49izcHUxn63CWpG2IC.mat Binary files differnew file mode 100644 index 0000000..9d4d18d --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/EMLReport/sEI9p49izcHUxn63CWpG2IC.mat diff --git a/Prof_Arya/slprj/_sfprj/EMLReport/sjLZixcOZskMJeeDfIb93hH.mat b/Prof_Arya/slprj/_sfprj/EMLReport/sjLZixcOZskMJeeDfIb93hH.mat Binary files differnew file mode 100644 index 0000000..6d7d58c --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/EMLReport/sjLZixcOZskMJeeDfIb93hH.mat diff --git a/Prof_Arya/slprj/_sfprj/precompile/9awVvODnlASRfvLpAy51pB.mat b/Prof_Arya/slprj/_sfprj/precompile/9awVvODnlASRfvLpAy51pB.mat Binary files differnew file mode 100644 index 0000000..d67a604 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/precompile/9awVvODnlASRfvLpAy51pB.mat diff --git a/Prof_Arya/slprj/_sfprj/precompile/CHfRUMKLp7zBZlxChVZlPD.mat b/Prof_Arya/slprj/_sfprj/precompile/CHfRUMKLp7zBZlxChVZlPD.mat Binary files differnew file mode 100644 index 0000000..364d8a5 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/precompile/CHfRUMKLp7zBZlxChVZlPD.mat diff --git a/Prof_Arya/slprj/_sfprj/precompile/VPBs6CX5Fj2d3KwfGqQPeF.mat b/Prof_Arya/slprj/_sfprj/precompile/VPBs6CX5Fj2d3KwfGqQPeF.mat Binary files differnew file mode 100644 index 0000000..a413dc1 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/precompile/VPBs6CX5Fj2d3KwfGqQPeF.mat diff --git a/Prof_Arya/slprj/_sfprj/precompile/autoInferAccessInfo.mat b/Prof_Arya/slprj/_sfprj/precompile/autoInferAccessInfo.mat Binary files differnew file mode 100644 index 0000000..bcafa3e --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/precompile/autoInferAccessInfo.mat diff --git a/Prof_Arya/slprj/_sfprj/precompile/pFxf9FCl6UH0ED177v1E9B.mat b/Prof_Arya/slprj/_sfprj/precompile/pFxf9FCl6UH0ED177v1E9B.mat Binary files differnew file mode 100644 index 0000000..5fd3c97 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/precompile/pFxf9FCl6UH0ED177v1E9B.mat |