Challenge Exercise - Along Two Lines; Movement Along A Wall - NeuLog Sense Autonomous Manual

Table of Contents

Advertisement

1.5.5
Challenge exercise – Along two lines
Task 1:
Prepare two black lines as follows:
Put an obstacle on the inner line and let the SENSE move along this
line.
When it meets the obstacle, it moves to the outer line and goes along it.
1.5.6

Movement along a wall

To move the SENSE along a wall, we use the same algorithm of moving the
SENSE along a black line. We use the slow turn procedures.
In the main program, we use the If instruction to make the movement according
to the following algorithm:
 Turn left when the SENSE is too close to the wall.
 Turn right when the SENSE is far from the wall.
To go along a wall on the right, we use the front side range sensor.
The side range sensors are installed in 45
When the SENSE turns to the right, the measured distance is smaller than when
it turns to the left.
Think what will happen if the range sensor is parallel to the wall.
48
o
to the SENSE base.

Advertisement

Table of Contents
loading

Table of Contents