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: Doodler/Doodler.h
- Revision:
- 9:5e53bca2a4c2
- Parent:
- 8:90e789413e0b
- Child:
- 10:e1d2289705ef
--- a/Doodler/Doodler.h Tue Apr 16 16:16:08 2019 +0000
+++ b/Doodler/Doodler.h Tue Apr 16 19:51:12 2019 +0000
@@ -12,7 +12,7 @@
~Doodler();
void init(int radius);
void draw(N5110 &lcd);
- void update(Direction d, float mag, Vector2D current_pos, Vector2D current_vel);
+ void update(Direction d, float mag, Vector2D current_vel);
Vector2D get_velocity();
Vector2D get_position();
void set_velocity(Vector2D v);
@@ -21,13 +21,9 @@
private:
int _radius;
- float _x;
- float _y;
+ Vector2D _pos;
Vector2D _velocity;
- Vector2D _current_pos;
Vector2D _current_vel;
- Vector2D _new_vel;
- Vector2D _new_pos;
float _gravity;
float _up;
};