On 09/09/09 14:31, James Turner wrote: > In practice, all the instruments I've seen so far handle 'parking' the > GS needle in two ways: either masking layer above the needle, at the > extremities of the range, or an interpolation table where the extreme > values map to a particular hidden position.
As with so many things, that is sometimes true and sometimes not. Some instruments park the GS needle in plain sight, in the middle of the range. You could argue that this is a poor user-interface design, so poor that it couldn't get certified today ... but it *is* what some real-world instruments do. It is a Bad Idea for the back-end (navradio.cxx) to make assumptions that conflict with what the front-end (instrument.xml) needs to do. The best procedure, which considerably simplifies the xml, is to allow the _instrument_ to tell navradio.cxx where to park the needle, not the other way around. The instrument.xml file knows how the needle is supposed to behave. As a separate issue, there really needs to be a "valid" flag, closely analogous to the To/Off/From flag on theCDI. The code I wrote in 2007 and rebased in January 2009 has all these features. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel