RE: [Flightgear-devel] EasyXML.cxx

2005-09-17 Thread Jon Berndt
I'm not surprised it breaks with malformed XML files. A suggested fix is below. if (!input.good()) { sg_io_exception ex(Problem reading file, sg_location(path, XML_GetCurrentLineNumber(parser),

Re: [Flightgear-devel] EasyXML.cxx

2005-09-17 Thread Erik Hofman
Jon Berndt wrote: I'm not surprised it breaks with malformed XML files. A suggested fix is below. if (!input.good()) { sg_io_exception ex(Problem reading file, sg_location(path, XML_GetCurrentLineNumber(parser),

Re: [Flightgear-devel] Bug in moving-average filter?

2005-09-17 Thread Paul Kahler
On Fri, 2005-09-16 at 04:41 +0100, Lee Elliott wrote: Hello List, I think there's a small bug in the moving-average filter in ... xmlauto.cxx else if (filterType == movingAverage) { output.push_front(output[0] + (input[0] -

Re: [Flightgear-devel] Digitrak and three axis gyro

2005-09-17 Thread Paul Kahler
On Wed, 2005-09-14 at 20:35 -0400, Steve Knoblock wrote: The Digitrak is described as employing gyroscopic rate sensors are installed so as to sense motion about each of the major axes (roll, yaw and pitch). I assume they mean there is a spinning gryo around which three sensors are

Re: [Flightgear-devel] Digitrak and three axis gyro

2005-09-17 Thread Curtis L. Olson
I don't know how detailed you want to get with the digitrak modeling, but as a first pass, you could just assume that what ever the digitrak is doing, it's keeping a pretty good estimate of reality. If you make that assumption, then you could just use the raw pitch, roll, yaw values from FG

Re: [Flightgear-devel] Bug in moving-average filter?

2005-09-17 Thread Roy Vegard Ovesen
On Saturday 17 September 2005 16:43, Paul Kahler wrote: I'm not trying to flame, but why would you be using a moving average filter? That's the most complicated filter I've ever seen - it calls other functions! It calls some of the methods of the deque datatype. I'm sorry! That's the

Re: [Flightgear-devel] Determining range?

2005-09-17 Thread Dave Culp
... how do I get the distance from my current Lat/Long to another Lat/Long? There's a function in SimGear that does this. See SimGear/simgear/math/sg_geodesy.cxx for a function called int geo_inverse_wgs_84() This may be overkill for your application. Dave