|
SMACC2
|
#include <geo_utils.hpp>

Public Member Functions | |
| MapProjection ()=default | |
| MapProjection (double lat0, double lon0, uint64_t timestamp=0) | |
| void | initReference (double lat0, double lon0, uint64_t timestamp=0) |
| bool | isInitialized () const |
| uint64_t | referenceTimestamp () const |
| double | referenceLat () const |
| double | referenceLon () const |
| void | project (double lat, double lon, float &x, float &y) const |
| void | reproject (float x, float y, double &lat, double &lon) const |
Private Attributes | |
| uint64_t | refTimestamp_ = 0 |
| double | refLat_ = 0.0 |
| double | refLon_ = 0.0 |
| double | refSinLat_ = 0.0 |
| double | refCosLat_ = 1.0 |
| bool | initialized_ = false |
Definition at line 69 of file geo_utils.hpp.
|
default |
|
inline |
Definition at line 74 of file geo_utils.hpp.
References initReference().

|
inline |
Definition at line 79 of file geo_utils.hpp.
References initialized_, cl_px4_mr::geo_detail::radians(), refCosLat_, refLat_, refLon_, refSinLat_, and refTimestamp_.
Referenced by MapProjection(), and cl_px4_mr::CpVehicleLocalPosition::onPositionMessage().


|
inline |
Definition at line 89 of file geo_utils.hpp.
References initialized_.
Referenced by cl_px4_mr::CpVehicleLocalPosition::globalRefValid(), cl_px4_mr::CpVehicleLocalPosition::onPositionMessage(), cl_px4_mr::CpVehicleLocalPosition::projectToNed(), and cl_px4_mr::CpVehicleLocalPosition::reprojectFromNed().

|
inline |
Definition at line 95 of file geo_utils.hpp.
References cl_px4_mr::geo_detail::constrain(), cl_px4_mr::kEarthRadiusM, cl_px4_mr::geo_detail::radians(), refCosLat_, refLon_, and refSinLat_.
Referenced by cl_px4_mr::CpVehicleLocalPosition::projectToNed().


|
inline |
Definition at line 91 of file geo_utils.hpp.
References cl_px4_mr::geo_detail::degrees(), and refLat_.

|
inline |
Definition at line 92 of file geo_utils.hpp.
References cl_px4_mr::geo_detail::degrees(), and refLon_.

|
inline |
|
inline |
Definition at line 120 of file geo_utils.hpp.
References cl_px4_mr::geo_detail::degrees(), cl_px4_mr::kEarthRadiusM, refCosLat_, refLat_, refLon_, and refSinLat_.
Referenced by cl_px4_mr::CpVehicleLocalPosition::reprojectFromNed().


|
private |
Definition at line 151 of file geo_utils.hpp.
Referenced by initReference(), and isInitialized().
|
private |
Definition at line 150 of file geo_utils.hpp.
Referenced by initReference(), project(), and reproject().
|
private |
Definition at line 147 of file geo_utils.hpp.
Referenced by initReference(), referenceLat(), and reproject().
|
private |
Definition at line 148 of file geo_utils.hpp.
Referenced by initReference(), project(), referenceLon(), and reproject().
|
private |
Definition at line 149 of file geo_utils.hpp.
Referenced by initReference(), project(), and reproject().
|
private |
Definition at line 146 of file geo_utils.hpp.
Referenced by initReference(), and referenceTimestamp().