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.
Diff: Master.cpp
- Revision:
- 25:8a34b8d6cc6e
- Parent:
- 24:8e7cc6a2e214
- Child:
- 26:53b793b7a82f
--- a/Master.cpp Tue Nov 19 19:12:42 2013 +0000 +++ b/Master.cpp Tue Nov 19 20:42:01 2013 +0000 @@ -1,8 +1,18 @@ #include "mbed.h" -#include "include/zgeom.hpp" + +#include "Master.hpp" Serial pc(USBTX, USBRX); +QEI mEnc1(p25, p26, NC, 1200, QEI::X4_ENCODING); +QEI mEnc2(p23, p24, NC, 1200, QEI::X4_ENCODING); + +Motor m1(p15,p17,p18,p21,mEnc1); +Motor m2(p16,p19,p20,p22,mEnc2); + +QEI bEnc1(p25, p26, NC, 1200, QEI::X4_ENCODING);//change pins!!!!!!!!!!!!!!!!!!!!!!! +QEI bEnc2(p25, p26, NC, 1200, QEI::X4_ENCODING);//these too + int main() { Point p1(1,2,3);