Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "RobotInsctuctions.h"
- RobotInsctuctions::RobotInsctuctions(ComunicationProtocol* cp)
- {
- this->cp = cp;
- }
- void RobotInsctuctions::GoStraightUntillObsticle()
- {
- bool goStraight = true;
- while (goStraight)
- {
- cp->(5);
- goStraight = cp->GetInfraRedDistance() > 22.0f;
- }
- }
Add Comment
Please, Sign In to add comment