Files
sil/cr929_SIL/otherFiles/cr929_FlightControlLaw_wrapper.c
T

56 lines
1.2 KiB
C
Raw Normal View History

2020-12-27 11:24:31 +08:00
/*
* Include Files
*
*/
#if defined(MATLAB_MEX_FILE)
#include "tmwtypes.h"
#include "simstruc_types.h"
#else
#include "rtwtypes.h"
#endif
2021-07-05 13:13:56 +08:00
#include "FlightControlLaw.h"
#include "FlightControlLaw_types.h"
2020-12-27 11:24:31 +08:00
/* %%%-SFUNWIZ_wrapper_includes_Changes_BEGIN --- EDIT HERE TO _END */
2021-07-05 13:13:56 +08:00
#include "FlightControlLaw.h"
2020-12-27 11:24:31 +08:00
/* %%%-SFUNWIZ_wrapper_includes_Changes_END --- EDIT HERE TO _BEGIN */
#define u_width 1
#define y_width 1
/*
* Create external references here.
*
*/
/* %%%-SFUNWIZ_wrapper_externs_Changes_BEGIN --- EDIT HERE TO _END */
/* extern double func(double a); */
/* %%%-SFUNWIZ_wrapper_externs_Changes_END --- EDIT HERE TO _BEGIN */
2021-07-05 13:13:56 +08:00
/*
* Start function
*
*/
void cr929_FlightControlLaw_Start_wrapper(void)
{
/* %%%-SFUNWIZ_wrapper_Start_Changes_BEGIN --- EDIT HERE TO _END */
FlightControlLaw_initialize();
/* %%%-SFUNWIZ_wrapper_Start_Changes_END --- EDIT HERE TO _BEGIN */
}
2020-12-27 11:24:31 +08:00
/*
* Output function
*
*/
2021-07-05 13:13:56 +08:00
void cr929_FlightControlLaw_Outputs_wrapper(const ExtU_FlightControlLaw_T *Input,
ExtY_FlightControlLaw_T *Output)
2020-12-27 11:24:31 +08:00
{
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_BEGIN --- EDIT HERE TO _END */
2021-07-05 13:13:56 +08:00
FlightControlLaw_U = Input[0];
FlightControlLaw_step();
Output[0] = FlightControlLaw_Y;
2020-12-27 11:24:31 +08:00
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_END --- EDIT HERE TO _BEGIN */
}