ELEC2645 (2018/19) / Mbed 2 deprecated el17m2h_public

Dependencies:   mbed

Revision:
8:90e789413e0b
Parent:
7:0d9cee90ab0d
Child:
9:5e53bca2a4c2
--- a/Doodler/Doodler.h	Sun Apr 14 17:07:02 2019 +0000
+++ b/Doodler/Doodler.h	Tue Apr 16 16:16:08 2019 +0000
@@ -11,21 +11,24 @@
     Doodler();
     ~Doodler();
     void init(int radius);
-    void draw(N5110 &lcd);
-    void update(Direction d, float mag);
+    void draw(N5110 &lcd);    
+    void update(Direction d, float mag, Vector2D current_pos, Vector2D current_vel);
+    Vector2D get_velocity();
     Vector2D get_position(); 
-    Vector2D get_velocity();
     void set_velocity(Vector2D v);
     void set_position(Vector2D p);
     
     
 private:
     int _radius;
-    int _x;
-    int _y;    
+    float _x;
+    float _y;
     Vector2D _velocity;
+    Vector2D _current_pos;
+    Vector2D _current_vel;
+    Vector2D _new_vel;
+    Vector2D _new_pos;
     float _gravity;
     float _up;
-    
 };
 #endif
\ No newline at end of file