program test {
#include
#include
#include
#include
sensor rotation1 on 1
rotation1 is rotation as angle
event equal_rotation1EventEqual when rotation1 = 160
main {
ext InterfaceType "kFreestyle"
rcx_ClearTimers
bbs_GlobalReset([A B C])
start RotationWatcher0
rcx_Priority( 8)
trigger equal_rotation1EventEqual
try {
on [ C ]
} retry on fail
}
watcher RotationWatcher0 monitor equal_rotation1EventEqual
{
rcx_Priority( 5 )
try {
float [ A B C ]
} restart on fail
} restart on event
}
|