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.
AccCar.h
- Committer:
- mwgold
- Date:
- 2019-11-10
- Revision:
- 0:ca7cb51e9fd1
File content as of revision 0:ca7cb51e9fd1:
#ifndef _ACC_CAR_H_ #define _ACC_CAR_H_ #include "mbed.h" #include "Road.h" class Road; class AccCar{ public: int id; int position; int speed; int flag; AccCar(int id, Road* road, int flag); void set_forward_car(AccCar* car); void set_target_speed(int speed); void update(); void reset(); protected: int target_speed; int cycle; bool waited; AccCar* forward_car; Road* road; Thread* thread; }; #endif