Skip to content

Commit

Permalink
OdometryLocalPosition distanceGround() method
Browse files Browse the repository at this point in the history
  • Loading branch information
dakejahl committed Sep 11, 2024
1 parent 73f222d commit b488dd3
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 b488dd3

Please sign in to comment.