uavPlatform
Description
The uavPlatform
object represents an unmanned aerial vehicle
(UAV) platform in a given UAV scenario. Use the platform to define and track the trajectory of
a UAV in the scenario. To simulate sensor readings for the platform, mount one of these
sensors to the platform as a uavSensor
object.
gnssMeasurementGenerator
(Navigation Toolbox)
To simulate wind on the platform, add one or more of these wind model value objects to the
platform using the addWind
function.
Add a body mesh to the platform for visualization using the updateMesh
object
function. Set geofencing limitations using the addGeoFence
object
and check those limits using the checkPermission
object function.
Creation
Description
creates a platform with a specified name platform
= uavPlatform(name
,scenario
)name
and adds it to the
scenario, specified as a uavScenario
object. Specify the name argument as a string scalar. The name argument sets the
Name
property.
specifies options using one or more name-value pair arguments. You can specify
properties as name-value pair arguments as well. For example,
platform
= uavPlatform(name
,scenario
,Name=Value
)uavPlatform("UAV1",scene,StartTime=10)
sets the initial time for
the platform trajectory to 10 seconds. Enclose each property name in quotes
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Example: StartTime=10
sets the initial time of the platform
trajectory to 10 seconds.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
Example: "StartTime",10
sets the initial time of the platform
trajectory to 10 seconds.
Properties
Object Functions
move | Move UAV platform in scenario |
read | Read UAV motion vector |
updateMesh | Update body mesh for UAV platform |
addGeoFence | Add geographical fencing to UAV platform |
checkPermission | Check UAV platform permission based on geofencing |
addWind | Add wind model object to UAV platform |
removeWind | Remove wind model object from UAV platform |
windDetails | Properties of wind model objects added to UAV platform |
windVelocity | Translational wind velocity on UAV platform |
windAngularRate | Angular wind velocity on UAV platform |
Examples
Version History
Introduced in R2020b