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