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 QEI_pmw MotorShield
Revision 11:4eb579687dda, committed 2020-08-26
- Comitter:
- elijahsj
- Date:
- Wed Aug 26 02:49:40 2020 +0000
- Parent:
- 10:a40d180c305c
- Child:
- 12:84a6dcb60422
- Commit message:
- documentation;
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 Wed Aug 26 02:44:03 2020 +0000 +++ b/MotorShield.lib Wed Aug 26 02:49:40 2020 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/elijahsj/code/MotorShield/#2f46953e7c8b +https://os.mbed.com/users/elijahsj/code/MotorShield/#2b45973bdc67
--- a/main.cpp Wed Aug 26 02:44:03 2020 +0000
+++ b/main.cpp Wed Aug 26 02:49:40 2020 +0000
@@ -48,7 +48,7 @@
encoderC.reset();
encoderD.reset();
- motors.motorAWrite(0, 0); //turn motor A off
+ motors.motorAWrite(0, 0); //turn motor A off, motors.motorAWrite(DUTY CYCLE, DIRECTION), DIRECTION = 0 is forward
// Run experiment
while( t.read() < 2 ) {