diff options
author | daregger <daregger@student.ethz.ch> | 2012-11-05 17:17:28 +0100 |
---|---|---|
committer | daregger <daregger@student.ethz.ch> | 2012-11-05 17:17:28 +0100 |
commit | 801cf3af3ec76cc5ff6231e9ac779ea572acee1b (patch) | |
tree | ef56ba832451c5928bf846e288231c529ad08571 /apps/systemlib/geo/geo.h | |
parent | 97a1d0fb873461b89f39f930c90edc6970ac803f (diff) | |
download | px4-firmware-801cf3af3ec76cc5ff6231e9ac779ea572acee1b.tar.gz px4-firmware-801cf3af3ec76cc5ff6231e9ac779ea572acee1b.tar.bz2 px4-firmware-801cf3af3ec76cc5ff6231e9ac779ea572acee1b.zip |
add tangent plane mapping to geo.c
Diffstat (limited to 'apps/systemlib/geo/geo.h')
-rw-r--r-- | apps/systemlib/geo/geo.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/systemlib/geo/geo.h b/apps/systemlib/geo/geo.h index c98b4c85d..807e508a2 100644 --- a/apps/systemlib/geo/geo.h +++ b/apps/systemlib/geo/geo.h @@ -55,6 +55,12 @@ typedef struct { float bearing; // Bearing in radians to closest point on line/arc } crosstrack_error_s; +__EXPORT static void map_projection_init(double lat_0, double lon_0); + +__EXPORT static void map_projection_project(double lat, double lon, float *x, float *y); + +__EXPORT static void map_projection_reproject(float x, float y, double *lat, double *lon); + __EXPORT float get_distance_to_next_waypoint(double lat_now, double lon_now, double lat_next, double lon_next); __EXPORT float get_bearing_to_next_waypoint(double lat_now, double lon_now, double lat_next, double lon_next); @@ -69,4 +75,4 @@ __EXPORT crosstrack_error_s get_distance_to_arc(double lat_now, double lon_now, float _wrap180(float bearing); float _wrap360(float bearing); float _wrapPI(float bearing); -float _wrap2PI(float bearing);
\ No newline at end of file +float _wrap2PI(float bearing); |