
als;djfpoafb hnw3jg
Dependencies: MatrixMath Matrix ExperimentServer QEI_pmw MotorShield
Revision 4:bb441c9325f4, committed 2021-11-29
- Comitter:
- sabazerefa
- Date:
- Mon Nov 29 20:49:05 2021 +0000
- Parent:
- 3:2730130aa049
- Child:
- 5:3d30627ae76e
- Commit message:
- File inclusion
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Nov 22 20:40:44 2021 +0000 +++ b/main.cpp Mon Nov 29 20:49:05 2021 +0000 @@ -25,7 +25,7 @@ QEI encoderC(PC_6, PC_7, NC, 1200, QEI::X4_ENCODING); // MOTOR C ENCODER (no index, 1200 counts/rev, Quadrature encoding) QEI encoderD(PD_12, PD_13, NC, 1200, QEI::X4_ENCODING);// MOTOR D ENCODER (no index, 1200 counts/rev, Quadrature encoding) -float directionChange=-1; +float directionChange=1;//Not yet included properly!! MotorShield motorShield(12000); //initialize the motor shield with a period of 12000 ticks or ~20kHZ Ticker currentLoop;