From 83a8d5a5617e0d54025a41fae69bf0105b25a2a4 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Wed, 30 Oct 2013 10:11:55 +0100 Subject: Changed the absolute latitude limit for visible satellites to 81.2 degrees --- positioner.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'positioner.c') diff --git a/positioner.c b/positioner.c index c701079e..c6e0c736 100644 --- a/positioner.c +++ b/positioner.c @@ -7,7 +7,7 @@ * For an explanation (in German) of the theory behind the calculations see * http://www.vdr-portal.de/board17-developer/board97-vdr-core/p1154305-grundlagen-und-winkelberechnungen-f%C3%BCr-h-h-diseqc-motor-antennenanlagen * - * $Id: positioner.c 3.3 2013/10/20 09:30:03 kls Exp $ + * $Id: positioner.c 3.4 2013/10/30 09:56:34 kls Exp $ */ #include "positioner.h" @@ -15,7 +15,7 @@ #include "config.h" #define SAT_EARTH_RATIO 0.1513 // the Earth's radius, divided by the distance from the Earth's center to the satellite -#define SAT_VISIBILITY_LAT 810 // the absolute latitude beyond which no satellite can be seen (degrees * 10) +#define SAT_VISIBILITY_LAT 812 // the absolute latitude beyond which no satellite can be seen (degrees * 10) #define RAD(x) ((x) * M_PI / 1800) #define DEG(x) ((x) * 1800 / M_PI) @@ -68,7 +68,7 @@ int cPositioner::CalcLongitude(int HourAngle) int cPositioner::HorizonLongitude(ePositionerDirection Direction) { double Delta; - if (abs(Setup.SiteLat) < SAT_VISIBILITY_LAT) + if (abs(Setup.SiteLat) <= SAT_VISIBILITY_LAT) Delta = acos(SAT_EARTH_RATIO / cos(RAD(Setup.SiteLat))); else Delta = 0; -- cgit v1.2.3