Skip to content

Commit

Permalink
camera_manager_plugin: bring back MAVLINK_COMM_1 channel
Browse files Browse the repository at this point in the history
I don't understand if and why it's necessary but found a way to do it with the struct encode method.
  • Loading branch information
MaEtUgR committed Aug 8, 2024
1 parent 357396f commit 5dbcb8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gazebo_camera_manager_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ void CameraManagerPlugin::_handle_camera_info(const mavlink_message_t *pMsg, str
| CAMERA_CAP_FLAGS_HAS_VIDEO_STREAM;;

mavlink_message_t msg;
mavlink_msg_camera_information_encode(_systemID, _componentID, &msg, &camera_information);
mavlink_msg_camera_information_encode_chan(_systemID, _componentID, MAVLINK_COMM_1, &msg, &camera_information);
_send_mavlink_message(&msg, srcaddr);
}

Expand Down Expand Up @@ -723,7 +723,7 @@ void CameraManagerPlugin::_handle_request_video_stream_information(const mavlink
video_stream_information.encoding = VIDEO_STREAM_ENCODING_H264;

mavlink_message_t msg;
mavlink_msg_video_stream_information_encode(_systemID, _componentID, &msg, &video_stream_information);
mavlink_msg_video_stream_information_encode_chan(_systemID, _componentID, MAVLINK_COMM_1, &msg, &video_stream_information);
_send_mavlink_message(&msg, srcaddr);
}

Expand Down

0 comments on commit 5dbcb8c

Please sign in to comment.