From cb67b51b3f8fca021da8f2f6a81d9dd7902b3450 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 3 Jan 2014 17:44:26 +1100 Subject: [PATCH] fixes at field test --- positionEstimate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/positionEstimate.py b/positionEstimate.py index 486fce2..68caa44 100644 --- a/positionEstimate.py +++ b/positionEstimate.py @@ -132,10 +132,10 @@ def positionLeastSquares(satinfo): if satinfo.reference_position is not None: # Estimate rx clk error again if we have position # we still do the above as we use lastpos etc for statistic generation - clk_err = clockLeastSquares_ranges(satinfo.eph, + clk_err = clockLeastSquares_ranges(satinfo.ephemeris, satinfo.prCorrected, - satinfo.raw.itow, - ref_pos, + satinfo.raw.time_of_week, + (satinfo.reference_position.X, satinfo.reference_position.Y, satinfo.reference_position.Z), 0, weights)