
24
1.3.1 Memories and variables
In the delay instruction, we write a number that determines the length of the delay
in seconds.
We call a number that is part of the instruction a
constant
. When we want to
change this number, we have to search for the relevant instruction.
In programming, we prefer to use variables instead.
A
variable
is a memory cell with a name. In the instruction we indicate the name
of the memory cell.
We can set the variable value in a certain place of the program, which saves us
the searching for instructions.
The software includes special instruction for changing variable values according
to program conditions.
In
RobocklySense
we use memories (memory1 to memory9) as variables.
Summary of Contents for Sense Autonomous
Page 1: ...Sense Autonomous...
Page 2: ......
Page 4: ......
Page 31: ...25 Before starting the experiment print two black lines as follows...
Page 89: ......
Page 90: ......