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: Classes/Robot.cpp
- Revision:
- 25:033263cf832c
- Parent:
- 24:314b1f6607c5
- Child:
- 26:fa8a8fa175cb
--- a/Classes/Robot.cpp Thu Jun 06 12:28:19 2019 +0000
+++ b/Classes/Robot.cpp Thu Jun 06 12:39:55 2019 +0000
@@ -107,7 +107,9 @@
bool Robot::surBlanc( T_CNY cny )
{
static const float SEUIL_CNY_G = 0.2f,
- SEUIL_CNY_D = 0.7f;
+ SEUIL_CNY_D = 0.6f;
+
+ dbug.printf("Gauche : %d\n\rDroit : %d\n\r",this->CNY_G, this->CNY_D);
if( cny == Robot::CNY_GAUCHE )
return ( this->CNY_G >= SEUIL_CNY_G );