Re: [Flightgear-devel] [BUG] division by zero in YASim/Airplane.cpp (possibly caused by bad 787 model)

2009-01-08 Thread LeeE
On Wednesday 07 January 2009, Csaba Halász wrote: 0x006a3b59 in yasim::Airplane::compileFuselage (this=0xc066688, f=0x7f84f00bf930) at src/FDM/YASim/Airplane.cpp:512 512 float segWgt = len*wid/segs; (gdb) p segs $1 = 0 (gdb) p *f $3 = {front = {-13.604, 0, 1.3998},

Re: [Flightgear-devel] [BUG] division by zero in YASim/Airplane.cpp (possibly caused by bad 787 model)

2009-01-08 Thread Jon Stockill
LeeE wrote: Oh yeah, and if the model is using the standard FG VRP (Visual Reference Point) to align the 3D model and FDM config, ax ay (and nearly always az) should all be 0.0. az might be different in some aircraft, like the Nimrod MR for example, because the nose has a large offset

Re: [Flightgear-devel] [BUG] division by zero in YASim/Airplane.cpp (possibly caused by bad 787 model)

2009-01-08 Thread Maik Justus
Hi LeeE schrieb am 08.01.2009 12:40: On Wednesday 07 January 2009, Csaba Halász wrote: 0x006a3b59 in yasim::Airplane::compileFuselage (this=0xc066688, f=0x7f84f00bf930) at src/FDM/YASim/Airplane.cpp:512 512 float segWgt = len*wid/segs; (gdb) p segs $1 = 0 (gdb) p *f $3 =

Re: [Flightgear-devel] [BUG] division by zero in YASim/Airplane.cpp (possibly caused by bad 787 model)

2009-01-08 Thread LeeE
On Thursday 08 January 2009, Jon Stockill wrote: LeeE wrote: Oh yeah, and if the model is using the standard FG VRP (Visual Reference Point) to align the 3D model and FDM config, ax ay (and nearly always az) should all be 0.0. az might be different in some aircraft, like the Nimrod MR

Re: [Flightgear-devel] [BUG] division by zero in YASim/Airplane.cpp (possibly caused by bad 787 model)

2009-01-08 Thread Csaba Halász
On Thu, Jan 8, 2009 at 2:21 PM, Maik Justus mjus...@gmx.de wrote: What is not a problem. It is only a div by zero, if the length of the fuselage is zero. (ax==bx, ay==by, az==bz) Yes. And YASim should check this during loading and report it, so the model can be fixed. Rather than generating

[Flightgear-devel] [BUG] division by zero in YASim/Airplane.cpp (possibly caused by bad 787 model)

2009-01-07 Thread Csaba Halász
0x006a3b59 in yasim::Airplane::compileFuselage (this=0xc066688, f=0x7f84f00bf930) at src/FDM/YASim/Airplane.cpp:512 512 float segWgt = len*wid/segs; (gdb) p segs $1 = 0 (gdb) p *f $3 = {front = {-13.604, 0, 1.3998}, back = {-13.604, 0, 1.3998}, width = 5.901,