Mailing List del Fortunae LUG ============================= /* /0LOGBOOK 0 */ program test { #include <RCX2.h> #include <RCX2MLT.h> #include <RCX2Sounds.h> #include <RCX2Def.h> sensor touch2 on 2 touch2 is switch as boolean event tPress_touch2EventPress when touch2.pressed main { ext InterfaceType "kFreestyle" rcx_ClearTimers bbs_GlobalReset([A B C]) start TouchWatcher0 rcx_Priority( 8) trigger tPress_touch2EventPress try { bb_Forward(A, C, 10000) } retry on fail } watcher TouchWatcher0 monitor tPress_touch2EventPress { rcx_Priority( 3 ) try { bb_Backward(A, C, 100) bb_MotorControl ( [A ] , [ C ] , [ A C ] , 100 ) } restart on fail } restart on event } vi pasto il codice del mio primo robot sperimentale, fatto con lego mindstorm, per funzionare funziona, solo che c'ha dei grossi problemi strutturali, in pratica non riesce a girare quando dovrebbe :)) ah, ieri sera ho conosciuto matteo, pesarese iscritto al lug, e la cosa figa e' che dopo il suo concerto io mi sono messo a parlare di linux :)))))) bau -- Machine gave me some freedom. Sia lodato Linus Torvalds!