1
0
Fork 0
This commit is contained in:
adrian 2011-09-04 16:13:47 +03:00
parent 2f0ea5f3f1
commit 135c544f6e

View file

@ -834,7 +834,7 @@ double FGATCController::calculate_attenuation(FGTrafficRecord * rec, FGAirportDy
if (distance_m > 400000)
return -1.0;
int e_size = (deque<unsigned>::size_type)max_points;
unsigned int e_size = (deque<unsigned>::size_type)max_points;
while (_elevations.size() < e_size) {
probe_distance += point_distance;
@ -888,14 +888,16 @@ double FGATCController::calculate_attenuation(FGTrafficRecord * rec, FGAirportDy
// !!! small aircraft have portable transmitters which operate at 36 dBm output (4 Watts)
// later store this value in aircraft description
// ATC comms usually operate high power equipment, thus making the link asymetrical; this is ignored for now
if(ground_to_air)
double transmitter_power = 49.0;
else
double transmitter_power = 43.0;
double antenna_gain = 2.0;
if(ground_to_air)
double antenna_gain = 5.0; //pilot plane's antenna gain + Controller antenna gain
transmitter_power = 49.0;
else
double antenna_gain = 2.0; //pilot plane's antenna gain + AI aircraft antenna gain
transmitter_power = 43.0;
if(ground_to_air)
antenna_gain = 5.0; //pilot plane's antenna gain + Controller antenna gain
else
antenna_gain = 2.0; //pilot plane's antenna gain + AI aircraft antenna gain
double link_budget = transmitter_power - receiver_sensitivity + antenna_gain;