Changes
2 changed files (+3/-3)
-
-
@@ -92,7 +92,7 @@/* compute the diurnal arc that the sun traverses to reach the specified altitide altit: */ double cost = (sind(altitude) - sind(pRun->latitude) * sind(sdec)) / (cosd(pRun->latitude) * cosd(sdec)); if (abs(cost) < 1.0) if (abs(int(cost)) < 1.0) diurnalArc = 2*acosd(cost)/15.0; /* Diurnal arc, hours */ else if (cost>=1.0) diurnalArc = 0.0; // Polar Night
-
-
-
@@ -13,8 +13,8 @@ #define SUNWAIT_H#define DEFAULT_LIST 1 /* in 'List' mode, report these number days */ #define DEFAULT_ANGLE 0.83 /* Default twighlight angle. */ #define DEFAULT_LATITUDE 52.952308 #define DEFAULT_LONGITUDE 359.048052 /* The Buttercross, Bingham, England */ #define DEFAULT_LATITUDE 40.108306 #define DEFAULT_LONGITUDE 271.7405121 /* 814 W Daniel St, Champaign, IL, USA */ #define boolean bool #define NOT_SET 9999999
-