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 / *1515 (-20)
  Emulating arrays in NQC
 
Hi all! as I promised earlier, I am posting the code I've written to emulate arrays. I tried to make it general, but it's difficult to do without compiler support. Right now it implements a 32 items array of 4 bit variables. It can be quite easily (...) (25 years ago, 6-Jan-00, to lugnet.robotics.rcx.nqc)
 
  Re: NQC wishlist
 
(...) I think 1 and 2 are the ones that would be really needed. 2 would be useful in writing macros to emulate arrays or "small" variables. But maybe there will be support for that in the compiler... cheers /Vlad (25 years ago, 6-Jan-00, to lugnet.robotics.rcx.nqc)
 
  Re: RCX onboard timer and motor pulsing
 
Hi Ben, I think I missed something here. What is "PWM mode"? What language are you programing in? And what is the "internals page"? Thanks so much for pursueing this! I did pick up the Unofficial Guideo to LEGO MS Robots by Jon Knudsen but only (...) (25 years ago, 6-Jan-00, to lugnet.robotics.rcx, lugnet.trains)
 
  Re: Problems with RCX Robolab and PowerMacs 6400/200 and 5500/225
 
Thanks for the reply, I really enjoyed your book. My son (age 13) also enjoyed it. He's starting out using ROBOLAB, but your book has sparked an interest in C (like) programming. I look forward to a sequel. (...) (25 years ago, 6-Jan-00, to lugnet.robotics, lugnet.robotics.edu, lugnet.robotics.rcx.robolab, lugnet.edu, lugnet.robotics.rcx)
 
  NQC beta test release policy
 
As this is my first post to this newsgroup, I thought I'd start by saying how wonderful I think nqc is etc. I got the RIS 1.5 for xmas and had nqc up and running in no time on my linux system. As well as being an excellent language and bytecode (...) (25 years ago, 6-Jan-00, to lugnet.robotics.rcx.nqc)
 
  Re: RCX onboard timer and motor pulsing
 
(...) I was just experimenting with this a few days ago. An RCX using PWM does a far better job of driving the LEGO train motors than the simple variable voltage from the LEGO train control. You can make a train creep around just above stall speed (...) (25 years ago, 6-Jan-00, to lugnet.robotics.rcx, lugnet.trains)
 
  Re: NQC wishlist
 
(...) That would still be handy. Just the other night I was readying some NQC for distribution and I had: #define FOO_SENSOR SENSOR_2 and what I wanted to do was (beyond the user configurable part): #define DISPLAY_FOO DISPLAY_ ## FOO_SENSOR so I (...) (25 years ago, 6-Jan-00, to lugnet.robotics.rcx.nqc)
 
  Re: NQC wishlist
 
Dave, So far, I've lived without ##, and I'm quite sure I can live without 4) and 5). And can't 3) be replaced in many cases by arithmetic? In my brief stint programming "lego assembler" for the Scout, (Assembler! I'm embarrassed to admit how far (...) (25 years ago, 6-Jan-00, to lugnet.robotics.rcx.nqc)
 
  Re: NQC wishlist
 
(...) I took a good look at the preprocessor code, and it shouldn't be too hard to implement ## aside from the problem of recovering original token text. Adding support for remembering the original token text is easy to do if you're willing to be a (...) (25 years ago, 6-Jan-00, to lugnet.robotics.rcx.nqc)
 
  Re: Problems with RCX Robolab and PowerMacs 6400/200 and 5500/225
 
Sigh.... ... . How the $%^&* will we ever get smart, interested, technical professionals to really make a difference in the schools when they run into this. THis. This...! Sigh... I am using RIS1.0 on 6 old 486 machines with WIN95. The school was (...) (25 years ago, 6-Jan-00, to lugnet.robotics, lugnet.robotics.edu, lugnet.robotics.rcx.robolab, lugnet.edu, lugnet.robotics.rcx)
 
  Re: (no longer Failed) Getting LegOS 0.2.2 working on Windows
 
Salve Paolo, Yahoooo! It finally works. After applying the the patch file you sent me by e-mail, everything seems to work now. Thank you all for your great help. Ciao, Carsten (25 years ago, 6-Jan-00, to lugnet.robotics.rcx.legos)
 
  Re: NQC wishlist
 
(...) If I were to implement it, I probably wouldn't add a second pass. The real obstacle at present is that the literal text for a token cannot always be recovered after it leaves the lexer. For example, '01' and '1' both leave the lexer as an (...) (25 years ago, 6-Jan-00, to lugnet.robotics.rcx.nqc)
 
  Re: (Failed) Getting LegOS 0.2.2 working on Windows
 
(...) error (...) I think that it's the usual "\n" problem of *nix. (...) helloworld.lx (...) I will send the file in attach directly to your E-Mail address to check that all patches are in the right place. (...) I've just tried and it works... I (...) (25 years ago, 5-Jan-00, to lugnet.robotics.rcx.legos)
 
  a problem of legOS-0.2.2 on Windows95
 
Hello. I have a problem of makefile. Perfectly I followed this instruction (URL) erased all tabs. But a result is following... BASH.EXE-2.02$ make --unix makefile:9: *** missing separator. Stop. Only this message is displayed. and line9 of (...) (25 years ago, 5-Jan-00, to lugnet.robotics.rcx.legos)
 
  Re: Speed of RCX interpreting bytecodes: slow
 
(...) I'm pretty sure this is not the case. The interpreter constantly runs the "execute bytecode" function if it is sitting idle. -Kekoa (25 years ago, 5-Jan-00, to lugnet.robotics.rcx)
 
  legOS Praise, and small request :)
 
I've just got V0.2.2 working, after at least a year of not having had time to play with it! I just wanted to say WOW :) It's come a long way, and I can't wait to start tinkering with it again! Fantastic work Markus! The small request? I use com2 for (...) (25 years ago, 5-Jan-00, to lugnet.robotics.rcx.legos)
 
  Re: What should be in the next version of RcxCC
 
1: a default template file, so that standard includes and defines, a main task and other things that tend to be used in all programs can be added automatically from the New command. I realise I could just create one and then Open and Save As, but we (...) (25 years ago, 5-Jan-00, to lugnet.robotics.rcx.nqc)
 
  RcxCC Editor
 
First off, big thanks to DB for NQC, and MO for RcxCC. Both top products, and a major relief. Quick question though to Mark: I occasionally get corrupted text characters in the RcxCC editor window. The entire line that the cursor is on suddenly (...) (25 years ago, 5-Jan-00, to lugnet.robotics.rcx.nqc)
 
  Re: NQC wishlist
 
This works as a 1-based 16 element array of Boolean variables... // Boolean constants #define TRUE 1 #define FALSE 0 // Boolean storage - bye bye var 0 int bSys = 0; // Boolean array defines #define bool(i) ((bSys & (i^2)/2) == (i^2)/2) #define (...) (25 years ago, 5-Jan-00, to lugnet.robotics.rcx.nqc)
 
  Re: Program dlls
 
(...) there are 3 simple dll applications and a Makefile in the demo directory, which show how to compile a dll application. cheers, Martin (25 years ago, 5-Jan-00, 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