Calculates position and time by using GNSS data
- Estimation of user position and time
- Calculates satellite position
- Precision estimation (GDOP)
julia> ]
pkg> PositionVelocityTime.jl
Decoded data and code phase of satellite must be combined in the provided SatelliteState
struct.
using PositionVelocityTime, GNSSSignals, GNSSDecoder
# decode satellite
gpsl1 = GPSL1()
sat_state = SatelliteState(
decoder = decoder,
system = gpsl1,
code_phase = code_phase,
carrier_phase = carrier_phase # optional
)
The declaration of carrier_phase
is optional due to its small effect on the user position.
Alternatively, the tracking result can be passed to SatelliteState
instead of system
, code_phase
and carrier_phase
:
using Tracking
# track and decode satellite
sat_state = SatelliteState(decoder, tracking_result)
For user position computation at least 4 decoded satellites must be provided.
The function
# You need at least 4 satellite states
calc_PVT(sat_states)
provides a complete position calculation.