Expose the strut compression.
This commit is contained in:
parent
0e48d96118
commit
c1602bd1aa
1 changed files with 2 additions and 0 deletions
|
@ -1023,6 +1023,7 @@ void FGJSBsim::init_gear(void )
|
||||||
node->setBoolValue("has-brake", gear->GetBrakeGroup() > 0);
|
node->setBoolValue("has-brake", gear->GetBrakeGroup() > 0);
|
||||||
node->setDoubleValue("position-norm", FCS->GetGearPos());
|
node->setDoubleValue("position-norm", FCS->GetGearPos());
|
||||||
node->setDoubleValue("tire-pressure-norm", gear->GetTirePressure());
|
node->setDoubleValue("tire-pressure-norm", gear->GetTirePressure());
|
||||||
|
node->setDoubleValue("compression-norm", gear->GetCompLen());
|
||||||
if ( gear->GetSteerable() )
|
if ( gear->GetSteerable() )
|
||||||
node->setDoubleValue("steering-norm", gear->GetSteerNorm());
|
node->setDoubleValue("steering-norm", gear->GetSteerNorm());
|
||||||
}
|
}
|
||||||
|
@ -1038,6 +1039,7 @@ void FGJSBsim::update_gear(void)
|
||||||
node->getChild("wow", 0, true)->setBoolValue( gear->GetWOW());
|
node->getChild("wow", 0, true)->setBoolValue( gear->GetWOW());
|
||||||
node->getChild("position-norm", 0, true)->setDoubleValue(FCS->GetGearPos());
|
node->getChild("position-norm", 0, true)->setDoubleValue(FCS->GetGearPos());
|
||||||
gear->SetTirePressure(node->getDoubleValue("tire-pressure-norm"));
|
gear->SetTirePressure(node->getDoubleValue("tire-pressure-norm"));
|
||||||
|
node->setDoubleValue("compression-norm", gear->GetCompLen());
|
||||||
if ( gear->GetSteerable() )
|
if ( gear->GetSteerable() )
|
||||||
node->setDoubleValue("steering-norm", gear->GetSteerNorm());
|
node->setDoubleValue("steering-norm", gear->GetSteerNorm());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue