diff --git a/Rover/GCS_Mavlink.cpp b/Rover/GCS_Mavlink.cpp index 55cfc4ec91..b4a53e3c9f 100644 --- a/Rover/GCS_Mavlink.cpp +++ b/Rover/GCS_Mavlink.cpp @@ -192,6 +192,11 @@ void GCS_MAVLINK_Rover::send_water_depth() const return; } + // only send for boats: + if (!rover.is_boat()) { + return; + } + RangeFinder *rangefinder = RangeFinder::get_singleton(); if (rangefinder == nullptr || !rangefinder->has_orientation(ROTATION_PITCH_270)){