Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- //trugva napravo dokato ne sreshtne obekt;
- forward();
- x = millis();
- while (ne e zasechen obekt) {
- }
- //zapisva kolko vreme mu e otnelo da stigne ot edin rub do otsreshtniq
- x = millis() - x;
- stop();
- zavurtiSeNaDqsno();
- forward();
- y = millis();
- while (ne e zasechen obekt) {
- }
- y = millis() - y;
- stop();
- //veche imame max X i max Y vuv milisekundi
- }
Advertisement
Add Comment
Please, Sign In to add comment