/* /0LOGBOOK 0 */ program test { #include #include #include #include sensor light2 on 2 light2 is light as percent event lBrite_light2EventHigh when light2.high main { ext InterfaceType "kRoverBot" rcx_ClearTimers bbs_GlobalReset([A B C]) try { forever { if light2 > lBrite_light2EventHigh.high { bb_Backward(A, C, 10) } else { bb_Forward(A, C, 10) } } } retry on fail } }