Skip to content

Commit

Permalink
[gz-bridge] fix GZ timeout for slow starting simulations (PX4#22195)
Browse files Browse the repository at this point in the history
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
  • Loading branch information
beniaminopozzan authored and vmsav committed Oct 30, 2023
1 parent 11a365f commit cb4e41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/simulation/gz_bridge/GZBridge.cpp
Expand Up @@ -282,7 +282,7 @@ int GZBridge::task_spawn(int argc, char *argv[])

#if defined(ENABLE_LOCKSTEP_SCHEDULER)
// lockstep scheduler wait for initial clock set before returning
int sleep_count_limit = 1000;
int sleep_count_limit = 10000;

while ((instance->world_time_us() == 0) && sleep_count_limit > 0) {
// wait for first clock message
Expand Down

0 comments on commit cb4e41c

Please sign in to comment.