Skip to content

Commit

Permalink
Merge pull request #17 from aerostack2/update_px4_msgs_to_v1.14
Browse files Browse the repository at this point in the history
Fix px4 msgs with release v1.14
  • Loading branch information
RPS98 authored Apr 25, 2024
2 parents 45988e5 + dbfa2dc commit b2ab322
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pixhawk_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,9 +730,9 @@ void PixhawkPlatform::px4GpsCallback(const px4_msgs::msg::SensorGps::SharedPtr m
nav_sat_fix_msg.status.status = sensor_msgs::msg::NavSatStatus::STATUS_NO_FIX;
}
nav_sat_fix_msg.status.service = sensor_msgs::msg::NavSatStatus::SERVICE_GPS; // DEFAULT
nav_sat_fix_msg.latitude = msg->latitude_deg;
nav_sat_fix_msg.longitude = msg->longitude_deg;
nav_sat_fix_msg.altitude = msg->altitude_ellipsoid_m;
nav_sat_fix_msg.latitude = msg->lat;
nav_sat_fix_msg.longitude = msg->lon;
nav_sat_fix_msg.altitude = msg->alt_ellipsoid;

if (!std::isnan(msg->eph) && !std::isnan(msg->epv)) {
// Position uncertainty --> Diagonal known
Expand Down

0 comments on commit b2ab322

Please sign in to comment.