Simulate GNSS to generate position and velocity readings
The gnssSensor
System object™ simulates a global navigation satellite system (GNSS) to generate position and
velocity readings based on local position and velocity data.
To generate GNSS position and velocity readings:
Create the gnssSensor
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
GNSS
= gnssSensorgnssSensor
System object
GNSS
that computes global navigation satellite system receiver
readings based on local position and velocity input.
specifies the reference frame in which the GNSS readings are reported. Specify
GNSS
= gnssSensor('ReferenceFrame',frame)frame
as 'NED'
(north-east-down) or
'ENU'
(east-north-up). The default value is 'NED'
.
sets properties using one or more name-value pairs. For example,
GNSS
= gnssSensor(___,Name,Value)gnssSensor('SampleRate',2)
creates a simulated GNSS with a sample
rate of 2 Hz. Enclose each property name in quotes.
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)