1
0
Fork 0
flightgear/src/Instrumentation/slip_skid_ball.hxx
ehofman f614545fc5 Roy Vegard Ovesen:
Instrumentation and systems are now configureable from xml files. The two
generic configurations generic-systems.xml and generic-instrumentation.xml
configures the systems and instrumentation as it was hardcoded. You can
override the generic configurations in a similar way as you override the
autopilot configuration.
2004-10-16 12:37:39 +00:00

61 lines
1.2 KiB
C++

// slip_skid_ball.hxx - an slip-skid ball.
// Written by David Megginson, started 2003.
//
// This file is in the Public Domain and comes with no warranty.
#ifndef __INSTRUMENTS_SLIP_SKID_BALL_HXX
#define __INSTRUMENTS_SLIP_SKID_BALL_HXX 1
#ifndef __cplusplus
# error This library requires C++
#endif
#include <simgear/props/props.hxx>
#include <simgear/structure/subsystem_mgr.hxx>
#include "gyro.hxx"
/**
* Model a slip-skid ball.
*
* Input properties:
*
* /instrumentation/"name"/serviceable
* /accelerations/pilot/y-accel-fps_sec
* /accelerations/pilot/z-accel-fps_sec
*
* Output properties:
*
* /instrumentation/"name"/indicated-slip-skid
*/
class SlipSkidBall : public SGSubsystem
{
public:
SlipSkidBall ( SGPropertyNode *node );
SlipSkidBall ();
virtual ~SlipSkidBall ();
virtual void init ();
virtual void update (double dt);
private:
Gyro _gyro;
double _last_pos;
string name;
int num;
SGPropertyNode_ptr _serviceable_node;
SGPropertyNode_ptr _y_accel_node;
SGPropertyNode_ptr _z_accel_node;
SGPropertyNode_ptr _out_node;
SGPropertyNode_ptr _override_node;
};
#endif // __INSTRUMENTS_SLIP_SKID_BALL_HXX