Model platform motion
The phased.Platform
System object™ models
the translational motion of one or more platforms in space. A platform
can be a target such as a vehicle or airplane, or a sonar or radar
transmitter and receiver. The model assumes that the platform undergoes
translational motion at constant velocity or constant acceleration
during each simulation step. Positions and velocities are always defined
in the global coordinate system.
To model a moving platform:
Define and set up your platform using the Construction procedure.
Repeatedly call the step
method
to move the platform along a path determined by the phased.Platform
properties.
The behavior of step
is specific to each object
in the toolbox.
Note
Starting in R2016b, instead of using the step
method
to perform the operation defined by the System object, you can
call the object with arguments, as if it were a function. For example, y
= step(obj,x)
and y = obj(x)
perform
equivalent operations.
sPlat = phased.Platform
creates a platform System object, sPlat
.
The object models a stationary platform with position at the origin
and velocity set to zero.
sPlat = phased.Platform(
creates
an object, Name
,Value
)sPlat
, with each specified property
Name set to the specified Value. You can specify additional name-value
pair arguments in any order as (Name1
,Value1
,...,NameN
,ValueN
).
sPlat = phased.Platform(
creates
a platform object, pos
,vel
,Name
,Value
)sPlat
, with InitialPosition
set
to pos
and Velocity
set
to vel
. Other specified property Names are set
to specified Values. The pos
and vel
arguments
are value-only. Value-only arguments do not require a specified Name
but are interpreted according to their argument positions. To specify
any value-only argument, specify all preceding value-only arguments.
The motion model is either a constant velocity, a constant acceleration, or a custom
trajectory. You can choose one of two motion models
using the MotionModel
property.
MotionModel Value | Usage |
---|---|
'Velocity' | If you set the
When
you set the |
'Acceleration' | When you set the
When you set
the |
'Custom' | Specify the platform motion using a series
of waypoints in the
CustomTrajectory property.
|
|
Object motion model Object motion model, specified as
Default: |
|
Initial position of platform Initial position of platform, specified as a
real-valued 3-by-1 column vector in the form of
Default: |
|
Initial velocity of platform Initial velocity of platform, specified as a
real-valued 3-by-1 column vector in the form of
This property only applies when you set the
Default: |
|
Source of velocity data Source of velocity data, specified as one of
This property applies when you set the
Default: |
|
Current velocity of platform Specify the current velocity of the platform
as a 3-by-1 real-valued column vector in the form
of This property applies when you set the
Default: |
|
Source of acceleration data Source of acceleration data, specified as
one of This property applies when you set the
Default: |
|
Acceleration of platform Specify the current acceleration of the
platform as a real-valued 3-by-1 column vector in
the form This property applies when you set the
Default: |
|
Custom trajectory waypoints. Custom trajectory waypoints, specified as a real-valued M-by-L matrix, or M-by-L-by-N array. M is the number of waypoints. L is either 4 or 7.
When you set the To enable this property, set the
|
|
Mechanical scanning mode Mechanical scan mode for platform, specified
as |
|
Initial scan angle of platform Initial scan angle of platform, specified as a 1-by-N vector
where N is the number of platforms. The scanning occurs in the local
coordinate system of the platform. The Example: [30 40] |
|
Azimuth span The azimuth angle span, specified as an N-by-2 matrix where
N is the number of platforms. Each row of the matrix specifies the
scan range of the corresponding platform in the form |
|
Azimuth scan rate Azimuth scan rate, specified as a 1-by-N vector where
N is the number of platforms. Each entry in the vector is the
azimuth scan rate for the corresponding platform. The default value is 10
degrees/second. Units are in degrees/second. To enable this property, set the
|
|
Initial orientation axes of platform Initial orientation axes of platform, specified as a 3-by-3 real-valued orthonormal matrix for a single platform or as a 3-by-3-by-N real-valued matrix for multiple platforms. The dimension N is the number of platforms. When the orientation matrix is 3-by-3, the three columns represent the axes of the local coordinate system (xyz). When the orientation matrix is 3-by-3-by-N, for each page index, the resulting 3-by-3 matrix represents the axes of a local coordinate system. Default: |
|
Output orientation axes To obtain the instantaneous orientation axes
of the platform, set this property to
Default: |
reset | Reset platform to initial position |
step | Output current position, velocity, and orientation axes of platform |
Common to All System Objects | |
---|---|
release | Allow System object property value changes |
global2localcoord
| local2globalcoord
| phased.Collector
| phased.Radiator
| rangeangle