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 / *160 (-10)
  Re: NQC tutorial available
 
(...) "if (Random(100) == 0)" used to be a compiler error, but version 1.2 of NQC is smart enough to generate a temporary variable to hold the random number. A trickier problem is Sleep(). Sleep(Random(100)) parses just fine. Since Sleep() is just a (...) (26 years ago, 31-Mar-99, to lugnet.robotics.rcx.nqc, lugnet.robotics)
 
  Re: NQC tutorial available
 
(...) I think Mark is waiting for me to release NQC 1.3 - which is where SetWatch() gets added. In the meantime, you can define it yourself within your source code... #define SetWatch(h, m) asm { 0x22, (h), (m) } Dave (26 years ago, 31-Mar-99, to lugnet.robotics.rcx.nqc, lugnet.robotics)
 
  Re: NQC tutorial available
 
Mark, In the section on "Display", you mention "Setwatch()" is available in V2.3. Any guess when this will be available? Thanks, -Phil (...) (26 years ago, 30-Mar-99, to lugnet.robotics.rcx.nqc, lugnet.robotics)
 
  Re: cputs / argc,argv / snapshot
 
Oops. Did I say David? That's what you get for speaking on the phone and typing simultaneously. I meant Dan, of cause! (26 years ago, 30-Mar-99, to lugnet.robotics.rcx.legos)
 
  cputs / argc,argv / snapshot
 
Hi, I implemented a cleaner cputs(). Should work with all compilers, also 20% smaller. I went ahead and implemented argc/argv parameter passing for execi as well. This prompted a bugfix for memcpy, which I did create. As I was at it, I also merged (...) (26 years ago, 30-Mar-99, to lugnet.robotics.rcx.legos)
 
  Re: cputw
 
(...) By "doesn't work", I assume the patch applied successfully and your compiler barfed with some sort of error message or generated incorrect code. That would tend to (at least slightly) indicate that the problem that I was trying to fix may have (...) (26 years ago, 30-Mar-99, to lugnet.robotics.rcx.legos)
 
  cputw
 
Maybe we'd better opt for unsigned char c=word&0xff; cputc_... cputc_... c=word>>8; cputc_... cputc_... instead - your patch doesn't work with my compiler version! This may generate better assembly code, too, as word is already in a register. (26 years ago, 30-Mar-99, to lugnet.robotics.rcx.legos)
 
  Re: legOS ...
 
Hi Mark, you might consider joining the legOS mailing list www.lugnet.com. We're currently working on network protocols for the IR device. POSIX compliance is very worthwile. I'm considering to make all devices files. Yes, even sensors. That way, we (...) (26 years ago, 30-Mar-99, to lugnet.robotics.rcx.legos)
 
  Re: motor speed
 
Hi Lou, that's great. Markus. (26 years ago, 30-Mar-99, to lugnet.robotics.rcx.legos)
 
  Re: NQC tutorial available
 
I have gone through most of the tutorial that posted by Mark Overmars which is extremely helpful. What a good job. Thanks Mark. There is one doubt and two question that I would like to get Mark or other people's attention. When I run the example (...) (26 years ago, 30-Mar-99, to lugnet.robotics.rcx.nqc, lugnet.robotics)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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