Skip to content

Commit

Permalink
camera_server: set zoom flag (#2433)
Browse files Browse the repository at this point in the history
This was missing before.
  • Loading branch information
julianoes authored Oct 23, 2024
1 parent 0a6c109 commit a82b297
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 @@ -1020,6 +1020,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 a82b297

Please sign in to comment.