From 641acd57091d2c37a0d2e131674bd969eed55761 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 20 Oct 2013 09:32:23 +0200 Subject: Changed the return value of cPositioner::HorizonLongitude() to 0 in case the latitude of the antenna location is beyond +/-81 degrees --- positioner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'positioner.c') diff --git a/positioner.c b/positioner.c index 8b9d2703..c701079e 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.2 2013/10/10 14:14:10 kls Exp $ + * $Id: positioner.c 3.3 2013/10/20 09:30:03 kls Exp $ */ #include "positioner.h" @@ -71,7 +71,7 @@ int cPositioner::HorizonLongitude(ePositionerDirection Direction) if (abs(Setup.SiteLat) < SAT_VISIBILITY_LAT) Delta = acos(SAT_EARTH_RATIO / cos(RAD(Setup.SiteLat))); else - Delta = RAD(145); + Delta = 0; if ((Setup.SiteLat >= 0) != (Direction == pdLeft)) Delta = -Delta; return NormalizeAngle(round(DEG(RAD(Setup.SiteLon) + Delta))); -- cgit v1.2.3