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:
- 15:3d4543a6c100
- Parent:
- 13:9c62e263f245
- Child:
- 16:05665faaa489
--- a/Classes/Deplacement.cpp Tue May 28 16:26:14 2019 +0000 +++ b/Classes/Deplacement.cpp Mon Jun 03 16:37:37 2019 +0000 @@ -6,7 +6,7 @@ this->peutBouger = true; } -bool Deplacement::avance(int dist) +bool Deplacement::avance(signed short dist) { if(this->peutBouger) { @@ -19,7 +19,7 @@ return this->peutBouger; } -bool Deplacement::tourne(int angle) +bool Deplacement::tourne(signed short angle) { if(this->peutBouger) { @@ -32,7 +32,7 @@ return this->peutBouger; } -bool Deplacement::GoToXYT(int x, int y, int t, int sens) //sens = 0 par défaut +bool Deplacement::GoToXYT(unsigned short x, unsigned short y, unsigned short t, signed char sens) //sens = 0 par défaut { if(this->peutBouger) { @@ -48,5 +48,7 @@ void Deplacement::stop() { SendRawId(ASSERVISSEMENT_STOP); - this->peutBouger = true; + + do majFlagDpl(this->peutBouger); + while(!this->peutBouger); } \ No newline at end of file