]> git.mxchange.org Git - flightgear.git/commitdiff
remove subsystem
authoradrian <adrian@localhost.com>
Thu, 24 Nov 2011 02:49:05 +0000 (04:49 +0200)
committeradrian <adrian@localhost.com>
Thu, 24 Nov 2011 02:49:05 +0000 (04:49 +0200)
src/Instrumentation/commradio.cxx
src/Instrumentation/commradio.hxx

index 304d2ddeef80c15aea463807f2b9914e77bf99f1..b6a34a4321afe2de6395f2922524f786f7cf2233 100644 (file)
@@ -53,22 +53,6 @@ FGCommRadio::~FGCommRadio()
 {
 }
 
-void FGCommRadio::init ()
-{
-}
-
-
-void FGCommRadio::bind ()
-{
-}
-
-
-void FGCommRadio::update ()
-{
-       if (dt <= 0.0) {
-               return; // paused
-    }
-}
 
 double FGCommRadio::getFrequency(int radio) {
        double freq = 118.0;
@@ -92,8 +76,8 @@ double FGCommRadio::getFrequency(int radio) {
 void FGCommRadio::receiveText(SGGeod tx_pos, double freq, string text,
        int ground_to_air) {
 
-       comm1 = getFrequency(1);
-       comm2 = getFrequency(2);
+       double comm1 = getFrequency(1);
+       double comm2 = getFrequency(2);
        if ( (freq != comm1) &&  (freq != comm2) ) {
                return;
        }
@@ -143,7 +127,7 @@ double FGCommRadio::ITM_calculate_attenuation(SGGeod pos, double freq,
        int radio_climate = 5;          // continental temperate
        int pol=1;      // assuming vertical polarization although this is more complex in reality
        double conf = 0.90;     // 90% of situations and time, take into account speed
-       double rel = 0.90;      // ^^
+       double rel = 0.90;      
        double dbloss;
        char strmode[150];
        int errnum;
index 397fca5816b29554a0f594921f31e5e5a0556782..70cafd9374a42e97196033b6a173a8784c6e6d01 100644 (file)
 
 #include <simgear/math/sg_geodesy.hxx>
 #include <simgear/debug/logstream.hxx>
-#include <string>
 
 
 using std::string;
 
 
-class FGCommRadio : public SGSubsystem, public SGPropertyChangeListener
+class FGCommRadio 
 {
 private:
        bool isOperable() const
@@ -53,10 +52,6 @@ public:
     FGCommRadio(SGPropertyNode *node);
     ~FGCommRadio();
 
-    void init ();
-    void bind ();
-    void unbind ();
-    void update (double dt);
     
     void setFrequency(double freq, int radio);
     double getFrequency(int radio);