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/Deplacement.cpp
- Revision:
- 17:aae5361ddddf
- Parent:
- 16:05665faaa489
- Child:
- 27:e103da412e2b
--- a/Classes/Deplacement.cpp Tue Jun 04 08:49:01 2019 +0000
+++ b/Classes/Deplacement.cpp Tue Jun 04 17:25:49 2019 +0000
@@ -11,6 +11,11 @@
return this->peutBouger;
}
+short Deplacement::getPos(int i)
+{
+ return this->pos[i];
+}
+
bool Deplacement::avance(signed short dist)
{
if(this->peutBouger)
@@ -19,7 +24,7 @@
this->peutBouger = false;
}
else
- majFlagDpl(this->peutBouger);
+ updateCAN(this->peutBouger, this->pos);
return this->peutBouger;
}
@@ -32,7 +37,7 @@
this->peutBouger = false;
}
else
- majFlagDpl(this->peutBouger);
+ updateCAN(this->peutBouger, this->pos);
return this->peutBouger;
}
@@ -45,7 +50,7 @@
this->peutBouger = false;
}
else
- majFlagDpl(this->peutBouger);
+ updateCAN(this->peutBouger, this->pos);
return this->peutBouger;
}
@@ -54,6 +59,6 @@
{
SendRawId(ASSERVISSEMENT_STOP);
- do majFlagDpl(this->peutBouger);
+ do updateCAN(this->peutBouger, this->pos);
while(!this->peutBouger);
}
\ No newline at end of file