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 / *38860 (-20)
  Re: Ultrasonic proximity sensor
 
(...) back up alarms for dogcatchers and photographers... (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
(...) Which is why we have C++. With memory constructors and destructors, quite complex resources can be automatically and cleanly free'd up on exit from a function. ---...--- Steve Baker ---...--- HomeEmail: <sjbaker1@airmail.net> WorkEmail: (...) (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
Rob Limbaugh wrote: > I find that GOTO is a very handy way to bypass code to test some > alternate code in high-level languages. Nope - that's why we have #ifdef/#endif > It is also a command that is > easy to match to a machine language code of (...) (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Ultrasonic proximity sensor
 
(...) sorry to dissappoint you but i made that up just for a laugh. i'm glad you got a laugh out of it! Michael (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
(...) This exact same argument can be applied to high-level languages where you dynamically allocate memory or other resources that need to be released before leaving the function. While I agree that forcing people to have only one exit point at all (...) (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Ultrasonic proximity sensor
 
(...) Seriously? That's hilarious. -- -- Open Forge, LLC 24/365 Onsite Support for PCs, Networks, & Game Consoles 512-695-4126 (Austin, Tx.) help@open-forge.com irc.open-forge.com Hangar 18 Open Source Distributed Computing Using Plan 9 & Linux (...) (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  RE: Are there GOTO statements in NQC?
 
I find that GOTO is a very handy way to bypass code to test some alternate code in high-level languages. It is also a command that is easy to match to a machine language code of various processor types. In writing batch scripts on Windows (...) (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Ultrasonic proximity sensor
 
(...) The frequency at which air is best matched is about 40kHz, several things with this: - low resolution because of the low frequency - going to take more power to get a given range of detection than using a commercial grade unit (works at 40kHz) (...) (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Ultrasonic proximity sensor
 
Mindsensors Has recently developed a Ultrasonic distance sensor, which uses 24 KHz ultrasonic wave for distance mesurements. If your are interested visit us at www.mindsensors.com/uspd.htm www.mindsensors.com Mindsensors Robotics (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
(...) The thing everyone has forgotton about the "one exit point" rule is that it applies to MACHINE CODE PROGRAMMING - not high level languages. This single misunderstanding has resulted in more convoluted and illegible code than I care to (...) (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
(...) Well, you'll hear people telling you: 1) Use the GOTO - it's fine. 2) Use it sparingly - it's dubious. 3) Use it only if you are totally stuck. 4) Never, ever use it - it is the work of Satan. I fall into group (4). I've been working as a (...) (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Help w/install _or_ It all went so well
 
(...) You should uninstall cygwin and delete its directory tree if it is left behind. Then run both installers (the brickoslejos installer second) and you should be ready to go. You don't need to do a configure or make of brickOS if you use these (...) (22 years ago, 20-Nov-03, to lugnet.robotics.rcx.legos)
 
  Re: Are there GOTO statements in NQC?
 
(...) In NQC, it is necessary to be especially careful about the use of goto as Dave writes in the NQC Guide: The goto statement should be used sparingly and cautiously. In almost every case, control structures such as if, while, and switch make a (...) (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
(...) Ralph, I think it is a stupid rule! (...) Kevin (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  RE: Are there GOTO statements in NQC?
 
(...) <snipped rant> (...) And as a longtime embedded guy myself, I agree with Mark. It's the old sharp tools and dull craftsman thing. In the hands of a practiced expert, the goto can be a thing of beauty and can make the code more readable, which (...) (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
(...) I'd love to take up the personal challenge of eliminating your need for goto. Can you share your code with me? Email would be fine. Kevin (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
(...) As a general rule I do not use goto's because I don't have a need for them. I've coded so many LOC in my life that the "if then else" structure of modern language was a step up from where I started. :^) The original BASIC and FORTAN had gotos (...) (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
(...) I'm probably in the minority here, but I'm going to come right out and say that goto's are not a bad thing, contrary to popular belief. In fact, I find it rather pompous when I come across admonishments in textbooks that there is no valid (...) (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
(...) NQC has supported the goto statement since version 2.5a3 (which was released a long time ago). (...) Nope. It's already there. John Hansen (22 years ago, 20-Nov-03, to lugnet.robotics)
 
  Re: Are there GOTO statements in NQC?
 
(...) Y'know, I really ought to check the latest version before saying these sorts of things. It appears that goto has actually been implemented since the last time I fiddled with NQC. Sorry for the misinformation. - Alex (22 years ago, 20-Nov-03, to lugnet.robotics)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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