mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-23 04:45:37 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user