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.
Dependencies: mbed
Diff: Car/car.h
- Revision:
- 12:bc9a43f56261
- Parent:
- 11:0e6a221ad8a9
--- a/Car/car.h Fri May 10 13:58:51 2019 +0000 +++ b/Car/car.h Fri May 10 14:38:36 2019 +0000 @@ -139,20 +139,20 @@ private: - int _fuel; // for future development - int _health; // for future development - int _direction; // variable to display the turning car - int _gear; // gear of the car [1:3] + int _fuel; /**<int for future development */ + int _health; /**<int for future development */ + int _direction; /**<int choice to display the turning car */ + int _gear; /**<int the gear between 1 and 3 */ - float _rev; // revs based on the gear - float _car_distance; // distance the car has travelled - float _speed; // car speed - float _car_position; + float _rev; /**<float revs based on the gear */ + float _car_distance; /**<float the distance of the car */ + float _speed; /**<float car speed */ + float _car_position; /**<float car position before parsing */ // pictures to draw car in different direction - static int car1[]; - static int car2[]; - static int car3[]; + static int car1[]; /**<static int car goes straight */ + static int car2[]; /**<static int car goes to the right */ + static int car3[]; /**<static int car goes to the left */ };