Road Essay Examples



RoadState as Real Call DriveCar Module Call TurnCar Module End Main Module DriveCar Module If no Intersection Do Put car into Drive gear Do If roadState or mirrorStatus is clear Press the accelerator Else Press BrakePedal End If While CarState is not Stopped WHILE Driver wants to continue Else Check intersection sign If intersection sign is stop If roadState is not clear Press BrakePedal Else Continue to drive End If End If End If End DriveCar Module TurnCar Module If Driver wants to turn right Press right Indicator Else If Driver wants to turn left Press left indicator End If While Driver wants to turn If RoadState is clear While Turn is not completePress...

  • Words: 275
  • Pages: 1
Read more