Koelion

Untitled

May 20th, 2018
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include "RobotInsctuctions.h"
  2.  
  3. RobotInsctuctions::RobotInsctuctions(ComunicationProtocol* cp)
  4. {
  5. this->cp = cp;
  6. }
  7.  
  8. void RobotInsctuctions::GoStraightUntillObsticle()
  9. {
  10. bool goStraight = true;
  11. while (goStraight)
  12. {
  13. cp->(5);
  14. goStraight = cp->GetInfraRedDistance() > 22.0f;
  15. }
  16. }
Add Comment
Please, Sign In to add comment