jpretori / SoaringCoach

Soaring Coach aims to help pilots improve their soaring performance by intelligently analysing IGC files.
GNU Affero General Public License v3.0
4 stars 3 forks source link

Make flight distance calculation more accurate by removing tight circles from the calculation #4

Closed jpretori closed 7 years ago

jpretori commented 7 years ago

Currently when calculating the distance of a flight, the distance between each two GPS fixes are calculated and added together. This means whatever time you spend circling is counted as distance covered - which is inaccurate in most people's estimation.

So remove thermalling sequences from the calculation by substituting a single straight line between the first and last fixes in the thermal.

jpretori commented 7 years ago

Wrote the test, updated the code and found a bug in ShortStraightPhasesAnalysis.splitIntoSections() which seems to throw away some parts of the track.