-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update the FGMSIS
class
#916
Conversation
Codecov Report
@@ Coverage Diff @@
## master #916 +/- ##
==========================================
+ Coverage 23.13% 24.90% +1.76%
==========================================
Files 167 168 +1
Lines 19644 18870 -774
==========================================
+ Hits 4545 4699 +154
+ Misses 15099 14171 -928
|
Right. It's been 6 weeks since I submitted this PR and it does not seem to attract much comment/attention/suggestion/criticism. I suppose that submitting an unsolicited feature was not a good idea and I no longer want to force my vision to the JSBSim community so I'm closing this PR. As for the PRs #902 and #908, they are now irrelevant so you can revert them with the following commands: > git revert db830c68
> git revert 868aed43
> git push origin master |
@bcoconni sorry for my late message. I think you can merge your PR with the master branch. No problem on my side. |
Well, thanks @agodemar but what about you @seanmcleod ? I know you had some doubts about the features in the PR #902 and #908 and maybe we merged them too hastily ? |
@bcoconni I suggest you continue/re-open this pull request. I hadn't specifically commented on this pull request since I didn't see any specific issues with it, i.e. "no news is good news" 😉 I did raise some concerns with regards to #902 and #908 mainly in terms of wanting to keep things as simple and clear as possible, both in terms of users wanting to run their aircraft models with different atmospheres, different planet constants etc. and also in terms of trying to keep the required code changes as simple and clear as possible. In terms of FDM users I suggested rather than adding the atmosphere selection and planet constants into the FDM that they should be specified separately/externally to the FDM via something similar to initial conditions, maybe "environment conditions"? You had replied with:
So all good. |
Great ! Thanks for your feedback @agodemar and @seanmcleod 😄 |
This PR is a followup of the PRs #902 and #908.
This patch brings a major update to the
FGMSIS
class but does not plug it in yet. The ability to switch JSBSim atmosphere model to "MSIS" will be brought by another PR meaning that this PR code is non operational.The changes are:
FGMSIS.cpp
,FGMSIS.h
andFGMSISData.cpp
. This change is motivated by maintenance considerations: as the C code is kept pristine with respect to Dominik Brodowski original code, any update from Brodowski will only require a simple copy/paste of the files to update JSBSim rather manually updating some C++ code based on a diff.FGMSIS
is now inheriting fromFGStandardAtmosphere
instead ofFGAtmosphere
. This is needed to compute the pressure and density altitudes.FGStandardAtmosphere::SaturatedVaporPressure
as been modified: it is now equal toStdDaySLpressure
rather than being initialized to 0. This change is required to avoid a division by zero during the bind/unbind process (which is already tested by the unit testFGMSISTest
).FGAuxiliary
toFGMSIS
. The latter is the only class that uses the current day and hour so this avoids splitting responsibilities between classes. IMHO would the current day and hour be needed by another class, I'd rather move them inFGFDMExec
as it already manages the simulation time.FGMSISTest
has been added.nrlmsise-00_test.c
complies with the reference output documented in theDOCUMENTATION
file from D. Brodowski.