On Wed, 2010-03-03 at 07:22 -0700, John Denker wrote:
> On 03/03/2010 06:13 AM, Alasdair wrote:
> > I am using FG cvs and have recently noticed that commands such as:
> > fgfs --prop:/instrumentation/nav/radials/selected-deg=63
> > no longer have any effect.
> > 
> > --prop:/instrumentation/nav/frequencies/selected-mhz=108.90
> > works fine.
> 
> I observe the same bug here.  Only nav[0] is affected.
> 
> It's a bug in gps.cxx.  Or maybe multiple bugs.
> 
> Why the gps.cxx code has a compiled-in reference to
> /instrumentation/nav[0]/radials/selected-deg is a
> mystery to me.
> 
> Why the gps.cxx code thinks it can reach over and set 
> the OBS on a KI-209 or similar indicator head is a 
> mystery to me.
> 
> Why the gps.cxx code runs at all in aircraft that don't 
> have a gps receiver installed is also a mystery to me.
> 
> The following workaround is something Mr. Spock would 
> describe as "crude but effective":
> 
> diff --git a/src/Instrumentation/gps.cxx b/src/Instrumentation/gps.cxx
> index 2f7455b..9bca740 100644
> --- a/src/Instrumentation/gps.cxx
> +++ b/src/Instrumentation/gps.cxx
> @@ -250,6 +250,7 @@ GPS::Config::getExternalCourse() const
>  void
>  GPS::Config::setExternalCourse(double aCourseDeg)
>  {
> +  return;
>    if (!_extCourseSource) {
>      return;
>    }

Thanks for the prompt reply, John. That fixes the proplem for me, which
exists in FG-2.0 as well. Don't know what it will do to the GPS code,
though.

Kind regards,
Alasdair
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to