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:
- 18:e5eb50c5e61f
- Parent:
- 16:1761dfe801af
- Child:
- 19:06f4d39b9290
--- a/Paddle/Paddle.cpp Tue Apr 23 18:04:47 2019 +0000
+++ b/Paddle/Paddle.cpp Tue Apr 23 18:25:52 2019 +0000
@@ -57,7 +57,7 @@
Data values = acc.get_values();
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
+ _speed = int((roll_rad*(360/3.14159265))*0.5f); // scale is arbitrary, could be changed in future
// update y value depending on direction of movement
// North is decrement as origin is at the top-left so decreasing moves up