# ArduPlane SIL Connector for Simulink
Simulink C++ S-function for software-in-the-loop simulation with ArduPlane.
[![View ardupilot-sil-connector on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)]()
Requirements
- MATLAB & Simulink (MATLAB R2022a or earlier)
- MinGW-w64 or MSVC C/C++ Compiler
- MissionPlanner
Files
[ardupilot_sil_connector.cpp](https://github.com/aviumtechnologies/ardupilot-sil-connector/blob/master/ardupilot_sil_connector.cpp)
<div style="height:1px; background-color:rgba(0,0,0,0.12);"></div>
[make.m](https://github.com/aviumtechnologies/ardupilot-sil-connector/blob/master/make.m)
<div style="height:1px; background-color:rgba(0,0,0,0.12);"></div>
[includes.zip](https://github.com/aviumtechnologies/ardupilot-sil-connector/blob/master/includes.zip) (contains the Asio C++ and MAVLink C libraries)
<div style="height:1px; background-color:rgba(0,0,0,0.12);"></div>
Build instructions
- Install MATLAB-supported compiler
https://mathworks.com/support/requirements/supported-compilers.html.
- Download the "ardupilot_sil_connector.cpp" and "make.m" files and the "includes.zip" archive.
- Unzip the "includes.zip archive".
- Run "make.m" to create a "ardupilot_sil_connector.mexw64" (Windows), "ardupilot_sil_connector.mexa64" (Linux), "ardupilot_sil_connector.mexmaci64" (macOS) file.
Use instructions
- Download and install MissionPlanner [https://ardupilot.org/planner/docs/mission-planner-installation.html](https://ardupilot.org/planner/docs/mission-planner-installation.html).
- Open MissionPlanner, select the "Simulation" tab and click on the "Plane" icon to download the ArduPlane SIL simulator.
- After downloading the ArduPlance SIL simulator, open a command prompt and navigate to "C:\Users\\Documents\Mission Planner\sitl".
- Execute the following command in the command prompt:
<pre>ArduPlane.exe --home 42.841448,24.770727,0.5,0 --model json</pre>
- Click the connect icon in Mission Planner. Use the default host and port options.
- Open and run "ardupilot_sitl_connector_example.slx".
[![Example use of the ArduPilot SIL connector](https://i.ytimg.com/vi/kRq-3Ux5j3Q/maxresdefault.jpg)](https://youtu.be/kRq-3Ux5j3Q)
<p align="center">Example use of the ArduPilot SIL connector</p>
![ArduPilot SIL connector example](https://github.com/aviumtechnologies/ardupilot-sil-connector/blob/master/ardupilot_sil_connector_example.png)
<p align="center">ArduPilot SIL connector example</p>
Additional information available at
https://fst.aviumtechnologies.com/ardupilot-sil-connector
Simulink C++S函数,用于使用ArduPilot进行软件在环(SIL)仿真
版权申诉
54 浏览量
2022-07-01
18:12:48
上传
评论
收藏 1.16MB ZIP 举报
自不量力的A同学
- 粉丝: 48
- 资源: 2711
最新资源
- 关于数据分析工具的问题 (Excel、PowerBI-Tableau、R-Python)-教程案例分享.zip
- jqueryUI管理后台+WeiXinApp微信小程序+uni例子内容 参数例子,学习用
- 基于聚类分析分批训练的BP神经网络回归分析
- 计算机大类学生课程实验心得、案例-基于Python 的图像处理实验.zip
- CocosDashboard-v2.1.3-win-042311.exe
- vue3-admin-master-后台管理平台模板.zip
- 基于yolov5和deepsort算法的车辆检测项目源码+数据集(高分项目).zip
- 使用Python的requests库和BeautifulSoup库进行网页爬取的示例案例
- 蓝色个人主页接单HTML源码.zip
- 基于YOLOv5+Deepsort实现车辆行人追踪和计数(完整源码+说明文档+数据).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈