-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<pure_gain>: no error messages #497
Comments
@Mike402 thanks for the detailed bug report. |
Regarding the topic 1/, actually the issue is not limited to
Regarding the topic 2/, that's weird since there is already some code to display a warning if jsbsim/src/models/flight_control/FGGain.cpp Lines 61 to 67 in 08d2f85
Could you please check again to see if you did not miss the message "No GAIN specified (default: 1.0)" in the console ?
|
Check the number of <input> nodes (issue JSBSim-Team#497).
Bug fixed in release Issue closed. |
I am very sorry, this was lost in the dozens emails per day I have been receiving. Yes, it prints the warning now, thank you. |
There is still crash for the case "1." and no warnings for "3.", however. But it could be because 2020.3 has not received new version of JSBSim. Will check with Next. |
Indeed. |
Yes, still there on Next. |
Just pushed the code on FlightGear |
Yay, the number-of-input check works! But with zero inputs it crashes after printing the check's error:
|
But it still does not seem to print a warning in case of 2 |
JSBSim just throws an exception when the number of inputs is not met and the crash you are reporting occurs within FlightGear code, not JSBSim code. So I'd suggest to first report this issue to the FlightGear devs and if they can trace back the issue to JSBSim then please report (or link) their conclusions here. |
Regarding the case of the missing For the specific task of XML validation, there is an ongoing effort (issue #155) to update the XSD schemas for JSBSim: once updated, they could be used for XML validation, which is basically what you are requesting for the extra |
I'm submitting a ...
Describe the issue
I noticed that
<pure_gain>
does not report any errors in its configuration.What is the current behavior?
Without
<input>
crashes FlightGear (see below the backtrace).Without
<gain>
it silently assumes the gain of 1.With two
<input>
s or<gain>
s it silently uses the first ones.What is the expected behavior?
The expected behaviour would be that in case "1." it would print an error and stop FlightGear, and in the other 2 cases print a warning, with enough information to find the misconfigured
<gain>
.What is the motivation / use case for changing the behavior?
The warnings would reduce the rate of silent errors occuring in FlgihtGear aircraft.
Please tell us about your environment:
FlightGear next as of 2021-08-26.
Other information
Backtrace for case "1.".
The text was updated successfully, but these errors were encountered: