救灾的无人机的 MATLAB 仿真

✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。

🍎个人主页:Matlab科研工作室

🍊个人信条:格物致知。

更多Matlab仿真内容点击👇

智能优化算法       神经网络预测       雷达通信       无线传感器        电力系统

信号处理              图像处理               路径规划       元胞自动机        无人机 

⛄ 内容介绍

四旋翼无人机因其突出的可操控性,相对低廉的价格,灵活的飞行特点,在如今诸多如航拍,侦查,救灾,电力巡检等领域被广泛使用.

⛄ 部分代码

%% uavDriver

% Test driver for the UAV simulation

% Simulates the UAV over the desired map

% Calls the UAVSim3 file to run a simulation

%close all;

clear; format long;

%% Parameters

% General parameters

base = [578,398];   % Location of the base (x,y) on the simulation map

numsimulations=1;  % Number of simulations

duration = 120;      % Number of minutes in each simulation (time step is 1 minute)

km2pixRatio = 1.609/90; % Number of pixels in one kilometer on the map (converted from miles)

% UAV Parameters

numUAVs = 3; % The number of UAV's in the fleet

uavSpeed = 40; % in km/h

uavRange = 35; % in hrs

uavCap = 2; % Drone capacity 

uavVector = [numUAVs,uavSpeed,uavCap,uavRange];

% Request/requestzone parameters

numZones = 13;

exDev = (1/6) * ones(numZones, 1);  % The standard deviation of expiration times (hours)

priFac = 1;                         % The maximum value of the priority factor (does not effect results)

timeFac = 1/10;                     % Factor by which requests become more important over time (.95 -> 5% more important every hour)

addedVal = 1;                       % Value added to distance in HD function (low sensitivity)

zonesXProb = .0035*ones(numZones,1); % Probability of a new request being high priority (per zone) .0035

zonesYProb = .012*ones(numZones,1);  % Probability of a zone generating a new request on a given time step: .012

exprTimeX = ones(numZones,1);       % Mean expiration time for X requests

exprTimeY = 3*ones(numZones,1);     % Mean expiration time for Y requests

% (x,y) locations of zone delivery locations (in pixels) on the simulation map

zoneLocations = [276,715;

                 203 583;

                 221 303;

                 254 168;

                 404 193;

                 527 80;

                 776 95;

                 860 187;

                 1158 90;

                 1045 340;

                 794 550;

                 939 735;

                 635 728];

zoneParam = [zoneLocations,zonesXProb,zonesYProb,exprTimeX,exprTimeY]; 

numhrs = 2; %% number of hours to plot UAV routes

% Color array for the UAV's

color = ['y', 'c','m','b','r','w','k','g','y','c','m','b','r','w','k','g'];

% Read in map for background of graph (use file name of image for map)

% And plot the base location

figure

MAP=imread('Map2.png'); image(MAP);

hold on

plot(base(1,1),base(1,2),'ro','MarkerFaceColor','r')

hold on

for step=1:numsimulations

%% Run Simulation

% Run the simulation and display UAV paths

[~, ~, ~, ~,~, manager]=uavSim3visual(uavVector, zoneParam, base, priFac,timeFac,addedVal, duration,km2pixRatio);

 for k=1:numUAVs

    plot(manager.uavList(k, 1).position(1,1),manager.uavList(k,1).position(1,2),color(k))

    hold on

   end

end

⛄ 运行结果

⛄ 参考文献

[1] 荣辉, 李冬, 殷堂春. 基于Matlab无人机数学模型仿真分析与研究[J]. 科学技术与工程, 2008, 8(6):4.

[2] 徐亮, 詹福宇, 赵健. 基于MATLAB的无人机俯仰通道内回路设计与仿真[J]. 黑龙江科技信息, 2022(016):000.

[3] 李欣, 黄一敏. 基于Matlab的无人机航线飞行仿真[C]// 中国航空学会. 中国航空学会, 2010.​

⛳️ 代码获取关注我

❤️部分理论引用网络文献,若有侵权联系博主删除

❤️ 关注我领取海量matlab电子书和数学建模资料

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Matlab科研辅导帮

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值