
NavList:
A Community Devoted to the Preservation and Practice of Celestial Navigation and Other Methods of Traditional Wayfinding
From: Paul Hirose
Date: 2025 Mar 7, 14:47 -0800
From: Frank Reed
Gleason's original post three weeks ago, you'll find this gem: "Moon Semi-Diameter and Horizontal Parallax used by Celestial plugin is off by up to +/- 8%."
The errors in SD and HP were likely due to a constant Moon distance in this file:
https://github.com/rgleason/celestial_navigation_pi/blob/improve/src/Sight.cpp
I saw that only a few days ago. However, improved code based on a calculated distance was contributed last month, and today I see the fixed distance has been replaced by a call to the new code (search for "moon_distance").
The new distance routine is in two files. The first is very small and simply defines some constants.
https://github.com/rgleason/celestial_navigation_pi/blob/improve/src/moon.h
https://github.com/rgleason/celestial_navigation_pi/blob/improve/src/moon.cpp
--
Paul Hirose
sofajpl.com