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:
- 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