diff --git a/core/lib/GNSSCore/NeillTropModel.cpp b/core/lib/GNSSCore/NeillTropModel.cpp index d7c528ff8..e49381f5c 100644 --- a/core/lib/GNSSCore/NeillTropModel.cpp +++ b/core/lib/GNSSCore/NeillTropModel.cpp @@ -570,9 +570,9 @@ namespace gpstk NeillDOY = static_cast(ydst.doy); validDOY = true; NeillLat = rxPos.getGeodeticLatitude(); - validHeight = true; - NeillLat = rxPos.getHeight(); validLat = true; + NeillHeight = rxPos.getHeight(); + validHeight = true; // Change the value of field "valid" if everything is already set valid = validHeight && validLat && validDOY;