mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 01:23:34 +08:00
simulator_ignition_bridge: wait for first clock set before returning successfully
This commit is contained in:
@@ -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;
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user