Closed paulbourelly999 closed 1 year ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
No Duplication information
The version of Java (11.0.19) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. Read more here
Set Delay to 1000 ms per second to startup SUMO running at approximately real-time to avoid time sync issues with simulation and infrastructure
PR Details
Description
Due to this issue (https://github.com/usdot-fhwa-OPS/V2X-Hub/issues/540) the current time synchronization between infrastructure (V2X-Hub) and CDASim is non-time regulating, meaning Infrastructure does not currently have a way of notifying CDASim when it is ready for time to advance in simulation. Due to this, is simulation is running faster than real time, Infrastructure can begin to fall behind. To avoid this, this PR adds a GUI settings file to the SUMO GUI, which is used to play/pause/step through the simulation. In this settings file, we can configure the delay, a sumo GUI feature that controls how long, if at all, between time steps SUMO will wait before inform proceeding to the next time. Since SUMO's integration with CDASim is time regulating, this delay feature allow a use to modify the maximum speed at which the simulation can run. The new settings file configures this value to be 1000ms per 1s (~ real-time) at startup to avoid the need for manual configuration at start up
Related Issue
Motivation and Context
Avoid (https://github.com/usdot-fhwa-OPS/V2X-Hub/issues/540)
How Has This Been Tested?
XIL-Cloud deployment
Types of changes
Checklist: