X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fadf.hxx;h=2ac32fa9d10effff6a818382c77806c225e7e854;hb=1867ccb4a8484b9bc856c88629e09e25bcc35d42;hp=d43bdce600e16845ccb83b5d0f2f2483627d9175;hpb=ef52b23e3a1aaf44d1a2283c920a70367960abff;p=flightgear.git diff --git a/src/Instrumentation/adf.hxx b/src/Instrumentation/adf.hxx index d43bdce60..2ac32fa9d 100644 --- a/src/Instrumentation/adf.hxx +++ b/src/Instrumentation/adf.hxx @@ -13,14 +13,12 @@ #include -#include #include #include -#include - -SG_USING_STD(string); +#include +class SGSampleGroup; /** * Model an ADF radio. @@ -51,7 +49,6 @@ class ADF : public SGSubsystem public: ADF ( SGPropertyNode *node ); - ADF (); virtual ~ADF (); virtual void init (); @@ -61,12 +58,11 @@ private: void set_bearing (double delta_time_sec, double bearing); - void search (double frequency, double longitude_rad, - double latitude_rad, double altitude_m); + void search (double frequency, const SGGeod& pos); + + std::string _name; + unsigned int _num; - SGPropertyNode_ptr _longitude_node; - SGPropertyNode_ptr _latitude_node; - SGPropertyNode_ptr _altitude_node; SGPropertyNode_ptr _heading_node; SGPropertyNode_ptr _serviceable_node; SGPropertyNode_ptr _error_node; @@ -79,24 +75,24 @@ private: SGPropertyNode_ptr _ident_node; SGPropertyNode_ptr _ident_audible_node; SGPropertyNode_ptr _volume_node; + SGPropertyNode_ptr _power_btn_node; + SGPropertyNode_ptr _operable_node; double _time_before_search_sec; int _last_frequency_khz; bool _transmitter_valid; - string _last_ident; + std::string _last_ident; SGGeod _transmitter_pos; SGVec3d _transmitter_cart; double _transmitter_range_nm; - FGMorse morse; int _ident_count; time_t _last_ident_time; - double _last_volume; + float _last_volume; + std::string _adf_ident; - string name; - int num; - string adf_ident; + SGSharedPtr _sgr; };