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: Ball/Ball.cpp
- Revision:
- 40:a1cdb6ab08af
- Parent:
- 38:a85bc227b907
--- a/Ball/Ball.cpp Thu May 09 01:58:36 2019 +0000 +++ b/Ball/Ball.cpp Thu May 09 10:52:00 2019 +0000 @@ -24,8 +24,6 @@ Data values = accelerometer.get_values(); _velocity.x = -(5+_ball_speed)*values.ay; //axes of the accelerometer are different to orientation of the screen _velocity.y = -(5+_ball_speed)*values.ax; //negative to account for reversed direction - /*printf("ax = %f | ay = %f | ", values.ax, values.ay); - printf("vel.x = %f | vel.y = %f\n", _velocity.x, _velocity.y);*/ } void Ball::update(){