From 0d735ffb015cd4fcb3c1b0f3d645237b178379a6 Mon Sep 17 00:00:00 2001 From: Rhys Mainwaring Date: Mon, 20 Nov 2023 15:49:42 +0000 Subject: [PATCH] AP_DDS: increase the timeout when creating participants and entities Signed-off-by: Rhys Mainwaring --- libraries/AP_DDS/AP_DDS_Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_DDS/AP_DDS_Client.cpp b/libraries/AP_DDS/AP_DDS_Client.cpp index 100f51de2f..43dd37f788 100644 --- a/libraries/AP_DDS/AP_DDS_Client.cpp +++ b/libraries/AP_DDS/AP_DDS_Client.cpp @@ -733,7 +733,7 @@ bool AP_DDS_Client::create() constexpr uint8_t nRequestsParticipant = 1; const uint16_t requestsParticipant[nRequestsParticipant] = {participant_req_id}; - constexpr uint8_t maxTimeMsPerRequestMs = 250; + constexpr uint16_t maxTimeMsPerRequestMs = 500; constexpr uint16_t requestTimeoutParticipantMs = (uint16_t) nRequestsParticipant * maxTimeMsPerRequestMs; uint8_t statusParticipant[nRequestsParticipant]; if (!uxr_run_session_until_all_status(&session, requestTimeoutParticipantMs, requestsParticipant, statusParticipant, nRequestsParticipant)) {