v7
Diff: Robot.cpp
- Revision:
- 4:c8ae1b606d51
- Parent:
- 3:3f75a7741b8f
- Child:
- 5:152295068384
--- a/Robot.cpp Mon Feb 27 10:30:15 2017 +0000 +++ b/Robot.cpp Thu Mar 02 12:30:14 2017 +0000 @@ -1,7 +1,8 @@ #include "Robot.h" #include "m3pi.h" - m3pi m3piR; + m3pi m3piR; + SRF05 srf(p21,p22); Robot::Robot(){ obstacle = false; @@ -9,6 +10,7 @@ LED led; Deplacement deplacement; Pattern pattern; + } Robot::~Robot(){ @@ -153,9 +155,12 @@ } - /* SRF05 Robot::getSrf(){ - + void Robot::utiliserUltrason(){ + affichage.effacerTout(); + float result = srf.read(); + //m3piR.printf("%.1f",result); + affichage.affichageUltrason(result); } - */ +