summaryrefslogtreecommitdiff
path: root/positioner.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-10-20 09:32:23 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2013-10-20 09:32:23 +0200
commit641acd57091d2c37a0d2e131674bd969eed55761 (patch)
treed44e31676ff0aab80d91a8e2222a319fb1d5dd53 /positioner.c
parent856f67b4acb6d9e5dc8b4328876f4d6f14bf381d (diff)
downloadvdr-641acd57091d2c37a0d2e131674bd969eed55761.tar.gz
vdr-641acd57091d2c37a0d2e131674bd969eed55761.tar.bz2
Changed the return value of cPositioner::HorizonLongitude() to 0 in case the latitude of the antenna location is beyond +/-81 degrees
Diffstat (limited to 'positioner.c')
-rw-r--r--positioner.c4
1 files changed, 2 insertions, 2 deletions
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)));