Page 64 - The Definitive Guide to Building Java Robots
P. 64

Preston_5564C02.fm  Page 45  Wednesday, September 14, 2005  5:42 AM



                                                                     CHAPTER 2  ■  SERIAL COMMUNICATION   45

















































                        Figure 2-8. StandardSerialPort, JController, Controller, and SimpleStamp

                            The command methods create byte[] with the commands specified via the constants of
                        the class, and then invoke the execute() method on the parent with a time delay of 150 milliseconds
                        for each method. (See Example 2-13.)




















                   97022d2480fe4a63cfdfa123a6e70098
   59   60   61   62   63   64   65   66   67   68   69