diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-04-25 09:41:46 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-04-25 09:41:46 +0200 |
commit | 9ebd6b348687d5563b87c5c872d432adbfad696f (patch) | |
tree | cb56b2585a41f91cc02a1299d9b59082663f3d1f /src/lib/geo/geo.h | |
parent | 4e30784d6c506cdfdf58c623da20cffcb799e496 (diff) | |
download | px4-firmware-9ebd6b348687d5563b87c5c872d432adbfad696f.tar.gz px4-firmware-9ebd6b348687d5563b87c5c872d432adbfad696f.tar.bz2 px4-firmware-9ebd6b348687d5563b87c5c872d432adbfad696f.zip |
geo: interface to get reference lat lon, option to set reference timestamp on initialization
Diffstat (limited to 'src/lib/geo/geo.h')
-rw-r--r-- | src/lib/geo/geo.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/geo/geo.h b/src/lib/geo/geo.h index 66e4dc75e..b5e659685 100644 --- a/src/lib/geo/geo.h +++ b/src/lib/geo/geo.h @@ -89,13 +89,19 @@ __EXPORT bool map_projection_initialized(); __EXPORT uint64_t map_projection_timestamp(); /** + * Writes the reference values to ref_lat and ref_lon + * @return true if map_projection_init was called before, false else + */ +__EXPORT bool map_projection_reference(double *ref_lat, double *ref_lon); + +/** * Initializes the map transformation. * * Initializes the transformation between the geographic coordinate system and the azimuthal equidistant plane * @param lat in degrees (47.1234567°, not 471234567°) * @param lon in degrees (8.1234567°, not 81234567°) */ -__EXPORT void map_projection_init(double lat_0, double lon_0); +__EXPORT void map_projection_init(double lat_0, double lon_0, uint64_t timestamp); /** * Transforms a point in the geographic coordinate system to the local azimuthal equidistant plane |