To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / *545 (-20)
  Re: firmdl for Win32? (Re: random numbers)
 
(...) I can compile it for use with Cygwin (Unix for NT), but since I have not (yet) figured out how to configure and use the serial port under NT, there is no NT version as of yet. But there are other firmware downloaders for NT already. To compile (...) (25 years ago, 16-Jul-99, to lugnet.robotics.rcx.legos)
 
  Re: random numbers
 
(...) The firmware supports random numbers using some method that whose name I can't remember at the moment. Something about feedback. Anyways, the algorithm there boils down to: int seed; int rand (void) { char bit; bit = (seed & (1 << 1)) >> 1; (...) (25 years ago, 16-Jul-99, to lugnet.robotics.rcx.legos)
 
  Re: Light sensor initialization?
 
(...) Partly, I can think of cases where that might be ugly. But more importantly, I often want to set up a scenario so that two robots will bump into each other in a certain place. (For making movies, showing off to friends, etc.) Can't do that as (...) (25 years ago, 15-Jul-99, to lugnet.robotics.rcx)
 
  Re: Light sensor initialization?
 
(...) Huh? You mean, your robot doesn't work unless you point it in a certain direction before starting the program? That doesn't sound too robust. Okay, let's change the algorithm: (this is for a line tracker that follows "dark" lines and relies on (...) (25 years ago, 15-Jul-99, to lugnet.robotics.rcx)
 
  Re: Light sensor initialization?
 
(...) going in a circle. (25 years ago, 15-Jul-99, to lugnet.robotics.rcx)
 
  Re: Light sensor initialization?
 
(...) That's why I suggested a solution that works in all cases. It's not much harder than your solution either. (URL) Robert Munafo (25 years ago, 15-Jul-99, to lugnet.robotics.rcx)
 
  Re: Light sensor initialization?
 
(...) This is my inspiration for adding on-the-fly init code, btw. RoboTag uses two seperate robots, and it turns out that my friend -- the source of the second mindstorms kit -- has a light sensor which reads about 10 "darker" than mine. (25 years ago, 15-Jul-99, to lugnet.robotics.rcx)
 
  Re: Light sensor initialization?
 
(...) Wow. I feel I should point out that experimentally my method works 100% of the time. :) On the other hand, mine is a special-case application: the light sensor is used to read color values from a surface, which presumably will have very little (...) (25 years ago, 15-Jul-99, to lugnet.robotics.rcx)
 
  Re: Light sensor initialization?
 
Matthew's program takes one reading at initialization time to determine a baseline value. Any reading that falls 7 units below this is assumed to be a dark line. I take a somewhat more conservative approach, taking 10 readings over one second and (...) (25 years ago, 15-Jul-99, to lugnet.robotics.rcx)
 
  Re: random numbers
 
(...) The author claims it has very good spectral properties, but I have no way of testing that. The only other reference I have found to it on the net is from a group at the University of Salzburg, who state that it performed well in their tests. (...) (25 years ago, 14-Jul-99, to lugnet.robotics.rcx.legos)
 
  Re: random numbers
 
(...) You could either take just the source file out of gnulibc and link it in, or you could change your setup to actually use the gnulibc (which is what I am doing, although not with legOS). (...) It depends on what you want the RNG for. If all you (...) (25 years ago, 14-Jul-99, to lugnet.robotics.rcx.legos)
 
  Re: random numbers
 
(...) Probably a dumb question, but how do I link in another copy of libc, besides the hacked-down one already present in legOS? I can't just copy the one on top of the other, and the linker should just link in the first it finds, correct? At any (...) (25 years ago, 14-Jul-99, to lugnet.robotics.rcx.legos)
 
  firmdl for Win32? (Re: random numbers)
 
(...) Hi, Luis Villa - author of HOWTO has some that he will soon include into the HOWTO. If you need just random 16 bit integer, you can use for example this random = 25173*previous + 13849; but I don't know how good it is; start with an arbitrary (...) (25 years ago, 14-Jul-99, to lugnet.robotics.rcx.legos)
 
  Re: random numbers
 
(...) gnulibc has a good LCGM you can just link in. John A. Tamplin Traveller Information Services jat@LiveOnTheNet.COM 2104 West Ferry Way 256/705-7007 - FAX 256/705-7100 Huntsville, AL 35801 (25 years ago, 14-Jul-99, to lugnet.robotics.rcx.legos)
 
  LegOS HOWTO- updates
 
For those of you who have looked at the LegOS HOWTO before, or for those who have not, there are some new topics covered, some of which may make you think twice about sticking to the old firmware. new topics: *random number generation. Don't make (...) (25 years ago, 14-Jul-99, to lugnet.robotics.rcx.legos, lugnet.robotics)
 
  Re: Light sensor initialization?
 
(...) [snip] (...) Yes -- check out my RoboTag program at (URL) RoboTag, the sensor is pointing at the ground, which is probably grey/brown/white, with black border lines. My program reads the light level at start, and assumes that it isn't on a (...) (25 years ago, 14-Jul-99, to lugnet.robotics.rcx)
 
  Re: is IR considered broken?
 
Sorry it took so long to reply, Mark... I somehow seem to have deleted your mail and only noticed it on the newsgroup by accident. Here are my thoughts. (...) Uhuh. This is (apparently) not a unique experience. (...) I have not had that experience, (...) (25 years ago, 14-Jul-99, to lugnet.robotics.rcx.legos)
 
  Re: Light sensor initialization?
 
I haven't done that yet. But if you're doing a line follower, I would suggest the following: 1. First, build the line follower in such a way that it can rotate in place and make the light sensor sweep out a circle on the ground as it rotates. 2. (...) (25 years ago, 13-Jul-99, to lugnet.robotics.rcx)
 
  Lots of new FAQ answers and some revisions
 
I have just sumbitted a large number of answers to FAQ questions that hadn't been answered yet, and revisions to other answers. There is also just one answer that I did not change (-: The answers are in the lugnet.faq newsgroup. Here is an index to (...) (25 years ago, 13-Jul-99, to lugnet.robotics.rcx, lugnet.faq)
 
  random numbers
 
I'm most of the way to getting it working myself, but I was curious to see if anyone has implemented a random number generator in their bot. Anyone? Anyone? -Luis ###...### Profanity is the one language that all programmers understand. -Anonymous (...) (25 years ago, 13-Jul-99, to lugnet.robotics.rcx.legos)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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