program test { #include #include #include #include sensor light2 on 2 light2 is light as percent main { ext InterfaceType "kFreestyle" rcx_ClearTimers bbs_GlobalReset([A B C]) try { power [ A C ] 4 } retry on fail try { forever { if light2 > 40{ while light2 > 40 { direction [ A ] [ ] on [ A ] for 13 direction [ ] [ C ] on [ C ] for 8 } } else { while light2 < 40 { direction [ C ] [ ] on [ C ] for 19 direction [ ] [ A ] on [ A ] for 8 } } } } retry on fail } }