Experiment 1.4 - Procedures As New Instructions - NeuLog Sense Autonomous Manual

Table of Contents

Advertisement

Experiment 1.4 – Procedures as New
Instructions
Objectives:
Using procedures in a program.
Reacting to sensors.
Equipment required:
Computer
RobocklySense software
SENSE autonomous
USB connection cable
BAT-202 Battery module
Discussion:
A computer program is composed of chains of instructions.
Instead of having a single chain of instructions, we can divide the program to
procedures, which are short chains and give a name for each chain.
In a program, there is one main program and procedures. This way, when we run
the program, the computer knows where to start.
In this experiment, we shall build and use movement procedures.
At the end of the program we need to add an instruction, which returns the
program to the beginning (when we want the program to be executed repeatedly),
or stops the program and returns to the operating system.
31

Advertisement

Table of Contents
loading

Table of Contents