/SimulinkARDroneTarget

Deploy MATLAB Simulink model automatically to Parrot AR Drone with Embedded Coder C code generation

Primary LanguageHTMLBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

AR Drone 2.0 MATLAB/Simulink Target

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

  1. Download and install MATLAB R2016a or higher for Windows.
  2. 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
  3. 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

  1. Use the Download Zip button on this page
  2. Extract the zip to a destination of your choice
  3. 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

  1. 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
  2. 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
  3. The folder structure for the files is such that
  4. Pre made Simulink models are inside the AR_Drone_Models folder
  5. Library blocks, C source code and custom scripts are in the AR_Drone_Target folder