bugfix
This commit is contained in:
parent
2f0ea5f3f1
commit
135c544f6e
1 changed files with 7 additions and 5 deletions
|
@ -834,7 +834,7 @@ double FGATCController::calculate_attenuation(FGTrafficRecord * rec, FGAirportDy
|
||||||
if (distance_m > 400000)
|
if (distance_m > 400000)
|
||||||
return -1.0;
|
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) {
|
while (_elevations.size() < e_size) {
|
||||||
probe_distance += point_distance;
|
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)
|
// !!! small aircraft have portable transmitters which operate at 36 dBm output (4 Watts)
|
||||||
// later store this value in aircraft description
|
// later store this value in aircraft description
|
||||||
// ATC comms usually operate high power equipment, thus making the link asymetrical; this is ignored for now
|
// ATC comms usually operate high power equipment, thus making the link asymetrical; this is ignored for now
|
||||||
|
double transmitter_power = 43.0;
|
||||||
|
double antenna_gain = 2.0;
|
||||||
if(ground_to_air)
|
if(ground_to_air)
|
||||||
double transmitter_power = 49.0;
|
transmitter_power = 49.0;
|
||||||
else
|
else
|
||||||
double transmitter_power = 43.0;
|
transmitter_power = 43.0;
|
||||||
if(ground_to_air)
|
if(ground_to_air)
|
||||||
double antenna_gain = 5.0; //pilot plane's antenna gain + Controller antenna gain
|
antenna_gain = 5.0; //pilot plane's antenna gain + Controller antenna gain
|
||||||
else
|
else
|
||||||
double antenna_gain = 2.0; //pilot plane's antenna gain + AI aircraft antenna gain
|
antenna_gain = 2.0; //pilot plane's antenna gain + AI aircraft antenna gain
|
||||||
double link_budget = transmitter_power - receiver_sensitivity + antenna_gain;
|
double link_budget = transmitter_power - receiver_sensitivity + antenna_gain;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue