#include <simgear/structure/subsystem_mgr.hxx>
#include <simgear/timing/timestamp.hxx>
-// forward decls
-class SGInterpTable;
-
class SGSampleGroup;
class FGNavRecord;
typedef SGSharedPtr<FGNavRecord> FGNavRecordPtr;
class FGNavRadio : public SGSubsystem, public SGPropertyChangeListener
{
- SGInterpTable *term_tbl;
- SGInterpTable *low_tbl;
- SGInterpTable *high_tbl;
-
SGPropertyNode_ptr _radio_node;
SGPropertyNode_ptr bus_power_node;
bool _operable; ///< is the unit serviceable, on, powered, etc
int play_count;
- time_t last_time;
+ bool _nav_search;
+ double _last_freq;
FGNavRecordPtr _navaid;
FGNavRecordPtr _gs;
~FGNavRadio();
void init ();
+ void reinit ();
void bind ();
void unbind ();
void update (double dt);
// Update nav/adf radios based on current postition
void search ();
+ void updateNav();
};