From 9afa0e90eddbd7e207e80e0808301ca139005bf7 Mon Sep 17 00:00:00 2001
From: adrian <adrian@localhost.com>
Date: Mon, 5 Sep 2011 07:35:44 +0300
Subject: [PATCH] print some relevant data on screen to verify accuracy

---
 src/ATC/trafficcontrol.cxx | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/ATC/trafficcontrol.cxx b/src/ATC/trafficcontrol.cxx
index 055ec9735..1e65c3ef6 100644
--- a/src/ATC/trafficcontrol.cxx
+++ b/src/ATC/trafficcontrol.cxx
@@ -790,7 +790,7 @@ double FGATCController::calculate_attenuation(FGTrafficRecord * rec, FGAirportDy
         double ATC_HAAT = 30.0;
         double Aircraft_HAAT = 5.0;
         double sender_alt_ft,sender_alt;
-        double transceiver_height=0.0;
+        double transmitter_height=0.0;
         double receiver_height=0.0;
         SGGeod sender_pos;
         SGGeod max_sender_pos;
@@ -818,7 +818,6 @@ double FGATCController::calculate_attenuation(FGTrafficRecord * rec, FGAirportDy
         double distance_m = SGGeodesy::distanceM(own_pos, sender_pos);
         double probe_distance = 0.0;
         
-        //cerr << "ITM:: Distance: " << distance_m << endl;
         
         double max_points = distance_m / point_distance;
         deque<double> _elevations;
@@ -842,7 +841,7 @@ double FGATCController::calculate_attenuation(FGTrafficRecord * rec, FGAirportDy
         else
         	transmitter_height += Aircraft_HAAT;
         
-        cerr << "ITM:: RCVhgt: " << receiver_height << ", TRXhgt: " << transmitter_height << endl;
+        cerr << "ITM:: RCVhgt: " << receiver_height << ", TRXhgt: " << transmitter_height << ", Distance: " << distance_m << endl;
         // If distance larger than this value (400 km), assume reception imposssible
         // technically 400 km is no problem if LOS conditions exist,
         // but we do this to spare resources
@@ -928,7 +927,7 @@ double FGATCController::calculate_attenuation(FGTrafficRecord * rec, FGAirportDy
 		eps_dielect, sgm_conductivity, eno, frq_mhz, radio_climate,
 		pol, conf, rel, dbloss, strmode, errnum);
 
-	cerr << "ITM:: Attenuation: " << dbloss << " dBm, " << strmode << ", Error: " << errnum << endl;
+	cerr << "ITM:: Link budget: " << link_budget << ", Attenuation: " << dbloss << " dBm, " << strmode << ", Error: " << errnum << endl;
 	
 	//if (errnum !=0 && errnum !=1)
 	//	return -1;