main Module

Files:

Pseudo-Code

void main(void)

    Initialize Ports, Timers, Motors, Beacons, Starting Side, and Master State Machine
    Enable Interrupts

    Repeat State Machine Forever
        Check for events