X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Ftacan.hxx;h=48ca925f251d48f791dd7a8d31e383021e183fb4;hb=def81b4de5f87c28b5afd92264e40e66e4fd93e3;hp=7c8873aed438ffd2dc0fec3ab60b6144eb002b11;hpb=871b92ae339b33a2c6ee5ede4a61dbc39c9ca3f3;p=flightgear.git diff --git a/src/Instrumentation/tacan.hxx b/src/Instrumentation/tacan.hxx old mode 100755 new mode 100644 index 7c8873aed..48ca925f2 --- a/src/Instrumentation/tacan.hxx +++ b/src/Instrumentation/tacan.hxx @@ -40,21 +40,18 @@ public: virtual ~TACAN (); virtual void init (); + virtual void reinit (); virtual void update (double delta_time_sec); private: - void search (double frequency, double longitude_rad, - double latitude_rad, double altitude_m); - double searchChannel (const string& channel); + void search (double frequency, const SGGeod& pos); + double searchChannel (const std::string& channel); void valueChanged (SGPropertyNode *); - string _name; + std::string _name; unsigned int _num; - SGPropertyNode_ptr _longitude_node; - SGPropertyNode_ptr _latitude_node; - SGPropertyNode_ptr _altitude_node; SGPropertyNode_ptr _heading_node; SGPropertyNode_ptr _yaw_node; SGPropertyNode_ptr _serviceable_node; @@ -85,7 +82,7 @@ private: SGPropertyNode_ptr _mp_callsign_node; // FIXME bool _new_frequency; - string _channel; + std::string _channel; double _last_distance_nm; double _frequency_mhz; double _time_before_search_sec; @@ -98,16 +95,15 @@ private: double _transmitter_range_nm; double _transmitter_bearing_deg; double _transmitter_bias; - string _transmitter_name; - string _transmitter_ident; + std::string _transmitter_name; + std::string _transmitter_ident; - double _mobile_lat, _mobile_lon; - double _mobile_elevation_ft; + SGGeod _mobilePos; double _mobile_range_nm; double _mobile_bearing_deg; double _mobile_bias; - string _mobile_name; - string _mobile_ident; + std::string _mobile_name; + std::string _mobile_ident; int _listener_active; };