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: FastPWM HIDScope MODSERIAL QEI Matrix biquadFilter controller errorFetch mbed motorConfig refGen MatrixMath inverseKinematics
Fork of Minor_test_serial by
Revision 11:d1692be2de30, committed 2017-09-21
- Comitter:
- tvlogman
- Date:
- Thu Sep 21 08:20:49 2017 +0000
- Parent:
- 10:e23cbcdde7e3
- Child:
- 12:0462757e1ed2
- Commit message:
- Encoder reading now works - removed HIDscope as that seemed to be the problem
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Sep 21 08:12:58 2017 +0000
+++ b/main.cpp Thu Sep 21 08:20:49 2017 +0000
@@ -4,7 +4,6 @@
#include "QEI.h"
QEI Encoder(D12,D13,NC,32);
-HIDScope scope(2);
MODSERIAL pc(USBTX, USBRX);
Ticker encoderTicker;
@@ -20,7 +19,8 @@
int main()
{
pc.baud(115200);
+ encoderTicker.attach(readEncoder, 0.5);
pc.printf("Encoder ticker attached and baudrate set");
- encoderTicker.attach(readEncoder, 2.0);
+
}
