Skip to content
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

Nasal runtime error: Ubuntu trouble with external FDM #586

Open
fgiral000 opened this issue Nov 20, 2023 · 3 comments
Open

Nasal runtime error: Ubuntu trouble with external FDM #586

fgiral000 opened this issue Nov 20, 2023 · 3 comments

Comments

@fgiral000
Copy link

Using a external FDM in ubuntu I am getting the following run time error:

13.96 [ALRT]:nasal Nasal runtime error: props.setDoubleValue() passed a NaN

13.96 [ALRT]:nasal at /path/to/flightgear-data/Nasal/props.nas, line 38

13.96 [ALRT]:nasal called from: /path/to/flightgear-data/Aircraft/Generic/aar.nas, line 153

13.96 [ALRT]:nasal Nasal runtime error: nil used in numeric context

13.96 [ALRT]:nasal at /path/to/flightgear-data/Aircraft/f16/Nasal/light-manager.nas, line 67

@NikolaiVChr
Copy link
Owner

We would need a lot more info about what changes you have made, in order to help you.
I suspect these errors are mere symptoms of a deeper issue of properties not being initialized.

@fgiral000
Copy link
Author

Sorry, I am a new user at Flightgear and I don't have clear some aspects. I have been using a f15c model with the same external interface and I don't have any problem. Maybe this model needs some extra initial conditions? I am not changing anaything in flightgear, only connecting the jsbsim model through socket from a python interface.

An example of my ic is:

328.0 0.0 0.0 2.3273 51.3781 0.0 0.0 0.0 10000 0.00000001 -1

@NikolaiVChr
Copy link
Owner

You are probably going to get a lot more errors than just those 2.
Nasal uses many properties created in our JSBSIM fdm, and some that jsbsim creates for Fligthgear.
You would have to go into each nasal module from each error and figure out which property it needs initialized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants