| | 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)
|