Experiment 1.5 - Conditions And Decisions; If - Then Instruction - NeuLog Sense Autonomous Manual

Table of Contents

Advertisement

Experiment 1.5 – Conditions and Decisions
Objectives:
The IF instruction.
OR condition.
AND condition.
Equipment required:
Computer
RobocklySense software
SENSE autonomous
USB connection cable
BAT-202 Battery module
Discussion:
1.5.1
If – then instruction
In the previous experiment, we learned about the Wait until instruction. This is
one of the condition instructions.
The IF instruction is the main condition instruction. It is composed of a condition
and a procedure to operate when the condition exists.
The condition is checked when the condition instruction is executed. If the
condition does not exist, the following instruction is executed.
The following program is a main procedure for moving along black line using IF
instructions.
We can create complex conditions, called AND condition and OR condition,
explained in the experiment later.
39

Advertisement

Table of Contents
loading

Table of Contents