Skip to main content
. 2018 Dec 12;18(12):4399. doi: 10.3390/s18124399
Algorithm 13 Visual advise.
Input:tmin, tmax, time to reach TLS ut, actual speed us, distance to next TLS d max speed allowed vM
Result: A visual advise to the vehicle u
  • 1:

    m “Actual speed OK”

  • 2:

    vminvmax TLRAlgorithm(tmin,tmax,ut,us,d,vM)

  • 3:

    ifvminvmax0then

  • 4:

        if vmin=vmax then

  • 5:

            if vmin>us then

  • 6:

               m “Speed up to vmin km/h”

  • 7:

            else

  • 8:

               if vmin=0 then

  • 9:

                   m “STOP at line”

  • 10:

               else

  • 11:

                   m “Slow down to vmin km/h”

  • 12:

               end if

  • 13:

            end if

  • 14:

        else

  • 15:

            m “Optimal speed between vminvmax km/h”

  • 16:

        end if

  • 17:

    end if

  • 18:

    DisplayMessage(m)