1 // mag_compass.hxx - an altimeter tied to the static port.
2 // Written by David Megginson, started 2002.
4 // This file is in the Public Domain and comes with no warranty.
7 #ifndef __INSTRUMENTS_MAG_COMPASS_HXX
8 #define __INSTRUMENTS_MAG_COMPASS_HXX 1
11 # error This library requires C++
14 #include <simgear/props/props.hxx>
15 #include <simgear/structure/subsystem_mgr.hxx>
19 * Model a magnetic compass.
23 * /instrumentation/"name"/serviceable
24 * /orientation/roll-deg
25 * /orientation/pitch-deg
26 * /orientation/heading-magnetic-deg
27 * /orientation/side-slip-deg
28 * /environment/magnetic-dip-deg
29 * /accelerations/pilot/north-accel-fps_sec
30 * /accelerations/pilot/east-accel-fps_sec
31 * /accelerations/pilot/down-accel-fps_sec
35 * /instrumentation/"name"/indicated-heading-deg
37 class MagCompass : public SGSubsystem
42 MagCompass ( SGPropertyNode *node);
44 virtual ~MagCompass ();
47 virtual void update (double dt);
57 SGPropertyNode_ptr _serviceable_node;
58 SGPropertyNode_ptr _roll_node;
59 SGPropertyNode_ptr _pitch_node;
60 SGPropertyNode_ptr _heading_node;
61 SGPropertyNode_ptr _beta_node;
62 SGPropertyNode_ptr _dip_node;
63 SGPropertyNode_ptr _x_accel_node;
64 SGPropertyNode_ptr _y_accel_node;
65 SGPropertyNode_ptr _z_accel_node;
66 SGPropertyNode_ptr _out_node;
70 #endif // __INSTRUMENTS_MAG_COMPASS_HXX