1 // dme.hxx - distance-measuring equipment.
2 // Written by David Megginson, started 2003.
4 // This file is in the Public Domain and comes with no warranty.
7 #ifndef __INSTRUMENTS_DME_HXX
8 #define __INSTRUMENTS_DME_HXX 1
10 #include <simgear/props/props.hxx>
11 #include <simgear/structure/subsystem_mgr.hxx>
18 * /position/longitude-deg
19 * /position/latitude-deg
20 * /position/altitude-ft
21 * /systems/electrical/outputs/dme
22 * /instrumentation/"name"/serviceable
23 * /instrumentation/"name"/frequencies/source
24 * /instrumentation/"name"/frequencies/selected-mhz
28 * /instrumentation/"name"/in-range
29 * /instrumentation/"name"/indicated-distance-nm
30 * /instrumentation/"name"/indicated-ground-speed-kt
31 * /instrumentation/"name"/indicated-time-kt
33 class DME : public SGSubsystem
38 DME ( SGPropertyNode *node );
42 virtual void update (double delta_time_sec);
46 SGPropertyNode_ptr _serviceable_node;
47 SGPropertyNode_ptr _electrical_node;
48 SGPropertyNode_ptr _source_node;
49 SGPropertyNode_ptr _frequency_node;
51 SGPropertyNode_ptr _in_range_node;
52 SGPropertyNode_ptr _distance_node;
53 SGPropertyNode_ptr _speed_node;
54 SGPropertyNode_ptr _time_node;
55 SGPropertyNode_ptr _ident_btn_node;
56 SGPropertyNode_ptr _volume_node;
58 double _last_distance_nm;
59 double _last_frequency_mhz;
60 double _time_before_search_sec;
62 FGNavRecord * _navrecord;
67 class AudioIdent * _audioIdent;
71 #endif // __INSTRUMENTS_DME_HXX