Skip to main content
. 2018 Dec 12;18(12):4399. doi: 10.3390/s18124399
Algorithm 12 Time to end of lane.
Input:tmin, tmax, time to reach TLS ut, actual speed us, distance to next TLS d max speed allowed vM
Result: vmin,vmax in case a speed change is necessary or ∅ otherwise
  • 1:

    if not tminuttmax then

  • 2:

        vmin[dtmin3.6]

  • 3:

        if ut>tmax and vminvM then

  • 4:

            aneeded=2(dustmax3.6/tmax2)

  • 5:

            amax MaxAccel(u)

  • 6:

            if aneeded<amax then

  • 7:

               vmaxargmin([dtmin3.6],vM)

  • 8:

            else

  • 9:

               vminvmax0

  • 10:

            end if

  • 11:

        else

  • 12:

            vmaxvmin

  • 13:

        end if

  • 14:

        return (vmin,vmax)

  • 15:

    elsereturn None

  • 16:

    end if