If you're travelling to multiple destinations in the same FlightGear session the current implementation uses as starting airport always the one available when FlightGear started.
For example, for the following flight plan:
Honolulu - San Francisco
San Francisco - Ontario
Ontario - Las vegas
instead of having the following codes in the log file:
PHNL,KSFO
KSFO,KONT
KONT,KLAS
the current implementation reports the following:
PHNL,KSFO
PHNL,KONT
PHNL,KLAS
With the proposed pull request the getStartAirport() function grabs the airport from current location first, falling back to the first airport if it does not succeed. In this way if you land to an airport and depart in a few minutes without exiting FlightGear, the from field t is set with the airport you just departed from.
If you're travelling to multiple destinations in the same FlightGear session the current implementation uses as starting airport always the one available when FlightGear started.
For example, for the following flight plan:
instead of having the following codes in the log file:
the current implementation reports the following:
With the proposed pull request the
getStartAirport()
function grabs the airport from current location first, falling back to the first airport if it does not succeed. In this way if you land to an airport and depart in a few minutes without exiting FlightGear, thefrom
field t is set with the airport you just departed from.