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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user