James Heavey / Mbed 2 deprecated EL17JH

Dependencies:   mbed

Revision:
38:3a077f0259df
Parent:
22:fa2e0b58043a
Child:
69:db1354676fde
--- a/Paddle/Paddle.cpp	Thu Apr 25 20:59:42 2019 +0000
+++ b/Paddle/Paddle.cpp	Thu Apr 25 21:05:18 2019 +0000
@@ -58,7 +58,7 @@
     else if (_tilt == true) {
     
         Data values = acc.get_values();
-        float roll_rad = atan2(values.ay,values.az) + 0.3f ;
+        float roll_rad = atan2(values.ay,values.az) + 0.25f ;
         _speed = int((roll_rad*(360/3.14159265))*0.3f);  // scale is arbitrary, could be changed in future
     
         // update y value depending on direction of movement