AR Drone 2.0 MATLAB/Simulink Target
AR Drone 2.0 Target为Parrot AR Drone 2.0的Simulink模型提供自动代码生成支持。提供的Simulink模块允许您读取AR无人机2.0上的所有传感器和两个摄像头。你也可以控制马达使AR无人机2.0悬停。
The AR Drone 2.0 Target provides automatic code generation support for Simulink models for the Parrot AR Drone 2.0. The provided Simulink blocks allow you to read all the sensors and both cameras on the AR Drone 2.0. You can also control the motors to make the AR Drone 2.0 hover.
Before you can use the AR Drone 2.0 Target
Download and install MATLAB R2016a or higher for Windows.
Install a C compiler. You can evaluate mex -setup c in MATLAB to see if you have a compiler installed. The free MinGW64 compiler can be installed from the MATLAB Add-Ons Explorer
Download and install the Code Sourcery ARM compiler. This is a free compiler which you can download using this direct link… If you are using Windows 8 or newer you will need to run the installer in the Windows 7 compatibility mode
How to open the AR Drone 2.0 Target
Use the Download Zip button on this page
Extract the zip to a destination of your choice
Navigate to the folder where you extracted the AR Drone 2.0 Target in MATLAB and open AR_Drone.prj
How to use the Simulink project
Opening AR_Drone.prj will cause a startup script to set up MATLAB for the AR Drone 2.0 Target. Closing the project disables the AR Drone 2.0 Target functionality
The Simulink project provides you with shortcuts on the MATLAB toolstrip. Things such as the documentation or calibration models can be easily accessed from there
The folder structure for the files is such that
Pre made Simulink models are inside the AR_Drone_Models folder
Library blocks, C source code and custom scripts are in the AR_Drone_Target folder
更多精彩文章请关注公众号: