-
Notifications
You must be signed in to change notification settings - Fork 431
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
Aircraft file with fatal error #90
Comments
@muell869 what was the issue? I presume you found and fixed some issue in your input data given that you closed the issue? |
Hi Sean, I closed it because I wasn't sure if this was an appropriate place to post a user issue. I haven't made much headway! |
I would say this is an appropriate forum. There is a possibility that there is a bug in JSBSim in parsing your FDM, or at a minimum even if you have made a mistake in your FDM ideally JSBSim should spit out a meaningful error message rather than just crashing. |
Sure, thank you. Attached is the working rascal config file. The unknown exception is displayed when using the file previously attached. What is more confusing to me is that the original rascal model will run with the new aerodynamics definitions inserted into its config file, so it seems that something else is throwing JSBSim off in the new file. I also noticed that the new metrics, mass prop, etc make the old model completely unusable in FlightGear when swapped, even though the dimensions are not very different. |
@muell869 do you not see any error message printed to the console before the fatal exception? I unzipped your RascalModel.zip and tried using it as follows:
The first error I came across was:
What seems to be happening here is that JSBSim is happy to load your engine model from the same directory as the FDM but it can't seem to find the thruster file
Since you haven't included the Can you include the full package of files? I'll then continue testing. |
Quickly commenting out the autopilot I then get the following:
Why do you think And taking a quick look at the original Rascal FDM you attached it doesn't attempt to use a property called
Are you not seeing these error messages from JSBSim? |
I'm sorry, I sent you an older config file. I did get an error for the unknown property and changed it to I am using the current version of JSBSim in Debian 9. I really appreciate your help! |
Okay using your updated files I see the following now. I don't see any issue loading the FDM, I'm using the following to run it in stand-alone JSBSim:
The FDM loads fine and the simulation starts executing, by the look of it your
Floating point exception happens in: void FGQuaternion::ComputeDerivedUnconditional(void) const
{
…
// Now compute the transformation matrix.
double q0q0 = q0*q0;
Which is being called from: bool FGPropagate::Run(bool Holding)
{
...
VState.qAttitudeLocal = Tl2b.GetQuaternion(); Has anything been changed in terms of the gear properties compared to the standard Rascal model? |
There have been no changes made to the ground reactions, but I've been told that they are touchy for this particular model. The rosemount.xml file should start the aircraft in the air. Using the Rascal model and
What am I missing that changes the behavior of the model? US120.xml and US120AP.xml should be the same files as Rascal110-JSBSim.xml and RascalAP.xml but with different names. Just swapping the Rascal110-JSBSim.xml file in FlightGear continues to crash before starting and giving the Thank you for your help! |
@muell869 please include a full/self-contained zip file. I had a clean setup of JSBSim and after unzipping US120.zip I was missing things like your 18x8.xml propeller etc. So please include an So running your US120 model using Glancing at some of the other state I see massive numbers for the rotational velocities, e.g.
Which I'm guessing is what then leads to the floating point exception. You initialize the model with a velocity of 150ft/s but the aircraft isn't trimmed, and so I'm guessing that the model very quickly starts spinning like mad. So I would guess there is an issue in your aero data etc. Have you done a diff to confirm that there really isn't any difference between US120 and Rascal? |
@muell869 in order to debug your model I'd suggest logging the forces and moments at 120Hz (i.e. every simulation frame), of which there are only 34 before JSBSim crashes. Then take a look and see if there is a specific force or moment that appears to be a couple of orders of magnitude off which is causing this extreme spin. This will then help you narrow down which part of your FDM to inspect to spot the error. |
Regarding the "bouncy" behaviour, I managed to get a ground trim by replacing
Goodluck! |
Thank you for all of your help. After quite a few revisions I have been able to make a somewhat functioning model. It flies about how I would expect in Flight Gear, but with any aggressive maneuvers there is a floating point exception. Could this have to do with the breakpoints in the aerodynamic lookup tables being too narrow? My understanding is that aerodynamic data will remain static once the aircraft exceeds the table bounds, but it doesn't make sense to me why that would break the simulation. |
@muell869 previously when I glanced at the floating point exception for your earlier model it was due to the rotational rates reaching angular rates on the order of 1e+195 rad/sec, implying that one or more of the forces or moments must've have been off by a couple of orders of magnitude in order to generate those sorts of angular rates. I'd guess there is a moment coefficient like Cmq which possibly generates a moment off by a couple of orders of magnitude once the pitch rate isn't close to 0, i.e. which is why you only see it with aggressive maneuvers. So I'd suggest logging your forces and moments and then script in say a large elevator step change and see which force(s)/moment(s) increase dramatically. If they don't then try large step changes to the rudder, ailerons etc. You'll then be able to zero in on the particular forces/moments causing the issue. |
@muell869 |
Yes, apologies for the confusion. |
hi, i am facing an extreme spin issue, which is getting me sick real model is ready, i do not wish to change it CG location and even if i do change the CG locations it still oscillates from small amplitude to large and then starts spinning. i have check the sign convention, its in body axis, where lift is positive and pitch coefficients are negative. from where is the couple generating ? |
@kvnjonathan70 I'd suggest creating a new issue, rather than adding to this closed issue with a very vague title as well. |
sure sir |
I'm with the University of Minnesota's UAV Research Lab. I'm modifying Flight Gear's Rascal model to fly with altered properties derived from an OpenVSP simulation. When running JSBSim, it looks like everything goes well until we reach the aerodynamics section of the aircraft xml file, showing "FATAL ERROR: JSBSim terminated with an unknown exception." I'm fairly sure there's something I'm missing while creating the tables, because it will parse when I replace the tables with the value of 1.
As a side note, the breakpoints used in the aerodynamic tables are velocities in meters per second. Is there a way to use those units in JSB, or must I adjust before creating the aircraft file?
Any help is appreciated!
Best,
Louis Mueller
RascalModel.zip
The text was updated successfully, but these errors were encountered: