#include <Airports/groundnetwork.hxx>
#include <Airports/dynamics.hxx>
#include <Airports/simple.hxx>
+#include <Radio/radio.hxx>
using std::sort;
rec->getLatitude(), sender_alt );
}
radio->receiveText(sender_pos, stationFreq, text, ground_to_air);
+ delete radio;
}
else {
fgSetString("/sim/messages/atc", text.c_str());
#include <math.h>
#include <complex>
#include <assert.h>
-
+#include <stdio.h>
const float THIRD = (1.0/3.0);
const float f_0 = 47.7; // 47.7 MHz from [Alg 1.1], to convert frequency into wavenumber and vica versa
#include <math.h>
#include <stdlib.h>
#include <deque>
-
+#include "radio.hxx"
#include <Scenery/scenery.hxx>
#define WITH_POINT_TO_POINT 1
char strmode[150];
int errnum;
- double tx_pow,ant_gain;
+ double tx_pow = _transmitter_power;
+ double ant_gain = _antenna_gain;
double signal = 0.0;
if(transmission_type == 1)
// frequency in the middle of the bandplan, more accuracy is not necessary
double fz_clr= 8.657 * sqrt(distance_m / 0.125);
- // TODO: If we clear the first Fresnel zone, we are into line of sight teritory
+ // TODO: If we clear the first Fresnel zone, we are into line of sight territory
// else we need to calculate point to point link loss
if((transmission_type == 3) || (transmission_type == 4)) {
double _antenna_gain;
int _propagation_model; /// 0 none, 1 round Earth, 2 ITM
- double ITM_calculate_attenuation(SGGeod tx_pos, double freq, int ground_to_air)
+ double ITM_calculate_attenuation(SGGeod tx_pos, double freq, int ground_to_air);
public: