Skip to content

Commit

Permalink
Add propulsion/fuel_freeze property (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcleod authored and bcoconni committed Jul 10, 2021
1 parent 168be08 commit 46800dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/FGPropulsion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ void FGPropulsion::bind(void)
{
typedef double (FGPropulsion::*PMF)(int) const;
typedef int (FGPropulsion::*iPMF)(void) const;
typedef bool (FGPropulsion::*bPMF)(void) const;

IsBound = true;
PropertyManager->Tie("propulsion/set-running", this, (iPMF)0, &FGPropulsion::InitRunning);
Expand All @@ -827,6 +828,7 @@ void FGPropulsion::bind(void)
TotalOxidizerQuantity = PropertyManager->CreatePropertyObject<double>("propulsion/total-oxidizer-lbs");
refuel = PropertyManager->CreatePropertyObject<bool>("propulsion/refuel");
dump = PropertyManager->CreatePropertyObject<bool>("propulsion/fuel_dump");
PropertyManager->Tie("propulsion/fuel_freeze", this, (bPMF)nullptr, &FGPropulsion::SetFuelFreeze);
}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down

0 comments on commit 46800dd

Please # to comment.