Programmeeritavad kontrollerid Labor 2
IMPLEMENTATION
The following section contains the actual `code' that the controllers are running. To simplify the
understanding and to make the scheme more manageable, most of the implementation is divided
into user functions. The functions themselves will be provided and described below.
FIRST CONTROLLER
In the first controller, blocks Mode1, Mode2, Mode3 and ChooseMod are associated with choosing
the mode in which the system must be working. Extra describes the function of the pedestrian
crosswalk button, StopLight Sequen insures that the stoplights are lighting up in the right
sequence. Displays is responsible for the things that need to be shown on the display.
Tallinn University of Technology March 2013
MODE 1