webdial

Incomplete JS port of moondial.
git clone https://code.literati.org/webdial.git
Log | Files | Refs

commit d33b7a8986c8a64b35ff75563db8ac4dbb5e77d5
parent 66d6d40819d67f2d83c2b8ff13eb78ab5fc61348
Author: Sean Lynch <seanl@literati.org>
Date:   Thu,  8 Sep 2011 00:08:00 -0700

Even more debugging

Diffstat:
Msun.js | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/sun.js b/sun.js @@ -67,9 +67,11 @@ function Sun() { this.equ_to_geo = function(ra, dec, st) { var lon = r_to_d(ra - st); + console.debug("lon", lon); if (lon > 180.0) { lon -= 360.0; } + console.debug("lon", lon, "dec", dec); return {longitude: lon, latitude: r_to_d(dec)}; };