From 322a15f8da7eb2ba73f29ff28e4caee9d373eac1 Mon Sep 17 00:00:00 2001 From: adrian Date: Thu, 24 Nov 2011 05:38:15 +0200 Subject: [PATCH] add to CMake --- src/CMakeLists.txt | 1 + src/Radio/radio.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3edc66fae..f3ebefd91 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -6,6 +6,7 @@ include_directories(${PROJECT_SOURCE_DIR}) foreach( mylibfolder Airports Aircraft + Radio ATC ATCDCL Autopilot diff --git a/src/Radio/radio.cxx b/src/Radio/radio.cxx index c1ca246b1..fdd8dd416 100644 --- a/src/Radio/radio.cxx +++ b/src/Radio/radio.cxx @@ -177,7 +177,7 @@ double FGRadio::ITM_calculate_attenuation(SGGeod pos, double freq, double course = SGGeodesy::courseRad(own_pos_c, sender_pos_c); double distance_m = SGGeodesy::distanceM(own_pos, sender_pos); double probe_distance = 0.0; - // If distance larger than this value (300 km), assume reception imposssible to preserve resources + // If distance larger than this value (300 km), assume reception imposssible if (distance_m > 300000) return -1.0; // If above 9000, consider LOS mode and calculate free-space att