Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/FGFDMExec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ void FGFDMExec::LoadInputs(unsigned int idx)
case eAuxiliary:
Auxiliary->in.Pressure = Atmosphere->GetPressure();
Auxiliary->in.Density = Atmosphere->GetDensity();
Auxiliary->in.DensitySL = Atmosphere->GetDensitySL();
Auxiliary->in.PressureSL = Atmosphere->GetPressureSL();
Auxiliary->in.Temperature = Atmosphere->GetTemperature();
Auxiliary->in.SoundSpeed = Atmosphere->GetSoundSpeed();
Expand Down
3 changes: 3 additions & 0 deletions src/models/FGAtmosphere.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ class JSBSIM_API FGAtmosphere : public FGModel {

virtual void bind(void);
void Debug(int from) override;

public:
static constexpr double StdDaySLdensity = StdDaySLpressure / (Reng0 * StdDaySLtemperature);
};

} // namespace JSBSim
Expand Down
2 changes: 1 addition & 1 deletion src/models/FGAuxiliary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ bool FGAuxiliary::Run(bool Holding)

if (abs(Mach) > 0.0) {
vcas = VcalibratedFromMach(Mach, in.Pressure);
veas = sqrt(2 * qbar / in.DensitySL);
veas = sqrt(2 * qbar / FGAtmosphere::StdDaySLdensity);
}
else
vcas = veas = 0.0;
Expand Down