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
Diff: Control/drivecontrol.cpp
- Revision:
- 24:249505c7c080
- Parent:
- 23:953651133b29
- Child:
- 25:7155cb993870
--- a/Control/drivecontrol.cpp Sun May 21 03:42:53 2017 +0000 +++ b/Control/drivecontrol.cpp Sun May 21 05:57:24 2017 +0000 @@ -93,7 +93,7 @@ void one_cell_turned(){ leftEncoder.reset(); rightEncoder.reset(); - while(leftEncoder.getEncoderDistance(1)<-45500 & leftEncoder.getEncoderDistance(1)<45500){ + while(leftEncoder.getEncoderDistance(1)<-45800 & leftEncoder.getEncoderDistance(1)<45800){ //Do nothing } } @@ -210,7 +210,7 @@ int max_two = (- leftEncoder.getEncoderDistance(1) < rightEncoder.getEncoderDistance(0)) ? rightEncoder.getEncoderDistance(0):- leftEncoder.getEncoderDistance(1); - return max_two > 45500; + return max_two > 45800; } bool DriveControl::has_front_wall() {