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: People/People.h
- Revision:
- 3:b8fbaefc496c
- Parent:
- 2:67b51ee7fc34
- Child:
- 4:b12a49f0b730
--- a/People/People.h Sun Apr 12 04:35:32 2020 +0000
+++ b/People/People.h Sun Apr 12 12:56:49 2020 +0000
@@ -26,15 +26,14 @@
//accessors
void set_pos(Vector2D p);
- void set_velocity(Vector2D v);
+ void set_velocity(Direction d,float mag);
//mutators
Vector2D get_pos();
-
- Vector2D get_velocity();
-
+
private:
- Vector2D _velocity;
+ Direction _d;
+ float _mag;
int _x;
int _y;
};