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.
Diff: YellowMotors.cpp
- Revision:
- 5:6dbb019203e9
- Parent:
- 4:aef786c67b2d
diff -r aef786c67b2d -r 6dbb019203e9 YellowMotors.cpp --- a/YellowMotors.cpp Fri Feb 05 15:49:11 2016 +0000 +++ b/YellowMotors.cpp Fri Feb 05 16:28:29 2016 +0000 @@ -41,7 +41,7 @@ }; void YellowMotors::set(float value, int whichMotor ) { - pc.printf("value: %.3f", value); + //pc.printf("value: %.3f", value); char directionsNew = _directions; if(whichMotor == -1) { // case set both; L = motorLinearizationL(abs(value)); @@ -116,11 +116,11 @@ void YellowMotors::setDirections(char directions) { if (_led != 0) *_led = 1; - pc.printf("\n\r_led ma adres: %d\n\r", _led); - pc.printf("### set dirs: "); + //pc.printf("\n\r_led ma adres: %d\n\r", _led); + //pc.printf("### set dirs: "); for(int i=0; i<8; ++i) - pc.printf("%c", ((directions >> (7-i)) & 0x1)?'x':'_'); - pc.printf(" ###\n\r"); + //pc.printf("%c", ((directions >> (7-i)) & 0x1)?'x':'_'); + //pc.printf(" ###\n\r"); _directions = directions; _lat = 0; for (signed char i = 7; i >= 0; i--) {