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 / 22673
  Re: Competitive MINDSTORMS: try again...
 
In lugnet.robotics, David Perdue wrote: given this piece of code: ---- (...) <snip> (...) <snip> (...) void Calibrate2() { <snip> thresh=LBump; <snip> } ---- 'thresh' will be reading the ambient light in the room. (from the calibrate2 function) The (...) (20 years ago, 20-Aug-04, to lugnet.robotics)
 
  Re: Competitive MINDSTORMS: try again...
 
(...) This is actually incorrect - I see where you're getting confused. You are thinking that the Calibrate2() function is always running, and the "thresh=LBump;" is always being updated, correct? You see, Calibrate2() is only run just once, and (...) (20 years ago, 20-Aug-04, to lugnet.robotics)
 
  Re: Competitive MINDSTORMS: try again...
 
(...) No, that's not what I was thinking. I see Calibrate and Calibrate2 only run at the beginning of the program. (...) Actually, it says that if LBump is less than OR EQUAL TO the value of thresh... Which means if the light in the room NOW is the (...) (20 years ago, 20-Aug-04, to lugnet.robotics)
 
  Re: Competitive MINDSTORMS: try again...
 
(...) Yes, that's correct. (...) There is one piece of missing information you've missed that is causing the confusion: When the program starts, the program doesn't put the normal light value of the room into the variable thresh - read this from the (...) (20 years ago, 20-Aug-04, to lugnet.robotics)
 
  Re: Competitive MINDSTORMS: try again...
 
(...) Again, this sounds really good, but it just won't work. Just to prove it to myself, I did a little test. I connected a light sensor to an RCX, and set it so I could read the values. As it turns out, I have four sumo robots sitting around, so I (...) (20 years ago, 21-Aug-04, to lugnet.robotics)
 
  Re: Competitive MINDSTORMS: try again...
 
(...) Here's a quote from the chapter: "TIP It is a great deal of fun to try out different levels of sensitivity for the searching light sensor.Hold out your hand farther when calibrating, and ZR1 will be very sensitive. Put your hand very close (...) (20 years ago, 21-Aug-04, to lugnet.robotics)
 
  Re: Competitive MINDSTORMS: try again...
 
(...) I suspect this is where theory departs from reality. That would be clear, if you had been to a LEGO sumo event. You seldom have control over the room lighting, much less the other robots. I've seen events where sunlight was shining directly on (...) (20 years ago, 21-Aug-04, to lugnet.robotics)
 
  Re: Competitive MINDSTORMS: try again...
 
(...) Yes, it'll be good to see just how the robots described in the book stand up in actual competitions. And I'm looking forward to seeing someone beat Steve for a change. He's been winning far too many medals ;-) C S (20 years ago, 24-Aug-04, to lugnet.robotics)
 
  Re: Competitive MINDSTORMS: try again...
 
(...) :) I welcome the challenge. (20 years ago, 24-Aug-04, to lugnet.robotics)

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