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.
Diff: Paddle/Paddle.cpp
- Revision:
- 74:dfb1d693d8e3
- Parent:
- 72:7254d2a8a1cd
- Child:
- 75:d96b177585aa
diff -r 54ab819609bc -r dfb1d693d8e3 Paddle/Paddle.cpp
--- a/Paddle/Paddle.cpp	Sun May 05 17:39:45 2019 +0000
+++ b/Paddle/Paddle.cpp	Sun May 05 22:17:39 2019 +0000
@@ -59,7 +59,7 @@
     else if (_tilt == true) {
     
         Data values = acc.get_values();
-        float roll_rad = atan2(values.ay,values.az) + 0.25f ;
+        float roll_rad = atan2(values.ay,values.az);
         _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