f16
f16 copied to clipboard
Nasal runtime error: Ubuntu trouble with external FDM
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
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.
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:
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.