diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-04-24 17:13:06 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-04-24 17:13:06 +0200 |
commit | b249d04e52ae34d43d9d80638d6f1ead476f39ea (patch) | |
tree | ade1c5d9071780ddbe8feff7a1f99b29cb9a0a56 /src/lib/geo | |
parent | 618ac319e63a6597cc62df9c810d76cdc094012b (diff) | |
download | px4-firmware-b249d04e52ae34d43d9d80638d6f1ead476f39ea.tar.gz px4-firmware-b249d04e52ae34d43d9d80638d6f1ead476f39ea.tar.bz2 px4-firmware-b249d04e52ae34d43d9d80638d6f1ead476f39ea.zip |
geo: get function for timestamp of map projection
Diffstat (limited to 'src/lib/geo')
-rw-r--r-- | src/lib/geo/geo.c | 5 | ||||
-rw-r--r-- | src/lib/geo/geo.h | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/geo/geo.c b/src/lib/geo/geo.c index dbbf1f80c..1e3ef56ae 100644 --- a/src/lib/geo/geo.c +++ b/src/lib/geo/geo.c @@ -62,6 +62,11 @@ __EXPORT bool map_projection_inited() return mp_ref.init_done; } +__EXPORT uint64_t map_projection_timestamp() +{ + return mp_ref.timestamp; +} + __EXPORT void map_projection_init(double lat_0, double lon_0) //lat_0, lon_0 are expected to be in correct format: -> 47.1234567 and not 471234567 { mp_ref.lat = lat_0 / 180.0 * M_PI; diff --git a/src/lib/geo/geo.h b/src/lib/geo/geo.h index b19bfe462..913e83b6e 100644 --- a/src/lib/geo/geo.h +++ b/src/lib/geo/geo.h @@ -81,6 +81,13 @@ struct map_projection_reference_s { */ __EXPORT bool map_projection_inited(); + +/** + * Initializes the map transformation. + * @return the timestamp of the map_projection + */ +__EXPORT uint64_t map_projection_timestamp(); + /** * Initializes the map transformation. * |