To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 26963
26962  |  26964
Subject: 
Re: TachoSpeed.nqc
Newsgroups: 
lugnet.robotics
Date: 
Tue, 13 Mar 2007 22:55:01 GMT
Original-From: 
linmix <linmix@gmail.com*stopspammers*>
Viewed: 
3838 times
  
Philippe Hurbain wrote:
I found again an old code I wrote for Cybermaster to do avoiding based
on tacho
slowdown.

The trick is indeed to drive at a low power level, or the wheels simply sleep
and there is not enough slowdown to be reliable.

Philo

--------------------
task main ()
{
  Drive (-5, -5);
  Wait(50);
  Drive (-3, -3);

  while(true)
  {
    if(TachoSpeed(1) < 50 || TachoSpeed(2) < 50)
    {
      Drive (5, 5);
      Wait(50);
      Drive (5, -5);
      Wait(50);
      Drive (-5, -5);
      Wait(50);
      Drive (-3, -3);
    }
  }
}
--------------------------

I guess there is a define statement missing that goes something like
#define Drive(l,r) SetPower(OUT_L, l); SetPower(OUT_R, r); On(OUT_L+OUT_R)
although the Programmer's guide doesn't mention anything about negative
values being a possibility in this case, but then again, I can't find
any clear reference to negative values...
I'll try the lower power level. It is starting to make sense to me.

linmix



Message is in Reply To:
  Re: TachoSpeed.nqc
 
(...) I found again an old code I wrote for Cybermaster to do avoiding based on tacho slowdown. The trick is indeed to drive at a low power level, or the wheels simply sleep and there is not enough slowdown to be reliable. Philo ---...--- task main (...) (18 years ago, 13-Mar-07, to lugnet.robotics)

13 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
7 hours ago
Custom Search

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