From 4a0a05c85c83ac8696bfea5779b36c49eb26d872 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 23 Oct 2024 14:34:02 +1300 Subject: [PATCH] camera_server: set zoom flag This was missing before. --- src/mavsdk/plugins/camera_server/camera_server_impl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mavsdk/plugins/camera_server/camera_server_impl.cpp b/src/mavsdk/plugins/camera_server/camera_server_impl.cpp index c9981fb2c..aeac7efe9 100644 --- a/src/mavsdk/plugins/camera_server/camera_server_impl.cpp +++ b/src/mavsdk/plugins/camera_server/camera_server_impl.cpp @@ -1020,6 +1020,11 @@ std::optional CameraServerImpl::process_camera_informatio capability_flags |= CAMERA_CAP_FLAGS::CAMERA_CAP_FLAGS_HAS_TRACKING_RECTANGLE; } + if (!_zoom_range_callbacks.empty() || !_zoom_in_start_callbacks.empty() || + !_zoom_out_start_callbacks.empty()) { + capability_flags |= CAMERA_CAP_FLAGS::CAMERA_CAP_FLAGS_HAS_BASIC_ZOOM; + } + _information.vendor_name.resize(sizeof(mavlink_camera_information_t::vendor_name)); _information.model_name.resize(sizeof(mavlink_camera_information_t::model_name)); _information.definition_file_uri.resize(