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: mbed
Fork of Robotics_Lab_DCMotor by
Revision 5:ff3b5f31a9ce, committed 2016-04-14
- Comitter:
- ChangYuHsuan
- Date:
- Thu Apr 14 08:51:41 2016 +0000
- Parent:
- 4:04702de80697
- Child:
- 6:da43b63ffb24
- Commit message:
- Yu Hsuan;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Apr 14 08:47:12 2016 +0000
+++ b/main.cpp Thu Apr 14 08:51:41 2016 +0000
@@ -187,9 +187,9 @@
//Forward: v2Count +1
//Inverse: v2Count -1
if ( (state_2 == (state_2_old + 1)) || (state_2 == (state_2_old - 3)) )
- v1Count++;
+ v2Count++;
else if ( (state_2 == (state_2_old - 1)) || (state_2 == (state_2_old + 3)))
- v1Count--;
+ v2Count--;
}
void init_TIMER(void)
