Skip to content

Commit

Permalink
camera: don't forget to set component ID
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Nov 12, 2024
1 parent 4998b7d commit ca2cd4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mavsdk/plugins/camera/camera_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,8 @@ void CameraImpl::process_camera_information(const mavlink_message_t& message)
camera_information.cam_definition_uri[sizeof(camera_information.cam_definition_uri) - 1] = '\0';

Camera::Information new_information{};
// TODO: Check the case for 1-6.
new_information.component_id = message.compid;
new_information.vendor_name = reinterpret_cast<char*>(camera_information.vendor_name);
new_information.model_name = reinterpret_cast<char*>(camera_information.model_name);
new_information.focal_length_mm = camera_information.focal_length;
Expand Down

0 comments on commit ca2cd4e

Please sign in to comment.