...
This commit is contained in:
@@ -280,15 +280,15 @@ public:
|
||||
}
|
||||
|
||||
|
||||
// latitude and longitude
|
||||
template <mcc_angle_c LAT_T, mcc_angle_c LON_T>
|
||||
void geoPosition(std::pair<LAT_T, LON_T>* coords) const
|
||||
// longitude and latitude
|
||||
template <mcc_angle_c LON_T, mcc_angle_c LAT_T>
|
||||
void geoPosition(std::pair<LON_T, LAT_T>* coords) const
|
||||
{
|
||||
std::lock_guard lock{*_stateMutex};
|
||||
|
||||
if (coords) {
|
||||
coords->first = _currentState.lat;
|
||||
coords->second = _currentState.lon;
|
||||
coords->first = _currentState.lon;
|
||||
coords->second = _currentState.lat;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user