No altitude data from arduplane 2.27 flight log

Im not sure if this problem is due to arduplane 2.27 or mission planner..

 

somehow when i retrieve the flight logs from APM(converted to .kmz) and open them in Google Earth, the flight paths are all there.... but there is no altitude data at all. Its just flat on the ground.

I've checked the .txt file donwloaded from APM, and it contains altitude data for each dataset.

 

Might this be a conversion problem? From .txt to .kmz.. somehow the altitude data was ignored?

 

And this problem only occurs in arduplane 2.27, not 2.26. Im guessing that its due to the way the logs are recorded?

 

Thanks!

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

Join diydrones

Email me when people reply –

Replies

  • Developer

    I have changed the way colors are selected, this makes it simpler. Each patch is colored accordingly to the APM mode. A folder for the patches is added too to be more organized.

    Playing with patch on the KMZ files I found that setting the Area mode (on Style/Color) to solid, and transparency to 25%, gives a much better patch. This mod can be made on the KML file inside of the KMZ (use winrar on the KMZ) by adding the line: '<outline>0</outline>' , on the tag <PolyStyle>. I have added 2 files showing a original flight, and the one with solid filling. Is a strange flight because the plane broke in mid air.

    I could add this to the Mission Planer code, but the KMLib.dll file is locked.I need to add the 'outline' to the file .How can modify these file? 

    The google reference for this property is here: http://code.google.com/intl/pt-BR/apis/kml/documentation/kmlreferen.....

    Log.cs

    original.kmz

    solid fill - Copy (2).rar

  • Developer

    Problem fixed. The compiler I used is Microsoft Visual Studio 2010, I just had One problem about some license needed to compile the code. I found a bypass on the net and it worked.

    The problem was on line 358 on the exact place I described later. I don't know if i can upload to the main code, but the fixed file is annexed.

    It also has a new way of coloring the KMZ patchs, instead of going trough a list of colors it selects a color for each flight mode. I found this more useful.

    Log.cs

  • Same problem here  with Arduplane 2.27 and MissionPlanner 1.1.20.

    My first flight with Ardupilot, actually. Now, if I only could plot the goodness in all it's glory :)

    BTW: Is conversion from .log to .kml only possible once on downloading from Ardupilot or will I be able to reconvert from the downloaded .log-file as soon as a working converter is available?

    Thanks!

    Chris

  • Developer

    I had the same problem yesterday. The log browser has the same problem.

    It seems to be caused by a new column was added to the log, in the MIX_ALT place, filled all with zeros. This way all the data after the MIX_ALT column is parsed incorrectly. The null column is read instead of the altitude data.

    Peaking at the code i might have founded the problem. At line 345-348 of file http://code.google.com/p/ardupilot-mega/source/browse/Tools/Ardupil... is this:

     345                 double alt = double.Parse(items[6], new System.Globalization.CultureInfo("en-US"));
     347                   if (items.Length == 11 && items[6] == "0.0000")
     348                      alt = double.Parse(items[7], new System.Globalization.CultureInfo("en-US"));

    It seams that line 345 is the old code, and 347-348 are a fix for this new kind of log. Because column 6 is the added zero column, and ALT data is now on column 7. The problem should be on line 347, probably on this part  'items[6] == "0.0000" ', since the column is logged as 0 and not 0.0000. The line should say  ' items[6] == "0" '.


    I have annexed a log file with this problem. It's the default log from the arduplane 2.27 downloaded with Mission Planner 1.1.18.

    I don't know what compiler to use to build the Mission Planer code to test this, so if someone can tell me I would be great full (preferably a free one). I'm new to the code, but I want to help.


    And great work with the ArduPilot, it's awesome.



    2012-01-06 05-15 5.rar

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @DWalmroth: Weather's finally cooperating, looking forward to racing 1:10 scale autonomous cars outdoors again! @diyrobocars, @NVIDIAEm…
Wednesday
DIY Robocars via Twitter
RT @AIDRI_: I finally succeeded in optimizing the trajectory and speed of a car on a #racetrack. Next step: implement a 2d controller and…
Wednesday
DIY Robocars via Twitter
@jetdillo @circuitlaunch Actually the second *in person* event in a year. We do virtual races every month
Apr 2
DIY Robocars via Twitter
Update: we're moving it back one day to Sunday (the 4th) at 11:00am instead
Apr 2
DIY Robocars via Twitter
@GrantEMoe @circuitlaunch Update: we're doing it on Sunday (4th) at 11:00am instead
Apr 2
Laurie J. Troy liked Jasper Kueppers's profile
Apr 1
DIY Robocars via Twitter
RT @chr1sa: Maybe we should have a mini @DIYRobocars race in our lower school's playground https://t.co/xLFeua1R6X
Mar 29
DIY Robocars via Twitter
If anybody wants to join us for an informal outdoors hack/race we're going to be meeting at the @CircuitLaunch park… https://twitter.com/i/web/status/1375907409223249923
Mar 27
DIY Robocars via Twitter
RT @SmallpixelCar: Ready to reopen, innovation has to continue. Inside/outside, LiDAR/GPS, race/delivery https://t.co/jpmvttoHEd
Mar 26
DIY Drones via Twitter
RT @DAVGtech: By far best race yet! Congratulations to the winner @Heavy02011 🥇🏆🍾👏👏👏 @diyrobocars @donkey_car @NVIDIAEmbedded https://t.co/…
Mar 20
DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #8 - #ParkingLotNerds ⁦@DAVGtech⁩ ⁦@DWalmroth⁩ ⁦@OttawaAVGroup⁩ - join us tomorrow h…
Mar 20
DIY Drones via Twitter
RT @mrpollo: 11 years ago, the pxIMU was announced to the world on @DIYDrones, and it changed the life of many (mine included). The followi…
Mar 18
DIY Drones via Twitter
RT @ishcahealth: This is awesome! ☘️ @DroneDJ @DIYDrones @WorkerDrones @DroneMedia_UK @dublinaviation https://twitter.com/media_ireland/status/1372077878536462336
Mar 18
DIY Robocars via Twitter
RT @DAVGtech: Changing the game, now with a Lidar. All in a virtual environment and free to anyone. #VirtualRacimgLeague @diyrobocars https…
Mar 18
DIY Robocars via Twitter
Great video from UCSD students telling their @donkey_car racing story https://www.youtube.com/watch?v=M4uVoQAyt5s
Mar 18
Timothy Miller liked Joseph Udofia's profile
Mar 18
More…