Skip to content

Commit

Permalink
Revert "waypoint altitude without conversion"
Browse files Browse the repository at this point in the history
This reverts commit d93dc59.
  • Loading branch information
EwoudSmeur committed Sep 21, 2016
1 parent 82d1b0d commit 78fef1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/tools/generators/gen_flight_plan.ml
Expand Up @@ -136,7 +136,7 @@ let print_waypoint_enu = fun utm0 default_alt waypoint ->
let ecef0 = Latlong.ecef_of_geo Latlong.WGS84 (Latlong.of_utm Latlong.WGS84 utm0) !ground_alt in
let ecef = Latlong.ecef_of_geo Latlong.WGS84 (Latlong.of_utm Latlong.WGS84 (Latlong.utm_add utm0 (x, y))) (float_of_string alt) in
let ned = Latlong.array_of_ned (Latlong.ned_of_ecef ecef0 ecef) in
printf " {%.2f, %.2f, %.2f}, /* ENU in meters */ \\\n" ned.(1) ned.(0) (float_of_string alt -. !ground_alt)
printf " {%.2f, %.2f, %.2f}, /* ENU in meters */ \\\n" ned.(1) ned.(0) (-.ned.(2))

let convert_angle = fun rad -> Int64.of_float (1e7 *. (Rad>>Deg)rad)

Expand Down

0 comments on commit 78fef1c

Please sign in to comment.