Page 165 - The Ultimate Palm Robot
P. 165
Color profile: Generic CMYK printer profile
Composite Default screen
Bots / The Ultimate Palm Robot/ Mukhar & Johnson / 222880-6 / Chapter 6
148 The Ultimate Palm Robot
Figure 6-10
The three
steps needed
to launch a
TEA program
are to steep
the source,
load the code,
and launch
the program.
The syntax of each command follows:
❏ steep “program_name.tea” steep followed by the quoted
program name with .tea extension
❏ load “program_name.cup” module_id slot load followed by the
quoted program name with .cup extension, then the module ID
(the default BrainStem ID is 2), and finally followed by the slot
number for the program (0 to 9)
❏ launch module_id slot launch followed by the module_id (2)
followed by the slot number where the program is loaded (0 to 9)
You can find additional information about TEA programs, the Console, and
Console commands in Chapter 8.
Java
While using BASIC and TEAwith the robot are relatively straightforward, us-
ing Java is a bit more involved. For this reason, we will not show you how to
use Java with your robot here. Instead, please check Chapter 8, where we’ve
provided detailed instructions on how to get a Java compiler, how to get a Java
runtime for your PDA, and how to compile and use Java programs with your
PDA and robot.
Advanced Topic: Adding New Languages
The PRP converts programs into three languages: BASIC, TEA, or Java. What
do you do if you want to convert into another language? We’ve developed the
PRP so that if you are a Java programmer, you can easily add a new language
converter to the PRP.
P:\010Comp\Bots\880-6\ch06.vp
Monday, May 12, 2003 1:06:27 PM