diff --git a/src/uav_system_ros.cpp b/src/uav_system_ros.cpp index d362c88..eee2065 100644 --- a/src/uav_system_ros.cpp +++ b/src/uav_system_ros.cpp @@ -409,7 +409,7 @@ void UavSystemRos::publishRangefinder(const MultirotorModel::State &state) { double range_measurement; if (body_z(2) > 0) { - range_measurement = (state.x(2) - model_params_.ground_z) / cos(tilt); + range_measurement = (state.x(2) - model_params_.ground_z) / cos(tilt) + 0.01; } else { range_measurement = std::numeric_limits::max(); }