Skip to content

Commit

Permalink
Merge pull request #2432 from mavlink/pr-zoom-flag
Browse files Browse the repository at this point in the history
camera_server: set zoom flag
  • Loading branch information
JonasVautherin authored Oct 23, 2024
2 parents 5c1946b + 50adc1a commit d46bb7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mavsdk/plugins/camera_server/camera_server_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,11 @@ std::optional<mavlink_command_ack_t> 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(
Expand Down

0 comments on commit d46bb7a

Please sign in to comment.