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.
Diff: HW05Code/Road.h
- Revision:
- 0:f17da79e74c9
diff -r 000000000000 -r f17da79e74c9 HW05Code/Road.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/HW05Code/Road.h Wed Oct 09 16:29:06 2019 +0000
@@ -0,0 +1,30 @@
+#ifndef _ROAD_H_
+#define _ROAD_H_
+
+#include "mbed.h"
+#include "Car.h"
+#include "AccCar.h"
+
+class Car;
+class AccCar;
+
+
+class Road {
+public:
+ EventFlags go_flags;
+ EventFlags done_flags;
+
+ Road();
+ void add_car(Car* car);
+ void add_acc_car(AccCar* car);
+ void let_cars_update();
+ void wait_for_car_update();
+
+
+private:
+ Car* car1;
+ AccCar* car2;
+
+ int active_cars;
+};
+#endif
\ No newline at end of file