Compare commits
26
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
389bd1a2dd | ||
|
|
f120b6e915 | ||
|
|
c76dd4e64d | ||
|
|
00928750e0 | ||
|
|
a28d57ffba | ||
|
|
b02d4d05f4 | ||
|
|
0e14ba6a37 | ||
|
|
0b345185f2 | ||
|
|
e61829e042 | ||
|
|
4133b5a39d | ||
|
|
08a25154a5 | ||
|
|
6fcc618980 | ||
|
|
feccaeca10 | ||
|
|
c8c8a7f8a5 | ||
|
|
7b40684838 | ||
|
|
0c19f30426 | ||
|
|
4fcbb9d3ba | ||
|
|
d64fdf41fc | ||
|
|
a77a4e914f | ||
|
|
9500850836 | ||
|
|
d5fe70ac0e | ||
|
|
96219ec912 | ||
|
|
638fa3576b | ||
|
|
fdb65a5034 | ||
|
|
3851e7aa83 | ||
|
|
4d25cac168 |
+18
-107
@@ -1,6 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
project(kb3_sil LANGUAGES C CXX)
|
||||
project(ET39_sil LANGUAGES C CXX)
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
@@ -26,136 +26,47 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
find_package(Qt5 COMPONENTS Widgets Network REQUIRED)
|
||||
|
||||
include_directories( SIL/work/SIL_ert_shrlib_rtw
|
||||
SIL/work/slprj
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils
|
||||
SIL/R2018b/rtw/c/src
|
||||
SIL/R2018b/simulink/include
|
||||
SIL/otherFiles
|
||||
include_directories( ET39_SIL/work/ET39_SIL_ert_shrlib_rtw
|
||||
ET39_SIL/work/slprj
|
||||
ET39_SIL/work/slprj/ert_shrlib/_sharedutils
|
||||
ET39_SIL/R2018b/rtw/c/src
|
||||
ET39_SIL/R2018b/simulink/include
|
||||
ET39_SIL/otherFiles
|
||||
)
|
||||
|
||||
set(SIL_SRC
|
||||
SIL/otherFiles/hal_serial_cmdline_wrapper.c
|
||||
SIL/otherFiles/hal_serial_echoline_wrapper.c
|
||||
SIL/otherFiles/mav_serial_control_decode_wrapper.c
|
||||
SIL/otherFiles/mav_serial_control_encode_wrapper.c
|
||||
SIL/otherFiles/bmu_state_enc_wrapper.c
|
||||
SIL/otherFiles/ccm_state_enc_wrapper.c
|
||||
SIL/otherFiles/CRC_CheckSum_wrapper.c
|
||||
SIL/otherFiles/find_param_idx_wrapper.c
|
||||
SIL/otherFiles/find_param_val_wrapper.c
|
||||
SIL/otherFiles/mav_attitude_encode_wrapper.c
|
||||
SIL/otherFiles/mav_autopilot_version_encode_wrapper.c
|
||||
SIL/otherFiles/mav_command_ack_encode_wrapper.c
|
||||
SIL/otherFiles/mav_command_long_decode_wrapper.c
|
||||
SIL/otherFiles/mav_emb_atmo_com_encode_wrapper.c
|
||||
SIL/otherFiles/mav_ext_sys_stat_encode_wrapper.c
|
||||
SIL/otherFiles/mav_global_position_int_encode_wrapper.c
|
||||
SIL/otherFiles/mav_gps_raw_int_encode_wrapper.c
|
||||
SIL/otherFiles/mav_gps_rtcm_data_decode_wrapper.c
|
||||
SIL/otherFiles/mav_heartbeat_encode_wrapper.c
|
||||
SIL/otherFiles/mav_ins1_encode_wrapper.c
|
||||
SIL/otherFiles/mav_ins2_encode_wrapper.c
|
||||
SIL/otherFiles/mav_mission_ack_encode_wrapper.c
|
||||
SIL/otherFiles/mav_mission_clear_all_decode_wrapper.c
|
||||
SIL/otherFiles/mav_mission_count_decode_wrapper.c
|
||||
SIL/otherFiles/mav_mission_count_encode_wrapper.c
|
||||
SIL/otherFiles/mav_mission_current_encode_wrapper.c
|
||||
SIL/otherFiles/mav_mission_item_int_decode_wrapper.c
|
||||
SIL/otherFiles/mav_mission_item_int_encode_wrapper.c
|
||||
SIL/otherFiles/mav_mission_request_decode_wrapper.c
|
||||
SIL/otherFiles/mav_mission_request_int_encode_wrapper.c
|
||||
SIL/otherFiles/mav_mission_request_list_decode_wrapper.c
|
||||
SIL/otherFiles/mav_mission_set_current_decode_wrapper.c
|
||||
SIL/otherFiles/mav_msg2buff_wrapper.c
|
||||
SIL/otherFiles/mav_nav_controller_output_encode_wrapper.c
|
||||
SIL/otherFiles/mav_param_request_list_decode_wrapper.c
|
||||
SIL/otherFiles/mav_param_request_read_decode_wrapper.c
|
||||
SIL/otherFiles/mav_param_set_decode_wrapper.c
|
||||
SIL/otherFiles/mav_param_value_encode_wrapper.c
|
||||
SIL/otherFiles/mav_parser_wrapper.c
|
||||
SIL/otherFiles/mav_rc_channels_override_decode_wrapper.c
|
||||
SIL/otherFiles/mav_scaled_pressure_encode_wrapper.c
|
||||
SIL/otherFiles/mav_servo_output_raw_encode_wrapper.c
|
||||
SIL/otherFiles/mav_set_mode_decode_wrapper.c
|
||||
SIL/otherFiles/mav_sys_status_encode_wrapper.c
|
||||
SIL/otherFiles/mav_vfr_hud_encode_wrapper.c
|
||||
SIL/otherFiles/param_mgr.c
|
||||
SIL/otherFiles/set_param_val_wrapper.c
|
||||
SIL/otherFiles/turbine_state_enc_wrapper.c
|
||||
SIL/otherFiles/unpack_ecu2ap_wrapper.c
|
||||
SIL/work/SIL_ert_shrlib_rtw/SIL.c
|
||||
SIL/work/SIL_ert_shrlib_rtw/SIL_capi.c
|
||||
SIL/work/SIL_ert_shrlib_rtw/SIL_data.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/BINARYSEARCH_real32_T.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/binsearch_u32d.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/CalcAtmosCOESA.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/CalcPAltCOESA.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/const_params.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/InitCalcAtmosCOESA.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/intrp3d_l_pw.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/look1_binlcpw.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/look1_binlxpw.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/look1_iflf_binlcpw.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/look1_iflf_binlxpw.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/look1_iflf_pbinlcapw.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/look2_binlxpw.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/LookUpEven_real_T_real_T.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/LookUp_real32_T_real32_T.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/plook_binx.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/power_4TBdBPK2.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/Quat2Tbn_XRdqRR86.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/rtGetInf.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/rtGetNaN.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/rt_atan2d_snf.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/rt_atan2f_snf.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/rt_backsubrr_dbl.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/rt_forwardsubrr_dbl.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/rt_invd3x3_snf.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/rt_lu_real.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/rt_matrixlib_dbl.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/rt_modd_snf.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/rt_mrdivide_U1d1x3_U2d3x3_Yd1x3_snf.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/rt_nonfinite.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/rt_powd_snf.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/rt_roundd_snf.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/binsearch_u32f.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/intrp3d_fu32fl_pw.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/look2_iflf_binlxpw.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/plook_u32ff_binx.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/look1_pbinlcapw.c
|
||||
SIL/work/slprj/ert_shrlib/_sharedutils/wgs84_taylor_series.c)
|
||||
file(GLOB_RECURSE ET39_SIL_SRC ET39_SIL/*.c)
|
||||
message(STATUS "Files are ${ET39_SIL_SRC}")
|
||||
|
||||
add_definitions(-DWITH_CAPI)
|
||||
add_definitions(-DCAPI_MDL=SIL)
|
||||
add_definitions(-DHDR_MDL=SIL.h)
|
||||
add_definitions(-DCAPI_MDL=ET39_SIL)
|
||||
add_definitions(-DHDR_MDL=ET39_SIL.h)
|
||||
add_definitions(-DMAVLINK_USE_MESSAGE_INFO)
|
||||
|
||||
if(ANDROID)
|
||||
add_library(kb3_sil SHARED
|
||||
add_library(ET39_sil SHARED
|
||||
main.cpp
|
||||
mainwindow.cpp
|
||||
mainwindow.h
|
||||
mainwindow.ui
|
||||
${SIL_SRC}
|
||||
${ET39_SIL_SRC}
|
||||
)
|
||||
else()
|
||||
add_executable(kb3_sil WIN32
|
||||
add_executable(ET39_sil WIN32
|
||||
mainwindow.cpp
|
||||
mainwindow.h
|
||||
mainwindow.ui
|
||||
main.cpp
|
||||
${SIL_SRC}
|
||||
${ET39_SIL_SRC}
|
||||
)
|
||||
endif()
|
||||
|
||||
target_link_libraries(kb3_sil PRIVATE Qt5::Widgets Qt5::Network)
|
||||
target_link_libraries(ET39_sil PRIVATE Qt5::Widgets Qt5::Network)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
message("CMAKE_INSTALL_BINDIR=${CMAKE_INSTALL_BINDIR}")
|
||||
install(TARGETS kb3_sil RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
install(FILES SIL/work/SIL_win64.dll DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
install(TARGETS ET39_sil RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
install(FILES ET39_SIL/work/ET39_SIL_win64.dll DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
|
||||
set(CPACK_GENERATOR ZIP)
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR 0)
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
#ifndef __APP_CONFIG_H__
|
||||
|
||||
#ifndef AP_DT_MS
|
||||
#define AP_DT_MS (5.0)
|
||||
#endif
|
||||
|
||||
#ifndef PARAM_PROPS_MAXLEN
|
||||
#define PARAM_PROPS_MAXLEN (512)
|
||||
#endif
|
||||
|
||||
#ifndef PWM_CHANEL_NUM
|
||||
#define PWM_CHANEL_NUM (12)
|
||||
#endif
|
||||
|
||||
#ifndef RPM_CHANNEL_NUM
|
||||
#define RPM_CHANNEL_NUM (0)
|
||||
#endif
|
||||
|
||||
#ifndef SBUS_ENABLE
|
||||
#define SBUS_ENABLE (0)
|
||||
#endif
|
||||
|
||||
#ifndef CAN1_ENABLE
|
||||
#define CAN1_ENABLE (0)
|
||||
#endif
|
||||
|
||||
#ifndef CAN3_ENABLE
|
||||
#define CAN3_ENABLE (0)
|
||||
#endif
|
||||
|
||||
#ifndef UART1_RX_ENABLE
|
||||
#define UART1_RX_ENABLE (512)
|
||||
#endif
|
||||
#ifndef UART2_RX_ENABLE
|
||||
#define UART2_RX_ENABLE (0)
|
||||
#endif
|
||||
#ifndef UART4_RX_ENABLE
|
||||
#define UART4_RX_ENABLE (0)
|
||||
#endif
|
||||
#ifndef UART6_RX_ENABLE
|
||||
#define UART6_RX_ENABLE (0)
|
||||
#endif
|
||||
#ifndef UART7_RX_ENABLE
|
||||
#define UART7_RX_ENABLE (512)
|
||||
#endif
|
||||
#ifndef UART8_RX_ENABLE
|
||||
#define UART8_RX_ENABLE (0)
|
||||
#endif
|
||||
|
||||
#ifndef UART1_TX_ENABLE
|
||||
#define UART1_TX_ENABLE (256)
|
||||
#endif
|
||||
#ifndef UART2_TX_ENABLE
|
||||
#define UART2_TX_ENABLE (0)
|
||||
#endif
|
||||
#ifndef UART4_TX_ENABLE
|
||||
#define UART4_TX_ENABLE (0)
|
||||
#endif
|
||||
#ifndef UART6_TX_ENABLE
|
||||
#define UART6_TX_ENABLE (0)
|
||||
#endif
|
||||
#ifndef UART7_TX_ENABLE
|
||||
#define UART7_TX_ENABLE (256)
|
||||
#endif
|
||||
#ifndef UART8_TX_ENABLE
|
||||
#define UART8_TX_ENABLE (0)
|
||||
#endif
|
||||
|
||||
#define UART1_BAUDRATE (460800)
|
||||
#define UART1_WORDLENGTH (UART_WORDLENGTH_8B)
|
||||
#define UART1_STOPBITS (UART_STOPBITS_1)
|
||||
#define UART1_PARITY (UART_PARITY_NONE)
|
||||
#define UART1_MODE (UART_MODE_TX_RX)
|
||||
|
||||
#define UART2_BAUDRATE (460800)
|
||||
#define UART2_WORDLENGTH (UART_WORDLENGTH_8B)
|
||||
#define UART2_STOPBITS (UART_STOPBITS_1)
|
||||
#define UART2_PARITY (UART_PARITY_NONE)
|
||||
#define UART2_MODE (UART_MODE_TX_RX)
|
||||
|
||||
#define UART4_BAUDRATE (100000)
|
||||
#define UART4_WORDLENGTH (UART_WORDLENGTH_9B)
|
||||
#define UART4_STOPBITS (UART_STOPBITS_2)
|
||||
#define UART4_PARITY (UART_PARITY_EVEN)
|
||||
#define UART4_MODE (UART_MODE_RX)
|
||||
|
||||
#define UART6_BAUDRATE (115200)
|
||||
#define UART6_WORDLENGTH (UART_WORDLENGTH_8B)
|
||||
#define UART6_STOPBITS (UART_STOPBITS_1)
|
||||
#define UART6_PARITY (UART_PARITY_NONE)
|
||||
#define UART6_MODE (UART_MODE_TX_RX)
|
||||
|
||||
#define UART7_BAUDRATE (115200)
|
||||
#define UART7_WORDLENGTH (UART_WORDLENGTH_8B)
|
||||
#define UART7_STOPBITS (UART_STOPBITS_1)
|
||||
#define UART7_PARITY (UART_PARITY_NONE)
|
||||
#define UART7_MODE (UART_MODE_TX_RX)
|
||||
|
||||
#define UART8_BAUDRATE (115200)
|
||||
#define UART8_WORDLENGTH (UART_WORDLENGTH_8B)
|
||||
#define UART8_STOPBITS (UART_STOPBITS_1)
|
||||
#define UART8_PARITY (UART_PARITY_NONE)
|
||||
#define UART8_MODE (UART_MODE_TX_RX)
|
||||
|
||||
#endif /* __APP_CONFIG_H__ */
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
-1
@@ -53,8 +53,9 @@ void find_param_idx_Outputs_wrapper(const uint8_T *name,
|
||||
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_BEGIN --- EDIT HERE TO _END */
|
||||
#ifdef WITH_CAPI
|
||||
idx[0] = param_get_idx_by_name(name);
|
||||
#endif
|
||||
#else
|
||||
idx[0] = -1;
|
||||
#endif
|
||||
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_END --- EDIT HERE TO _BEGIN */
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
|
||||
/*
|
||||
* 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 */
|
||||
#ifdef HAL_IMPL
|
||||
#include "param_pre.h"
|
||||
#endif
|
||||
|
||||
/* %%%-SFUNWIZ_wrapper_includes_Changes_END --- EDIT HERE TO _BEGIN */
|
||||
#define u_width 1
|
||||
|
||||
/*
|
||||
* Create external references here.
|
||||
*
|
||||
*/
|
||||
/* %%%-SFUNWIZ_wrapper_externs_Changes_BEGIN --- EDIT HERE TO _END */
|
||||
static void pack(uint8_T *pkg, uint16_T *len, const int_T y_width, uint8_T *ts, uint8_T *src, uint16_T length)
|
||||
{
|
||||
uint8_T sum;
|
||||
int16_T i,j;
|
||||
sum = 0;
|
||||
for (i = 0; i < 4; ++i)
|
||||
{
|
||||
pkg[i] = ts[i];
|
||||
sum += ts[i];
|
||||
}
|
||||
if (length > y_width - 5)
|
||||
{
|
||||
length = y_width - 5;
|
||||
}
|
||||
for (i = 0, j = 4; i < length; ++i,++j)
|
||||
{
|
||||
pkg[j] = src[i];
|
||||
sum += src[i];
|
||||
}
|
||||
pkg[j] = sum;
|
||||
len[0] = length+4;
|
||||
}
|
||||
|
||||
|
||||
/* %%%-SFUNWIZ_wrapper_externs_Changes_END --- EDIT HERE TO _BEGIN */
|
||||
|
||||
/*
|
||||
* Output function
|
||||
*
|
||||
*/
|
||||
void hal_rec_Outputs_wrapper(const uint8_T *id,
|
||||
const uint32_T *time_stamp,
|
||||
uint8_T *pkg,
|
||||
uint16_T *len,
|
||||
const int_T y_width)
|
||||
{
|
||||
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_BEGIN --- EDIT HERE TO _END */
|
||||
switch (id[0])
|
||||
{
|
||||
#ifdef HAL_IMPL
|
||||
case 1:
|
||||
pack(pkg, len, y_width, (uint8_T *)time_stamp, (uint8_T *)&rec_hi, sizeof(rec_hi));
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
pack(pkg, len, y_width, (uint8_T *)time_stamp, 0UL, 0u);
|
||||
}
|
||||
|
||||
|
||||
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_END --- EDIT HERE TO _BEGIN */
|
||||
}
|
||||
|
||||
|
||||
+5
-7
@@ -24,23 +24,21 @@
|
||||
*
|
||||
*/
|
||||
/* %%%-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 bmu_state_enc_Outputs_wrapper(const mavlink_bmustate_t *u0,
|
||||
void mav_battery_status_encode_Outputs_wrapper(const mavlink_battery_status_t *obj,
|
||||
const uint8_T *sys_id,
|
||||
const uint8_T *comp_id,
|
||||
const uint8_T *chan,
|
||||
mavlink_message_t *y0)
|
||||
const uint8_T *channel,
|
||||
mavlink_message_t *msg)
|
||||
{
|
||||
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_BEGIN --- EDIT HERE TO _END */
|
||||
mavlink_msg_bmustate_encode_chan(sys_id[0], comp_id[0], chan[0],
|
||||
y0,
|
||||
u0);
|
||||
mavlink_msg_battery_status_encode_chan(sys_id[0], comp_id[0], channel[0], msg, obj);
|
||||
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_END --- EDIT HERE TO _BEGIN */
|
||||
}
|
||||
|
||||
+5
-7
@@ -24,23 +24,21 @@
|
||||
*
|
||||
*/
|
||||
/* %%%-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 ccm_state_enc_Outputs_wrapper(const mavlink_ccmstate_t *u0,
|
||||
void mav_rc_channels_raw_encode_Outputs_wrapper(const mavlink_rc_channels_raw_t *obj,
|
||||
const uint8_T *sys_id,
|
||||
const uint8_T *comp_id,
|
||||
const uint8_T *chan,
|
||||
mavlink_message_t *y0)
|
||||
const uint8_T *channel,
|
||||
mavlink_message_t *msg)
|
||||
{
|
||||
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_BEGIN --- EDIT HERE TO _END */
|
||||
mavlink_msg_ccmstate_encode_chan(sys_id[0], comp_id[0], chan[0],
|
||||
y0,
|
||||
u0);
|
||||
mavlink_msg_rc_channels_raw_encode_chan(sys_id[0], comp_id[0], channel[0], msg, obj);
|
||||
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_END --- EDIT HERE TO _BEGIN */
|
||||
}
|
||||
|
||||
+5
-10
@@ -10,7 +10,6 @@
|
||||
#include "rtwtypes.h"
|
||||
#endif
|
||||
|
||||
#include "ecu.h"
|
||||
#include "mav_stat_def.h"
|
||||
|
||||
|
||||
@@ -25,25 +24,21 @@
|
||||
*
|
||||
*/
|
||||
/* %%%-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,
|
||||
void mav_rpm_encode_Outputs_wrapper(const mavlink_rpm_t *obj,
|
||||
const uint8_T *sys_id,
|
||||
const uint8_T *comp_id,
|
||||
const uint8_T *chan,
|
||||
const uint32_T *boot_time,
|
||||
mavlink_message_t *y0)
|
||||
const uint8_T *channel,
|
||||
mavlink_message_t *msg)
|
||||
{
|
||||
/* %%%-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);
|
||||
mavlink_msg_rpm_encode_chan(sys_id[0], comp_id[0], channel[0], msg, obj);
|
||||
/* %%%-SFUNWIZ_wrapper_Outputs_Changes_END --- EDIT HERE TO _BEGIN */
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user