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.
Car.h
00001 #ifndef _CAR_H_ 00002 #define _CAR_H_ 00003 00004 #include "Road.h" 00005 #include "mbed.h" 00006 00007 class Road; 00008 00009 class Car { 00010 public: 00011 int position; 00012 int speed; 00013 int flag; 00014 00015 Car(int id, Road* road, int flag); 00016 void update(); 00017 void reset(int position, int speed); 00018 void stop(); 00019 00020 protected: 00021 int id; 00022 int cycle; 00023 Road* road; 00024 Thread* thread; 00025 }; 00026 #endif
Generated on Wed Jul 27 2022 10:46:49 by
1.7.2