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 QEI biquadFilter mbed
Fork of MotorArchitecture2 by
Diff: main.cpp
- Revision:
- 6:b526cf83fd4f
- Parent:
- 5:892531e4e015
- Child:
- 7:db050a878cff
--- 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();
