Skip to content

Commit 9444c8a

Browse files
committed
check for NaN pseudoranges in EKF
1 parent 2f919ed commit 9444c8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gnss_lib_py/algorithms/gnss_filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def solve_gnss_ekf(measurements, init_dict = None,
9898
corr_pr_m = measurement_subset["corr_pr_m"].reshape(-1,1)
9999

100100
# remove NaN indexes
101-
not_nan_indexes = ~np.isnan(pos_sv_m).any(axis=1)
101+
not_nan_indexes = ~np.isnan(pos_sv_m).any(axis=1) & ~np.isnan(corr_pr_m).any(axis=1)
102102
pos_sv_m = pos_sv_m[not_nan_indexes]
103103
corr_pr_m = corr_pr_m[not_nan_indexes]
104104

0 commit comments

Comments
 (0)