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>
21 * /position/longitude-deg
22 * /position/latitude-deg
23 * /position/altitude-ft
24 * /systems/electrical/outputs/dme
25 * /instrumentation/"name"/serviceable
26 * /instrumentation/"name"/frequencies/source
27 * /instrumentation/"name"/frequencies/selected-mhz
31 * /instrumentation/"name"/in-range
32 * /instrumentation/"name"/indicated-distance-nm
33 * /instrumentation/"name"/indicated-ground-speed-kt
34 * /instrumentation/"name"/indicated-time-kt
36 class DME : public SGSubsystem
41 DME ( SGPropertyNode *node );
45 virtual void reinit ();
46 virtual void update (double delta_time_sec);
50 SGPropertyNode_ptr _serviceable_node;
51 SGPropertyNode_ptr _electrical_node;
52 SGPropertyNode_ptr _source_node;
53 SGPropertyNode_ptr _frequency_node;
55 SGPropertyNode_ptr _in_range_node;
56 SGPropertyNode_ptr _distance_node;
57 SGPropertyNode_ptr _speed_node;
58 SGPropertyNode_ptr _time_node;
59 SGPropertyNode_ptr _ident_btn_node;
60 SGPropertyNode_ptr _volume_node;
62 double _last_distance_nm;
63 double _last_frequency_mhz;
64 double _time_before_search_sec;
66 FGNavRecord * _navrecord;
71 class AudioIdent * _audioIdent;
75 #endif // __INSTRUMENTS_DME_HXX