1
0
Fork 0

Fix a bug that is screwing me!

This commit is contained in:
curt 2009-08-13 17:01:36 +00:00 committed by Tim Moore
parent f8b8a55ef2
commit 0590333e53

View file

@ -464,22 +464,18 @@ bool FGATCOutput::do_analog_out() {
}
prop = child->getChild( "value-lo" );
if ( prop != NULL ) {
prop = fgGetNode( prop->getStringValue(), true );
x0 = prop->getDoubleValue();
}
prop = child->getChild( "meter-lo" );
if ( prop != NULL ) {
prop = fgGetNode( prop->getStringValue(), true );
y0 = prop->getDoubleValue();
}
prop = child->getChild( "value-hi" );
if ( prop != NULL ) {
prop = fgGetNode( prop->getStringValue(), true );
x1 = prop->getDoubleValue();
}
prop = child->getChild( "meter-hi" );
if ( prop != NULL ) {
prop = fgGetNode( prop->getStringValue(), true );
y1 = prop->getDoubleValue();
}
// crunch linear interpolation formula