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.
Dependencies: DataPool MD_PID mbed
Diff: 2017_3_b/2017_3_b.cpp
- Revision:
- 5:8559e2a74af2
- Parent:
- 2:158fea945e51
- Child:
- 6:4bc7c61f190a
--- a/2017_3_b/2017_3_b.cpp Wed Aug 30 05:22:05 2017 +0000 +++ b/2017_3_b/2017_3_b.cpp Thu Aug 31 00:16:22 2017 +0000 @@ -29,7 +29,7 @@ double speed[3]; dere = atan2(arg_y, arg_x); - sp = sqrt(pow(arg_x, 2.0) + pow(arg_y, 2.0)); + sp = pow(arg_x * arg_x + arg_y * arg_y, 0.60); speed[0] = cos(dere) * sp; // vx speed[1] = sin(dere) * sp; // vy