update gencode

This commit is contained in:
LyuWeiye
2022-05-10 22:09:01 +08:00
parent bf993f2000
commit 1ce6c24f29
92 changed files with 187 additions and 212 deletions
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'cr929_SIL'.
*
* Model version : 1.1911
* Model version : 1.1912
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sat May 7 10:06:52 2022
* C/C++ source code generated on : Tue May 10 17:28:10 2022
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -1124,13 +1124,6 @@ static void cr929_SIL_dfro_max(void);
static void cr929_SIL_dh_max(void);
static void cr929_SIL_dh_min(void);
static void cr929_SIL_dr_max(void);
static void cr929_SIL_dr_min(void);
static void cr929_SIL_dspl1_0(void);
static void cr929_SIL_dspl1_02(void);
static void cr929_SIL_dspl1_03(void);
static void cr929_SIL_dspl1_04(void);
static void cr929_SIL_dspl2_0(void);
static void cr929_SIL_dspl2_01(void);
static void cr929_SIL_idel(void);
static uint8_T cr929_SIL_update_l(uint8_T in);
static uint8_T cr929_SIL_update_lock(uint8_T in);
@@ -5293,90 +5286,6 @@ static void cr929_SIL_dr_max(void)
}
}
/* Function for Chart: '<S745>/Chart' */
static void cr929_SIL_dr_min(void)
{
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_idel;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_enter_atomic_idel();
} else {
cr929_SIL_B.dr_c = -0.523560226F;
}
}
/* Function for Chart: '<S745>/Chart' */
static void cr929_SIL_dspl1_0(void)
{
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_dspl1_02;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_B.dspl1_c = -0.523560226F;
} else {
cr929_SIL_B.dspl1_c = 0.0F;
}
}
/* Function for Chart: '<S745>/Chart' */
static void cr929_SIL_dspl1_02(void)
{
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_idel;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_enter_atomic_idel();
} else {
cr929_SIL_B.dspl1_c = -0.523560226F;
}
}
/* Function for Chart: '<S745>/Chart' */
static void cr929_SIL_dspl1_03(void)
{
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_idel;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_enter_atomic_idel();
} else {
cr929_SIL_B.dspr1_c = -0.523560226F;
}
}
/* Function for Chart: '<S745>/Chart' */
static void cr929_SIL_dspl1_04(void)
{
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_dspl1_03;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_B.dspr1_c = -0.523560226F;
} else {
cr929_SIL_B.dspl1_c = 0.0F;
}
}
/* Function for Chart: '<S745>/Chart' */
static void cr929_SIL_dspl2_0(void)
{
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_dspl2_01;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_B.dspl2_c = -0.523560226F;
} else {
cr929_SIL_B.dspl2_c = 0.0F;
}
}
/* Function for Chart: '<S745>/Chart' */
static void cr929_SIL_dspl2_01(void)
{
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_idel;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_enter_atomic_idel();
} else {
cr929_SIL_B.dspl2_c = -0.523560226F;
}
}
/* Function for Chart: '<S745>/Chart' */
static void cr929_SIL_idel(void)
{
@@ -15364,6 +15273,14 @@ void cr929_SIL_step(void)
/* Delay: '<Root>/Delay' */
rtb_Delay_dq_0 = &cr929_SIL_DW.Delay_DSTATE_if[0];
/* SignalConversion: '<S2>/sens_BusSelector' */
cr929_SIL_B.SigConversion_InsertedFor_sens_BusSelector_BusSelector1_at_outp
= rtb_DataStoreRead.ax;
cr929_SIL_B.SigConversion_InsertedFor_sens_BusSelector_BusSelector1_at_ou_j
= rtb_DataStoreRead.ay;
cr929_SIL_B.SigConversion_InsertedFor_sens_BusSelector_BusSelector1_at_ou_a
= rtb_DataStoreRead.az;
/* UnitDelay: '<S387>/Unit Delay' */
cr929_SIL_B.UnitDelay_m = cr929_SIL_DW.UnitDelay_DSTATE_hm;
@@ -18166,7 +18083,11 @@ void cr929_SIL_step(void)
break;
case cr929_SIL_IN_dfro_0:
cr929_SIL_dflo_0();
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_idel2;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_enter_atomic_idel2();
}
break;
case cr929_SIL_IN_dfro_max:
@@ -18186,31 +18107,73 @@ void cr929_SIL_step(void)
break;
case cr929_SIL_IN_dr_min:
cr929_SIL_dr_min();
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_idel;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_enter_atomic_idel();
} else {
cr929_SIL_B.dr_c = -0.523560226F;
}
break;
case cr929_SIL_IN_dspl1_0:
cr929_SIL_dspl1_0();
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_dspl1_02;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_B.dspl1_c = -0.523560226F;
} else {
cr929_SIL_B.dspl1_c = 0.0F;
}
break;
case cr929_SIL_IN_dspl1_02:
cr929_SIL_dspl1_02();
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_idel;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_enter_atomic_idel();
} else {
cr929_SIL_B.dspl1_c = -0.523560226F;
}
break;
case cr929_SIL_IN_dspl1_03:
cr929_SIL_dspl1_03();
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_idel;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_enter_atomic_idel();
} else {
cr929_SIL_B.dspr1_c = -0.523560226F;
}
break;
case cr929_SIL_IN_dspl1_04:
cr929_SIL_dspl1_04();
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_dspl1_03;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_B.dspr1_c = -0.523560226F;
} else {
cr929_SIL_B.dspl1_c = 0.0F;
}
break;
case cr929_SIL_IN_dspl2_0:
cr929_SIL_dspl2_0();
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_dspl2_01;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_B.dspl2_c = -0.523560226F;
} else {
cr929_SIL_B.dspl2_c = 0.0F;
}
break;
case cr929_SIL_IN_dspl2_01:
cr929_SIL_dspl2_01();
if (cr929_SIL_DW.temporalCounter_i1_dd >= 980U) {
cr929_SIL_DW.is_c48_cr929_autopilot = cr929_SIL_IN_idel;
cr929_SIL_DW.temporalCounter_i1_dd = 0U;
cr929_SIL_enter_atomic_idel();
} else {
cr929_SIL_B.dspl2_c = -0.523560226F;
}
break;
case cr929_SIL_IN_dspl2_02:
@@ -36674,9 +36637,12 @@ void cr929_SIL_step(void)
cr929_SIL_B.BusAssignment_o.gx = 57.2957802F * cr929_SIL_B.pqr_i[0];
cr929_SIL_B.BusAssignment_o.gy = 57.2957802F * cr929_SIL_B.pqr_i[1];
cr929_SIL_B.BusAssignment_o.gz = 57.2957802F * cr929_SIL_B.pqr_i[2];
cr929_SIL_B.BusAssignment_o.ax = cr929_SIL_B.Accels_f[0];
cr929_SIL_B.BusAssignment_o.ay = cr929_SIL_B.Accels_f[1];
cr929_SIL_B.BusAssignment_o.az = cr929_SIL_B.Accels_f[2];
cr929_SIL_B.BusAssignment_o.ax =
cr929_SIL_B.SigConversion_InsertedFor_sens_BusSelector_BusSelector1_at_outp;
cr929_SIL_B.BusAssignment_o.ay =
cr929_SIL_B.SigConversion_InsertedFor_sens_BusSelector_BusSelector1_at_ou_j;
cr929_SIL_B.BusAssignment_o.az =
cr929_SIL_B.SigConversion_InsertedFor_sens_BusSelector_BusSelector1_at_ou_a;
cr929_SIL_B.BusAssignment_o.time = (((8 + cr929_SIL_B.hour_c) *
10000 + 1000000 * cr929_SIL_B.day_m) + 100 * cr929_SIL_B.min_f) +
cr929_SIL_B.sec_a;
@@ -43054,6 +43020,12 @@ void cr929_SIL_step(void)
cr929_SIL_B.Merge.boot_time;
cr929_SIL_B.TmpSignalConversionAtBytePackInport1_h4d5w2eaxk5[1] =
cr929_SIL_B.time_stamp_ac;
cr929_SIL_B.Accels_c[0] =
cr929_SIL_B.SigConversion_InsertedFor_sens_BusSelector_BusSelector1_at_outp;
cr929_SIL_B.Accels_c[1] =
cr929_SIL_B.SigConversion_InsertedFor_sens_BusSelector_BusSelector1_at_ou_j;
cr929_SIL_B.Accels_c[2] =
cr929_SIL_B.SigConversion_InsertedFor_sens_BusSelector_BusSelector1_at_ou_a;
/* Pack: <S1649>/Byte Pack */
(void) memcpy(&cr929_SIL_B.BytePack_jw[0],
@@ -43067,7 +43039,7 @@ void cr929_SIL_step(void)
&cr929_SIL_B.euler_var_m[0],
12);
(void) memcpy(&cr929_SIL_B.BytePack_jw[32],
&cr929_SIL_B.Accels_f[0],
&cr929_SIL_B.Accels_c[0],
12);
(void) memcpy(&cr929_SIL_B.BytePack_jw[44], &cr929_SIL_B.pqr_i[0],
12);
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'cr929_SIL'.
*
* Model version : 1.1911
* Model version : 1.1912
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sat May 7 10:06:52 2022
* C/C++ source code generated on : Tue May 10 17:28:10 2022
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -1107,6 +1107,9 @@ typedef struct {
uint32_T euler_seq_j; /* '<S408>/Unit Delay' */
uint32_T OutportBuffer_InsertedFor_gps_vel_status_at_inport_0;/* '<S1486>/Constant' */
uint32_T OutportBuffer_InsertedFor_gps_pos_status_at_inport_0;/* '<S1469>/Constant' */
real32_T SigConversion_InsertedFor_sens_BusSelector_BusSelector1_at_outp;/* '<S2>/sens_BusSelector' */
real32_T SigConversion_InsertedFor_sens_BusSelector_BusSelector1_at_ou_j;/* '<S2>/sens_BusSelector' */
real32_T SigConversion_InsertedFor_sens_BusSelector_BusSelector1_at_ou_a;/* '<S2>/sens_BusSelector' */
real32_T TmpSignalConversionAtBytePackInport2_eeg[20];
real32_T TmpSignalConversionAtBytePackInport3_o[36];
real32_T TmpSignalConversionAtBytePackInport4[14];
@@ -1118,6 +1121,7 @@ typedef struct {
real32_T TmpSignalConversionAtBytePackInport4_f0[2];
real32_T TmpSignalConversionAtBytePackInport5_g[3];
real32_T TmpSignalConversionAtBytePackInport6[16];
real32_T Accels_c[3];
real32_T Gain1_jf; /* '<S1383>/Gain1' */
real32_T accel[3]; /* '<S1388>/Product3' */
real32_T Gain1_o2[3]; /* '<S1397>/Gain1' */
@@ -1285,7 +1289,6 @@ typedef struct {
real32_T LLA_var_a[3]; /* '<S414>/Byte Unpack' */
real32_T eulers_f[3]; /* '<S408>/Byte Unpack' */
real32_T euler_var_m[3]; /* '<S408>/Byte Unpack' */
real32_T Accels_f[3]; /* '<S413>/Byte Unpack' */
real32_T pqr_i[3]; /* '<S413>/Byte Unpack' */
real32_T imu_temp_j; /* '<S413>/Byte Unpack' */
int32_T ErrCode; /* '<S1726>/S-Function' */
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'cr929_SIL'.
*
* Model version : 1.1911
* Model version : 1.1912
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sat May 7 10:06:52 2022
* C/C++ source code generated on : Tue May 10 17:28:10 2022
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -927,10 +927,10 @@ static rtwCAPI_ModelMappingStaticInfo mmiStatic = {
rtElementMap, rtSampleTimeMap, rtDimensionArray },
"float",
{ 1579959220U,
123399271U,
4101725913U,
3184985872U },
{ 2411001329U,
1944068532U,
4190652559U,
1446059270U },
(NULL), 0,
0
};
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'cr929_SIL'.
*
* Model version : 1.1911
* Model version : 1.1912
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sat May 7 10:06:52 2022
* C/C++ source code generated on : Tue May 10 17:28:10 2022
*
* 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.1911
* Model version : 1.1912
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sat May 7 10:06:52 2022
* C/C++ source code generated on : Tue May 10 17:28:10 2022
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -1039,7 +1039,7 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: mg_max_alp_f0
* Referenced by: '<S1318>/Constant Single8'
*/
9.0F,
20.0F,
/* Variable: mg_max_alp_f3
* Referenced by: '<S1319>/Constant Single8'
@@ -1049,7 +1049,7 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: mg_max_as_f0
* Referenced by: '<S1318>/Constant Single6'
*/
50.0F,
70.0F,
/* Variable: mg_max_as_f3
* Referenced by: '<S1319>/Constant Single6'
@@ -1089,7 +1089,7 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: mg_max_tht_f0
* Referenced by: '<S1318>/Constant Single1'
*/
20.0F,
60.0F,
/* Variable: mg_max_tht_f3
* Referenced by: '<S1319>/Constant Single1'
@@ -1134,7 +1134,7 @@ P_cr929_SIL_T cr929_SIL_P = {
/* Variable: mg_tht_recovery
* Referenced by: '<S569>/Constant'
*/
40.0F,
90.0F,
/* Variable: min_AS_f0
* Referenced by: '<S1322>/Constant'
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'cr929_SIL'.
*
* Model version : 1.1911
* Model version : 1.1912
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sat May 7 10:06:52 2022
* C/C++ source code generated on : Tue May 10 17:28:10 2022
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@@ -16,10 +16,10 @@
#ifndef RTW_HEADER_cr929_SIL_private_h_
#define RTW_HEADER_cr929_SIL_private_h_
void save_mission(char typ);
void get_sbg_crc16(const unsigned char *u0,
unsigned short *y0,
unsigned short u_width);
void save_mission(char typ);
#include "rtwtypes.h"
#include "builtin_typeid_types.h"
@@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'cr929_SIL'.
*
* Model version : 1.1911
* Model version : 1.1912
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sat May 7 10:06:52 2022
* C/C++ source code generated on : Tue May 10 17:28:10 2022
*
* 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.1911
* Model version : 1.1912
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Sat May 7 10:06:52 2022
* C/C++ source code generated on : Tue May 10 17:28:10 2022
*
* Target selection: ert_shrlib.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)