f16 icon indicating copy to clipboard operation
f16 copied to clipboard

Nasal runtime error: Ubuntu trouble with external FDM

Open fgiral000 opened this issue 1 year ago • 3 comments

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

fgiral000 avatar Nov 20 '23 16:11 fgiral000

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.

NikolaiVChr avatar Nov 20 '23 17:11 NikolaiVChr

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

fgiral000 avatar Nov 20 '23 17:11 fgiral000

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.

NikolaiVChr avatar Nov 20 '23 23:11 NikolaiVChr