Empty KML+GPX files from Plane logs?

Anyone else having this problem?

I have a dataflash log (5mb+) which seems valid, I can graph it and see all the values and the track on the map, but the KML files it generates are empty other than the waypoints, empty GPX files too. No error messages.

I thought it might be a problem with the latest MP so I rolled back to 1.2.86 and 1.2.85, re-downloaded the dataflash log, same deal. I also get the same result if I try to create the KML afterwards from the 'Create KML' button on the dataflash tab of the Flight Data screen.

-------------

log2gpx.py attached here as an edit, because you can't attach files to replies - log2gpx.py

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer

    please try the latest beta MP

    help > update beta

  • I see the same issue with a different GPS line format.

    It does appear this also is causing difficulty for the Geo Tagging app. In the process of tagging the images, it appears the app is looking for values in the wrong columns.

    So when you tag images with the app, your photo's LONG becomes your log's LAT, your photo's LAT becomes your log's HDop, and your photo's height becomes your log's LONG.

  • I also have these empty kml files with APM Copter 3.1 rc7. It is apparent that the GPS messages format changed since APM:: Copter 3.0.1 and mission planner is not able to cope with this change, even if the new format is described in the header of the log file.

  • Also experiencing empty KMZ and GPX files. The KMZ holds waypoints, but not actual flight data.

    Also can't get the Mission Planner geo-reference app to work with LOG file, but this may be unrelated to the above issues.

    Andrew, thanks for posting your script -- is it possible for you to make a simple GUI for this? Would be super nifty!

  • Not sure if it's a bug, or just an incompatibility between v2.76 and the current version of Mission Planner 1.2.87.

    Anyway, I really needed to get a KML or GPX file out from my log to do some image geo-referencing, so I wrote a little python script to parse the dataflash log into a gpx file. 

    I've attached it as a link in the edited original post. It's hard-coded to my file but you can easily tweak it for your own needs by just changing the two variables at the top of the file. timefudgeSecs is the difference between your camera and APM's timecodes. Run the command and redirect the output to make your GPX file. It worked for me, but no guarantees it works in all cases, it was just a quick hack to solve it for me today

  • Same here.  APM Plane 2.76 generates unusable .kml (all .kml files show 5k files size).  The logs show full flight path in the view log section when show map is selected so I am certain the data is there.

  • There seems to be a bug in APM plane 2.76. As I am also experiencing this.

  • Forgot to mention: log is from APM:Plane v2.76

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @donkey_car: Human-scale Donkey Car! Hope this makes it to a @diyrobocars race https://www.youtube.com/watch?v=ZMaf031U8jg
10 hours ago
DIY Robocars via Twitter
10 hours ago
DIY Robocars via Twitter
Jun 16
DIY Robocars via Twitter
RT @GrantEMoe: I won my first @diyrobocars @donkey_car virtual race! Many thanks to @chr1sa @EllerbachMaxime @tawnkramer and everyone who m…
Jun 13
DIY Robocars via Twitter
RT @gclue_akira: JetRacerで自動走行したコースを、InstantNeRFで再構築。データセットは別々に収集 #jetracer #instantNeRT https://t.co/T8zjg3MFyO
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: SPC 3.0 Now the motor also works. This car is doable. I just need to design a deck to mount my compute and sensors. http…
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: My new car SPC 3.0. https://t.co/CKtkZOxeNQ
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: High speed at @diyrobocars thanks @EdwardM26321707 for sharing the video https://t.co/o4317Y2U1S
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: Today at @RAMS_RC_Club for @diyrobocars. Used @emlid RTK GPS and @adafruit @BoschGlobal IMU. Lap time 28s https://t.co/R…
May 28
DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
More…