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.
Road.h
00001 #ifndef _ROAD_H_ 00002 #define _ROAD_H_ 00003 00004 #include "mbed.h" 00005 #include "Car.h" 00006 #include "AccCar.h" 00007 00008 class Car; 00009 class AccCar; 00010 00011 00012 class Road { 00013 public: 00014 EventFlags go_flags; 00015 EventFlags done_flags; 00016 00017 Road(); 00018 void add_car(Car* car); 00019 void add_acc_car(AccCar* car); 00020 void let_cars_update(); 00021 void wait_for_car_update(); 00022 00023 00024 private: 00025 Car* car1; 00026 AccCar* car2; 00027 00028 int active_cars; 00029 }; 00030 #endif
Generated on Wed Jul 27 2022 10:46:49 by
1.7.2