mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 10:50:35 +08:00
geo: get function for timestamp of map projection
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user