Skip to content

Commit

Permalink
Update ADSB.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jvde-github authored Feb 4, 2025
1 parent 28d7165 commit 9525f68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/ADSB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ namespace Plane
else if (lat > 87)
return 1;

double tmp = 1 - (1 - cos(PI / (2.0 * 15.0))) / pow(cos(PI / 180.0 * abs(lat)), 2);
double tmp = 1 - (1 - cos(PI / (2.0 * 15.0))) / pow(cos(PI / 180.0 * lat), 2);
return std::floor(2 * PI / acos(tmp));
}

Expand Down Expand Up @@ -787,4 +787,4 @@ namespace Plane
}
}
}
}
}

0 comments on commit 9525f68

Please sign in to comment.