Allow the slip/skid ball to be overridden by an external source which
calculates the position instead.
This commit is contained in:
parent
23c1057a19
commit
4a5961ca5b
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -50,6 +50,7 @@ private:
|
|||
SGPropertyNode_ptr _y_accel_node;
|
||||
SGPropertyNode_ptr _z_accel_node;
|
||||
SGPropertyNode_ptr _out_node;
|
||||
SGPropertyNode_ptr _override_node;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue