[FLUG] primo robot

  • From: Gecco th Rulez <gecco@xxxxxxxxxxxx>
  • To: fanolug@xxxxxxxxxxxxx
  • Date: Tue, 15 Jan 2002 00:18:23 +0100

Mailing List del Fortunae LUG
=============================

program test {
        
        #include <RCX2.h>
        #include <RCX2MLT.h>
        #include <RCX2Sounds.h>
        #include <RCX2Def.h>
        sensor touch1 on 1
        touch1 is switch as boolean
        event tPress_touch1EventPress when touch1.pressed
        
        
        
        main {
                ext InterfaceType "kFreestyle"
                rcx_ClearTimers
                bbs_GlobalReset([A B C])
                try {
                        repeat {
                                off [ A B C  ] 
                                on [ A  ]  for 50
                                on [ B  ]  for 10
                                direction [ B  ] [ ]
                                direction [ B  ] [ ]
                                on [ B  ]  for 10
                                direction [  ] [ B ]
                                on [  ]  for 200
                        } until tPress_touch1EventPress
                } retry on fail
                try {
                        off [ A  ] 
                        on [ B  ]  for 10
                        direction [ B  ] [ ]
                        on [ B  ]  for 10
                        direction [  ] [ B ]
                } retry on fail
        }



questo e' il codice sorgente del robot, mio primo robot interamente
funzionante, che presentero' alla cena questo mercoledi, siatene felici
:))

bau
-- 
Machine gave me some freedom.
Sia lodato Linus Torvalds!

Other related posts:

  • » [FLUG] primo robot