Skip to content
This repository was archived by the owner on Apr 13, 2021. It is now read-only.

Commit 2d489f5

Browse files
author
Ryan Kingsbury
committed
pvtsol: adds option to return DOP values for solution
1 parent 51ad990 commit 2d489f5

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

peregrine/short_set.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,10 +543,14 @@ def compute_dops(prns, ephem, r, t, disp=False):
543543
print " TDOP: %.3f"%tdop
544544
print " GDOP: %.3f"%gdop
545545

546-
return pdop, hdop, vdop, tdop, gdop
546+
return {"pdop":pdop,
547+
"hdop":hdop,
548+
"vdop":vdop,
549+
"tdop":tdop,
550+
"gdop":gdop}
547551

548552
def postprocess_short_samples(signal, prior_trajectory, t_prior, settings,
549-
plot = True):
553+
plot = True, return_dops = False):
550554
"""
551555
Postprocess a short baseband sample record into a navigation solution.
552556
@@ -692,4 +696,7 @@ def postprocess_short_samples(signal, prior_trajectory, t_prior, settings,
692696
plot_t_recv_sensitivity(r_sol, t_sol, obs_pr, ephem,
693697
spread = 0.1, step = 0.01)
694698

695-
return r_sol, v_sol, t_sol
699+
if return_dops:
700+
return r_sol, v_sol, t_sol, dops
701+
else:
702+
return r_sol, v_sol, t_sol

0 commit comments

Comments
 (0)