Robot's source code
Dependencies: mbed
Diff: main.cpp
- Revision:
- 32:148147c0755e
- Parent:
- 31:e60cd1c984f4
- Child:
- 34:95b9e61c7dae
diff -r e60cd1c984f4 -r 148147c0755e main.cpp --- a/main.cpp Tue Feb 03 18:44:33 2015 +0000 +++ b/main.cpp Tue Feb 03 18:46:43 2015 +0000 @@ -73,9 +73,9 @@ /*----------------------------------------------------------------------------------------------*/ /*Odometry*/ - QEI qei_left(D2,D3,NC,1024,QEI::X4_ENCODING); - QEI qei_right(D4,D5,NC,1024,QEI::X4_ENCODING); - Odometry odometry(&qei_left,&qei_right,63,63,280); + QEI qei_left(D2,D3,NC,1024*4,QEI::X4_ENCODING); + QEI qei_right(D4,D5,NC,1024*4,QEI::X4_ENCODING); + Odometry odometry(&qei_left,&qei_right,63/2.,63/2.,280); bool testOdo = false; /*----------------------------------------------------------------------------------------------*/