Skip to content

Commit

Permalink
OdometryLocalPosition distanceGround() method
Browse files Browse the repository at this point in the history
  • Loading branch information
dakejahl authored and bkueng committed Sep 12, 2024
1 parent 0456711 commit c75a5f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions px4_ros2_cpp/include/px4_ros2/odometry/local_position.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ class OdometryLocalPosition : public Subscription<px4_msgs::msg::VehicleLocalPos
const px4_msgs::msg::VehicleLocalPosition & pos = last();
return pos.heading;
}

float distanceGround() const
{
const px4_msgs::msg::VehicleLocalPosition & pos = last();
return pos.dist_bottom;
}
};

/** @}*/
Expand Down

0 comments on commit c75a5f5

Please sign in to comment.