mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-11 03:31:35 +08:00
Work in progress to support a speed factor in SITL
These contains some rough changes trying to get SITL to speed up by a SPEED_FACTOR. This platform time code probably requires some more thought and refactor but this gets a demo at 4x working.
This commit is contained in:
@@ -124,7 +124,7 @@ int px4_sem_timedwait(px4_sem_t *s, const struct timespec *abstime)
|
||||
errno = 0;
|
||||
|
||||
if (s->value < 0) {
|
||||
ret = pthread_cond_timedwait(&(s->wait), &(s->lock), abstime);
|
||||
ret = px4_pthread_cond_timedwait(&(s->wait), &(s->lock), abstime);
|
||||
|
||||
} else {
|
||||
ret = 0;
|
||||
|
||||
Reference in New Issue
Block a user