From 332f76b11e0fd7e5c3dc841c2c95b4b10405f8e9 Mon Sep 17 00:00:00 2001 From: adrian Date: Thu, 24 Nov 2011 04:49:05 +0200 Subject: [PATCH] remove subsystem --- src/Instrumentation/commradio.cxx | 22 +++------------------- src/Instrumentation/commradio.hxx | 7 +------ 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/src/Instrumentation/commradio.cxx b/src/Instrumentation/commradio.cxx index 304d2ddee..b6a34a432 100644 --- a/src/Instrumentation/commradio.cxx +++ b/src/Instrumentation/commradio.cxx @@ -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; diff --git a/src/Instrumentation/commradio.hxx b/src/Instrumentation/commradio.hxx index 397fca581..70cafd937 100644 --- a/src/Instrumentation/commradio.hxx +++ b/src/Instrumentation/commradio.hxx @@ -28,13 +28,12 @@ #include #include -#include 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); -- 2.39.5