most anoying error

Everything in connection with developing aircraft for FlightGear
bomber
Posts: 1379
Joined: Mon Nov 30, 2015 3:40 pm

most anoying error

Postby bomber » Tue Aug 30, 2016 10:28 pm

Nasal getprop: property /accelerations[0]/pilot[0]/z-accel-fps_sec[0] is NaN
"If anyone ever tells you anything about an aeroplane which is so bloody complicated you can't understand it, take it from me - it's all balls" - R J Mitchell

User avatar
IAHM-COL
Posts: 6413
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: most anoying error

Postby IAHM-COL » Tue Aug 30, 2016 10:32 pm

Don't know what is that for (what your goal is)
But sometimes I just send a conditional to verify a property with nasal, and avoid code mess

it looks kinda like this

Code: Select all

if (is.valid (property---)){
getprop (property(
}
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

User avatar
IAHM-COL
Posts: 6413
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: most anoying error

Postby IAHM-COL » Tue Aug 30, 2016 10:36 pm

the example. accurately is:

Code: Select all

if(getprop('/engines/engine[1]/thrust_lb')!=nil) {
    setprop('/instrumentation/mfd/thrust1', getprop('/engines/engine[1]/thrust_lb') / 2000);
  }
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

bomber
Posts: 1379
Joined: Mon Nov 30, 2015 3:40 pm

Re: most anoying error

Postby bomber » Tue Aug 30, 2016 10:43 pm

I'm not writing nasal... this is the error message I get from my current fdm.
"If anyone ever tells you anything about an aeroplane which is so bloody complicated you can't understand it, take it from me - it's all balls" - R J Mitchell

User avatar
IAHM-COL
Posts: 6413
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: most anoying error

Postby IAHM-COL » Tue Aug 30, 2016 11:11 pm

I did not know that FDMs made getprop nasal codes.
Thus, I suspect the problem is not inherently inside the FDM you are modifying.
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

User avatar
jwocky
Site Admin
Posts: 1833
Joined: Sat Sep 12, 2015 12:04 pm
Contact:

Re: most anoying error

Postby jwocky » Thu Sep 01, 2016 7:46 am

Where did you get this? It's definitively not from the FDM but from some Nasal listening in on properties.
Free speech can never be achieved by dictatorial measures!

bomber
Posts: 1379
Joined: Mon Nov 30, 2015 3:40 pm

Re: most anoying error

Postby bomber » Thu Sep 01, 2016 12:06 pm

I get it in my debug window once FG has crashed
"If anyone ever tells you anything about an aeroplane which is so bloody complicated you can't understand it, take it from me - it's all balls" - R J Mitchell

User avatar
jwocky
Site Admin
Posts: 1833
Joined: Sat Sep 12, 2015 12:04 pm
Contact:

Re: most anoying error

Postby jwocky » Thu Sep 01, 2016 2:09 pm

Okay, which plane? When does it happen, a hint about the situation in which this error comes up?
Free speech can never be achieved by dictatorial measures!

bomber
Posts: 1379
Joined: Mon Nov 30, 2015 3:40 pm

Re: most anoying error

Postby bomber » Thu Sep 01, 2016 3:47 pm

It's my new experimental fdm for the beagle.... and normally occurs when the plane is spinning out of control.
"If anyone ever tells you anything about an aeroplane which is so bloody complicated you can't understand it, take it from me - it's all balls" - R J Mitchell

User avatar
jwocky
Site Admin
Posts: 1833
Joined: Sat Sep 12, 2015 12:04 pm
Contact:

Re: most anoying error

Postby jwocky » Thu Sep 01, 2016 4:00 pm

I think, you are looking for a nasal listener and the error happens in the routine the listener calls. Can be it is one of the automatically loaded Nasals from FGDATA, those go also worse version by version.
Free speech can never be achieved by dictatorial measures!


Return to “Aircraft Development”

Who is online

Users browsing this forum: No registered users and 38 guests