AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

How to set time of day for the evening?

Open dehuachen2017 opened this issue 8 years ago • 7 comments

I want drones to fly in the evening. In file settings.json, I set

"TimeOfDay": { "Enabled": true, "StartDateTime": "%2018-%04-%12 %18:%30:%00" }

But the drone still flies during the daytime. How to set time of day for the evening? Thanks.

dehuachen2017 avatar Apr 12 '18 00:04 dehuachen2017

I think you want:

"TimeOfDay": {
  "Enabled": true,
  "StartDateTime": "2018-04-12 18:30:00"
}

sytelus avatar Apr 12 '18 04:04 sytelus

Thank you for your response. I use "StartDateTime": "2018-04-12 20:00:00" in file settings.json. The scene does not change. The drone still flies during the daytime. Can you help me? Thanks.

dehuachen2017 avatar Apr 12 '18 08:04 dehuachen2017

It's working for me:

{
  "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md",
  "SettingsVersion": 1.0,
  "TimeOfDay": {
     "Enabled": true,
     "StartDateTime": "2018-04-12 18:30:00"
  }
}

image

sytelus avatar Apr 13 '18 02:04 sytelus

@dehuachen2017 Do you solve the problem? Whatever the StartDateTime I set, it is always the current time of my PC.

wujiyoung avatar May 07 '18 09:05 wujiyoung

Any update on this? it uses the current time not the StartDateTime.

fshamshirdar avatar Nov 09 '18 23:11 fshamshirdar

This a bug. Working on fix.

bmalhigh avatar Nov 27 '18 21:11 bmalhigh

This should be fixed now with the pull request 1581

bmalhigh avatar Nov 28 '18 23:11 bmalhigh