1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-29 05:24:18 -04:00

Merge pull request #2847 from srcejon/fix_2839

Fix Astronomy::azAltToXY85 when azimuth or elevation is 0.
This commit is contained in:
Edouard Griffiths
2026-07-27 08:41:53 +02:00
committed by GitHub
+1 -1
View File
@@ -323,7 +323,7 @@ void Astronomy::azAltToXY85(AzAlt aa, double& x, double& y)
double azr = Units::degreesToRadians(az);
double elr = Units::degreesToRadians(el);
y = Units::radiansToDegrees(asin(cos(elr) * sin(azr)));
if (az == 0.0)
if (el == 0.0)
{
// cot(0) == Inf
if ((az == 90.0) || (az == 270.0)) {