28125 Parallax Inc, 28125 Datasheet - Page 240

TEXT ROBOTICS

28125

Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28125

Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
Figure 6-13: Modify RoamingTowardTheLight.bs2 to Save a Word of RAM
' Unchanged code
average
difference
There is a better way though.
We don’t really need the
someone trying to understand it if we use the word
difference
average
Now, both
Leave the
Average_And_Difference:
Next, make this change in the variable declarations:
difference
Test your modified program and make sure it still works properly.
variable.
difference = difference / Denominator
RETURN
average = timeRight + timeLeft / 2
difference = average / Denominator
RETURN
average
in the second line. Here is how to create an alias name
Average_And_Difference
VAR
VAR
and
difference
average
VAR
Word
Word
variable, but the program will make more sense to
average
refer to the same word of RAM.
' Changed to save Word of RAM
average
difference
routine like this:
average
in the first line and the word
VAR
VAR
difference
Word
average
for the

Related parts for 28125