1
0
Fork 0

Allow the slip/skid ball to be overridden by an external source which

calculates the position instead.
This commit is contained in:
curt 2003-11-10 21:57:14 +00:00
parent 23c1057a19
commit 4a5961ca5b
2 changed files with 5 additions and 2 deletions

View file

@ -25,12 +25,14 @@ SlipSkidBall::init ()
_z_accel_node = fgGetNode("/accelerations/pilot/z-accel-fps_sec", true);
_out_node =
fgGetNode("/instrumentation/slip-skid-ball/indicated-slip-skid", true);
_override_node =
fgGetNode("/instrumentation/slip-skid-ball/override", true);
}
void
SlipSkidBall::update (double delta_time_sec)
{
if (_serviceable_node->getBoolValue()) {
if (_serviceable_node->getBoolValue() && !_override_node->getBoolValue()) {
double d = -_z_accel_node->getDoubleValue();
if (d < 1.0)
d = 1.0;

View file

@ -50,6 +50,7 @@ private:
SGPropertyNode_ptr _y_accel_node;
SGPropertyNode_ptr _z_accel_node;
SGPropertyNode_ptr _out_node;
SGPropertyNode_ptr _override_node;
};