MATLAB ヘルプ センター
Add wind model object to UAV platform
Since R2024a
addWind(platform,windmodel)
addWind(platform,windmodel) adds wind model object to the UAV platform.
platform
windmodel
Note
Simulating a UAV scenario that contains wind models added using the addWind function requires Aerospace Toolbox.
addWind
example
collapse all
Create a UAV scenario and platform. Specify a trajectory to fly the platform 5 meters north of the scenario origin at an altitude of 50 meters.
scene = uavScenario; platformTrajectory = waypointTrajectory([0 0 -50; 5 0 -50],[0 1]); platform = uavPlatform("UAV",scene,Trajectory=platformTrajectory);
Create a steady wind object with default properties.
steadyWind = uavWindSteady
steadyWind = uavWindSteady with properties: Velocity: [3.5000 3.5000 5] StartTime: 0 StopTime: Inf
Create a wind gust object with default properties.
gustWind = uavWindGust
gustWind = uavWindGust with properties: GustAmplitude: [3.5000 3.5000 5] GustLength: [120 120 80] StartTime: 0 StopTime: Inf
Create a turbulence wind object with default properties.
turbulenceWind = uavWindTurbulence
turbulenceWind = uavWindTurbulence with properties: Specification: "MIL-F-8785C" ModelType: "Von Karman (+q +r)" WindSpeedAt6m: 15 WindDirectionAt6m: 0 ProbExceedanceHighAltitudeIntensity: "10^-2 - Light" ScaleLengthAtMediumHighAltitude: 762 Wingspan: 10 BandLimitedNoiseSampleTime: 0.1000 RandomNoiseSeeds: [23341 23342 23343 23344] StartTime: 0 StopTime: Inf
Add the wind objects to the UAV platform.
addWind(platform,{steadyWind gustWind turbulenceWind})
Set up the simulation, and advance the scene.
setup(scene) advance(scene);
Obtain the translational wind velocity on the UAV platform.
velocityWind = windVelocity(platform)
velocityWind = 1×3 3.5753 3.0892 4.5805
Obtain the angular wind velocity on the UAV platform.
angularVelocityWind = windAngularRate(platform)
angularVelocityWind = 1×3 -0.0484 -0.0323 -0.0419
uavPlatform
UAV platform, specified as a uavPlatform object.
uavWindSteady
uavWindGust
uavWindTurbulence
Wind model object, specified as a uavWindSteady, uavWindGust, or uavWindTurbulence object, or as a cell array of wind model objects.
Example: {gustWind,steadyWind}
{gustWind,steadyWind}
Introduced in R2024a
windDetails
windVelocity
windAngularRate
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ