Files
sil/SIL/otherFiles/turbine_state_enc_wrapper.c
T
2020-10-07 02:01:42 +08:00

51 lines
1.4 KiB
C

/*
* Include Files
*
*/
#if defined(MATLAB_MEX_FILE)
#include "tmwtypes.h"
#include "simstruc_types.h"
#else
#include "rtwtypes.h"
#endif
#include "ecu.h"
#include "mav_stat_def.h"
/* %%%-SFUNWIZ_wrapper_includes_Changes_BEGIN --- EDIT HERE TO _END */
/* %%%-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 */
/*
* Output function
*
*/
void turbine_state_enc_Outputs_wrapper(const ECU2AP *u0,
const uint8_T *sys_id,
const uint8_T *comp_id,
const uint8_T *chan,
const uint32_T *boot_time,
mavlink_message_t *y0)
{
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_BEGIN --- EDIT HERE TO _END */
mavlink_msg_turbinestate_pack_chan(sys_id[0], comp_id[0], chan[0],
y0,
boot_time[0],
u0->RPM_mea, u0->T5, u0->Kfuel, u0->RPM_des, u0->RPM_des_ap, u0->stage_ap, u0->temp_ap, u0->tas_ap, u0->asl_ap, u0->KabMain, u0->KabFire, u0->KDj, u0->T1t, u0->P1t, u0->P3t, u0->P5t, u0->DJS, u0->Vcc, u0->Tbak, u0->RPM_bak, u0->IOState, u0->SysState, u0->Fault, u0->rev, u0->CFuelMode, u0->Cmd);
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_END --- EDIT HERE TO _BEGIN */
}