Skip to content

Commit

Permalink
camera-manager: use rtsp url as third argument
Browse files Browse the repository at this point in the history
This makes it more flexible in general.

Signed-off-by: Julian Oes <[email protected]>
  • Loading branch information
julianoes committed Mar 7, 2024
1 parent 17e3df7 commit 1e10963
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions camera-manager/camera_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ int main(int argc, char* argv[])
<< "\n"
<< "Usage: " << argv[0] << " <mavsdk connection url> <ground station connection url> <our ip>\n"
<< "\n"
<< "E.g. " << argv[0] << " serial:///dev/ttyUSB0:57600 udp://192.168.1.51:14550 192.168.1.45\n";
<< "E.g. " << argv[0] << " serial:///dev/ttyUSB0:57600 udp://192.168.1.51:14550 rtsp://192.168.1.45:8554/live\n";
return 1;
}

const std::string mavsdk_connection_url{argv[1]};
const std::string groundstation_connection_url{argv[2]};
const std::string our_ip{argv[3]};
const std::string rtsp_url{argv[3]};

// SIYI setup first
siyi::Messager siyi_messager;
Expand Down Expand Up @@ -155,7 +155,7 @@ int main(int argc, char* argv[])

ret = camera_server.set_video_streaming(mavsdk::CameraServer::VideoStreaming{
.has_rtsp_server = true,
.rtsp_uri = std::string{"rtsp://"} + our_ip + std::string{":8554/live"},
.rtsp_uri = rtsp_url,
});

if (ret != mavsdk::CameraServer::Result::Success) {
Expand Down

0 comments on commit 1e10963

Please sign in to comment.