Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Intersection.h
00001 #ifndef _INTERSECTION_H_ 00002 #define _INTERSECTION_H_ 00003 00004 #include "mbed.h" 00005 00006 class Intersection { 00007 public: 00008 int queue[2]; 00009 int intersection_car; 00010 bool occupied; 00011 int road1Car; 00012 int road2Car; 00013 00014 Intersection(); 00015 void preChecks(); 00016 void intendToEnter(int carId, int roadId); 00017 int attemptEnterIntersection(int carId); 00018 void leaveIntersection(); 00019 }; 00020 #endif 00021
Generated on Wed Jul 20 2022 19:41:08 by
1.7.2