#ifndef __INSTRUMENTS_TACAN_HXX
#define __INSTRUMENTS_TACAN_HXX 1
-#ifndef __cplusplus
-# error This library requires C++
-#endif
-
-#include <simgear/math/point3d.hxx>
#include <simgear/props/props.hxx>
#include <simgear/structure/subsystem_mgr.hxx>
public:
TACAN ( SGPropertyNode *node );
- TACAN ();
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);
+ double searchChannel (const std::string& channel);
void valueChanged (SGPropertyNode *);
- string _name;
+ std::string _name;
unsigned int _num;
SGPropertyNode_ptr _longitude_node;
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;
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;
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;
};