Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[camera plugin] Fix image_index and capture_result not properly filled #1924

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mavros_extras/src/plugins/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ class CameraPlugin : public plugin::Plugin
ic.geo.altitude = mo.alt / 1E3 + uas->data.geoid_to_ellipsoid_height(&ic.geo); // in meters
ic.relative_alt = mo.relative_alt / 1E3;
ic.orientation = tf2::toMsg(ftf::mavlink_to_quaternion(mo.q));
ic.image_index = mo.image_index;
ic.capture_result = mo.capture_result;
ic.file_url = mavlink::to_string(mo.file_url);

camera_image_captured_pub->publish(ic);
Expand Down