To jest stara wersja strony!


Zbiór materiałów dla tematu miw08_mindstormsenv

Algorytmy

Saper

:pl:miw:miw08_mindstormsenv:saper.jpg
saper.uxf - wersja do edytowania (edytor UMLet)

Propozycja regułowego zapisu algorytmu

–at he begining robot is outside the circle

IF activation sound detected THEN opartion is 'move forward'

IF wall detected THEN operation is 'turn around (+random value)'

IF line detected AND is outside circle THEN operation is 'stop, locate object'

IF object located THEN operation is 'move forward'

IF is inside circle AND line detected THEN operation is 'stop, turn around, locate object'

IF object found THEN operation is 'grab object, stop, turn around, move forward'

IF object grabbed AND line detected THEN operation is 'stop, release object'

END

Patrol

:pl:miw:miw08_mindstormsenv:patrol.jpg
patrol.uxf - wersja do edytowania (edytor UMLet)

Propozycja regułowego zapisu algorytmu Saper

– at the begining robot is on the line

IF activation sound detected THEN opeartion is 'calibrate position'

IF position calibrated THEN operation is 'follow line'

IF obstacle detected THEN operation is 'slow down'

IF object grabbed THEN operation is 'stop, turn 90 deg, release object'

IF is not on the line THEN operatio is 'calibrate position'

IF deactivated THEN END

pl/miw/miw08_mindstormsenv/materialy.1207515216.txt.gz · ostatnio zmienione: 2019/06/27 15:59 (edycja zewnętrzna)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0