Skip to content

Commit

Permalink
fix -Wdeprecated-enum-float-conversion in GeographicLib
Browse files Browse the repository at this point in the history
  • Loading branch information
dakejahl authored and vooon committed Aug 26, 2024
1 parent 341854d commit 79b6d52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mavros/include/mavros/mavros_uas.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class Data
inline double geoid_to_ellipsoid_height(const T lla)
{
if (egm96_5) {
return GeographicLib::Geoid::GEOIDTOELLIPSOID * (*egm96_5)(lla->latitude, lla->longitude);
return int(GeographicLib::Geoid::GEOIDTOELLIPSOID) * (*egm96_5)(lla->latitude, lla->longitude);
} else {
return 0.0;
}
Expand All @@ -181,7 +181,7 @@ class Data
inline double ellipsoid_to_geoid_height(const T lla)
{
if (egm96_5) {
return GeographicLib::Geoid::ELLIPSOIDTOGEOID * (*egm96_5)(lla->latitude, lla->longitude);
return int(GeographicLib::Geoid::ELLIPSOIDTOGEOID) * (*egm96_5)(lla->latitude, lla->longitude);
} else {
return 0.0;
}
Expand Down

0 comments on commit 79b6d52

Please sign in to comment.