| | Problems by using VC as a smart sensor
|
| Hello everybody, I want that my robot goes ahead, ONLY as long as the first region is active. and goes left ONLY when the second is active, goes right ONLY when 3th is active and goes back ONLY as long as the 4th is active. But it dosent functure. (...) (24 years ago, 24-Feb-01, to lugnet.robotics.vc)
| | | | Re: Problems by using VC as a smart sensor
|
| Hi Maze, (...) The software only sends a message if a region gets active and not if a region gets inactive ! Try something like this: switch (message) { case 1 : OnFwd(Motor_Left); OnFwd(Motor_Right); Wait(10); // let the motors turn a while break; (...) (24 years ago, 24-Feb-01, to lugnet.robotics.vc)
| |