Page 282 - Amphibionics : Build Your Own Biologically Inspired Robot
P. 282

Amphibionics 06  3/24/03  9:02 AM  Page 261
                                       Chapter 6 / Crocobot: Build Your Own Robotic Crocodile
                                                                                   PROGRAM 6.11
                        '------------------------------------------------------------------------------------------------------------------------------
                                                                                   rx-remote.bas program
                                                                                   listing (continued)
                        turn_left:
                          ' move left leg
                          high enable_left
                          high reverse_left
                          pause 300

                          while limit_left = 0
                          wend

                          low enable_left
                          low reverse_left

                          ' move right leg

                          high enable_right
                          high forward_right
                          pause 300

                          while limit_right = 0
                          wend

                          low enable_right
                          low forward_right

                        return

                        '------------------------------------------------------------------------------------------------------------------------------


                        walk_reverse:

                          ' move left leg




                                                                                                 261
   277   278   279   280   281   282   283   284   285   286   287