15MiConroy / CIS434_Spring2019_G1

Project for Cleveland State University's CIS 434 course
0 stars 0 forks source link

Yellow Lights are Present after a Left Turn Light #39

Closed alexdarling closed 5 years ago

alexdarling commented 5 years ago

On master & develop, the left turn sequence is currently bugged. It does not have a functional impact on the cars based on their current logic, but it can lead to abnormal behaviors in the future. It's also clearly not intended behavior in the intersection.

This pattern occurs in both N/S and E/W lanes. I've included an example of the N/S issue.

Intended Behavior

1. LRLR
2. RRRR
3. GRGR
4. YRYR
5. RRRR

Actual Behavior

1. LRLR
2. RYRY
3. RRRR
4. GRGR
5. YRYR
6. RRRR

The culprit is in step 2, which should not exist. Two weird issues are occurring:

  1. Yellow lights should not appear in this step at all. The lights should be red (Step 3)
  2. The yellow lights are appearing in the orthogonal lane pair instead of the active lane pair.

Preventing the extra step from occurring at all should fix the issue, but determining why the orthogonal lane pair's lights are colored is also important, in case it creates future bugs.

alexdarling commented 5 years ago

Should be fixed in #42!