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: ExperimentServer MotorShield QEI_pmw
Diff: main.cpp
- Revision:
- 26:0fc6264f5ef5
- Parent:
- 25:52b378e89f42
- Child:
- 27:9f2dad72971f
--- a/main.cpp Tue Sep 29 21:09:51 2020 +0000 +++ b/main.cpp Sun Oct 02 22:20:03 2022 +0000 @@ -23,7 +23,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) -MotorShield motorShield(12000); //initialize the motor shield with a period of 12000 ticks or ~20kHZ +MotorShield motorShield(24000); //initialize the motor shield with a period of 24000 ticks or ~10kHZ Ticker currentLoop; // Variables for q1