1 Star 0 Fork 2

马梓元/Realfilght-Simulink-Simulation

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
RF_Sim_Init.m 1.82 KB
一键复制 编辑 原始数据 按行查看 历史
Jeffrey-Ki 提交于 2021-06-17 22:38 . 仿真相关的文件
clear;
clc;
%% Initial modules configuration
Ts.High = 0.005;
Ts.Middle = 0.02;
Ts.Low = 0.1;
% 传感器模块的输出接口定义
elems(1) = create_bus_element('GYRO', 3, 'Fixed', 'single', -1, 'real');
elems(2) = create_bus_element('ACCE', 3, 'Fixed', 'single', -1, 'real');
elems(3) = create_bus_element('MAGN', 3, 'Fixed', 'single', -1, 'real');
elems(4) = create_bus_element('GPS_LAT', 1, 'Fixed', 'int32', -1, 'real');
elems(5) = create_bus_element('GPS_LNG', 1, 'Fixed', 'int32', -1, 'real');
elems(6) = create_bus_element('GPS_ALT', 1, 'Fixed', 'single', -1, 'real');
elems(7) = create_bus_element('GPS_VN', 1, 'Fixed', 'single', -1, 'real');
elems(8) = create_bus_element('GPS_VE', 1, 'Fixed', 'single', -1, 'real');
elems(9) = create_bus_element('GPS_VD', 1, 'Fixed', 'single', -1, 'real');
elems(10) = create_bus_element('SBUS', 16, 'Fixed', 'int16', -1, 'real');
elems(11) = create_bus_element('DIFF_PRES', 1, 'Fixed', 'single', -1, 'real');
elems(12) = create_bus_element('ABS_PRES', 1, 'Fixed', 'single', -1, 'real');
elems(13) = create_bus_element('FG_DEBUG_ATTITUDE', 3, 'Fixed', 'single', -1, 'real');
elems(14) = create_bus_element('RF_DEBUG_QUATERNION', 4, 'Fixed', 'single', -1, 'real');
elems(15) = create_bus_element('GYRO_RECV', 1, 'Fixed', 'boolean', -1, 'real');
elems(16) = create_bus_element('MAGN_RECV', 1, 'Fixed', 'boolean', -1, 'real');
elems(17) = create_bus_element('GPS_RECV', 1, 'Fixed', 'boolean', -1, 'real');
elems(18) = create_bus_element('SBUS_RECV', 1, 'Fixed', 'boolean', -1, 'real');
elems(19) = create_bus_element('ABS_PRES_RECV', 1, 'Fixed', 'boolean', -1, 'real');
elems(20) = create_bus_element('DIFF_PRES_RECV', 1, 'Fixed', 'boolean', -1, 'real');
elems(21) = create_bus_element('THRO_LOCK', 1, 'Fixed', 'boolean', -1, 'real');
SENSOR_bus = Simulink.Bus;
SENSOR_bus.Elements = elems;
clear elems;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Matlab
1
https://gitee.com/ma_zi_yuan/realfilght-simulink-simulation.git
[email protected]:ma_zi_yuan/realfilght-simulink-simulation.git
ma_zi_yuan
realfilght-simulink-simulation
Realfilght-Simulink-Simulation
master

搜索帮助