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
Revision 26:0fc6264f5ef5, committed 2022-10-02
- Comitter:
- elijahsj
- Date:
- Sun Oct 02 22:20:03 2022 +0000
- Parent:
- 25:52b378e89f42
- Child:
- 27:9f2dad72971f
- Commit message:
- updated motor shield
Changed in this revision
| MotorShield.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MotorShield.lib Tue Sep 29 21:09:51 2020 +0000 +++ b/MotorShield.lib Sun Oct 02 22:20:03 2022 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/elijahsj/code/MotorShield/#e3a2ade56b79 +https://os.mbed.com/users/adimmit/code/MotorShield/#46feb6919761
--- 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