| | Re: Syntax for reserving variables in NQC?
|
|
(...) I would suggest leaving it simple. For example: #pragma 1 Would reserve var. one. #pragma 1 5 9 10 31 Would reserve var.'s 1, 5, 9, 10 & 31 It's the easiest to see at a glance and would be easy to adjust as you changed your code. Dean -- (...) (24 years ago, 29-May-00, to lugnet.robotics.rcx.nqc)
|
|
| | NQC 2.2 a2
|
|
Second alpha release of NQC 2.2 is at (2 URLs) for the list of changes. Dave Baum (24 years ago, 29-May-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Syntax for reserving variables in NQC?
|
|
Although I would much prefer to see NQC reserveing the variables for itself, I prefer the syntax with a start and end on it. #pragma reserve 1 3 James P (24 years ago, 29-May-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Syntax for reserving variables in NQC?
|
|
Dave Baum schreef: (...) This looks a bit confusing, the alternative looks more logical to me. (...) Now this I can understand :-) Looks awesome. (24 years ago, 28-May-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Syntax for reserving variables in NQC?
|
|
(...) Handling a range should't be too tough - perhaps like this #pragma start [count] where count is assumed to be 1 if not present // reserve location 1 #pragma 1 // reserve locations 5,6 and 7 #pragma 5 3 --- The alternative would be #pragma (...) (24 years ago, 28-May-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Syntax for reserving variables in NQC?
|
|
Dave Baum schreef: (...) It looks perfectly logical to me. Will it be possible to reserve a range or do we need to reserve each location separately? No need for an extra keyword indeed. (It's hard enough already. Well I guess part of that comes from (...) (24 years ago, 28-May-00, to lugnet.robotics.rcx.nqc)
|
|
| | Syntax for reserving variables in NQC?
|
|
The fact that in RCX2 the counters are overlapped with global variables has brought about an interesting problem. How should a programmer indicate to the NQC compiler that a certain RCX variable location is to be left untouched (not assigned to any (...) (24 years ago, 28-May-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Differences between RCX 1.0, 1.5 and 2.0?
|
|
(...) From what I've gathered: 1.0 to 1.5 Removed the power adapter board. Less components on the board. 1.0 to 2.0 from what I gathered a slightly newer board with a 32k ROM instead of the 16K in the 1.0. (The 1.0 is designed to hold a 32k ROM. As (...) (24 years ago, 26-May-00, to lugnet.robotics.rcx.legos, lugnet.robotics.rcx.nqc)
|
|
| | Tell your robot what to do!
|
|
I don't know if you could use this with Mindstorms or not (I would assume you could) but it sure sounds cool! It's a voice recognition module.... I wonder how hard it would be to assemble and use. It's $50 too.... I don't want to be the guinea (...) (24 years ago, 26-May-00, to lugnet.robotics, lugnet.robotics.rcx.legos, lugnet.robotics.rcx.nqc)
|
|
| | Differences between RCX 1.0, 1.5 and 2.0?
|
|
I've been away from the Mindstorms scene for almost a year....got a bit behind! *grin* Matt (24 years ago, 26-May-00, to lugnet.robotics.rcx.legos, lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC and rcx2
|
|
(...) No doc yet. It probably won't happen for a while. There are still features that need to be implemented! Dave (24 years ago, 25-May-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC and rcx2
|
|
(...) Documentation is always the last thing to get done.... Until I get it completed, your best bet is to read the lego documentation - especially the opcodes monel,monex,monal, and monax. The monitor/catch works like this: monitor(events) { // (...) (24 years ago, 25-May-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC and rcx2
|
|
All the things I've tried work fine. The only thing I find confusing is the events and control of global objects. Could you try to explain how to set-up and use these features? James Dave Baum <dbaum@spambgoneenteract.com> wrote in message (...) (24 years ago, 22-May-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC and rcx2
|
|
(...) I've been holding off using it until the features were final. Is there a doc with the new commands in place yet? Thanks for all your hard effort though. Dean -- Coin-Op's For Sale!: (URL) Lego Workshop: (URL) Lego Club: (URL) (24 years ago, 22-May-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: NQC and rcx2
|
|
(...) I don't know about Lego's plan. As for NQC, there's been hardly any feedback (either positive or negative) on the alpha NQC release. That, plus the fact that I've been quite busy with other projects, has made NQC a fairly low priority since (...) (24 years ago, 22-May-00, to lugnet.robotics.rcx.nqc)
|
|
| | NQC and rcx2
|
|
How are thing going on this Dave? and does anybody know when Lego plan to release the full version. (24 years ago, 21-May-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: IR communication PC <-> brick with NQC
|
|
(...) The RCX uses a special packet protocol which involes a lot of binary (non-ASCII) bytes, so controlling it with Hyperterminal won't work very well. Your best bet is to either write your own code to send the packets of the serial port or just (...) (24 years ago, 20-May-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Does anyone have Spirit.OCX?
|
|
You can download it at www.legomindstorms.com. Just click look for RCX SDK. "Matt McDevitt" <maktos@maktos.com> wrote in message news:Furpv7.JMH@lugnet.com... (...) (24 years ago, 18-May-00, to lugnet.robotics, lugnet.robotics.rcx.legos, lugnet.robotics.rcx.nqc)
|
|
| | Does anyone have Spirit.OCX?
|
|
Could someone send me the file SPIRIT.OCX ? Matt maktos@maktos.com (24 years ago, 18-May-00, to lugnet.robotics, lugnet.robotics.rcx.legos, lugnet.robotics.rcx.nqc)
|
|
| | IR communication PC <-> brick with NQC
|
|
Hi there ! For an educational project here at university we want to control a brick (1.0) based robot with ir based communiaction over serial connection. We want to use the Win Hyperterminal to control the robot. Has anybody here some information or (...) (24 years ago, 18-May-00, to lugnet.robotics.rcx.nqc)
|