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 / 26905
26904  |  26906
Subject: 
Re: FindLight
Newsgroups: 
lugnet.robotics
Date: 
Tue, 27 Feb 2007 04:29:52 GMT
Viewed: 
4169 times
  
In lugnet.robotics, linmix <linmix@gmail.com> wrote:
The problem is in a different place. I wrongly assumed wait 'ticks' and
timer 'ticks' to be the same, but wait uses 1/100 and timer 1/10. In
other words, the value calculated with the timer needs to be multiplied
by ten to correspond to the motor movement!
For this same reason TURNTIME needs to be a factor 10 smaller (it takes
about 5 seconds for my bot to turn around

Use FastTimer instead of Timer for 10ms resolution.  I should have remembered
that last night.

John Hansen



Message is in Reply To:
  Re: FindLight
 
Thank you for your well commented adaptation. I'm still experiencing the same problem even though the values for the different variables as shown by 'watch the brick' check out. The problem is in a different place. I wrongly assumed wait 'ticks' and (...) (18 years ago, 26-Feb-07, to lugnet.robotics)

10 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