1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-28 13:04:17 -04:00

Fix Astronomy::azAltToXY85 when azimuth or elevation is 0. #2839

This commit is contained in:
Jon Beniston
2026-07-26 02:09:56 +01:00
parent b5f216f049
commit 82fe3fbfe9
+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)) {