| | Re: NQC beta test release policy
|
|
(...) Illogical yes, but not without its reasons. The exclusion of linux and source from beta isn't really a result of any policy, but just to make things more convenient for me. Here's why... I don't have 24/7 access to a linux box, so making a (...) (25 years ago, 7-Jan-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC wishlist
|
|
(...) The inconguity was intentional. I was going to call it SetDisplay(), but then it seemed like: SetDisplay(1) should set the display to show the value 1. I felt that "select" did a better job conveying the fact that there are 7 different display (...) (25 years ago, 7-Jan-00, to lugnet.robotics.rcx.nqc)
|
|
| | Java API for NQC
|
|
I am working for a hardware/software company in The Netherlands and we are in the process of organising a 'build the best robot using Mindstorms and Java' challenge. The idea is to judge people not only by the the robot they build but also by the (...) (25 years ago, 5-Jan-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: RcxCC Editor
|
|
Actually, additional to this, it seems to be caused by colouring of keywords. I've turned that off and the problem has gone away. -- Mark R www.markrendle.co.uk Mark Rendle <rendle2000@hotmail.com> wrote in message news:Fnv5uJ.J2r@lugnet.com... (...) (25 years ago, 6-Jan-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: What should be in the next version of RcxCC
|
|
(...) Maybe this was already posted: the color coding doesn't work for multiline macros. (because of that, I thought for a while that they weren't even legal in NQC!) thanks /Vlad (25 years ago, 6-Jan-00, to lugnet.robotics.rcx.nqc)
|
|
| | 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)
|
|
| | 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: 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: 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: 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: NQC wishlist
|
|
(...) I believe the simplest way to do it would be to have an extra preprocessing pass... it will slow down compilation a little, it's true, but maybe not that much as to matter (compilation is anyway so much faster than the downloading anyway) then (...) (25 years ago, 5-Jan-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC wishlist
|
|
(...) No, this sort of thing isn't covered in my book. There are several ways to send commands to the RCX. The first is the official SDK from TLG (spirit.ocx) which runs under Windows. The SDK contains a reasonable amount of documentation on the (...) (25 years ago, 5-Jan-00, to lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC wishlist
|
|
(...) [Snip] (...) Okay. Is sending these commands (and which ones that are/can be "immediate") in your book? <G> While I don not have something in mind right this second, the more complex programs get the higher the possibility of someone using (...) (25 years ago, 4-Jan-00, to lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC wishlist
|
|
(...) I'm not sure if the terminology from LEGO is "direct" or "immediate" commands, but either way the idea is that some of the bytecodes can be sent to the RCX and the RCX will execute them immediately. There's a lot of overlap between the direct (...) (25 years ago, 4-Jan-00, to lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC wishlist
|
|
(...) I am kind of new to this, but what is meant by direct command? How would tasks downloaded in another slot be assessable to some other task to start up? --- DonC donc@cccd.edu (25 years ago, 4-Jan-00, to lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
|