To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.vcOpen lugnet.robotics.vc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Vision Command / 103
102  |  104
Subject: 
Problems by using VC as a smart sensor
Newsgroups: 
lugnet.robotics.vc
Date: 
Sat, 24 Feb 2001 11:40:48 GMT
Viewed: 
4465 times
  
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. I´ve modyfid the spin left macro as discribed
and wrote  programms for the slots . But the motors didn´t stop, after the
region was inactive. I´ve tried the programms posted by Rainer, but it was
the same. I think the problems are the massages sent by VC to the RCX. But
I´m not sure.
Is there anybody who can help?
Please post me the right programming.
Maze



Message has 1 Reply:
  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; (...) (23 years ago, 24-Feb-01, to lugnet.robotics.vc)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR