]> git.mxchange.org Git - flightgear.git/blobdiff - src/Radio/antenna.hxx
Expose a radio function (receiveBeacon) to the Nasal subsystem
[flightgear.git] / src / Radio / antenna.hxx
index f24c133ee2d8131f10dc8327c1293aff12f4273e..0421a7f0cccb0c0220025390685b55685adb6277 100644 (file)
 #include <simgear/math/sg_geodesy.hxx>
 #include <simgear/debug/logstream.hxx>
 
+using std::string;
+
 class FGRadioAntenna
 {
 private:
-       void _load_antenna_pattern();
+       void load_antenna_pattern(string type);
        int _mirror_y;
        int _mirror_z;
        int _invert_ground;
@@ -41,15 +43,15 @@ private:
                double elevation;
                double gain;
        };
-       
-       typedef std::vector<AntennaGain> AntennaPattern;
+       SGPath _pattern_file;
+       typedef std::vector<AntennaGain*> AntennaPattern;
        AntennaPattern _pattern;
        
 public:
        
-       FGRadioAntenna();
+       FGRadioAntenna(string type);
     ~FGRadioAntenna();
-       double calculate_gain(double azimuth, double elevation);
-       
-       
+       double calculate_gain(double bearing, double angle);
+       void set_heading(double heading_deg) {_heading_deg = heading_deg ;};
+       void set_elevation_angle(double elevation_angle_deg) {_elevation_angle_deg = elevation_angle_deg ;};
 };