GPS receiver simulation model
The gpsSensor
System object™ models data output from a Global Positioning System (GPS) receiver.
To model a GPS receiver:
Create the gpsSensor
object and set its properties.
Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?.
returns a
GPS
= gpsSensorgpsSensor
System object that computes a Global Positioning System receiver reading based on a local
position and velocity input signal. The default reference position in geodetic coordinates is
latitude: 0o N
longitude: 0o E
altitude: 0 m
GPS = gpsSensor(
returns a 'ReferenceFrame'
,RF
)gpsSensor
System object that computes a global positioning system receiver reading relative to the
reference frame RF
. Specify RF
as
'NED'
(North-East-Down) or 'ENU'
(East-North-Up).
The default value is 'NED'
.
GPS = gpsSensor(___,
sets each property Name,Value
)Name
to the specified Value
.
Unspecified properties have default values.
[
computes global navigation satellite system receiver readings from the position and
velocity inputs.position
,velocity
,groundspeed
,course
] = GPS(truePosition
,trueVelocity
)
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)