Skip to content

simContinueForTime doesn't respect ClockSpeed #4307

Closed
@rhalaly

Description

@rhalaly

Bug report

  • AirSim Version/#commit: 0becf91
  • UE/Unity version: 4.27
  • autopilot version:
  • OS Version: Windows 11

What's the issue you encountered?

Wen setting high ClockSpeed and using simContinueForTime it uses the real world time, not the simulation time, which is faster/slower due to the ClockSpeed

Settings

{
  "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md",
  "SettingsVersion": 1.2,
  "SimMode": "Car",
  "ClockSpeed": 10
}

How can the issue be reproduced?

  1. Run an environment with ClockSpeed set to 10.
  2. Run simContinueForTime for 10 seconds.
  3. The simulation will stop after 10 (real life) seconds instead of 1 (real life) second.

Include full error message in text form

Not relevant

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions