Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Dates = "1"
Dictionaries = "0.4"
DocStringExtensions = "0.6, 0.7, 0.8, 0.9"
Downloads = "1"
GNSSDecoder = "3.6"
GNSSDecoder = "3.7"
GNSSSignals = "3.3"
Geodesy = "0.5, 1.0"
LinearAlgebra = "1"
Expand Down
7 changes: 6 additions & 1 deletion src/PositionVelocityTime.jl
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,12 @@ function calc_pvt(
)
length(states) < 4 &&
throw(ArgumentError("You'll need at least 4 satellites to calculate PVT"))
healthy_indices = findall(x -> is_sat_healthy(x.decoder), states)
# Keep a satellite only if its full nav-data set is decoded and it reports healthy.
# Checking completeness first guarantees the health bit has been decoded.
healthy_indices = findall(
x -> is_decoding_completed_for_positioning(x.decoder) && is_sat_healthy(x.decoder),
states,
)
length(healthy_indices) < 4 && return prev_pvt
healthy_states = view(states, healthy_indices)
num_sats = length(healthy_states)
Expand Down
Loading