update gencode

This commit is contained in:
LyuWeiye
2021-09-23 14:39:52 +08:00
parent 9da54cede4
commit 148dc04aa0
92 changed files with 12836 additions and 11315 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'cr929_SIL'.
*
* Model version : 1.1418
* Model version : 1.1472
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Sep 15 13:57:27 2021
* C/C++ source code generated on : Thu Sep 23 14:03:51 2021
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -927,10 +927,10 @@ static rtwCAPI_ModelMappingStaticInfo mmiStatic = {
rtElementMap, rtSampleTimeMap, rtDimensionArray },
"float",
{ 82069552U,
3371026450U,
3320420479U,
2241166774U },
{ 3065916724U,
2985065334U,
1751698992U,
3198131735U },
(NULL), 0,
0
};
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'cr929_SIL'.
*
* Model version : 1.1418
* Model version : 1.1472
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Sep 15 13:57:27 2021
* C/C++ source code generated on : Thu Sep 23 14:03:51 2021
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'cr929_SIL'.
*
* Model version : 1.1418
* Model version : 1.1472
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Sep 15 13:57:27 2021
* C/C++ source code generated on : Thu Sep 23 14:03:51 2021
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -42,67 +42,67 @@ const ConstB_cr929_SIL_T cr929_SIL_ConstB = {
{ 0.0, 0.0, 0.0 }, /* synthesized block */
{ 0.05533534132902769, 0.05533534132902769, 0.05533534132902769,
0.05533534132902769 }, /* '<S1531>/Sqrt' */
0.05533534132902769, /* '<S1531>/Sqrt1' */
0.05533534132902769 }, /* '<S1555>/Sqrt' */
0.05533534132902769, /* '<S1555>/Sqrt1' */
{ 1.0, 1.0, 1.0, 1.0 }, /* '<S1531>/Divide' */
0.0, /* '<S1520>/Unit Conversion' */
0.0, /* '<S1530>/Unit Conversion' */
0.0, /* '<S1539>/sigma_wg ' */
0.0, /* '<S1538>/PreLook-Up Index Search (prob of exceed)' */
22.309711286089236, /* '<S1524>/Unit Conversion' */
1749.9999999999998, /* '<S1558>/Unit Conversion' */
1000.0, /* '<S1548>/Sum' */
1000.0, /* '<S1540>/Sum' */
21.304204980804883, /* '<S1534>/dt1' */
28.405606641073181, /* '<S1533>/dt1' */
{ 1.0, 1.0, 1.0, 1.0 }, /* '<S1555>/Divide' */
0.0, /* '<S1544>/Unit Conversion' */
0.0, /* '<S1554>/Unit Conversion' */
0.0, /* '<S1563>/sigma_wg ' */
0.0, /* '<S1562>/PreLook-Up Index Search (prob of exceed)' */
22.309711286089236, /* '<S1548>/Unit Conversion' */
1749.9999999999998, /* '<S1582>/Unit Conversion' */
1000.0, /* '<S1572>/Sum' */
1000.0, /* '<S1564>/Sum' */
21.304204980804883, /* '<S1558>/dt1' */
28.405606641073181, /* '<S1557>/dt1' */
{ 1.50687, 0.0, 0.268 }, /* '<S330>/Selector' */
{ -0.11937, -0.306, 0.268 }, /* '<S330>/Selector1' */
{ -0.11937, 0.306, 0.268 }, /* '<S330>/Selector2' */
0U, /* '<S1538>/PreLook-Up Index Search (prob of exceed)' */
118U, /* '<S1440>/Width1' */
177U, /* '<S1439>/Width1' */
194U, /* '<S1438>/Width1' */
89U, /* '<S1437>/Width1' */
60U, /* '<S1425>/Width1' */
30U, /* '<S1426>/Width1' */
45U, /* '<S1427>/Width1' */
73U, /* '<S1431>/Width1' */
65U, /* '<S1430>/Width1' */
233U, /* '<S1435>/Width1' */
111U, /* '<S1434>/Width1' */
73U, /* '<S1433>/Width1' */
77U, /* '<S1432>/Width1' */
19U, /* '<S1442>/Width1' */
60U, /* '<S1422>/Width1' */
30U, /* '<S1423>/Width1' */
35U, /* '<S1421>/Width1' */
45U, /* '<S1424>/Width1' */
73U, /* '<S1429>/Width1' */
65U, /* '<S1428>/Width1' */
113U, /* '<S1440>/Width' */
172U, /* '<S1439>/Width' */
189U, /* '<S1438>/Width' */
84U, /* '<S1437>/Width' */
55U, /* '<S1425>/Width' */
25U, /* '<S1426>/Width' */
40U, /* '<S1427>/Width' */
68U, /* '<S1431>/Width' */
60U, /* '<S1430>/Width' */
228U, /* '<S1435>/Width' */
106U, /* '<S1434>/Width' */
68U, /* '<S1433>/Width' */
72U, /* '<S1432>/Width' */
14U, /* '<S1442>/Width' */
55U, /* '<S1422>/Width' */
25U, /* '<S1423>/Width' */
30U, /* '<S1421>/Width' */
40U, /* '<S1424>/Width' */
68U, /* '<S1429>/Width' */
60U, /* '<S1428>/Width' */
0U, /* '<S1562>/PreLook-Up Index Search (prob of exceed)' */
118U, /* '<S1463>/Width1' */
177U, /* '<S1462>/Width1' */
202U, /* '<S1461>/Width1' */
89U, /* '<S1460>/Width1' */
60U, /* '<S1448>/Width1' */
30U, /* '<S1449>/Width1' */
45U, /* '<S1450>/Width1' */
73U, /* '<S1454>/Width1' */
65U, /* '<S1453>/Width1' */
233U, /* '<S1458>/Width1' */
111U, /* '<S1457>/Width1' */
73U, /* '<S1456>/Width1' */
77U, /* '<S1455>/Width1' */
19U, /* '<S1465>/Width1' */
60U, /* '<S1445>/Width1' */
30U, /* '<S1446>/Width1' */
35U, /* '<S1444>/Width1' */
45U, /* '<S1447>/Width1' */
73U, /* '<S1452>/Width1' */
65U, /* '<S1451>/Width1' */
113U, /* '<S1463>/Width' */
172U, /* '<S1462>/Width' */
197U, /* '<S1461>/Width' */
84U, /* '<S1460>/Width' */
55U, /* '<S1448>/Width' */
25U, /* '<S1449>/Width' */
40U, /* '<S1450>/Width' */
68U, /* '<S1454>/Width' */
60U, /* '<S1453>/Width' */
228U, /* '<S1458>/Width' */
106U, /* '<S1457>/Width' */
68U, /* '<S1456>/Width' */
72U, /* '<S1455>/Width' */
14U, /* '<S1465>/Width' */
55U, /* '<S1445>/Width' */
25U, /* '<S1446>/Width' */
30U, /* '<S1444>/Width' */
40U, /* '<S1447>/Width' */
68U, /* '<S1452>/Width' */
60U, /* '<S1451>/Width' */
1, /* '<S329>/Compare' */
/* Start of '<S12>/For_each_thrust1' */
@@ -123,32 +123,32 @@ const ConstB_cr929_SIL_T cr929_SIL_ConstB = {
/* Block parameters (default storage) */
P_cr929_SIL_T cr929_SIL_P = {
/* Variable: AccelBias
* Referenced by: '<S1299>/Measurement bias'
* Referenced by: '<S1322>/Measurement bias'
*/
{ 0.0, 0.0, 0.0 },
/* Variable: AccelScaleMatrix
* Referenced by: '<S1299>/Scale factors & Cross-coupling errors'
* Referenced by: '<S1322>/Scale factors & Cross-coupling errors'
*/
{ 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 },
/* Variable: GyroBias
* Referenced by: '<S1300>/Measurement bias'
* Referenced by: '<S1323>/Measurement bias'
*/
{ 0.0, 0.0, 0.0 },
/* Variable: GyroGBias
* Referenced by: '<S1300>/g-sensitive bias'
* Referenced by: '<S1323>/g-sensitive bias'
*/
{ 0.0, 0.0, 0.0 },
/* Variable: GyroScaleMatrix
* Referenced by: '<S1300>/Scale factors & Cross-coupling errors '
* Referenced by: '<S1323>/Scale factors & Cross-coupling errors '
*/
{ 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 },
/* Variable: IMUloc
* Referenced by: '<S1299>/wl_ins'
* Referenced by: '<S1322>/wl_ins'
*/
{ 0.0, 0.0, 0.0 },
@@ -174,39 +174,39 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: deadband_dsp
* Referenced by:
* '<S1357>/Backlash1'
* '<S1357>/Backlash10'
* '<S1357>/Backlash11'
* '<S1357>/Backlash12'
* '<S1357>/Backlash13'
* '<S1357>/Backlash14'
* '<S1357>/Backlash15'
* '<S1357>/Backlash16'
* '<S1357>/Backlash2'
* '<S1357>/Backlash3'
* '<S1357>/Backlash4'
* '<S1357>/Backlash5'
* '<S1357>/Backlash6'
* '<S1357>/Backlash7'
* '<S1357>/Backlash8'
* '<S1357>/Backlash9'
* '<S1380>/Backlash1'
* '<S1380>/Backlash10'
* '<S1380>/Backlash11'
* '<S1380>/Backlash12'
* '<S1380>/Backlash13'
* '<S1380>/Backlash14'
* '<S1380>/Backlash15'
* '<S1380>/Backlash16'
* '<S1380>/Backlash2'
* '<S1380>/Backlash3'
* '<S1380>/Backlash4'
* '<S1380>/Backlash5'
* '<S1380>/Backlash6'
* '<S1380>/Backlash7'
* '<S1380>/Backlash8'
* '<S1380>/Backlash9'
*/
0.0,
/* Variable: map_rpm_lst
* Referenced by:
* '<S1346>/Constant1'
* '<S1348>/Constant1'
* '<S1350>/Constant1'
* '<S1369>/Constant1'
* '<S1371>/Constant1'
* '<S1373>/Constant1'
*/
{ 0.0, 20000.0, 26500.0, 33000.0, 39500.0, 44500.0, 49000.0, 52500.0, 54000.0,
56000.0, 57500.0, 62000.0 },
/* Variable: map_thr_lst
* Referenced by:
* '<S1346>/Constant'
* '<S1348>/Constant'
* '<S1350>/Constant'
* '<S1369>/Constant'
* '<S1371>/Constant'
* '<S1373>/Constant'
*/
{ -0.25, 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0 },
@@ -217,35 +217,35 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: throttle_k
* Referenced by:
* '<S1358>/Gain3'
* '<S1359>/Gain3'
* '<S1381>/Gain3'
* '<S1382>/Gain3'
*/
1.0,
/* Variable: wind_east
* Referenced by: '<S1511>/wind_East'
* Referenced by: '<S1535>/wind_East'
*/
{ -1.0, -5.0 },
/* Variable: wind_level
* Referenced by:
* '<S1511>/wind_East'
* '<S1511>/wind_North'
* '<S1535>/wind_East'
* '<S1535>/wind_North'
*/
{ 0.0, 600.0 },
/* Variable: wind_north
* Referenced by: '<S1511>/wind_North'
* Referenced by: '<S1535>/wind_North'
*/
{ 1.0, 5.0 },
/* Variable: CLa
* Referenced by: '<S1199>/Constant Single1'
* Referenced by: '<S1222>/Constant Single1'
*/
3.5F,
/* Variable: COMAC_Test_Alt
* Referenced by: '<S1201>/Constant'
* Referenced by: '<S1224>/Constant'
*/
4000.0F,
@@ -263,39 +263,39 @@ P_cr929_SIL_T cr929_SIL_P = {
0.041769F, 0.052726F },
/* Variable: Clda
* Referenced by: '<S1198>/Constant10'
* Referenced by: '<S1221>/Constant10'
*/
-0.06404F,
/* Variable: Clda_mix
* Referenced by:
* '<S1198>/Constant9'
* '<S1221>/Constant9'
* '<S810>/Constant'
*/
-0.1007F,
/* Variable: Clp
* Referenced by: '<S1198>/p2pdot'
* Referenced by: '<S1221>/p2pdot'
*/
-0.2657F,
/* Variable: Cmde
* Referenced by: '<S1198>/de2qdot'
* Referenced by: '<S1221>/de2qdot'
*/
-0.7347F,
/* Variable: Cmq
* Referenced by: '<S1198>/q2qdot'
* Referenced by: '<S1221>/q2qdot'
*/
-13.4013F,
/* Variable: Cndr
* Referenced by: '<S1198>/dr2rdot'
* Referenced by: '<S1221>/dr2rdot'
*/
-0.0624F,
/* Variable: Cnr
* Referenced by: '<S1198>/p2pdot1'
* Referenced by: '<S1221>/p2pdot1'
*/
-0.34F,
@@ -320,30 +320,29 @@ P_cr929_SIL_T cr929_SIL_P = {
20.0F,
/* Variable: Ixx
* Referenced by: '<S1198>/Constant6'
* Referenced by: '<S1221>/Constant6'
*/
13.4122F,
15.064F,
/* Variable: Iyy
* Referenced by: '<S1198>/Constant3'
* Referenced by: '<S1221>/Constant3'
*/
33.167F,
34.774F,
/* Variable: Izz
* Referenced by:
* '<S1198>/Constant7'
* '<S1198>/Gain2'
* '<S1221>/Constant7'
* '<S1221>/Gain2'
*/
42.6268F,
45.869F,
/* Variable: K
* Referenced by:
* '<S886>/Constant2'
* '<S904>/Constant2'
* '<S914>/Constant'
* '<S914>/Constant1'
* '<S915>/Constant1'
* '<S915>/Constant2'
* '<S937>/Constant'
* '<S937>/Constant1'
* '<S938>/Constant1'
* '<S938>/Constant2'
*/
0.06F,
@@ -355,31 +354,31 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: RefArea
* Referenced by:
* '<S434>/Constant Single50'
* '<S1198>/Sc_Iyy'
* '<S1198>/Sc_Iyy2'
* '<S1198>/Sc_Iyy4'
* '<S1199>/Constant Single2'
* '<S1221>/Sc_Iyy'
* '<S1221>/Sc_Iyy2'
* '<S1221>/Sc_Iyy4'
* '<S1222>/Constant Single2'
*/
1.97876F,
/* Variable: RefLen
* Referenced by:
* '<S1198>/Constant4'
* '<S1198>/q2qdot'
* '<S1221>/Constant4'
* '<S1221>/q2qdot'
*/
0.518F,
/* Variable: RefSpan
* Referenced by:
* '<S1198>/Sc_Iyy1'
* '<S1198>/Sc_Iyy3'
* '<S1198>/p2pdot'
* '<S1198>/p2pdot1'
* '<S1221>/Sc_Iyy1'
* '<S1221>/Sc_Iyy3'
* '<S1221>/p2pdot'
* '<S1221>/p2pdot1'
*/
3.82F,
/* Variable: STEER_POWER
* Referenced by: '<S1198>/Gain2'
* Referenced by: '<S1221>/Gain2'
*/
80.0F,
@@ -432,26 +431,26 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: da_list
* Referenced by:
* '<S955>/da2dal_deg'
* '<S955>/da2dar_deg'
* '<S955>/da2dspl4_deg'
* '<S955>/da2dspl5_deg'
* '<S955>/da2dspl6_deg'
* '<S955>/da2dspl7_deg'
* '<S955>/da2dspl8_deg'
* '<S955>/da2dspr4_deg'
* '<S955>/da2dspr5_deg'
* '<S955>/da2dspr6_deg'
* '<S955>/da2dspr7_deg'
* '<S955>/da2dspr8_deg'
* '<S978>/da2dal_deg'
* '<S978>/da2dar_deg'
* '<S978>/da2dspl4_deg'
* '<S978>/da2dspl5_deg'
* '<S978>/da2dspl6_deg'
* '<S978>/da2dspl7_deg'
* '<S978>/da2dspl8_deg'
* '<S978>/da2dspr4_deg'
* '<S978>/da2dspr5_deg'
* '<S978>/da2dspr6_deg'
* '<S978>/da2dspr7_deg'
* '<S978>/da2dspr8_deg'
*/
{ -30.0F, -24.0F, -18.0F, -15.0F, -12.0F, -6.0F, -3.0F, 0.0F, 3.0F, 6.0F,
12.0F, 15.0F, 18.0F, 24.0F, 30.0F },
/* Variable: da_list_unmix
* Referenced by:
* '<S954>/da2dal_deg'
* '<S954>/da2dar_deg'
* '<S977>/da2dal_deg'
* '<S977>/da2dar_deg'
*/
{ -30.0F, 0.0F, 30.0F },
@@ -462,13 +461,13 @@ P_cr929_SIL_T cr929_SIL_P = {
-0.0524F, -0.1309F, -0.1571F, -0.2094F, -0.3141F, -0.4188F, -0.5236F },
/* Variable: dal_list
* Referenced by: '<S955>/da2dal_deg'
* Referenced by: '<S978>/da2dal_deg'
*/
{ 20.0F, 16.8F, 13.6F, 12.0F, 10.4F, 7.2F, 3.8F, 0.0F, -5.7F, -10.8F, -15.6F,
-18.0F, -20.4F, -25.2F, -30.0F },
/* Variable: dal_list_unmix
* Referenced by: '<S954>/da2dal_deg'
* Referenced by: '<S977>/da2dal_deg'
*/
{ 20.0F, 0.0F, -30.0F },
@@ -483,32 +482,32 @@ P_cr929_SIL_T cr929_SIL_P = {
{ 1808.0F, 1400.0F, 1096.0F },
/* Variable: dar_list
* Referenced by: '<S955>/da2dar_deg'
* Referenced by: '<S978>/da2dar_deg'
*/
{ -30.0F, -25.2F, -20.4F, -18.0F, -15.6F, -10.8F, -5.7F, 0.0F, 3.8F, 7.2F,
10.4F, 12.0F, 13.6F, 16.8F, 20.0F },
/* Variable: dar_list_unmix
* Referenced by: '<S954>/da2dar_deg'
* Referenced by: '<S977>/da2dar_deg'
*/
{ -30.0F, 0.0F, 20.0F },
/* Variable: dar_pos
* Referenced by:
* '<S1349>/Constant1'
* '<S1372>/Constant1'
* '<S438>/1-D Lookup Table3'
*/
{ -0.523599F, 0.0F, 0.349066287F },
/* Variable: dar_pwm
* Referenced by:
* '<S1349>/Constant'
* '<S1372>/Constant'
* '<S438>/1-D Lookup Table3'
*/
{ 1144.0F, 1548.0F, 1860.0F },
/* Variable: ddf_c
* Referenced by: '<S938>/Constant6'
* Referenced by: '<S961>/Constant6'
*/
0.0F,
@@ -531,14 +530,14 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: der_pos
* Referenced by:
* '<S1351>/Constant1'
* '<S1374>/Constant1'
* '<S438>/1-D Lookup Table4'
*/
{ -0.52356F, 0.0F, 0.436300188F },
/* Variable: der_pwm
* Referenced by:
* '<S1351>/Constant'
* '<S1374>/Constant'
* '<S438>/1-D Lookup Table4'
*/
{ 1184.0F, 1564.0F, 1908.0F },
@@ -550,8 +549,8 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: dflap_ratelim
* Referenced by:
* '<S938>/Constant2'
* '<S938>/Constant3'
* '<S961>/Constant2'
* '<S961>/Constant3'
*/
0.1745F,
@@ -656,7 +655,7 @@ P_cr929_SIL_T cr929_SIL_P = {
{ 1036.0F, 1660.0F, 1780.0F, 1836.0F },
/* Variable: dht_ratelim
* Referenced by: '<S938>/Constant4'
* Referenced by: '<S961>/Constant4'
*/
0.0175F,
@@ -666,7 +665,7 @@ P_cr929_SIL_T cr929_SIL_P = {
0.0F,
/* Variable: dr_trim
* Referenced by: '<S938>/Constant7'
* Referenced by: '<S961>/Constant7'
*/
0.0F,
@@ -692,37 +691,37 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: dsp_ratelim
* Referenced by:
* '<S938>/Constant'
* '<S938>/Constant1'
* '<S961>/Constant'
* '<S961>/Constant1'
*/
0.0582F,
/* Variable: dspl4_list
* Referenced by: '<S955>/da2dspl4_deg'
* Referenced by: '<S978>/da2dspl4_deg'
*/
{ 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, -3.6F, -5.6F,
-8.1F, -14.4F, -22.5F },
/* Variable: dspl5_list
* Referenced by: '<S955>/da2dspl5_deg'
* Referenced by: '<S978>/da2dspl5_deg'
*/
{ 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, -3.6F, -5.6F,
-8.1F, -14.4F, -22.5F },
/* Variable: dspl6_list
* Referenced by: '<S955>/da2dspl6_deg'
* Referenced by: '<S978>/da2dspl6_deg'
*/
{ 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, -4.1F, -6.4F,
-9.2F, -16.3F, -25.5F },
/* Variable: dspl7_list
* Referenced by: '<S955>/da2dspl7_deg'
* Referenced by: '<S978>/da2dspl7_deg'
*/
{ 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, -4.1F, -6.4F,
-9.2F, -16.3F, -25.5F },
/* Variable: dspl8_list
* Referenced by: '<S955>/da2dspl8_deg'
* Referenced by: '<S978>/da2dspl8_deg'
*/
{ 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, -4.8F, -7.5F,
-10.8F, -19.2F, -30.0F },
@@ -730,14 +729,14 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: dspli1_pos
* Referenced by:
* '<S436>/1-D Lookup Table'
* '<S1394>/Constant1'
* '<S1417>/Constant1'
*/
{ -0.8726F, 0.0F, 0.192F },
/* Variable: dspli1_pwm
* Referenced by:
* '<S436>/1-D Lookup Table'
* '<S1394>/Constant'
* '<S1417>/Constant'
*/
{ 1292.0F, 1728.0F, 1800.0F },
@@ -774,14 +773,14 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: dsplo2_pos
* Referenced by:
* '<S436>/1-D Lookup Table7'
* '<S1390>/Constant1'
* '<S1413>/Constant1'
*/
{ -0.8726F, 0.0F, 0.2112F },
/* Variable: dsplo2_pwm
* Referenced by:
* '<S436>/1-D Lookup Table7'
* '<S1390>/Constant'
* '<S1413>/Constant'
*/
{ 1148.0F, 1632.0F, 1736.0F },
@@ -808,43 +807,43 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: dsplo5_pos
* Referenced by:
* '<S436>/1-D Lookup Table10'
* '<S1389>/Constant1'
* '<S1412>/Constant1'
*/
{ -0.8726F, 0.0F, 0.2112F },
/* Variable: dsplo5_pwm
* Referenced by:
* '<S436>/1-D Lookup Table10'
* '<S1389>/Constant'
* '<S1412>/Constant'
*/
{ 1164.0F, 1696.0F, 1832.0F },
/* Variable: dspr4_list
* Referenced by: '<S955>/da2dspr4_deg'
* Referenced by: '<S978>/da2dspr4_deg'
*/
{ -22.5F, -14.4F, -8.1F, -5.625F, -3.6F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F,
0.0F, 0.0F, 0.0F, 0.0F },
/* Variable: dspr5_list
* Referenced by: '<S955>/da2dspr5_deg'
* Referenced by: '<S978>/da2dspr5_deg'
*/
{ -22.5F, -14.4F, -8.1F, -5.625F, -3.6F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F,
0.0F, 0.0F, 0.0F, 0.0F },
/* Variable: dspr6_list
* Referenced by: '<S955>/da2dspr6_deg'
* Referenced by: '<S978>/da2dspr6_deg'
*/
{ -25.5F, -16.32F, -9.18F, -6.375F, -4.08F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F,
0.0F, 0.0F, 0.0F, 0.0F },
/* Variable: dspr7_list
* Referenced by: '<S955>/da2dspr7_deg'
* Referenced by: '<S978>/da2dspr7_deg'
*/
{ -25.5F, -16.32F, -9.18F, -6.375F, -4.08F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F,
0.0F, 0.0F, 0.0F, 0.0F },
/* Variable: dspr8_list
* Referenced by: '<S955>/da2dspr8_deg'
* Referenced by: '<S978>/da2dspr8_deg'
*/
{ -30.0F, -19.2F, -10.8F, -7.5F, -4.8F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F,
0.0F, 0.0F, 0.0F, 0.0F },
@@ -862,42 +861,42 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: dspri2_pos
* Referenced by:
* '<S436>/1-D Lookup Table4'
* '<S1381>/Constant1'
* '<S1404>/Constant1'
*/
{ -0.8726F, 0.0F, 0.192F },
/* Variable: dspri2_pwm
* Referenced by:
* '<S436>/1-D Lookup Table4'
* '<S1381>/Constant'
* '<S1404>/Constant'
*/
{ 1308.0F, 1792.0F, 1868.0F },
/* Variable: dspri3_pos
* Referenced by:
* '<S436>/1-D Lookup Table5'
* '<S1383>/Constant1'
* '<S1406>/Constant1'
*/
{ -0.8726F, 0.0F, 0.192F },
/* Variable: dspri3_pwm
* Referenced by:
* '<S436>/1-D Lookup Table5'
* '<S1383>/Constant'
* '<S1406>/Constant'
*/
{ 1304.0F, 1740.0F, 1780.0F },
/* Variable: dspro1_pos
* Referenced by:
* '<S436>/1-D Lookup Table12'
* '<S1382>/Constant1'
* '<S1405>/Constant1'
*/
{ -0.8726F, 0.0F, 0.2112F },
/* Variable: dspro1_pwm
* Referenced by:
* '<S436>/1-D Lookup Table12'
* '<S1382>/Constant'
* '<S1405>/Constant'
*/
{ 1164.0F, 1728.0F, 1895.0F },
@@ -914,28 +913,28 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: dspro3_pos
* Referenced by:
* '<S436>/1-D Lookup Table14'
* '<S1385>/Constant1'
* '<S1408>/Constant1'
*/
{ -0.8726F, 0.0F, 0.2112F },
/* Variable: dspro3_pwm
* Referenced by:
* '<S436>/1-D Lookup Table14'
* '<S1385>/Constant'
* '<S1408>/Constant'
*/
{ 1132.0F, 1636.0F, 1752.0F },
/* Variable: dspro4_pos
* Referenced by:
* '<S436>/1-D Lookup Table15'
* '<S1386>/Constant1'
* '<S1409>/Constant1'
*/
{ -0.8726F, 0.0F, 0.2112F },
/* Variable: dspro4_pwm
* Referenced by:
* '<S436>/1-D Lookup Table15'
* '<S1386>/Constant'
* '<S1409>/Constant'
*/
{ 1112.0F, 1664.0F, 1796.0F },
@@ -955,12 +954,12 @@ P_cr929_SIL_T cr929_SIL_P = {
3.0F,
/* Variable: force_thrl
* Referenced by: '<S941>/Constant'
* Referenced by: '<S964>/Constant'
*/
-1.0F,
/* Variable: force_thrr
* Referenced by: '<S942>/Constant'
* Referenced by: '<S965>/Constant'
*/
-1.0F,
@@ -1002,24 +1001,24 @@ P_cr929_SIL_T cr929_SIL_P = {
1.5F,
/* Variable: ksi_v2tht
* Referenced by: '<S1200>/Constant1'
* Referenced by: '<S1223>/Constant1'
*/
0.8F,
/* Variable: kthr_r
* Referenced by: '<S938>/gain'
* Referenced by: '<S961>/gain'
*/
1.0F,
/* Variable: lever_time
* Referenced by: '<S938>/Constant5'
* Referenced by: '<S961>/Constant5'
*/
3.0F,
/* Variable: m
* Referenced by:
* '<S434>/Constant Single4'
* '<S1199>/Constant Single'
* '<S1222>/Constant Single'
*/
71.59F,
@@ -1058,7 +1057,7 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: max_da
* Referenced by:
* '<S434>/Constant Single1'
* '<S1198>/Constant8'
* '<S1221>/Constant8'
* '<S554>/gain1'
* '<S555>/gain1'
* '<S561>/gain1'
@@ -1068,13 +1067,12 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: max_de
* Referenced by:
* '<S434>/Constant Single2'
* '<S1198>/Constant1'
* '<S1221>/Constant1'
*/
0.436300188F,
/* Variable: max_dh
* Referenced by:
* '<S886>/Constant1'
* '<S554>/gain7'
* '<S558>/gain7'
*/
@@ -1083,7 +1081,7 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: max_dr
* Referenced by:
* '<S434>/Constant Single5'
* '<S1198>/Constant2'
* '<S1221>/Constant2'
* '<S554>/gain2'
* '<S555>/gain2'
* '<S561>/gain2'
@@ -1131,7 +1129,7 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: max_steer
* Referenced by:
* '<S1198>/Constant'
* '<S1221>/Constant'
* '<S554>/gain3'
* '<S555>/gain3'
* '<S561>/gain3'
@@ -1180,13 +1178,12 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: min_de
* Referenced by:
* '<S434>/Constant Single3'
* '<S1198>/Constant5'
* '<S1221>/Constant5'
*/
-0.523560226F,
/* Variable: min_dh
* Referenced by:
* '<S886>/Constant3'
* '<S554>/gain8'
* '<S558>/gain8'
*/
@@ -1238,14 +1235,14 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: steer_pos
* Referenced by:
* '<S1347>/Constant1'
* '<S1370>/Constant1'
* '<S437>/1-D Lookup Table'
*/
{ -0.35F, 0.0F, 0.35F },
/* Variable: steer_pwm
* Referenced by:
* '<S1347>/Constant'
* '<S1370>/Constant'
* '<S437>/1-D Lookup Table'
*/
{ 1152.0F, 1500.0F, 1884.0F },
@@ -1262,7 +1259,7 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: thr_pos
* Referenced by:
* '<S1344>/Constant1'
* '<S1367>/Constant1'
* '<S438>/1-D Lookup Table1'
* '<S438>/1-D Lookup Table2'
*/
@@ -1270,7 +1267,7 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: thr_pwm
* Referenced by:
* '<S1344>/Constant'
* '<S1367>/Constant'
* '<S438>/1-D Lookup Table1'
* '<S438>/1-D Lookup Table2'
*/
@@ -1302,7 +1299,7 @@ P_cr929_SIL_T cr929_SIL_P = {
0.25F,
/* Variable: w_v2tht
* Referenced by: '<S1200>/Constant'
* Referenced by: '<S1223>/Constant'
*/
0.4F,
@@ -1351,18 +1348,18 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: system_id
* Referenced by:
* '<S3>/Constant'
* '<S1106>/system_id'
* '<S1114>/Chart_proc_mission_clr_all'
* '<S1115>/Chart'
* '<S1116>/Chart'
* '<S1117>/Chart_proc_mission_req'
* '<S1118>/Chart_proc_mission_req_lst'
* '<S1119>/Chart'
* '<S1155>/Chart'
* '<S1156>/Chart_proc_param_req_read'
* '<S1157>/Chart_proc_param_set'
* '<S1185>/system_id'
* '<S1196>/system_id'
* '<S1129>/system_id'
* '<S1137>/Chart_proc_mission_clr_all'
* '<S1138>/Chart'
* '<S1139>/Chart'
* '<S1140>/Chart_proc_mission_req'
* '<S1141>/Chart_proc_mission_req_lst'
* '<S1142>/Chart'
* '<S1178>/Chart'
* '<S1179>/Chart_proc_param_req_read'
* '<S1180>/Chart_proc_param_set'
* '<S1208>/system_id'
* '<S1219>/system_id'
*/
1U,
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'cr929_SIL'.
*
* Model version : 1.1418
* Model version : 1.1472
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Sep 15 13:57:27 2021
* C/C++ source code generated on : Thu Sep 23 14:03:51 2021
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -267,10 +267,10 @@ extern const uint8_T rtCP_pooled_mDbfc7f8L4g9;
* Referenced by: '<S330>/Constant'
*/
#define rtCP_PreLookUpIndexSearchaltitude_BreakpointsData rtCP_pooled_8RBKE3gHchpO/* Expression: h_vec
* Referenced by: '<S1538>/PreLook-Up Index Search (altitude)'
* Referenced by: '<S1562>/PreLook-Up Index Search (altitude)'
*/
#define rtCP_MediumHighAltitudeIntensity_Table rtCP_pooled_xcOBkYu90x0b/* Expression: sigma_vec'
* Referenced by: '<S1538>/Medium//High Altitude Intensity'
* Referenced by: '<S1562>/Medium//High Altitude Intensity'
*/
#define rtCP_Gain1_Gain_my rtCP_pooled_bDcwUj8yZ6yU /* Expression: [1 1 -1]
* Referenced by: '<S173>/Gain1'
@@ -1494,91 +1494,91 @@ extern const uint8_T rtCP_pooled_mDbfc7f8L4g9;
* Referenced by: '<S723>/1-D Lookup Table'
*/
#define rtCP_uDLookupTable1_tableData rtCP_pooled_HF8NWw8ahBZB /* Computed Parameter: rtCP_uDLookupTable1_tableData
* Referenced by: '<S1198>/1-D Lookup Table1'
* Referenced by: '<S1221>/1-D Lookup Table1'
*/
#define rtCP_uDLookupTable1_bp01Data rtCP_pooled_NsfoROSYwB8n /* Computed Parameter: rtCP_uDLookupTable1_bp01Data
* Referenced by: '<S1198>/1-D Lookup Table1'
* Referenced by: '<S1221>/1-D Lookup Table1'
*/
#define rtCP_uDLookupTable2_tableData rtCP_pooled_8WXHatNAaNXU /* Computed Parameter: rtCP_uDLookupTable2_tableData
* Referenced by: '<S1198>/1-D Lookup Table2'
* Referenced by: '<S1221>/1-D Lookup Table2'
*/
#define rtCP_uDLookupTable2_bp01Data rtCP_pooled_3U8YQv20XtcC /* Computed Parameter: rtCP_uDLookupTable2_bp01Data
* Referenced by: '<S1198>/1-D Lookup Table2'
* Referenced by: '<S1221>/1-D Lookup Table2'
*/
#define rtCP_uDLookupTable4_tableData rtCP_pooled_0BwgFckvyiIM /* Computed Parameter: rtCP_uDLookupTable4_tableData
* Referenced by: '<S1198>/1-D Lookup Table4'
* Referenced by: '<S1221>/1-D Lookup Table4'
*/
#define rtCP_uDLookupTable4_bp01Data rtCP_pooled_vpZBO0efDb68 /* Computed Parameter: rtCP_uDLookupTable4_bp01Data
* Referenced by: '<S1198>/1-D Lookup Table4'
* Referenced by: '<S1221>/1-D Lookup Table4'
*/
#define rtCP_uDLookupTable3_tableData rtCP_pooled_1VJA2wyEDXXd /* Computed Parameter: rtCP_uDLookupTable3_tableData
* Referenced by: '<S1198>/1-D Lookup Table3'
* Referenced by: '<S1221>/1-D Lookup Table3'
*/
#define rtCP_uDLookupTable3_bp01Data rtCP_pooled_0WDnDJ93CH0Q /* Computed Parameter: rtCP_uDLookupTable3_bp01Data
* Referenced by: '<S1198>/1-D Lookup Table3'
* Referenced by: '<S1221>/1-D Lookup Table3'
*/
#define rtCP_Constant_Value_pl rtCP_pooled_uQzioJKpBuGn /* Expression: flip(dhl_pwm)
* Referenced by: '<S1345>/Constant'
* Referenced by: '<S1368>/Constant'
*/
#define rtCP_Constant1_Value_ke rtCP_pooled_cQRpYPC1d9LW /* Expression: flip(dhl_pos)
* Referenced by: '<S1345>/Constant1'
* Referenced by: '<S1368>/Constant1'
*/
#define rtCP_Constant_Value_gw rtCP_pooled_QqOr8pTdIETk /* Expression: flip(dspro5_pwm)
* Referenced by: '<S1387>/Constant'
* Referenced by: '<S1410>/Constant'
*/
#define rtCP_Constant1_Value_ft rtCP_pooled_lWipTZTk5imh /* Expression: flip(dspro5_pos)
* Referenced by: '<S1387>/Constant1'
* Referenced by: '<S1410>/Constant1'
*/
#define rtCP_Constant_Value_gwr rtCP_pooled_odlPVtDdc1Zc /* Expression: flip(dspro2_pwm)
* Referenced by: '<S1384>/Constant'
* Referenced by: '<S1407>/Constant'
*/
#define rtCP_Constant1_Value_jx rtCP_pooled_lWipTZTk5imh /* Expression: flip(dspro2_pos)
* Referenced by: '<S1384>/Constant1'
* Referenced by: '<S1407>/Constant1'
*/
#define rtCP_Constant_Value_dpr rtCP_pooled_lgnnsb0kAIGf /* Expression: flip(dspri1_pwm)
* Referenced by: '<S1395>/Constant'
* Referenced by: '<S1418>/Constant'
*/
#define rtCP_Constant1_Value_k5 rtCP_pooled_zcCKt7BEliXd /* Expression: flip(dspri1_pos)
* Referenced by: '<S1395>/Constant1'
* Referenced by: '<S1418>/Constant1'
*/
#define rtCP_Constant_Value_ek rtCP_pooled_sXWHQbTDsax0 /* Expression: flip(dspli2_pwm)
* Referenced by: '<S1393>/Constant'
* Referenced by: '<S1416>/Constant'
*/
#define rtCP_Constant1_Value_n0 rtCP_pooled_zcCKt7BEliXd /* Expression: flip(dspli2_pos)
* Referenced by: '<S1393>/Constant1'
* Referenced by: '<S1416>/Constant1'
*/
#define rtCP_Constant_Value_hy rtCP_pooled_wAKIQseXUyIW /* Expression: flip(dspli3_pwm)
* Referenced by: '<S1392>/Constant'
* Referenced by: '<S1415>/Constant'
*/
#define rtCP_Constant1_Value_in rtCP_pooled_zcCKt7BEliXd /* Expression: flip(dspli3_pos)
* Referenced by: '<S1392>/Constant1'
* Referenced by: '<S1415>/Constant1'
*/
#define rtCP_Constant_Value_gc rtCP_pooled_CxhvPUIWvzTv /* Expression: flip(dsplo1_pwm)
* Referenced by: '<S1391>/Constant'
* Referenced by: '<S1414>/Constant'
*/
#define rtCP_Constant1_Value_e3 rtCP_pooled_lWipTZTk5imh /* Expression: flip(dsplo1_pos)
* Referenced by: '<S1391>/Constant1'
* Referenced by: '<S1414>/Constant1'
*/
#define rtCP_Constant_Value_aq rtCP_pooled_2XTNfxxllKmQ /* Expression: flip(dsplo3_pwm)
* Referenced by: '<S1388>/Constant'
* Referenced by: '<S1411>/Constant'
*/
#define rtCP_Constant1_Value_i5 rtCP_pooled_lWipTZTk5imh /* Expression: flip(dsplo3_pos)
* Referenced by: '<S1388>/Constant1'
* Referenced by: '<S1411>/Constant1'
*/
#define rtCP_Constant_Value_le0 rtCP_pooled_eU0yzXhoTZXt /* Expression: flip(dsplo4_pwm)
* Referenced by: '<S1380>/Constant'
* Referenced by: '<S1403>/Constant'
*/
#define rtCP_Constant1_Value_mt rtCP_pooled_lWipTZTk5imh /* Expression: flip(dsplo4_pos)
* Referenced by: '<S1380>/Constant1'
* Referenced by: '<S1403>/Constant1'
*/
#define rtCP_Constant_Value_pf rtCP_pooled_j6BLsTdMk7qD /* Expression: flip(dru_pwm)
* Referenced by: '<S1352>/Constant'
* Referenced by: '<S1375>/Constant'
*/
#define rtCP_Constant1_Value_bh rtCP_pooled_yWVMTaHackMS /* Expression: flip(dru_pos)
* Referenced by: '<S1352>/Constant1'
* Referenced by: '<S1375>/Constant1'
*/
#define rtCP_MediumHighAltitudeIntensity_maxIndex rtCP_pooled_BWTVQM0GuqkK/* Computed Parameter: rtCP_MediumHighAltitudeIntensity_maxIndex
* Referenced by: '<S1538>/Medium//High Altitude Intensity'
* Referenced by: '<S1562>/Medium//High Altitude Intensity'
*/
#define rtCP_table2D_CL_lat_maxIndex rtCP_pooled_52mPzBGwtz3T /* Computed Parameter: rtCP_table2D_CL_lat_maxIndex
* Referenced by: '<S57>/table2D_CL_lat'
@@ -1947,7 +1947,7 @@ extern const uint8_T rtCP_pooled_mDbfc7f8L4g9;
* Referenced by: '<S2>/Constant'
*/
#define rtCP_mav_parser_P1 rtCP_pooled_e6HU8n7YauPz /* Expression: Channel
* Referenced by: '<S1102>/mav_parser'
* Referenced by: '<S1125>/mav_parser'
*/
#define rtCP_ConstantBP_Value_ce rtCP_pooled_mhMab4fllVU3 /* Computed Parameter: rtCP_ConstantBP_Value_ce
* Referenced by: '<S3>/Constant BP'
@@ -1956,70 +1956,70 @@ extern const uint8_T rtCP_pooled_mDbfc7f8L4g9;
* Referenced by: '<S3>/Constant BP1'
*/
#define rtCP_SFunction_P1 rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1466>/S-Function'
* Referenced by: '<S1489>/S-Function'
*/
#define rtCP_SFunction_P1_a rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1469>/S-Function'
* Referenced by: '<S1492>/S-Function'
*/
#define rtCP_SFunction_P1_h rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1454>/S-Function'
* Referenced by: '<S1477>/S-Function'
*/
#define rtCP_SFunction_P1_i rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1445>/S-Function'
* Referenced by: '<S1468>/S-Function'
*/
#define rtCP_SFunction_P1_j rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1451>/S-Function'
* Referenced by: '<S1474>/S-Function'
*/
#define rtCP_SFunction_P1_b rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1448>/S-Function'
* Referenced by: '<S1471>/S-Function'
*/
#define rtCP_SFunction_P1_bz rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1506>/S-Function'
* Referenced by: '<S1530>/S-Function'
*/
#define rtCP_SFunction_P1_n rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1478>/S-Function'
* Referenced by: '<S1501>/S-Function'
*/
#define rtCP_SFunction_P1_an rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1481>/S-Function'
* Referenced by: '<S1504>/S-Function'
*/
#define rtCP_SFunction_P1_f rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1484>/S-Function'
* Referenced by: '<S1507>/S-Function'
*/
#define rtCP_SFunction_P1_al rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1487>/S-Function'
* Referenced by: '<S1510>/S-Function'
*/
#define rtCP_Constant_Value_fz rtCP_pooled_mhMab4fllVU3 /* Computed Parameter: rtCP_Constant_Value_fz
* Referenced by: '<S1436>/Constant'
* Referenced by: '<S1459>/Constant'
*/
#define rtCP_SFunction_P1_jo rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1491>/S-Function'
* Referenced by: '<S1514>/S-Function'
*/
#define rtCP_SFunction_P1_d rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1472>/S-Function'
* Referenced by: '<S1495>/S-Function'
*/
#define rtCP_SFunction_P1_bs rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1475>/S-Function'
* Referenced by: '<S1498>/S-Function'
*/
#define rtCP_SFunction_P1_as rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1463>/S-Function'
* Referenced by: '<S1486>/S-Function'
*/
#define rtCP_SFunction_P1_g rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1460>/S-Function'
* Referenced by: '<S1483>/S-Function'
*/
#define rtCP_SFunction_P1_a1 rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1457>/S-Function'
* Referenced by: '<S1480>/S-Function'
*/
#define rtCP_SFunction_P1_m rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1494>/S-Function'
* Referenced by: '<S1517>/S-Function'
*/
#define rtCP_SFunction_P1_p rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1497>/S-Function'
* Referenced by: '<S1521>/S-Function'
*/
#define rtCP_SFunction_P1_i1 rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1500>/S-Function'
* Referenced by: '<S1524>/S-Function'
*/
#define rtCP_SFunction_P1_d4 rtCP_pooled_mDbfc7f8L4g9 /* Expression: uart_id
* Referenced by: '<S1503>/S-Function'
* Referenced by: '<S1527>/S-Function'
*/
#ifdef __cplusplus
@@ -2962,14 +2962,6 @@ extern Msg_CommandMsg *cr929_SIL_proc_cmd_In2_RecvMsg(void);
extern void cr929_SIL_freeMemPool(MemPool_CommandMsg *memPool, CommandMsg
*dataPtr);
extern void cr929_SIL_destroyMsg(const Msg_CommandMsg *msg);
extern int32_T cr929_SIL_pop(Queue_uint16 *q, Msg_uint16 *elementOut);
extern Msg_uint16 *cr929_SIL_proc_set_cur_RecvMsg(void);
extern int32_T cr929_SIL_emplace_n2(Queue_CommandAck *q, const CommandAck
*dataIn);
extern int32_T cr929_SIL_Chart_send_ack_SendData(const CommandAck *data_toSend);
extern CommandMsg *cr929_SIL_allocMemPool(MemPool_CommandMsg *memPool);
extern int32_T cr929_SIL_emplace_n(Queue_CommandMsg *q, const CommandMsg *dataIn);
extern int32_T cr929_SIL_proc_cmd_In2_SendData(const CommandMsg *data_toSend);
extern int32_T cr929_SIL_pop_c02u1i(Queue_mavlink_mission_item_int_t *q,
Msg_mavlink_mission_item_int_t *elementOut);
extern Msg_mavlink_mission_item_int_t
@@ -2989,6 +2981,14 @@ extern Msg_mavlink_mission_count_t
extern void cr929_SIL_freeMemPool_bvx(MemPool_mavlink_mission_item_int_t
*memPool, mavlink_mission_item_int_t *dataPtr);
extern void cr929_SIL_destroyMsg_ecw(const Msg_mavlink_mission_item_int_t *msg);
extern int32_T cr929_SIL_pop(Queue_uint16 *q, Msg_uint16 *elementOut);
extern Msg_uint16 *cr929_SIL_proc_set_cur_RecvMsg(void);
extern int32_T cr929_SIL_emplace_n2(Queue_CommandAck *q, const CommandAck
*dataIn);
extern int32_T cr929_SIL_Chart_send_ack_SendData(const CommandAck *data_toSend);
extern CommandMsg *cr929_SIL_allocMemPool(MemPool_CommandMsg *memPool);
extern int32_T cr929_SIL_emplace_n(Queue_CommandMsg *q, const CommandMsg *dataIn);
extern int32_T cr929_SIL_proc_cmd_In2_SendData(const CommandMsg *data_toSend);
extern int32_T cr929_SIL_pop_c02u1irtbrb(Queue_mavlink_message_t *q,
Msg_mavlink_message_t *elementOut);
extern Msg_mavlink_message_t *cr929_SIL_proc_queue_RecvMsg(void);
@@ -3108,12 +3108,12 @@ extern int32_T cr929_SIL_proc_queue_SendData(const mavlink_message_t
*data_toSend);
extern void cr929_SIL_initQueue_k0qncuyo4n2(Queue_mavlink_message_t *q,
QueuePolicy_T policy, int32_T capacity, Msg_mavlink_message_t *qPool);
extern void cr929_SIL_initQueue_k0qnc(Queue_mavlink_mission_count_t *q,
QueuePolicy_T policy, int32_T capacity, Msg_mavlink_mission_count_t *qPool);
extern void cr929_SIL_initQueue_k0qncu(Queue_mavlink_mission_item_int_t *q,
QueuePolicy_T policy, int32_T capacity, Msg_mavlink_mission_item_int_t *qPool);
extern void cr929_SIL_initQueue(Queue_uint16 *q, QueuePolicy_T policy, int32_T
capacity, Msg_uint16 *qPool);
extern void cr929_SIL_initQueue_k0qncu(Queue_mavlink_mission_item_int_t *q,
QueuePolicy_T policy, int32_T capacity, Msg_mavlink_mission_item_int_t *qPool);
extern void cr929_SIL_initQueue_k0qnc(Queue_mavlink_mission_count_t *q,
QueuePolicy_T policy, int32_T capacity, Msg_mavlink_mission_count_t *qPool);
extern void cr929_SIL_initQueue_k(Queue_CommandMsg *q, QueuePolicy_T policy,
int32_T capacity, Msg_CommandMsg *qPool);
extern void cr929_SIL_initQueue_k0(Queue_CommandAck *q, QueuePolicy_T policy,
@@ -3148,23 +3148,23 @@ extern int32_T cr929_SIL_push_bdbzo4tvrju(Queue_mavlink_message_t *q, const
extern int32_T cr929_SIL_proc_queue_SendMsg(const Msg_mavlink_message_t
*msg_toSend);
extern int32_T cr929_SIL_proc_queue_RecvData(mavlink_message_t *data_received);
extern int32_T cr929_SIL_push_bdbzo(Queue_mavlink_mission_count_t *q, const
Msg_mavlink_mission_count_t *element);
extern int32_T cr929_SIL_Chart_proc_mission_upload_In1_SendMsg(const
Msg_mavlink_mission_count_t *msg_toSend);
extern int32_T cr929_SIL_Chart_proc_mission_upload_In1_RecvData
(mavlink_mission_count_t *data_received);
extern int32_T cr929_SIL_push(Queue_uint16 *q, const Msg_uint16 *element);
extern int32_T cr929_SIL_req_cur_In1_SendMsg(const Msg_uint16 *msg_toSend);
extern int32_T cr929_SIL_req_cur_In1_RecvData(uint16_T *data_received);
extern int32_T cr929_SIL_proc_set_cur_SendMsg(const Msg_uint16 *msg_toSend);
extern int32_T cr929_SIL_proc_set_cur_RecvData(uint16_T *data_received);
extern int32_T cr929_SIL_push_bdbzo4(Queue_mavlink_mission_item_int_t *q, const
Msg_mavlink_mission_item_int_t *element);
extern int32_T cr929_SIL_Chart_proc_mission_upload_In2_SendMsg(const
Msg_mavlink_mission_item_int_t *msg_toSend);
extern int32_T cr929_SIL_Chart_proc_mission_upload_In2_RecvData
(mavlink_mission_item_int_t *data_received);
extern int32_T cr929_SIL_push(Queue_uint16 *q, const Msg_uint16 *element);
extern int32_T cr929_SIL_req_cur_In1_SendMsg(const Msg_uint16 *msg_toSend);
extern int32_T cr929_SIL_req_cur_In1_RecvData(uint16_T *data_received);
extern int32_T cr929_SIL_proc_set_cur_SendMsg(const Msg_uint16 *msg_toSend);
extern int32_T cr929_SIL_proc_set_cur_RecvData(uint16_T *data_received);
extern int32_T cr929_SIL_push_bdbzo(Queue_mavlink_mission_count_t *q, const
Msg_mavlink_mission_count_t *element);
extern int32_T cr929_SIL_Chart_proc_mission_upload_In1_SendMsg(const
Msg_mavlink_mission_count_t *msg_toSend);
extern int32_T cr929_SIL_Chart_proc_mission_upload_In1_RecvData
(mavlink_mission_count_t *data_received);
extern int32_T cr929_SIL_push_b(Queue_CommandMsg *q, const Msg_CommandMsg
*element);
extern int32_T cr929_SIL_proc_cmd_In2_SendMsg(const Msg_CommandMsg *msg_toSend);
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'cr929_SIL'.
*
* Model version : 1.1418
* Model version : 1.1472
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Sep 15 13:57:27 2021
* C/C++ source code generated on : Thu Sep 23 14:03:51 2021
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -428,6 +428,43 @@ typedef enum {
#endif
#ifndef DEFINED_TYPEDEF_FOR_CmdOut_
#define DEFINED_TYPEDEF_FOR_CmdOut_
typedef struct {
/* 左副翼 */
real32_T dal_c;
/* 右副翼 */
real32_T dar_c;
/* 左升降舵 */
real32_T del_c;
/* 右升降舵 */
real32_T der_c;
/* 方向舵舵 */
real32_T dr_c;
/* 中央翼左侧扰流板 */
real32_T dspli_c[3];
/* 中央翼右侧扰流板 */
real32_T dspri_c[3];
/* 左外翼扰流板 */
real32_T dsplo_c[5];
/* 右外翼扰流板 */
real32_T dspro_c[5];
/* 平尾指令 */
real32_T dh_c;
} CmdOut;
#endif
#ifndef DEFINED_TYPEDEF_FOR_C2_
#define DEFINED_TYPEDEF_FOR_C2_
@@ -800,6 +837,9 @@ typedef struct {
/* 高度指令 */
real32_T comac_ALT_CMD;
/* 指令输出 */
CmdOut Cmd;
} C2;
#endif
@@ -872,43 +912,6 @@ typedef enum {
#endif
#ifndef DEFINED_TYPEDEF_FOR_CmdOut_
#define DEFINED_TYPEDEF_FOR_CmdOut_
typedef struct {
/* 左副翼 */
real32_T dal_c;
/* 右副翼 */
real32_T dar_c;
/* 左升降舵 */
real32_T del_c;
/* 右升降舵 */
real32_T der_c;
/* 方向舵舵 */
real32_T dr_c;
/* 中央翼左侧扰流板 */
real32_T dspli_c[3];
/* 中央翼右侧扰流板 */
real32_T dspri_c[3];
/* 左外翼扰流板 */
real32_T dsplo_c[5];
/* 右外翼扰流板 */
real32_T dspro_c[5];
/* 平尾指令 */
real32_T dh_c;
} CmdOut;
#endif
#ifndef DEFINED_TYPEDEF_FOR_Sensors_
#define DEFINED_TYPEDEF_FOR_Sensors_
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'cr929_SIL'.
*
* Model version : 1.1418
* Model version : 1.1472
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Sep 15 13:57:27 2021
* C/C++ source code generated on : Thu Sep 23 14:03:51 2021
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)