[recPos,recVel] = receiverposition(___,pdot,satVel)
also returns the receiver velocity estimated from the pseudorange rates
pdot and satellite velocities satVel.
[recPos,recVel,hdop,vdop] = receiverposition(___)
also returns the horizontal dilution of precision hdop and vertical
dilution of precision vdop associated with the position
estimate.
Use the receiverposition function to estimate a GNSS receiver position. Get the satellte positiions and velocities using the gnssconstellation function. Generate pseudoranges from these positions using the pseudoranges function.
Specify a receiver position in geodetic coordinates (latitude, longitude, altitude) and a receiver velocity in the local navigation frame.
recPos = [42 -71 50];
recVel = [1 2 3];
Get the satellite positions for the current time.
t = datetime('now');
[gpsSatPos,gpsSatVel] = gnssconstellation(t);
Get the pseudoranges and pseudorange rates between the GNSS receiver and the satellites.
Use the pseudoranges to estimate the receiver position and velocity. The values close to your original receiver position and velocity used to generate the satellite position and pseudoranges.
p — Pseudoranges between satellites and receiver n-element vector
Pseudoranges between the satellites and receiver, specified as an
n-element vector in meters.
Data Types: single | double
satPos — Satellite positions N-by-3 matrix of scalars
Satellite positions in the Earth-centered Earth-fixed (ECEF) coordinate system in
meters, specified as an N-by-3 matrix of scalars.
N is the number of satellites in the constellation.
Data Types: single | double
pdot — Pseudorange rates between satellites and receiver n-element vector
Pseudorange rates between the satellites and receiver, specified as an
n-element vector in meters per second.
Data Types: single | double
satVel — Velocity readings in local navigation coordinate system (m/s) N-by-3 matrix of scalar
Velocity readings of the GNSS receiver in the local navigation coordinate system in
meters per second, specified as an N-by-3 matrix of scalars.
N is the number of satellites in the constellation.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.