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: HIDScope biquadFilter mbed QEI
Revision 6:b526cf83fd4f, committed 2018-10-30
- Comitter:
- WouterJS
- Date:
- Tue Oct 30 08:26:42 2018 +0000
- Parent:
- 5:892531e4e015
- Commit message:
- Next one;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Oct 30 08:24:14 2018 +0000
+++ b/main.cpp Tue Oct 30 08:26:42 2018 +0000
@@ -110,7 +110,7 @@
//Reading of motor
counts_m1 = Encoder1.getPulses() - counts_m1_prev;
- counts_m2 = Encoder1.getPulses() - counts_m2_prev;
+ counts_m2 = Encoder2.getPulses() - counts_m2_prev;
deg_m1 = deg_m1 + counts_m1*(360/(full_ratio));
deg_m2 = deg_m2 + counts_m2*(360/(full_ratio));
counts_m1_prev = Encoder1.getPulses();