Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
Add property to access DOPS from a Solution class.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnoble committed Mar 7, 2013
1 parent 36fb0bf commit 624dfa9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions swiftnav/pvt.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ cdef class Solution:
def __get__(self):
return self.soln.time

property dops:
def __get__(self):
return (self.dops.pdop,
self.dops.gdop,
self.dops.tdop,
self.dops.hdop,
self.dops.vdop)

def calc_PVT(nav_meas):
n_used = len(nav_meas)
cdef navigation_measurement_t* nav_meas_array = <navigation_measurement_t*>malloc(n_used*sizeof(navigation_measurement_t))
Expand Down

0 comments on commit 624dfa9

Please sign in to comment.