ITM radio calculations are only considered valid
between 40 MHz and 20 GHz. Fix for bug which assigns a frequency of 0 MHz to AI aircraft, thus resulting in infinite values.
This commit is contained in:
parent
e82c36d76b
commit
045912f5a7
1 changed files with 2 additions and 1 deletions
|
@ -211,7 +211,8 @@ void FGRadioTransmission::receiveATC(SGGeod tx_pos, double freq, string text, in
|
|||
double FGRadioTransmission::ITM_calculate_attenuation(SGGeod pos, double freq, int transmission_type) {
|
||||
|
||||
|
||||
|
||||
if((freq < 40.0) || (freq > 20000.0)) // frequency out of recommended range
|
||||
return -1;
|
||||
/** ITM default parameters
|
||||
TODO: take them from tile materials (especially for sea)?
|
||||
**/
|
||||
|
|
Loading…
Reference in a new issue