ELEC2645 (2018/19) / Mbed 2 deprecated el17szs

Dependencies:   mbed

Revision:
7:a1a6bff238c1
Parent:
6:3e50f2cf4366
Child:
8:7b7e1a5b8200
Child:
9:a81db6a703b7
--- a/main.cpp	Thu Apr 18 09:31:52 2019 +0000
+++ b/main.cpp	Thu Apr 18 13:04:37 2019 +0000
@@ -42,7 +42,8 @@
         f= pad1.get_mag();
         printf("MAG %f \n",f);
         int lol=bat.get_hitBall();
-        ball.start(lcd,lol);
+        
+        ball.start(lcd,lol,pad1.get_direction());
         draw();
         wait(1.0f/fps);
     }