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:
- 16:05665faaa489
- Parent:
- 15:3d4543a6c100
- Child:
- 17:aae5361ddddf
--- a/Classes/Robot.cpp Mon Jun 03 16:37:37 2019 +0000
+++ b/Classes/Robot.cpp Tue Jun 04 08:49:01 2019 +0000
@@ -21,11 +21,17 @@
}
/// retourne l'adresse de la premiere case d'un tableau contenant dans l'ordre la position en x et en y et l'angle theta ///
-void Robot::getPos(int* pos)
+void Robot::getPos(short* pos)
{
majPos(pos);
}
+bool Robot::getFlag()
+{
+ majFlagDpl(this->deplacement.getFlag());
+ return this->deplacement.getFlag();
+}
+
/// Toutes les fonctions de déplacement ///
bool Robot::avance(signed short dist)