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: BMX055 Motor Way
Diff: main.cpp
- Revision:
- 8:1c1c72c69af4
- Parent:
- 7:ce2920da874b
- Child:
- 9:87df9f0ec367
- Child:
- 10:cea77ea5af93
diff -r ce2920da874b -r 1c1c72c69af4 main.cpp --- a/main.cpp Wed Jan 15 02:25:54 2020 +0000 +++ b/main.cpp Wed Jan 15 02:31:36 2020 +0000 @@ -169,7 +169,7 @@ dist += (v + v_pre) * INTVAL_MOTOR / 2; dist_count += (v + v_pre) * INTVAL_MOTOR / 2; x += (x_dot + x_dot_pre) * INTVAL_MOTOR / 2; - y += (x_dot + x_dot_pre) * INTVAL_MOTOR / 2; + y += (y_dot + y_dot_pre) * INTVAL_MOTOR / 2; v_pre = v; x_dot_pre = x; y_dot_pre = y;