#define _FG_RADIOSTACK_HXX
-#include <Main/fgfs.hxx>
#include <Main/fg_props.hxx>
#include <simgear/compiler.h>
-
+#include <simgear/structure/subsystem_mgr.hxx>
#include <simgear/math/interpolater.hxx>
#include <simgear/timing/timestamp.hxx>
#include "dme.hxx"
#include "kr_87.hxx" // ADF
#include "kt_70.hxx" // Transponder
+#include "marker_beacon.hxx"
#include "navcom.hxx"
-class FGRadioStack : public FGSubsystem
+class FGRadioStack : public SGSubsystem
{
- FGBeacon beacon;
- FGMorse morse;
-
- SGInterpTable *term_tbl;
- SGInterpTable *low_tbl;
- SGInterpTable *high_tbl;
-
- SGPropertyNode *lon_node;
- SGPropertyNode *lat_node;
- SGPropertyNode *alt_node;
- SGPropertyNode *dme_bus_power;
-
- bool need_update;
-
- bool outer_marker;
- bool middle_marker;
- bool inner_marker;
-
- SGTimeStamp blink;
- bool outer_blink;
- bool middle_blink;
- bool inner_blink;
-
FGDME dme;
FGKR_87 adf; // King KR 87 Digital ADF model
FGKT_70 xponder; // Bendix/King KT 70 Panel-Mounted Transponder
+ FGMarkerBeacon beacon;
FGNavCom navcom1;
FGNavCom navcom2;
// Update nav/adf radios based on current postition
void search ();
+ inline FGDME *get_dme() { return &dme; }
inline FGNavCom *get_navcom1() { return &navcom1; }
inline FGNavCom *get_navcom2() { return &navcom2; }
-
- // Marker Beacon Accessors
- inline bool get_inner_blink () const { return inner_blink; }
- inline bool get_middle_blink () const { return middle_blink; }
- inline bool get_outer_blink () const { return outer_blink; }
};