Skip to content

Commit

Permalink
[camera plugin] Fix image_index and capture_result not properly filled
Browse files Browse the repository at this point in the history
Signed-off-by: Beniamino Pozzan <b.pozzan@archangel.im>
  • Loading branch information
beniaminopozzan authored and vooon committed Nov 14, 2023
1 parent 7e7e2f6 commit 92e4062
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mavros_extras/src/plugins/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ class CameraPlugin : public plugin::PluginBase {
ic->relative_alt = mo.relative_alt / 1E3;
auto q = ftf::mavlink_to_quaternion(mo.q);
tf::quaternionEigenToMsg(q, ic->orientation);
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

0 comments on commit 92e4062

Please sign in to comment.