frontend: avoid division by zero

Origin commit data
------------------
Branch: ni/coolstream
Commit: 127ef01a42
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2021-10-25 (Mon, 25 Oct 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2021-10-25 20:55:46 +02:00
committed by vanhofen
parent 32ce4f8fe5
commit 1a8d6c1ac9

View File

@@ -2483,8 +2483,11 @@ double calcAzimuth(double SatLon, double SiteLat, double SiteLon, int Height_ove
if (alfa_r_north < 0)
Azimuth = 180 + Deg(ATAN(alfa_ry / alfa_r_north));
else
{
if(alfa_r_north == 0)
alfa_r_north = 0.0001;;
Azimuth = Rev(360 + Deg(ATAN(alfa_ry / alfa_r_north)));
}
return Azimuth;
}