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.
Dependents: buttoncontrol includeair includeair Oudverslag
Diff: controlandadjust.cpp
- Revision:
- 14:2b4378bfe07a
- Parent:
- 12:9cec66b450e0
- Child:
- 15:a1a29db96f4f
--- a/controlandadjust.cpp Fri Oct 09 13:53:18 2015 +0000
+++ b/controlandadjust.cpp Mon Oct 19 13:44:22 2015 +0000
@@ -23,9 +23,9 @@
{
//motor1
if (signaal1>=0) {//determine CW or CCW rotation
- direction1=CW;
+ direction1=CCW;
} else {
- direction1=CCW;
+ direction1=CW;
}
if (fabs(signaal1)>=maxvaluepwm) { //check if signal is <1