]> git.mxchange.org Git - flightgear.git/blobdiff - src/Radio/radio.hxx
Expose a radio function (receiveBeacon) to the Nasal subsystem
[flightgear.git] / src / Radio / radio.hxx
index 7b07d927e9e4e4b7eef9411f9c68c88dc5a26751..06e05e9707dba67f70fca0ef8920a7aa661437f4 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <simgear/math/sg_geodesy.hxx>
 #include <simgear/debug/logstream.hxx>
-
+#include "antenna.hxx"
 
 using std::string;
 
@@ -48,6 +48,7 @@ private:
        double _tx_antenna_gain;
        double _rx_line_losses;
        double _tx_line_losses;
+       
        double _terrain_sampling_distance;
        int _polarization;
        std::map<string, double[2]> _mat_database;
@@ -56,7 +57,7 @@ private:
        double polarization_loss();
        double ITM_calculate_attenuation(SGGeod tx_pos, double freq, int ground_to_air);
        double LOS_calculate_attenuation(SGGeod tx_pos, double freq, int ground_to_air);
-       void clutterLoss(double freq, double distance_m, double itm_elev[], std::deque<string> materials,
+       void calculate_clutter_loss(double freq, double itm_elev[], std::deque<string> &materials,
                        double transmitter_height, double receiver_height, int p_mode,
                        double horizons[], double &clutter_loss);
        void get_material_properties(string mat_name, double &height, double &density);
@@ -91,7 +92,7 @@ public:
     // returns signal quality
     // transmission_type: 0 for VOR, 1 for ILS
     double receiveNav(SGGeod tx_pos, double freq, int transmission_type);
-    
+    double receiveBeacon(double lat, double lon, double elev, double heading, double pitch);
 };