Important: These forums are for discussions between SkyDemon users. They are not routinely monitored by SkyDemon staff so any urgent issues should be sent directly to our Customer Support.

.flightlog to .gpx conversion


Author
Message
adhawkins
adhawkins
Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)
Group: Forum Members
Posts: 274, Visits: 2.5K
Hi,

Is there any means of doing a 'mass' conversion of .flightlog files to .gpx format? Any plans to produce one?

Failing that, any chance the format of the .flightlog file could be documented so that I could consider writing one myself?

Cheers

Andy
Replies
adhawkins
adhawkins
Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)
Group: Forum Members
Posts: 274, Visits: 2.5K
stevelup (14/10/2013)
Have you had a look at the .flightplan file? It's XML and is pretty much self-explanatory.
flightlog, not flightplan Smile

The flightlog file is CSV, and has a few fields that don't seem obvious.

The first line contains a comment, with the start date in it.

The first column of subsequent lines is presumably a time stamp since this start time, in milliseconds? Then it's GPS position. After that it's less obvious, but presumably ground speed and height are in there, and the last column seems to be vertical speed perhaps?

Anyway, would be good to have them documented if possible.

Andy
adhawkins
adhawkins
Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)
Group: Forum Members
Posts: 274, Visits: 2.5K
Ok, done some digging.

There are 6 fields per line, here's what I've managed to guess at so far:

Field 1 - A timestamp (presumably milliseconds since the start of the log as per the comment in the first line)
Field 2 - GPS co-ordinates
Field 3 - ??
Field 4 - Speed (in knots?)
Field 5 - Height in feet
Field 6 - ??

Would appreciate some sort of indication that I'm on the right track if possible.

Andy
stevelup
stevelup
Too Much Forum (74K reputation)Too Much Forum (74K reputation)Too Much Forum (74K reputation)Too Much Forum (74K reputation)Too Much Forum (74K reputation)Too Much Forum (74K reputation)Too Much Forum (74K reputation)Too Much Forum (74K reputation)Too Much Forum (74K reputation)
Group: Moderators
Posts: 593, Visits: 4.9K




Field 3 is the heading (a trip from Oaksey to Oaksey started and finished with it reading 23 for me, and the runway is 22)

Filed 4 appears to be in kts (my climb out is reading 65-75, cruise 115-120 and approach 55-60 - all of which are correct assuming it was a calm day)


Field 5 is definitely in feet (my start and end readings for the above trip are 270 and 272 ft)

Field 6 appears to be vertical speed - in that the start of the trip has positive numbers, the end of the trip has negative numbers, and the middle is mostly zero.

The null range on this seems sticky - it doesn't report slight deviations, only significant ones.

To convert to GPX, all you need are the co-ordinates and altitude - and possibly the timestamp?
adhawkins
adhawkins
Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)
Group: Forum Members
Posts: 274, Visits: 2.5K
Thanks for that Steve, seems to agree with my findings from reading the file.

I've found the GPX spec, and also looked at the GPX files that SkyDemon generates, so should be Ok now to proceed with the conversion. My aim will be to produce a file that's near identical to the one SkyDemon generates when it does the export.

Would be nice if Tim could just confirm our findings, particularly in terms of units used.

Cheers

Andy
adhawkins
adhawkins
Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)Too Much Forum (30K reputation)
Group: Forum Members
Posts: 274, Visits: 2.5K
Ok, getting there I think. All looks good, but for some reason my latitude calculations don't quite match up with SkyDemon's, I'm often one or two digits off in the 6th decimal place. I don't think that's significant, but I can't understand why!

I've attached 3 files, one .flightlog file which is the source. Then there's a GPX file (the one without ADH in the name) that is the file converted using SkyDemon. Finally another GPX file (with ADH in the name) which is converted using my utility.

If you look at the first latitude in the file, in the source file it's:

N514241.70

Which is 51 degrees, 42 minutes, 41.7 seconds north.

I'm converting this to decimal degrees using:

decdeg = deg + mins/60 + secs/3600

and I get 51.711583333333333333333333333333, which I round to 6 decimal places to get 51.711583. However, the measurement in SkyDemon's GPX file is 51.711580. This trend follows throughout the file on the latitude fields, but the longitude fields (converted in exactly the same way) tend to be correct.

Anyone offer any suggestions as to what I might be doing wrong?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
adhawkins - 10/12/2013 6:14:19 PM
stevelup - 10/14/2013 8:09:13 AM
adhawkins - 10/14/2013 9:18:19 AM
adhawkins - 10/15/2013 9:23:01 PM
stevelup - 10/16/2013 8:33:09 AM
                         Thanks for that Steve, seems to agree with my findings from reading...
adhawkins - 10/16/2013 9:09:19 AM
                             Ok, getting there I think. All looks good, but for some reason my...
adhawkins - 10/16/2013 8:42:25 PM
Tim Dawson - 10/21/2013 3:16:17 PM
adhawkins - 10/22/2013 12:33:57 PM
adhawkins - 11/5/2013 12:43:59 PM
Tim Dawson - 11/5/2013 12:53:38 PM
adhawkins - 11/6/2013 12:36:01 PM
Tim Dawson - 11/7/2013 1:04:22 PM
adhawkins - 11/8/2013 12:19:01 PM

Reading This Topic

Login

Explore
Messages
Mentions
Search