Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoconni committed Feb 17, 2025
1 parent fc25918 commit d8628f9
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/input_output/FGOutputFG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,15 @@ void FGOutputFG::SocketDataFill(FGNetFDM* net)
case (FGEngine::etPiston):
{
auto piston_engine = static_pointer_cast<FGPiston>(engine);
net->rpm[i] = (float)(piston_engine->getRPM());
net->rpm[i] = (float)(piston_engine->getRPM());
net->fuel_flow[i] = (float)(piston_engine->getFuelFlow_gph());
net->fuel_px[i] = 0; // Fuel pressure, psi (N/A in current model)
net->egt[i] = (float)(piston_engine->GetEGT());
net->cht[i] = (float)(piston_engine->getCylinderHeadTemp_degF());
net->mp_osi[i] = (float)(piston_engine->getManifoldPressure_inHg());
net->oil_temp[i] = (float)(piston_engine->getOilTemp_degF());
net->oil_px[i] = (float)(piston_engine->getOilPressure_psi());
net->tit[i] = 0; // Turbine Inlet Temperature (N/A for piston)
net->fuel_px[i] = 0; // Fuel pressure, psi (N/A in current model)
net->egt[i] = (float)(piston_engine->GetEGT());
net->cht[i] = (float)(piston_engine->getCylinderHeadTemp_degF());
net->mp_osi[i] = (float)(piston_engine->getManifoldPressure_inHg());
net->oil_temp[i] = (float)(piston_engine->getOilTemp_degF());
net->oil_px[i] = (float)(piston_engine->getOilPressure_psi());
net->tit[i] = 0; // Turbine Inlet Temperature (N/A for piston)
}
break;
case (FGEngine::etTurbine):
Expand All @@ -257,8 +257,9 @@ void FGOutputFG::SocketDataFill(FGNetFDM* net)

net->num_tanks = min(FGNetFDM::FG_MAX_TANKS, Propulsion->GetNumTanks()); // Max number of fuel tanks

for (i = 0; i < net->num_tanks; i++)
for (i=0; i<net->num_tanks; i++) {
net->fuel_quantity[i] = (float)(Propulsion->GetTank(i)->GetContents());
}

net->num_wheels = min(FGNetFDM::FG_MAX_WHEELS, GroundReactions->GetNumGearUnits());

Expand Down

0 comments on commit d8628f9

Please sign in to comment.