update gencode

This commit is contained in:
matt
2020-10-26 17:04:48 +08:00
parent 000d694761
commit bd73991059
11 changed files with 6056 additions and 5458 deletions
+58
View File
@@ -0,0 +1,58 @@
/*
* Include Files
*
*/
#if defined(MATLAB_MEX_FILE)
#include "tmwtypes.h"
#include "simstruc_types.h"
#else
#include "rtwtypes.h"
#endif
/* %%%-SFUNWIZ_wrapper_includes_Changes_BEGIN --- EDIT HERE TO _END */
/* %%%-SFUNWIZ_wrapper_includes_Changes_END --- EDIT HERE TO _BEGIN */
#define y_width 1
/*
* Create external references here.
*
*/
/* %%%-SFUNWIZ_wrapper_externs_Changes_BEGIN --- EDIT HERE TO _END */
/* %%%-SFUNWIZ_wrapper_externs_Changes_END --- EDIT HERE TO _BEGIN */
/*
* Output function
*
*/
void CRC_CheckSum_Outputs_wrapper(const uint8_T *pBuffer,
const uint16_T *len,
uint16_T *crc,
const int_T u_width)
{
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_BEGIN --- EDIT HERE TO _END */
uint16_T poly = 0x8408;
uint8_T carry;
uint8_T i_bits;
uint16_T j;
crc[0] = 0;
for (j = 0; j < len[0]; j++) {
crc[0] = (uint16_T) (crc[0] ^ (uint8_T) pBuffer[j]);
for (i_bits = 0; i_bits < 8; i_bits++) {
carry = (uint8_T) (crc[0] & 1);
crc[0] = (uint16_T) (crc[0] / 2);
if (carry) {
crc[0] = (uint16_T) (crc[0] ^ poly);
}
}
}
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_END --- EDIT HERE TO _BEGIN */
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+26 -23
View File
@@ -3,9 +3,9 @@
* *
* Code generated for Simulink model 'SIL'. * Code generated for Simulink model 'SIL'.
* *
* Model version : 1.470 * Model version : 1.472
* Simulink Coder version : 9.0 (R2018b) 24-May-2018 * Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Thu Oct 22 10:25:15 2020 * C/C++ source code generated on : Mon Oct 26 16:36:21 2020
* *
* Target selection: ert_shrlib.tlc * Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64) * Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -216,21 +216,23 @@ static const rtwCAPI_ModelParameters rtModelParameters[] = {
{ 81, TARGET_STRING("min_tht"), 1, 2, 0 }, { 81, TARGET_STRING("min_tht"), 1, 2, 0 },
{ 82, TARGET_STRING("w_as"), 1, 2, 0 }, { 82, TARGET_STRING("recovery_ias"), 1, 2, 0 },
{ 83, TARGET_STRING("w_v2tht"), 1, 2, 0 }, { 83, TARGET_STRING("w_as"), 1, 2, 0 },
{ 84, TARGET_STRING("w_x"), 1, 2, 0 }, { 84, TARGET_STRING("w_v2tht"), 1, 2, 0 },
{ 85, TARGET_STRING("w_y"), 1, 2, 0 }, { 85, TARGET_STRING("w_x"), 1, 2, 0 },
{ 86, TARGET_STRING("washout_r_den"), 1, 4, 0 }, { 86, TARGET_STRING("w_y"), 1, 2, 0 },
{ 87, TARGET_STRING("washout_r_num"), 1, 4, 0 }, { 87, TARGET_STRING("washout_r_den"), 1, 4, 0 },
{ 88, TARGET_STRING("system_id"), 2, 2, 0 }, { 88, TARGET_STRING("washout_r_num"), 1, 4, 0 },
{ 89, TARGET_STRING("transrate"), 3, 2, 0 }, { 89, TARGET_STRING("system_id"), 2, 2, 0 },
{ 90, TARGET_STRING("transrate"), 3, 2, 0 },
{ 0, (NULL), 0, 0, 0 } { 0, (NULL), 0, 0, 0 }
}; };
@@ -321,14 +323,15 @@ static void* rtDataAddrMap[] = {
&SIL_P.min_hdot, /* 79: Model Parameter */ &SIL_P.min_hdot, /* 79: Model Parameter */
&SIL_P.min_rpm[0], /* 80: Model Parameter */ &SIL_P.min_rpm[0], /* 80: Model Parameter */
&SIL_P.min_tht, /* 81: Model Parameter */ &SIL_P.min_tht, /* 81: Model Parameter */
&SIL_P.w_as, /* 82: Model Parameter */ &SIL_P.recovery_ias, /* 82: Model Parameter */
&SIL_P.w_v2tht, /* 83: Model Parameter */ &SIL_P.w_as, /* 83: Model Parameter */
&SIL_P.w_x, /* 84: Model Parameter */ &SIL_P.w_v2tht, /* 84: Model Parameter */
&SIL_P.w_y, /* 85: Model Parameter */ &SIL_P.w_x, /* 85: Model Parameter */
&SIL_P.washout_r_den[0], /* 86: Model Parameter */ &SIL_P.w_y, /* 86: Model Parameter */
&SIL_P.washout_r_num[0], /* 87: Model Parameter */ &SIL_P.washout_r_den[0], /* 87: Model Parameter */
&SIL_P.system_id, /* 88: Model Parameter */ &SIL_P.washout_r_num[0], /* 88: Model Parameter */
&transrate, /* 89: Model Parameter */ &SIL_P.system_id, /* 89: Model Parameter */
&transrate, /* 90: Model Parameter */
}; };
/* Declare Data Run-Time Dimension Buffer Addresses statically */ /* Declare Data Run-Time Dimension Buffer Addresses statically */
@@ -419,7 +422,7 @@ static rtwCAPI_ModelMappingStaticInfo mmiStatic = {
(NULL), 0 }, (NULL), 0 },
{ rtBlockParameters, 0, { rtBlockParameters, 0,
rtModelParameters, 90 }, rtModelParameters, 91 },
{ (NULL), 0 }, { (NULL), 0 },
@@ -427,10 +430,10 @@ static rtwCAPI_ModelMappingStaticInfo mmiStatic = {
rtElementMap, rtSampleTimeMap, rtDimensionArray }, rtElementMap, rtSampleTimeMap, rtDimensionArray },
"float", "float",
{ 1933200694U, { 2979056592U,
935469783U, 3736830732U,
3860272542U, 845784224U,
3263114025U }, 1771781300U },
(NULL), 0, (NULL), 0,
0 0
}; };
+2 -2
View File
@@ -3,9 +3,9 @@
* *
* Code generated for Simulink model 'SIL'. * Code generated for Simulink model 'SIL'.
* *
* Model version : 1.470 * Model version : 1.472
* Simulink Coder version : 9.0 (R2018b) 24-May-2018 * Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Thu Oct 22 10:25:15 2020 * C/C++ source code generated on : Mon Oct 26 16:36:21 2020
* *
* Target selection: ert_shrlib.tlc * Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64) * Embedded hardware selection: Intel->x86-64 (Windows64)
+95 -90
View File
@@ -3,9 +3,9 @@
* *
* Code generated for Simulink model 'SIL'. * Code generated for Simulink model 'SIL'.
* *
* Model version : 1.470 * Model version : 1.472
* Simulink Coder version : 9.0 (R2018b) 24-May-2018 * Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Thu Oct 22 10:25:15 2020 * C/C++ source code generated on : Mon Oct 26 16:36:21 2020
* *
* Target selection: ert_shrlib.tlc * Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64) * Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -275,12 +275,12 @@ const ConstB_SIL_T SIL_ConstB = {
/* Block parameters (default storage) */ /* Block parameters (default storage) */
P_SIL_T SIL_P = { P_SIL_T SIL_P = {
/* Variable: AccelBias /* Variable: AccelBias
* Referenced by: '<S461>/Measurement bias' * Referenced by: '<S469>/Measurement bias'
*/ */
{ 0.0, 0.0, 0.0 }, { 0.0, 0.0, 0.0 },
/* Variable: AccelScaleMatrix /* Variable: AccelScaleMatrix
* Referenced by: '<S461>/Scale factors & Cross-coupling errors' * Referenced by: '<S469>/Scale factors & Cross-coupling errors'
*/ */
{ 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 }, { 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 },
@@ -425,22 +425,22 @@ P_SIL_T SIL_P = {
1.0, 1.0,
/* Variable: GyroBias /* Variable: GyroBias
* Referenced by: '<S462>/Measurement bias' * Referenced by: '<S470>/Measurement bias'
*/ */
{ 0.0, 0.0, 0.0 }, { 0.0, 0.0, 0.0 },
/* Variable: GyroGBias /* Variable: GyroGBias
* Referenced by: '<S462>/g-sensitive bias' * Referenced by: '<S470>/g-sensitive bias'
*/ */
{ 0.0, 0.0, 0.0 }, { 0.0, 0.0, 0.0 },
/* Variable: GyroScaleMatrix /* Variable: GyroScaleMatrix
* Referenced by: '<S462>/Scale factors & Cross-coupling errors ' * Referenced by: '<S470>/Scale factors & Cross-coupling errors '
*/ */
{ 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 }, { 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 },
/* Variable: IMUloc /* Variable: IMUloc
* Referenced by: '<S461>/wl_ins' * Referenced by: '<S469>/wl_ins'
*/ */
{ 0.0, 0.0, 0.0 }, { 0.0, 0.0, 0.0 },
@@ -490,294 +490,299 @@ P_SIL_T SIL_P = {
1425.0, 1425.0,
/* Variable: CLa /* Variable: CLa
* Referenced by: '<S986>/Constant1' * Referenced by: '<S1006>/Constant1'
*/ */
4.0F, 4.0F,
/* Variable: Clda_lst /* Variable: Clda_lst
* Referenced by: '<S990>/Clda' * Referenced by: '<S1010>/Clda'
*/ */
{ -0.0533F, -0.0548F, -0.0566F, -0.0604F, -0.0624F, -0.0438F, -0.0311F, { -0.0533F, -0.0548F, -0.0566F, -0.0604F, -0.0624F, -0.0438F, -0.0311F,
-0.0278F, -0.0222F, -0.0161F, -0.0099F }, -0.0278F, -0.0222F, -0.0161F, -0.0099F },
/* Variable: Clp_lst /* Variable: Clp_lst
* Referenced by: '<S990>/Clp' * Referenced by: '<S1010>/Clp'
*/ */
{ -0.3028F, -0.3136F, -0.3218F, -0.3548F, -0.3874F, -0.3523F, -0.3341F, { -0.3028F, -0.3136F, -0.3218F, -0.3548F, -0.3874F, -0.3523F, -0.3341F,
-0.3235F, -0.3086F, -0.2863F, -0.2472F }, -0.3235F, -0.3086F, -0.2863F, -0.2472F },
/* Variable: Cmde_lst /* Variable: Cmde_lst
* Referenced by: '<S989>/Cmde1' * Referenced by: '<S1009>/Cmde1'
*/ */
{ -0.9966F, -1.0408F, -1.0628F, -1.1017F, -1.166F, -1.1862F, -1.1456F, { -0.9966F, -1.0408F, -1.0628F, -1.1017F, -1.166F, -1.1862F, -1.1456F,
-1.1158F, -1.0376F, -0.97F, -0.8407F }, -1.1158F, -1.0376F, -0.97F, -0.8407F },
/* Variable: Cmq_lst /* Variable: Cmq_lst
* Referenced by: '<S989>/Cmq' * Referenced by: '<S1009>/Cmq'
*/ */
{ -7.4817F, -8.353F, -8.0743F, -8.6229F, -9.981F, -9.5258F, -8.6237F, -8.736F, { -7.4817F, -8.353F, -8.0743F, -8.6229F, -9.981F, -9.5258F, -8.6237F, -8.736F,
-8.521F, -8.2233F, -7.7842F }, -8.521F, -8.2233F, -7.7842F },
/* Variable: Ixx /* Variable: Ixx
* Referenced by: '<S990>/Constant' * Referenced by: '<S1010>/Constant'
*/ */
5.5F, 5.5F,
/* Variable: Iyy /* Variable: Iyy
* Referenced by: '<S989>/Constant' * Referenced by: '<S1009>/Constant'
*/ */
255.0F, 255.0F,
/* Variable: Ma_lst /* Variable: Ma_lst
* Referenced by: * Referenced by:
* '<S989>/Cmde1' * '<S1009>/Cmde1'
* '<S989>/Cmq' * '<S1009>/Cmq'
* '<S990>/Clda' * '<S1010>/Clda'
* '<S990>/Clp' * '<S1010>/Clp'
*/ */
{ 0.2F, 0.3F, 0.6F, 0.8F, 0.9F, 0.95F, 1.05F, 1.1F, 1.2F, 1.3F, 1.5F }, { 0.2F, 0.3F, 0.6F, 0.8F, 0.9F, 0.95F, 1.05F, 1.1F, 1.2F, 1.3F, 1.5F },
/* Variable: RefArea /* Variable: RefArea
* Referenced by: * Referenced by:
* '<S986>/Sc_Iyy' * '<S1006>/Sc_Iyy'
* '<S989>/Sc_Iyy' * '<S1009>/Sc_Iyy'
* '<S990>/Sc_Iyy' * '<S1010>/Sc_Iyy'
*/ */
0.919F, 0.919F,
/* Variable: RefLen /* Variable: RefLen
* Referenced by: * Referenced by:
* '<S989>/Constant3' * '<S1009>/Constant3'
* '<S989>/Sc_Iyy' * '<S1009>/Sc_Iyy'
*/ */
0.659F, 0.659F,
/* Variable: RefSpan /* Variable: RefSpan
* Referenced by: * Referenced by:
* '<S990>/Constant2' * '<S1010>/Constant2'
* '<S990>/Sc_Iyy' * '<S1010>/Sc_Iyy'
*/ */
1.7F, 1.7F,
/* Variable: dal0 /* Variable: dal0
* Referenced by: '<S506>/Constant4' * Referenced by: '<S514>/Constant4'
*/ */
0.0F, 0.0F,
/* Variable: dar0 /* Variable: dar0
* Referenced by: '<S506>/Constant5' * Referenced by: '<S514>/Constant5'
*/ */
0.0F, 0.0F,
/* Variable: del0 /* Variable: del0
* Referenced by: '<S506>/Constant' * Referenced by: '<S514>/Constant'
*/ */
0.0F, 0.0F,
/* Variable: der0 /* Variable: der0
* Referenced by: '<S506>/Constant2' * Referenced by: '<S514>/Constant2'
*/ */
0.0F, 0.0F,
/* Variable: dr0 /* Variable: dr0
* Referenced by: '<S506>/Constant3' * Referenced by: '<S514>/Constant3'
*/ */
0.0F, 0.0F,
/* Variable: h_thr2rpm /* Variable: h_thr2rpm
* Referenced by: * Referenced by:
* '<S769>/max_rpm' * '<S789>/max_rpm'
* '<S769>/min_rpm' * '<S789>/min_rpm'
* '<S771>/max_rpm' * '<S791>/max_rpm'
* '<S772>/max_rpm' * '<S792>/max_rpm'
* '<S772>/min_rpm' * '<S792>/min_rpm'
*/ */
{ 0.0F, 3000.0F, 10000.0F }, { 0.0F, 3000.0F, 10000.0F },
/* Variable: k_dal /* Variable: k_dal
* Referenced by: * Referenced by:
* '<S5>/Constant7' * '<S5>/Constant7'
* '<S506>/Gain3' * '<S514>/Gain3'
*/ */
-1.0F, -1.0F,
/* Variable: k_dar /* Variable: k_dar
* Referenced by: * Referenced by:
* '<S5>/Constant8' * '<S5>/Constant8'
* '<S506>/Gain4' * '<S514>/Gain4'
*/ */
-1.0F, -1.0F,
/* Variable: k_del /* Variable: k_del
* Referenced by: * Referenced by:
* '<S5>/Constant' * '<S5>/Constant'
* '<S506>/Gain1' * '<S514>/Gain1'
*/ */
-1.0F, -1.0F,
/* Variable: k_der /* Variable: k_der
* Referenced by: * Referenced by:
* '<S5>/Constant1' * '<S5>/Constant1'
* '<S506>/Gain' * '<S514>/Gain'
*/ */
1.0F, 1.0F,
/* Variable: k_dr /* Variable: k_dr
* Referenced by: * Referenced by:
* '<S5>/Constant3' * '<S5>/Constant3'
* '<S506>/Gain2' * '<S514>/Gain2'
*/ */
-1.0F, -1.0F,
/* Variable: ksi_v2tht /* Variable: ksi_v2tht
* Referenced by: '<S984>/Constant1' * Referenced by: '<S1004>/Constant1'
*/ */
0.8F, 0.8F,
/* Variable: m /* Variable: m
* Referenced by: '<S986>/Constant' * Referenced by: '<S1006>/Constant'
*/ */
200.0F, 200.0F,
/* Variable: max_az /* Variable: max_az
* Referenced by: '<S510>/Constant8' * Referenced by: '<S518>/Constant8'
*/ */
2.0F, 2.0F,
/* Variable: max_da /* Variable: max_da
* Referenced by: * Referenced by:
* '<S990>/Constant1' * '<S1010>/Constant1'
* '<S611>/gain1' * '<S631>/gain1'
* '<S612>/gain1' * '<S632>/gain1'
* '<S616>/gain1' * '<S636>/gain1'
* '<S617>/gain1' * '<S637>/gain1'
*/ */
0.4363F, 0.4363F,
/* Variable: max_de /* Variable: max_de
* Referenced by: * Referenced by:
* '<S989>/Constant1' * '<S1009>/Constant1'
* '<S611>/gain' * '<S631>/gain'
* '<S612>/gain' * '<S632>/gain'
* '<S616>/gain' * '<S636>/gain'
* '<S617>/gain' * '<S637>/gain'
*/ */
0.4363F, 0.4363F,
/* Variable: max_dr /* Variable: max_dr
* Referenced by: * Referenced by:
* '<S611>/gain2' * '<S631>/gain2'
* '<S612>/gain2' * '<S632>/gain2'
* '<S616>/gain2' * '<S636>/gain2'
* '<S617>/gain2' * '<S637>/gain2'
*/ */
0.4363F, 0.4363F,
/* Variable: max_hdot /* Variable: max_hdot
* Referenced by: '<S510>/Constant9' * Referenced by: '<S518>/Constant9'
*/ */
100.0F, 100.0F,
/* Variable: max_p /* Variable: max_p
* Referenced by: '<S510>/Constant7' * Referenced by: '<S518>/Constant7'
*/ */
0.6F, 0.6F,
/* Variable: max_phi /* Variable: max_phi
* Referenced by: '<S510>/Constant Single1' * Referenced by: '<S518>/Constant Single1'
*/ */
0.7F, 0.7F,
/* Variable: max_q /* Variable: max_q
* Referenced by: '<S510>/Constant6' * Referenced by: '<S518>/Constant6'
*/ */
0.4F, 0.4F,
/* Variable: max_rpm /* Variable: max_rpm
* Referenced by: * Referenced by:
* '<S769>/max_rpm' * '<S789>/max_rpm'
* '<S771>/max_rpm' * '<S791>/max_rpm'
* '<S772>/max_rpm' * '<S792>/max_rpm'
*/ */
{ 46000.0F, 46000.0F, 46000.0F }, { 46000.0F, 46000.0F, 46000.0F },
/* Variable: max_thr /* Variable: max_thr
* Referenced by: '<S510>/Constant1' * Referenced by: '<S518>/Constant1'
*/ */
1.0F, 1.0F,
/* Variable: max_tht /* Variable: max_tht
* Referenced by: '<S510>/Constant' * Referenced by: '<S518>/Constant'
*/ */
0.34904F, 0.34904F,
/* Variable: min_de /* Variable: min_de
* Referenced by: '<S989>/Constant2' * Referenced by: '<S1009>/Constant2'
*/ */
-0.34904F, -0.34904F,
/* Variable: min_hdot /* Variable: min_hdot
* Referenced by: '<S510>/Constant10' * Referenced by: '<S518>/Constant10'
*/ */
-50.0F, -50.0F,
/* Variable: min_rpm /* Variable: min_rpm
* Referenced by: * Referenced by:
* '<S769>/min_rpm' * '<S789>/min_rpm'
* '<S772>/min_rpm' * '<S792>/min_rpm'
*/ */
{ 20000.0F, 30000.0F, 38000.0F }, { 20000.0F, 30000.0F, 38000.0F },
/* Variable: min_tht /* Variable: min_tht
* Referenced by: '<S510>/Constant Single' * Referenced by: '<S518>/Constant Single'
*/ */
-0.2F, -0.2F,
/* Variable: recovery_ias
* Referenced by: '<S592>/Constant'
*/
85.0F,
/* Variable: w_as /* Variable: w_as
* Referenced by: '<S510>/Constant Single6' * Referenced by: '<S518>/Constant Single6'
*/ */
0.5F, 0.5F,
/* Variable: w_v2tht /* Variable: w_v2tht
* Referenced by: '<S984>/Constant' * Referenced by: '<S1004>/Constant'
*/ */
0.4F, 0.4F,
/* Variable: w_x /* Variable: w_x
* Referenced by: '<S510>/Constant Single9' * Referenced by: '<S518>/Constant Single9'
*/ */
0.15F, 0.15F,
/* Variable: w_y /* Variable: w_y
* Referenced by: '<S510>/Constant Single7' * Referenced by: '<S518>/Constant Single7'
*/ */
0.15F, 0.15F,
/* Variable: washout_r_den /* Variable: washout_r_den
* Referenced by: '<S510>/Constant3' * Referenced by: '<S518>/Constant3'
*/ */
{ 1.0F, -0.995F }, { 1.0F, -0.995F },
/* Variable: washout_r_num /* Variable: washout_r_num
* Referenced by: '<S510>/Constant4' * Referenced by: '<S518>/Constant4'
*/ */
{ 1.0F, -1.0F }, { 1.0F, -1.0F },
/* Variable: system_id /* Variable: system_id
* Referenced by: * Referenced by:
* '<S6>/Constant' * '<S6>/Constant'
* '<S899>/system_id' * '<S919>/system_id'
* '<S907>/Chart_proc_mission_clr_all' * '<S927>/Chart_proc_mission_clr_all'
* '<S908>/Chart' * '<S928>/Chart'
* '<S909>/Chart' * '<S929>/Chart'
* '<S910>/Chart_proc_mission_req' * '<S930>/Chart_proc_mission_req'
* '<S911>/Chart_proc_mission_req_lst' * '<S931>/Chart_proc_mission_req_lst'
* '<S912>/Chart' * '<S932>/Chart'
* '<S948>/Chart' * '<S968>/Chart'
* '<S949>/Chart_proc_param_req_read' * '<S969>/Chart_proc_param_req_read'
* '<S950>/Chart_proc_param_set' * '<S970>/Chart_proc_param_set'
* '<S978>/system_id' * '<S998>/system_id'
* '<S980>/system_id' * '<S1000>/system_id'
*/ */
1U 1U
}; };
+29 -11
View File
@@ -3,9 +3,9 @@
* *
* Code generated for Simulink model 'SIL'. * Code generated for Simulink model 'SIL'.
* *
* Model version : 1.470 * Model version : 1.472
* Simulink Coder version : 9.0 (R2018b) 24-May-2018 * Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Thu Oct 22 10:25:15 2020 * C/C++ source code generated on : Mon Oct 26 16:36:21 2020
* *
* Target selection: ert_shrlib.tlc * Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64) * Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -674,28 +674,28 @@ extern const uint8_T rtCP_pooled_mhMab4fllVU3;
* Referenced by: '<S90>/table1D_thrust' * Referenced by: '<S90>/table1D_thrust'
*/ */
#define rtCP_uDLookupTable_tableData rtCP_pooled_Yvl18BcVpm9d /* Computed Parameter: rtCP_uDLookupTable_tableData #define rtCP_uDLookupTable_tableData rtCP_pooled_Yvl18BcVpm9d /* Computed Parameter: rtCP_uDLookupTable_tableData
* Referenced by: '<S510>/1-D Lookup Table' * Referenced by: '<S518>/1-D Lookup Table'
*/ */
#define rtCP_uDLookupTable_bp01Data rtCP_pooled_mUCG6SnXIkCg /* Computed Parameter: rtCP_uDLookupTable_bp01Data #define rtCP_uDLookupTable_bp01Data rtCP_pooled_mUCG6SnXIkCg /* Computed Parameter: rtCP_uDLookupTable_bp01Data
* Referenced by: '<S510>/1-D Lookup Table' * Referenced by: '<S518>/1-D Lookup Table'
*/ */
#define rtCP_IAS_lookup_tableData rtCP_pooled_4Tcn651nWPEA /* Computed Parameter: rtCP_IAS_lookup_tableData #define rtCP_IAS_lookup_tableData rtCP_pooled_4Tcn651nWPEA /* Computed Parameter: rtCP_IAS_lookup_tableData
* Referenced by: '<S510>/IAS_lookup' * Referenced by: '<S518>/IAS_lookup'
*/ */
#define rtCP_IAS_lookup_bp01Data rtCP_pooled_KC2WXQzXgX8x /* Computed Parameter: rtCP_IAS_lookup_bp01Data #define rtCP_IAS_lookup_bp01Data rtCP_pooled_KC2WXQzXgX8x /* Computed Parameter: rtCP_IAS_lookup_bp01Data
* Referenced by: '<S510>/IAS_lookup' * Referenced by: '<S518>/IAS_lookup'
*/ */
#define rtCP_uDLookupTable_tableData_n rtCP_pooled_HF8NWw8ahBZB /* Computed Parameter: rtCP_uDLookupTable_tableData_n #define rtCP_uDLookupTable_tableData_n rtCP_pooled_HF8NWw8ahBZB /* Computed Parameter: rtCP_uDLookupTable_tableData_n
* Referenced by: '<S990>/1-D Lookup Table' * Referenced by: '<S1010>/1-D Lookup Table'
*/ */
#define rtCP_uDLookupTable_bp01Data_d rtCP_pooled_NsfoROSYwB8n /* Computed Parameter: rtCP_uDLookupTable_bp01Data_d #define rtCP_uDLookupTable_bp01Data_d rtCP_pooled_NsfoROSYwB8n /* Computed Parameter: rtCP_uDLookupTable_bp01Data_d
* Referenced by: '<S990>/1-D Lookup Table' * Referenced by: '<S1010>/1-D Lookup Table'
*/ */
#define rtCP_uDLookupTable_tableData_m rtCP_pooled_HF8NWw8ahBZB /* Computed Parameter: rtCP_uDLookupTable_tableData_m #define rtCP_uDLookupTable_tableData_m rtCP_pooled_HF8NWw8ahBZB /* Computed Parameter: rtCP_uDLookupTable_tableData_m
* Referenced by: '<S989>/1-D Lookup Table' * Referenced by: '<S1009>/1-D Lookup Table'
*/ */
#define rtCP_uDLookupTable_bp01Data_a rtCP_pooled_NsfoROSYwB8n /* Computed Parameter: rtCP_uDLookupTable_bp01Data_a #define rtCP_uDLookupTable_bp01Data_a rtCP_pooled_NsfoROSYwB8n /* Computed Parameter: rtCP_uDLookupTable_bp01Data_a
* Referenced by: '<S989>/1-D Lookup Table' * Referenced by: '<S1009>/1-D Lookup Table'
*/ */
#define rtCP_table2D_CL_base_maxIndex rtCP_pooled_qhm2sJNkM8ZA /* Computed Parameter: rtCP_table2D_CL_base_maxIndex #define rtCP_table2D_CL_base_maxIndex rtCP_pooled_qhm2sJNkM8ZA /* Computed Parameter: rtCP_table2D_CL_base_maxIndex
* Referenced by: '<S50>/table2D_CL_base' * Referenced by: '<S50>/table2D_CL_base'
@@ -815,7 +815,7 @@ extern const uint8_T rtCP_pooled_mhMab4fllVU3;
* Referenced by: '<S302>/table3D_cft' * Referenced by: '<S302>/table3D_cft'
*/ */
#define rtCP_mav_parser_P1 rtCP_pooled_e6HU8n7YauPz /* Expression: Channel #define rtCP_mav_parser_P1 rtCP_pooled_e6HU8n7YauPz /* Expression: Channel
* Referenced by: '<S895>/mav_parser' * Referenced by: '<S915>/mav_parser'
*/ */
#define rtCP_ConstantBP_Value_h rtCP_pooled_mhMab4fllVU3 /* Computed Parameter: rtCP_ConstantBP_Value_h #define rtCP_ConstantBP_Value_h rtCP_pooled_mhMab4fllVU3 /* Computed Parameter: rtCP_ConstantBP_Value_h
* Referenced by: '<S6>/Constant BP' * Referenced by: '<S6>/Constant BP'
@@ -843,6 +843,24 @@ extern "C" {
extern "C" { extern "C" {
#endif
extern void CRC_CheckSum_Start_wrapper(void);
extern void CRC_CheckSum_Outputs_wrapper(const uint8_T *pBuffer,
const uint16_T *len,
uint16_T *crc,
const int_T u_width);
extern void CRC_CheckSum_Terminate_wrapper(void);
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
extern "C" {
#endif #endif
extern void mav_msg2buff_Start_wrapper(void); extern void mav_msg2buff_Start_wrapper(void);
+13 -8
View File
@@ -3,9 +3,9 @@
* *
* Code generated for Simulink model 'SIL'. * Code generated for Simulink model 'SIL'.
* *
* Model version : 1.470 * Model version : 1.472
* Simulink Coder version : 9.0 (R2018b) 24-May-2018 * Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Thu Oct 22 10:25:15 2020 * C/C++ source code generated on : Mon Oct 26 16:36:21 2020
* *
* Target selection: ert_shrlib.tlc * Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64) * Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -759,6 +759,9 @@ typedef struct {
/* 速度差 */ /* 速度差 */
real32_T aspd_error; real32_T aspd_error;
/* 回收 */
uint8_T recovery;
} C2; } C2;
#endif #endif
@@ -844,8 +847,8 @@ typedef struct {
#endif #endif
#ifndef DEFINED_TYPEDEF_FOR_struct_wjAfOq8UsLX5wmjvApaivB_ #ifndef DEFINED_TYPEDEF_FOR_struct_WH4tQos7xVFl2gkfGHVigG_
#define DEFINED_TYPEDEF_FOR_struct_wjAfOq8UsLX5wmjvApaivB_ #define DEFINED_TYPEDEF_FOR_struct_WH4tQos7xVFl2gkfGHVigG_
typedef struct { typedef struct {
real_T dr_c; real_T dr_c;
@@ -876,12 +879,13 @@ typedef struct {
real_T ccm_period; real_T ccm_period;
real_T ccm_sw; real_T ccm_sw;
real_T aspd_error; real_T aspd_error;
} struct_wjAfOq8UsLX5wmjvApaivB; real_T recovery;
} struct_WH4tQos7xVFl2gkfGHVigG;
#endif #endif
#ifndef DEFINED_TYPEDEF_FOR_struct_1RYz85ReqLupht6uKZJJ8G_ #ifndef DEFINED_TYPEDEF_FOR_struct_TevtYo8CdFXieQkTr1jOgF_
#define DEFINED_TYPEDEF_FOR_struct_1RYz85ReqLupht6uKZJJ8G_ #define DEFINED_TYPEDEF_FOR_struct_TevtYo8CdFXieQkTr1jOgF_
typedef struct { typedef struct {
real32_T dr_c; real32_T dr_c;
@@ -912,7 +916,8 @@ typedef struct {
uint16_T ccm_period; uint16_T ccm_period;
uint8_T ccm_sw; uint8_T ccm_sw;
real32_T aspd_error; real32_T aspd_error;
} struct_1RYz85ReqLupht6uKZJJ8G; uint8_T recovery;
} struct_TevtYo8CdFXieQkTr1jOgF;
#endif #endif
Binary file not shown.
+2 -2
View File
@@ -3,9 +3,9 @@
* *
* Code generated for Simulink model 'SIL'. * Code generated for Simulink model 'SIL'.
* *
* Model version : 1.470 * Model version : 1.472
* Simulink Coder version : 9.0 (R2018b) 24-May-2018 * Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Thu Oct 22 10:25:15 2020 * C/C++ source code generated on : Mon Oct 26 16:36:21 2020
* *
* Target selection: ert_shrlib.tlc * Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64) * Embedded hardware selection: Intel->x86-64 (Windows64)
Binary file not shown.