aboutsummaryrefslogtreecommitdiff
path: root/src/lib/geo/geo.h
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2013-11-20 22:28:05 +0100
committerJulian Oes <julian@oes.ch>2013-11-20 22:28:05 +0100
commitf351afe3f69c81e4f1ee43f24531728e4b518cea (patch)
tree0b9342b7432aaab3eae0a972cd5fc2d85462f69b /src/lib/geo/geo.h
parent344705396d94602b5c3b3b34c61131602bc03fde (diff)
downloadpx4-firmware-f351afe3f69c81e4f1ee43f24531728e4b518cea.tar.gz
px4-firmware-f351afe3f69c81e4f1ee43f24531728e4b518cea.tar.bz2
px4-firmware-f351afe3f69c81e4f1ee43f24531728e4b518cea.zip
Geo: Copy distance function over from mavlink
Diffstat (limited to 'src/lib/geo/geo.h')
-rw-r--r--src/lib/geo/geo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/geo/geo.h b/src/lib/geo/geo.h
index 6bce9309b..47f643593 100644
--- a/src/lib/geo/geo.h
+++ b/src/lib/geo/geo.h
@@ -124,6 +124,10 @@ __EXPORT int get_distance_to_line(struct crosstrack_error_s * crosstrack_error,
__EXPORT int get_distance_to_arc(struct crosstrack_error_s * crosstrack_error, double lat_now, double lon_now, double lat_center, double lon_center,
float radius, float arc_start_bearing, float arc_sweep);
+__EXPORT float get_distance_to_point_global_wgs84(double lat_now, double lon_now, float alt_now,
+ double lat_next, double lon_next, float alt_next,
+ float *dist_xy, float *dist_z);
+
__EXPORT float _wrap_180(float bearing);
__EXPORT float _wrap_360(float bearing);
__EXPORT float _wrap_pi(float bearing);