simulator_ignition_bridge: wait for first clock set before returning successfully

This commit is contained in:
Daniel Agar
2022-09-16 21:37:09 -04:00
parent 98036f93c5
commit 3440f543f1
3 changed files with 33 additions and 0 deletions
@@ -33,6 +33,8 @@
#include <lockstep_scheduler/lockstep_scheduler.h>
#include <px4_platform_common/log.h>
LockstepScheduler::~LockstepScheduler()
{
// cleanup the linked list
@@ -47,6 +49,10 @@ LockstepScheduler::~LockstepScheduler()
void LockstepScheduler::set_absolute_time(uint64_t time_us)
{
if (_time_us == 0 && time_us > 0) {
PX4_INFO("setting initial absolute time to %lu us", time_us);
}
_time_us = time_us;
{