【源码】应用MATLAB Simulink模型自动生成Parrot AR无人机嵌入式C代码

在这里插入图片描述

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

更多精彩文章请关注公众号:在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值