#include <simgear/timing/timestamp.hxx>
#include <Navaids/navlist.hxx>
-#include <Sound/morse.hxx>
+class SGSampleGroup;
class FGKR_87 : public SGSubsystem
{
- FGMorse morse;
-
- SGPropertyNode *lon_node;
- SGPropertyNode *lat_node;
- SGPropertyNode *alt_node;
- SGPropertyNode *bus_power;
- SGPropertyNode *serviceable;
+ SGPropertyNode_ptr bus_power;
+ SGPropertyNode_ptr serviceable;
bool need_update;
// internal values
- string ident;
- string trans_ident;
+ std::string ident;
+ std::string trans_ident;
bool valid;
bool inrange;
double stn_lon;
double effective_range;
double dist;
double heading;
- double x;
- double y;
- double z;
+ SGVec3d xyz;
double goal_needle_deg;
double et_flash_time;
// internal periodic station search timer
double _time_before_search_sec;
+ SGSharedPtr<SGSampleGroup> _sgr;
+
public:
FGKR_87( SGPropertyNode *node );
void search ();
// internal values
- inline const string& get_ident() const { return ident; }
+ inline const std::string& get_ident() const { return ident; }
inline bool get_valid() const { return valid; }
inline bool get_inrange() const { return inrange; }
inline double get_stn_lon() const { return stn_lon; }