PositionVelocityTime.jl

Calculate position velocity and time
Author JuliaGNSS
Popularity
2 Stars
Updated Last
1 Year Ago
Started In
June 2021

PositionVelocityTime.jl

Calculates position and time by using GNSS data

Features

  • Estimation of user position and time
  • Calculates satellite position
  • Precision estimation (GDOP)

Preparing

Install

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.

Usage

User position calculation

The function

# You need at least 4 satellite states
calc_PVT(sat_states)

provides a complete position calculation.