#ifndef _FG_NAVRADIO_HXX
#define _FG_NAVRADIO_HXX
-
+#include <Navaids/navaids_fwd.hxx>
#include <Main/fg_props.hxx>
#include <simgear/compiler.h>
#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;
int play_count;
bool _nav_search;
double _last_freq;
- FGNavRecordPtr _navaid;
- FGNavRecordPtr _gs;
+ FGNavRecordRef _navaid;
+ FGNavRecordRef _gs;
double target_radial;
double effective_range;
~FGNavRadio();
void init ();
+ void reinit ();
void bind ();
void unbind ();
void update (double dt);