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.
Fork of Movement by
Revision 5:d13de19a1eea, committed 2017-11-02
- Comitter:
- DBerendsen
- Date:
- Thu Nov 02 10:17:17 2017 +0000
- Parent:
- 4:c81764efe40d
- Commit message:
- Eerste keer super mooi werkend;
Changed in this revision
Movement.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Movement.cpp Wed Nov 01 22:46:38 2017 +0000 +++ b/Movement.cpp Thu Nov 02 10:17:17 2017 +0000 @@ -44,7 +44,7 @@ float position_math_left; switch(SignalNumber){ case 1: //Move slowest - movement_left = directionLeft*0.25; + movement_left = directionLeft*0.5; position_math_left = positionLeft + movement_left; if (position_math_left >= max_range || position_math_left <=0){ positionLeft = positionLeft; @@ -54,7 +54,7 @@ } break; case 2: //Move slow - movement_left = directionLeft *1; + movement_left = directionLeft *1.5; position_math_left = positionLeft + movement_left; if (position_math_left >= max_range || position_math_left <=0){ positionLeft = positionLeft;