Demo Program in RIS 2.0 code
Go to Home Page

 

The program below is for collision avoidance with the simple robot shown below. This example is in written in RIS 2.0 code.

The column causes the robot to go forward. It will continue to go forward until the sensor sees something.

The second column runs when the sensor detects an object on it's left side. The right motor is turned off, while the left motor continues to run. This causes the robot to turn to the right. When the sensor no longer sees anything, the fifth column will be activated, causing the robot to go forward again.

The third column works the same as the second column, except the right and left are reversed.

The fourth column is activated when the sensor detects something straight ahead, or on both sides at the same time. In this case the robot backs up, turns to the right, then continues straight ahead.

This is a simplified example. There are corner conditions where the robot will crash into an object. This program can produce interesting results when the sensor detects a smaller object. It is fun to experiment and modify the program.
 
 

michael kors Black Friday michael kors black friday michael kors Black Friday michael kors black friday uggs Black Friday beats by dre cyber monday Abercrombie and fitch black friday moncler cyber monday Abercrombie and fitch black friday Abercrombie and fitch cyber monday canada goose black friday Oakley cyber monday bose cyber monday Ray Ban black friday pandora black friday gucci black friday uggs black Friday coach black Friday uggs cyber monday michael kors cyber monday north face black friday michael kors cyber monday michael kors black friday canada goose black friday moncler black friday coach black Friday uggs cyber monday coach black Friday uggs black Friday north face cyber Monday michael kors black Friday canada goose cyber Monday moncler black friday lululemon black friday north face cyber Monday beats by dre cyber Monday uggs black friday beats by dre black Friday sale black Friday beats by dre north face cyber Monday michael kors cyber Monday beats by dre cyber Monday beats by dre cyber Monday michael kors cyber Monday uggs cyber monday north face cyber monday uggs cyber monday uggs black friday Babyliss black Friday uggs cyber monday north face cyber monday uggs cyber monday kate spade black friday kate spade cyber monday north face black friday michael kors cyber Monday michael kors cyber Monday coach cyber monday uggs black friday michael kors cyber Monday uggs cyber monday Ray Ban black Friday uggs cyber monday nike cyber monday beats by dre black friday nike cyber monday Ray Ban black Friday uggs black friday michael kors cyber Monday uggs black friday kate spade cyber monday Ray Ban cyber Monday louis vuitton black Friday michael kors black Friday michael kors cyber Monday Juicy Couture cyber monday canada goose black friday uggs black friday north face black friday beats by dre black Friday sale Juicy Couture black friday Juicy Couture cyber monday north face cyber monday michael kors cyber Monday michael kors cyber Monday north face black friday uggs cyber monday michael kors black friday uggs cyber monday michael kors black friday uggs cyber monday uggs cyber monday uggs cyber monday uggs black friday michael kors black Friday uggs cyber monday michael kors cyber Monday michael kors cyber Monday beats by dre cyber Monday north face black friday north face cyber monday beats by dre cyber Monday beats by dre cyber Monday north face black friday michael kors cyber Monday beats by dre cyber Monday michael kors black friday michael kors black friday michael kors cyber monday michael kors cyber monday michael kors cyber monday michael kors black friday michael kors black friday michael kors cyber monday michael kors cyber monday michael kors black friday uggs black friday north face black friday north face cyber monday north face black friday uggs black friday uggs cyber monday uggs cyber monday uggs cyber monday uggs black friday uggs cyber monday