fix altitude in kml export of log plotter, gps messages now have alt in mm, we should probably use the alt unit in the first place

This commit is contained in:
Felix Ruess
2011-08-27 18:48:34 +02:00
parent 023d2b9ae4
commit f8d4f5f662
+2 -2
View File
@@ -534,7 +534,7 @@ let rec select_gps_values = function
let l = ref [] in
for i = 0 to Array.length xs - 1 do
let z = truncate (snd zs.(i))
and a = snd alts.(i) /. 100. in
and a = snd alts.(i) /. 1000. in
if z <> 0 && a > 0. then
let t = fst xs.(i)
and x = snd xs.(i) /. 100.
@@ -549,7 +549,7 @@ let rec select_gps_values = function
and alts = List.assoc "alt" values in
let l = ref [] in
for i = 0 to Array.length lats - 1 do
let a = snd alts.(i) /. 100. in
let a = snd alts.(i) /. 1000. in
if a > 0. then
let t = fst lats.(i)
and lat = snd lats.(i) /. 1e7