It actually does solve issue 1164 (which I started).
When one switches to the next waypoint, the active leg course and x-track-error relate to the leg between the previous and active waypoint of the flightplan (as it should in LEG mode). Previously the leg (-course and x-track-error) was formed between the active waypoint and the position of the aircraft at the moment of switching.

The other stuff I asked Dirk to add as it makes our extra500 (GPSS) AP design a lot easier.

Cheers,

Eric


From: zakalawe@mac.com
Date: Mon, 30 Sep 2013 09:00:19 +0100
To: flightgear-devel@lists.sourceforge.net
Subject: Re: [Flightgear-devel] GPS - merge request


On 30 Sep 2013, at 08:47, Dirk Dittmann <dirk.dittmann.one@gmail.com> wrote:

Improved the Cross track error according to the great circle. 
http://williams.best.vwh.net/avform.htm#XTE.

Great,.


And make the overflight sequence configurable for the aircraft. The default is 
the same.

/instrumentation/gps/config/over-flight-arm-angle-deg           90
/instrumentation/gps/config/over-flight-arm-distance-nm 1
/instrumentation/gps/config/over-flight-distance-nm             0


over-flight-distance-nm  : 
- distance to waypoint 
- overflight -> next waypoint

over-flight-arm-distance-nm: 
- distance to waypoint over-flight-distance-nm + over-flight-arm-distance-nm
- overflight arms the cone 

over-flight-arm-angle-deg  : 
- the cone left/right from LEG pointing on the waypoint
- when armed and the aircraft leafs the cone -> next waypoint. 

Great, although I do wonder if anyone will ever really adjust the cone angle. Doesn't do any harm though.

branche fix-issue1164 @ my clone
https://gitorious.org/fg/dirks-flightgear/source/85592ec45db2866a15197c051d97cb4014537b4b:


Who should I ask for merge ?

Me, only query is that the above don't really seem to relate to issue 1164, which is about initial behaviour of the GPS when entering leg mode away from the active leg.

Are you happy for me to pull from that branch to review, or would you rather send a patch, or make a merge request on Gitorious. All of those are fine with me, your choice.

Regards,
James


------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel