1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Changed the return value of cPositioner::HorizonLongitude() to 0 in case the latitude of the antenna location is beyond +/-81 degrees

This commit is contained in:
Klaus Schmidinger 2013-10-20 09:32:23 +02:00
parent 856f67b4ac
commit 641acd5709
4 changed files with 14 additions and 9 deletions

View File

@ -8009,3 +8009,8 @@ Video Disk Recorder Revision History
is unexpected at this point (reported by Helmut Auer). You can still navigate to is unexpected at this point (reported by Helmut Auer). You can still navigate to
the last replayed recording (if any) by pressing Ok repeatedly in the Recordings the last replayed recording (if any) by pressing Ok repeatedly in the Recordings
menu. menu.
2013-10-20: Version 2.1.3
- Changed the return value of cPositioner::HorizonLongitude() to 0 in case the
latitude of the antenna location is beyond +/-81 degrees.

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: config.h 3.4 2013/10/19 10:00:00 kls Exp $ * $Id: config.h 3.5 2013/10/20 09:32:23 kls Exp $
*/ */
#ifndef __CONFIG_H #ifndef __CONFIG_H
@ -22,13 +22,13 @@
// VDR's own version number: // VDR's own version number:
#define VDRVERSION "2.1.2" #define VDRVERSION "2.1.3"
#define VDRVERSNUM 20102 // Version * 10000 + Major * 100 + Minor #define VDRVERSNUM 20103 // Version * 10000 + Major * 100 + Minor
// The plugin API's version number: // The plugin API's version number:
#define APIVERSION "2.1.2" #define APIVERSION "2.1.3"
#define APIVERSNUM 20102 // Version * 10000 + Major * 100 + Minor #define APIVERSNUM 20103 // Version * 10000 + Major * 100 + Minor
// When loading plugins, VDR searches them by their APIVERSION, which // When loading plugins, VDR searches them by their APIVERSION, which
// may be smaller than VDRVERSION in case there have been no changes to // may be smaller than VDRVERSION in case there have been no changes to

View File

@ -7,7 +7,7 @@
* For an explanation (in German) of the theory behind the calculations see * 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 * 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" #include "positioner.h"
@ -71,7 +71,7 @@ int cPositioner::HorizonLongitude(ePositionerDirection Direction)
if (abs(Setup.SiteLat) < SAT_VISIBILITY_LAT) if (abs(Setup.SiteLat) < SAT_VISIBILITY_LAT)
Delta = acos(SAT_EARTH_RATIO / cos(RAD(Setup.SiteLat))); Delta = acos(SAT_EARTH_RATIO / cos(RAD(Setup.SiteLat)));
else else
Delta = RAD(145); Delta = 0;
if ((Setup.SiteLat >= 0) != (Direction == pdLeft)) if ((Setup.SiteLat >= 0) != (Direction == pdLeft))
Delta = -Delta; Delta = -Delta;
return NormalizeAngle(round(DEG(RAD(Setup.SiteLon) + Delta))); return NormalizeAngle(round(DEG(RAD(Setup.SiteLon) + Delta)));

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: positioner.h 3.1 2013/06/10 14:27:14 kls Exp $ * $Id: positioner.h 3.2 2013/10/20 09:29:41 kls Exp $
*/ */
#ifndef __POSITIONER_H #ifndef __POSITIONER_H
@ -94,7 +94,7 @@ public:
///< horizon when looking in the given Direction. Note that this function ///< horizon when looking in the given Direction. Note that this function
///< only delivers reasonable values for site latitudes between +/-81 degrees. ///< only delivers reasonable values for site latitudes between +/-81 degrees.
///< Beyond these limits (i.e. near the north or south pole) a constant value ///< Beyond these limits (i.e. near the north or south pole) a constant value
///< of +/-14.5 degrees (integer value 145) will be returned. ///< of 0 will be returned.
int HardLimitLongitude(ePositionerDirection Direction) const; int HardLimitLongitude(ePositionerDirection Direction) const;
///< Returns the longitude of the positioner's hard limit in the given ///< Returns the longitude of the positioner's hard limit in the given
///< Direction. Note that the value returned here may be larger (or smaller, ///< Direction. Note that the value returned here may be larger (or smaller,