You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am developing software to control drones using MAVSDK c++, but I am having a problem, so I would like to ask a question.
What I want to do is set a flight mission to control the camera trigger at each waypoint of misson, but in mavsdk, I want to do a cout every time the trigger is controlled during the mission. But it's not working well. Please help.
` mavsdk.subscribe_on_message_async(
MAVLinkMessage::Message::CAMERA_IMAGE_CAPTURED,
[&](const MAVLinkMessage& message) {
// 이미지가 캡처되면 실행될 코드
std::cout << "이미지 캡처 완료\n";
First, instead of subscribe_on_message_async, you should probably use the Camera plugin (subscribe_capture_info, which will give you an CaptureInfo object for each photo taken.
Then, when you say "it is not working well", what you do mean? What can happen is that the corresponding mavlink message is lost (because it is an unreliable mavlink broadcast), and therefore MAVSDK does not guarantee that the callback is triggered for every single photo taken.
Hello, I am developing software to control drones using MAVSDK c++, but I am having a problem, so I would like to ask a question.
What I want to do is set a flight mission to control the camera trigger at each waypoint of misson, but in mavsdk, I want to do a cout every time the trigger is controlled during the mission. But it's not working well. Please help.
` mavsdk.subscribe_on_message_async(
MAVLinkMessage::Message::CAMERA_IMAGE_CAPTURED,
[&](const MAVLinkMessage& message) {
// 이미지가 캡처되면 실행될 코드
std::cout << "이미지 캡처 완료\n";
The text was updated successfully, but these errors were encountered: